How to Format a Macintosh: Full Erase & Reinstall
In this article
Yes, you can format a Macintosh computer (Mac) and reinstall macOS. The process erases your internal drive and installs a clean copy of the operating system. You will need a backup of your important files, a stable internet connection, and about an hour of time. This guide covers the steps for both Intel-based and Apple Silicon (M1, M2, etc.) Macs.
What You'll Need
- A backup of all important files (Time Machine, external drive, or cloud storage).
- A stable internet connection (Wi-Fi or Ethernet) for downloading macOS.
- Your Apple ID and password (to sign back in after setup).
- If you are erasing a Mac with Apple Silicon, you may need a second Mac or an iPhone/iPad to set up the device after formatting (it requires a device to complete setup).
Step-by-Step
- Back up your data. Before doing anything, make sure you have a full backup. Use Time Machine to an external drive, or copy your files to another computer or cloud service. Formatting permanently deletes everything on the internal drive.
- Sign out of services (optional but recommended). Go to System Settings (or System Preferences on older macOS) and sign out of iCloud, iTunes, and iMessage. This prevents activation locks and makes the Mac ready for a new owner if you're selling it.
- Turn off FileVault (if enabled). In System Settings > Privacy & Security > FileVault, turn it off. This will decrypt your drive, which can take some time.
- Restart your Mac and enter Recovery Mode.
- Apple Silicon (M1 and later): Turn off the Mac, then press and hold the power button until you see "Loading startup options." Click Options, then Continue.
- Intel-based Mac: Restart the Mac and immediately press and hold Command (⌘) + R until the Apple logo or a spinning globe appears.
- Open Disk Utility. In the Recovery Mode window, select Disk Utility and click Continue.
- Erase the internal drive. In Disk Utility, select your internal drive (usually named "Macintosh HD") in the sidebar. Click Erase. For format, choose APFS (for macOS 10.13 or later) or Mac OS Extended (Journaled) for older macOS. Leave the scheme as GUID Partition Map. Click Erase, then Done.
- Quit Disk Utility. After erasing, go to Disk Utility > Quit Disk Utility (or press Command + Q) to return to the Recovery menu.
- Reinstall macOS. In the Recovery menu, select Reinstall macOS and click Continue. Follow the on-screen instructions, choose your freshly erased drive, and let the installer run. Your Mac will download the latest compatible macOS and install it automatically.
- Set up your Mac. After installation, your Mac will restart and show the setup assistant. Follow the prompts to choose your region, connect to Wi-Fi, and sign in with your Apple ID. If you have a Time Machine backup, you can restore your files during setup.
Common Mistakes
- Erasing the wrong drive. Always double-check that you selected the internal drive (usually "Macintosh HD") and not an external drive or a recovery partition.
- Not backing up. Forgetting to back up is the most common and costly mistake. Once you erase, your data is gone.
- Using the wrong file system. If you choose a format that's too old, macOS may not install. Use APFS for modern macOS versions.
- Interrupting the installation. Do not unplug the power or force restart during the macOS installation. This can corrupt the system.
- Skipping the sign-out step. If you're selling or giving away the Mac, not signing out of iCloud can leave an activation lock that the new owner cannot bypass.
Tips
- If your Mac is from 2017 or later, APFS is the recommended format. For older Macs, Mac OS Extended (Journaled) is safer.
- If you have a Time Machine backup, you can restore your entire system after reinstalling, including apps and settings.
- If you're selling the Mac, after reinstallation, do not sign in with your Apple ID. Leave it at the setup screen and let the new owner set it up.
- If your Mac has a T2 security chip or Apple Silicon, you may need to allow booting from an external drive if you're using a USB installer. This is not needed for the standard Recovery method.
- Make sure your Mac is plugged in during the entire process, especially on laptops.
Troubleshooting
If the installation fails or your Mac won't start after formatting:
- Check your internet connection. The installer needs to download macOS. If it's slow or drops, try a wired connection or move closer to your router.
- Try a different Recovery mode. On Intel Macs, try Shift + Option + Command + R to boot into the Recovery that matches your Mac's original macOS, or Option + Command + R to get the latest compatible version.
- Reset the NVRAM (Intel only). Restart and hold Option + Command + P + R for about 20 seconds. This can fix startup issues.
- Re-erase the drive. If the installer says the disk is not eligible, go back to Disk Utility and erase again, making sure the format is APFS and the scheme is GUID Partition Map.
- Use a USB installer. If Recovery Mode is not working, create a bootable USB installer using another Mac and the official macOS installer from the App Store. Then boot from the USB by holding Option at startup.
- If all else fails, contact Apple Support. They can run diagnostics and help if there's a hardware issue.
Frequently Asked Questions
Will formatting my Mac delete everything?
Yes, erasing the internal drive deletes all files, apps, and settings. That's why a backup is essential.
How long does it take to format and reinstall macOS?
Erasing the drive takes seconds, but reinstalling macOS can take 30 minutes to a few hours, depending on your internet speed and Mac model.
Do I need an internet connection to format my Mac?
Yes, because the macOS installer is downloaded from Apple's servers during the process. You can also create a USB installer beforehand if you have no internet.
Can I format a Mac without a backup?
You can, but you will lose all data. It's not recommended unless you're sure you don't need anything on the drive.
What is the difference between APFS and Mac OS Extended?
APFS is the modern file system for macOS 10.13 and later, optimized for SSDs. Mac OS Extended (Journaled) is older and used for HDDs or older macOS versions.
Will formatting remove viruses or malware?
Yes, formatting erases the entire drive, including any malicious software. After reinstalling macOS, your system will be clean.