Use Disk Utility to erase an Intel-based Mac
How to erase (format) the built-in startup disk of an Intel-based Mac.
These steps do not apply to Mac computers with Apple silicon. If you’re using a Mac with Apple silicon, follow the steps to erase a Mac with Apple silicon.
Before erasing your Mac
If you want to restore your Mac to factory settings, such as to prepare it for a new owner, find out what to do before you sell, give away or trade in your Mac.
If using macOS Monterey or later, follow the steps to erase all content and settings instead of the steps in this article. You should also erase all content and settings when selling, giving away or trading in your Mac.
Make a backup of any files that you want to keep. Erasing your Mac permanently will delete its files.
Use Disk Utility to erase your Mac
Start up from macOS Recovery: Press and release the power button to turn on your Mac, then immediately press and hold these two keys on your keyboard: Command (⌘) and R. Keep holding the keys until you see an Apple logo or spinning globe.
If asked, select a user you know the password for and enter their administrator password. Forgotten the password?
From the utilities window, select Disk Utility and click Continue.
Select Macintosh HD in the sidebar of the Disk Utility window. Can’t see Macintosh HD?
Click the
in the toolbar, then specify a name and format:Name: Macintosh HD
Format: APFS or Mac OS Extended (Journaled), as recommended by Disk Utility
Click Erase Volume Group. If you can’t see this button, click Erase instead.
If asked, enter your Apple Account information. Forgotten your Apple Account?
Optional: If you previously used Disk Utility to add internal volumes other than Macintosh HD, you can erase them individually using the same process.
When you’ve finished, close Disk Utility to return to the utilities window in Recovery.
If you want to start up again from the disk you’ve just erased, select Reinstall macOS in the utilities window, then click Continue and follow the onscreen instructions to reinstall macOS.
If you can’t see Macintosh HD in Disk Utility
Your built-in startup disk should be the first item listed in the Disk Utility sidebar. It's named Macintosh HD, unless you've changed its name. If you can't see it there, choose Apple menu > Shut Down, then unplug all non-essential devices from your Mac and try again.
If your disk still doesn't appear in Disk Utility or Disk Utility reports that the erase process has failed, your Mac might need service.