What erasing your Mac means and when to do it

Erasing your Mac wipes the hard drive clean and removes all files, programs, and settings. The computer itself stays intact—you are removing the data stored on it. Most people erase a Mac before selling it, giving it away, trading it in, or starting completely fresh after years of accumulated files and clutter.

Erasing is different from restarting or logging out. A restart turns the computer off and back on but keeps all your data. Logging out removes your user account from the screen but leaves files on the drive. Erasing removes everything and prepares the drive for a new installation of macOS or for someone else to use.

Before you erase, back up any files you want to keep. Once the drive is erased, recovery is difficult and expensive. If you plan to sell or give away the Mac, erasing also protects your privacy by removing passwords, photos, documents, and browsing history.

Key Takeaways

  • Back up all files you want to keep before erasing, because the process removes everything from the drive permanently.
  • On newer Macs with Apple Silicon chips, use System Settings > General > Transfer or Reset; on older Intel Macs, use Disk Utility from Recovery Mode.
  • Recovery Mode is accessed by restarting and holding Command + R (or Command + Option + R for internet recovery) until the Apple logo appears.
  • After erasing, you can reinstall macOS, set up a new user account, or leave the drive blank for the next owner to configure.

Back up your files before you start

The first step is to save anything you need. Connect an external hard drive or use iCloud, Google Drive, or another cloud service to copy important documents, photos, and files. This takes time depending on how much data you have, so plan ahead.

If you use iCloud, sign into System Settings (or System Preferences on older Macs), click your Apple ID, then iCloud, and make sure the folders you care about are synced to the cloud. Photos, documents, and mail can all be backed up this way. For files stored only on your Mac, drag them to an external drive or upload them to a cloud service manually.

Write down any passwords, license keys, or account information you will need after the erase. You will not be able to recover them from the Mac once it is wiped.

Erase on newer Macs with Apple Silicon (M1, M2, M3, and later)

If your Mac has an Apple Silicon chip (released in late 2020 or later), the erase process is built into System Settings. Click the Apple menu in the top left, then System Settings. Click General in the left sidebar, then scroll down and click Transfer or Reset.

Click Erase All Content and Settings. The Mac will ask you to sign in with your Apple ID and confirm your choice. This process takes 15 to 30 minutes. The Mac will restart several times and eventually show the setup screen, as if it were brand new.

If you cannot access System Settings (for example, if you forgot your password), restart the Mac and hold Command + Option + R to enter internet recovery, then use Disk Utility as described in the Intel section below.

Erase on Intel Macs and older Apple Silicon models

Restart your Mac and when ready hold Command + R until you see the Apple logo or a spinning globe. This enters Recovery Mode. If the globe spins for more than a few minutes, your Mac is downloading recovery files from Apple's servers—this is normal and can take 10 to 20 minutes on a slow internet connection.

Once Recovery Mode loads, you will see the macOS Utilities window. Click Disk Utility, then click Continue. In the left sidebar, click the drive you want to erase (usually called "Macintosh HD" or similar). Click the Erase button at the top.

A dialog box will ask for a name and format. Leave the format as APFS (the default on modern Macs) or Mac OS Extended if you are using an older system. Type a name for the drive or leave it blank. Click Erase. The process takes 5 to 15 minutes depending on drive size.

Reinstall macOS after erasing

After the erase completes, your Mac will restart and show a setup screen. You can reinstall macOS by clicking Reinstall macOS (or Reinstall OS X on older Macs) from the Recovery Mode utilities window, or you can leave the drive blank and let the next user set it up themselves.

If you choose to reinstall, the Mac will read the operating system from Apple's servers. This can take 30 minutes to an hour depending on your internet speed. You will need to be connected to Wi-Fi and plugged into power. Once installation finishes, the Mac will restart and show the setup assistant, where you can create a new user account or sign in with an Apple ID.

If you are selling or giving away the Mac, you can stop here and hand it over with a blank drive. The new owner will see the setup screen and can configure it themselves. If you are keeping the Mac, sign in with your Apple ID and restore your backed-up files from iCloud or an external drive.

What to do if you forget your password

If you cannot log in to your Mac, you can still erase it using Recovery Mode. Restart and hold Command + R, then open Disk Utility and erase the drive as described above. You do not need your password to access Recovery Mode.

If you want to reset your password instead of erasing, Recovery Mode also offers a password reset tool. In the macOS Utilities window, click Utilities in the menu bar, then Reset Password. You will need your Apple ID to verify your identity.

Common mistakes to avoid

The biggest mistake is erasing without a backup. Once the drive is erased, your files are gone. Do not skip the backup step even if you think you do not need anything on the Mac.

Another common error is erasing the wrong drive if your Mac has multiple drives or external drives connected. In Disk Utility, double-check the drive name and size before clicking Erase. If you have an external drive plugged in, disconnect it first to avoid accidentally erasing it.

Some people restart their Mac during the erase process thinking something is wrong. The Mac may restart on its own several times—this is normal. Let the process finish without interrupting it. If the Mac is stuck on the same screen for more than an hour, then restart manually by holding the power button for 10 seconds.

Frequently Asked Questions

Can I erase my Mac if it is password protected?

Yes. Restart and hold Command + R to enter Recovery Mode, which does not require your password. From there, open Disk Utility and erase the drive. You will need your Apple ID to reinstall macOS afterward.

How long does erasing take?

The erase itself usually takes 5 to 30 minutes depending on drive size and Mac model. Reinstalling macOS afterward can take 30 minutes to an hour. Plan for 2 to 3 hours total if you include backup time.

What if I change my mind after erasing?

Once the drive is erased, recovery is very difficult and requires professional data recovery services, which are expensive. This is why backing up first is critical. If you have a recent backup on an external drive or in iCloud, you can restore from that after the erase is complete.

Do I need internet to erase my Mac?

You need internet only if you want to reinstall macOS afterward. The erase itself works without internet. If your internet is slow, use a wired connection or Ethernet adapter for faster downloads during reinstallation.

Will erasing remove viruses or malware?

Yes. Erasing the drive removes everything, including any malware. However, if a virus is in your backup files, you can reinfect the Mac when you restore. Scan your backup with antivirus software before restoring, or restore only the files you know are safe.