How to Reset an iMac to Factory Default
In this article
To reset an iMac to factory defaults, back up your data, sign out of your Apple Account and any other accounts, then erase the startup disk and reinstall macOS from Recovery. On Apple silicon iMacs you use macOS Recovery; on Intel iMacs you can use Recovery or, if you are selling it, Disk Utility from Recovery. The exact steps depend on whether your iMac has Apple silicon or an Intel processor, and on the macOS version, so menu labels can differ slightly. This guide covers both, plus what to do when something goes wrong.
What You'll Need
- An external drive for a Time Machine or manual backup (strongly recommended).
- Your Apple Account password and the password for any other accounts you want to remove.
- A stable internet connection (reinstalling macOS downloads several gigabytes).
- Your Mac's administrator password.
- If you plan to sell or give away the iMac, the original box and any accessories are nice to include, but not required for the reset itself.
Step-by-Step
- Back up everything first. Connect an external drive and use Time Machine (System Settings > General > Time Machine on recent macOS, or System Preferences > Time Machine on older versions) or copy important files manually. Erasing the disk deletes all data, and there is no undo.
- Sign out of your Apple Account and deactivate the Mac. Open System Settings (or System Preferences), click your name/Apple Account, and sign out. On Intel Macs you may also need to open Music or TV and choose Account > Deauthorize This Computer if you used them. This prevents your account from being tied to the machine.
- Sign out of other accounts and services. Sign out of iCloud (covered by the Apple Account sign-out), Messages, FaceTime, and any third-party apps you will not keep. If you use Find My Mac, turning it off during sign-out is part of the process; if you skip this, activation lock can block the next owner.
- Restart into Recovery. Shut down the iMac. For Apple silicon: press and hold the power button until you see “Loading startup options,” then click Options > Continue. For Intel: turn it on and immediately hold Command (⌘) and R until the Apple logo or a spinning globe appears.
- Open Disk Utility. In Recovery, choose Disk Utility and click Continue.
- Erase the startup disk. In Disk Utility, click View > Show All Devices (if available), select the top-level internal drive (often named “Macintosh HD” or the drive model), and click Erase. Choose APFS with GUID Partition Map for modern macOS, or Mac OS Extended (Journaled) with GUID Partition Map for older versions. Name it Macintosh HD. Confirm the erase. This deletes all data on the drive.
- Quit Disk Utility and reinstall macOS. Close Disk Utility, then choose Reinstall macOS (or Reinstall macOS [version name]) from the Recovery menu and follow the prompts. The installer downloads from Apple's servers and can take a while.
- Complete setup. When installation finishes, the iMac restarts to the Setup Assistant. If you are keeping the machine, set it up with your Apple Account. If you are selling it, press Command+Q at the first setup screen to shut down without creating an account, or simply leave it at the “Hello” screen for the buyer.
Common Mistakes
- Erasing without a backup. There is no recovery after erase; a backup is the only safety net.
- Erasing the wrong disk. In Disk Utility, make sure you select the internal drive, not an external backup drive. Check the size and name before clicking Erase.
- Skipping the Apple Account sign-out. If Find My Mac stays on, Activation Lock can require your password on the next setup, which is a problem if you have sold the iMac.
- Choosing the wrong format. Modern macOS needs APFS; using Mac OS Extended on a new install can cause issues. When in doubt, let Disk Utility pick the default after selecting the drive.
- Interrupting the reinstall. Do not close the lid or power off during installation; a failed install may require starting over from Recovery.
Tips
- If you only want a clean start and are keeping the iMac, you can use Erase All Content and Settings (available on Apple silicon Macs and on Intel Macs with the Apple T2 Security Chip running recent macOS) from System Settings > General > Transfer or Reset. It is faster than a full reinstall but does not work on every model.
- Before erasing, note your Wi-Fi password and any software licenses you will need to reinstall.
- If the iMac will not boot into Recovery, try internet Recovery: on Intel, hold Option+Command+R at startup; on Apple silicon, holding the power button is the standard route.
- Keep the iMac plugged in throughout the process; a power loss during erase or install can leave the disk in a bad state.
Troubleshooting
- Recovery does not appear. Shut down completely, then repeat the key combination or power-button hold. On Intel, try Command+R again, then Option+Command+R for internet Recovery. Make sure a wired keyboard is connected if the wireless one is not pairing at startup.
- Disk Utility cannot erase the disk. If the drive is not selectable, click View > Show All Devices and select the physical drive, not just the volume. If it still fails, the drive may be failing; a repair shop can check it.
- Reinstall fails or stalls. Check your internet connection, restart into Recovery, and try again. If the installer reports that the disk is not formatted correctly, return to Disk Utility and erase the internal drive as APFS with GUID Partition Map.
- You are asked for a password you do not know at setup. This is usually Activation Lock from Find My Mac. Sign in at iCloud.com/find with the Apple Account used on the iMac and remove the device, or contact Apple Support with proof of purchase.
- The iMac will not start after erase. That is expected until macOS is reinstalled. Boot back into Recovery and run Reinstall macOS.
Frequently Asked Questions
Does resetting an iMac delete everything?
Yes. Erasing the startup disk removes all files, apps, settings and accounts on the internal drive. Anything you want to keep must be backed up first.
Do I need to sign out of iCloud before resetting?
Yes, especially if you are selling or giving away the iMac. Signing out turns off Find My Mac and prevents Activation Lock from blocking the next owner.
Can I reset an iMac without reinstalling macOS?
On many recent models you can use Erase All Content and Settings, which erases the Mac and keeps macOS installed. On older Intel models, the full Recovery erase and reinstall is the reliable method.
How long does the reset take?
Erasing is quick, but reinstalling macOS depends on your internet speed and can take from under an hour to several hours. Keep the iMac plugged in and do not interrupt it.
Will I need my Apple Account password?
You will need it to sign out before erasing and to sign back in during setup if you keep the iMac. If you are selling it, the buyer sets up their own account.
What if I forgot my Mac administrator password?
You can reset it from Recovery using the password reset options in the Recovery assistant, or by erasing and reinstalling macOS, which removes the old accounts entirely.