How to Restore iMac to Factory Default: Step-by-Step
In this article
To restore an iMac to factory default, you need to erase the startup disk and reinstall macOS. The exact steps depend on whether your iMac has Apple silicon (M1 or later) or an Intel processor. For Apple silicon models, shut down, then press and hold the power button until you see “Loading startup options,” click Options, and continue to Recovery. For Intel models, restart and immediately hold Command (⌘) + R until the Apple logo appears. Once in Recovery, open Disk Utility, erase your startup volume (usually “Macintosh HD”) using APFS with GUID Partition Map, then quit Disk Utility and reinstall macOS. This wipes all data, settings, and apps, returning the iMac to a like-new state. Before you begin, back up anything you want to keep.
What You'll Need
- Your iMac and its power cable.
- A stable internet connection (Wi‑Fi or Ethernet) for reinstalling macOS.
- An external drive for a Time Machine backup, or another backup method, if you want to keep any files.
- Your Apple ID and password (you may be asked to sign in to reinstall macOS or to deactivate Activation Lock).
- About 1–2 hours, depending on download speed and disk size.
Step-by-Step
- Back up your data. Connect an external drive and use Time Machine (System Settings > General > Time Machine) or copy important files manually. Erasing the disk deletes everything permanently.
- Sign out of iCloud and deactivate services. This prevents Activation Lock from blocking the next owner.
- Shut down the iMac. Choose Apple menu > Shut Down.
- Start up in Recovery mode. For Apple silicon: press and hold the power button until “Loading startup options” appears, then click Options and Continue. For Intel: press the power button and immediately hold Command (⌘) + R until the Apple logo or a spinning globe appears.
- Open Disk Utility. In Recovery, select 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 “Apple SSD” or the manufacturer name) or the “Macintosh HD” volume. Click Erase. Choose APFS format and GUID Partition Map scheme. Name it “Macintosh HD” (or any name you like) and confirm. Warning: this erases all data on the drive.
- Quit Disk Utility. Close the Disk Utility window to return to the Recovery main menu.
- Reinstall macOS. Click “Reinstall macOS” (or the name of your macOS version), then Continue. Follow the on-screen prompts, agree to the license, and select your newly erased disk as the destination. The installer downloads macOS from Apple’s servers and installs it. This can take 30–90 minutes.
- Complete setup. When installation finishes, the iMac restarts to the Setup Assistant. You can either set it up as new (recommended for a clean factory state) or restore from a backup. If you plan to sell or give away the iMac, press Command + Q at the first setup screen to shut down without creating a user account.
Common Mistakes
- Erasing the wrong disk. In Disk Utility, make sure you select the internal drive, not an external backup drive. Double-check the name and size.
- Forgetting to back up. There is no undo after erasing. Always back up first.
- Not signing out of iCloud/Find My. Activation Lock can prevent the next user from setting up the iMac. Sign out before erasing.
- Using the wrong Recovery shortcut. Intel Macs need Command + R; Apple silicon Macs need the power-button hold. Using the wrong one will just boot normally.
- Interrupting the installer. Do not turn off the iMac during macOS installation; it can corrupt the system.
- Erasing only the volume, not the container. For a true factory reset, erase the top-level device or the “Macintosh HD” volume with APFS; erasing just a volume inside a container may leave other volumes intact.
Tips
- Use a wired Ethernet connection if Wi‑Fi is slow or unreliable during reinstall.
- If you are selling the iMac, do not sign in with your Apple ID during setup; leave it at the Setup Assistant and shut down.
- For Intel iMacs with a Fusion Drive or mechanical drive, Disk Utility may show a “Macintosh HD” and “Macintosh HD - Data” volume; erasing the top-level drive is still the correct approach.
- Keep your macOS installer USB (if you made one) handy for offline reinstalls, but internet recovery is usually sufficient.
- After reinstall, run Software Update to get the latest macOS version and security patches.
Troubleshooting
- Recovery mode does not appear. Try again with the correct key combination for your model. For Intel, use Command + R; for Apple silicon, hold the power button until “Loading startup options” appears. If it still fails, try internet recovery (Option + Command + R on Intel) or contact Apple Support.
- Disk Utility cannot erase the disk. Make sure you have selected the correct drive and that it is not locked. If the disk is failing, you may need professional service.
- macOS reinstall fails or stalls. Check your internet connection, restart and try again. If the installer reports an error, note the code and search Apple’s support site.
- Activation Lock message appears. You must sign in with the Apple ID that was previously used on the iMac, or contact the previous owner to remove it remotely.
- iMac won’t start after erase. The disk is now empty; you must reinstall macOS from Recovery. If you cannot reach Recovery, try a bootable installer or Apple Diagnostics.
Frequently Asked Questions
Will I lose all my files?
Yes. Erasing the startup disk removes all documents, photos, apps, and settings. Back up anything you want to keep before starting.
Do I need to reinstall macOS after erasing?
Yes. Erasing the disk leaves it empty, so you must reinstall macOS from Recovery to make the iMac usable.
Can I restore from a Time Machine backup after a factory reset?
Yes. During Setup Assistant, you can choose to restore from a Time Machine backup. This brings back your files and settings, but the system itself will be a fresh macOS install.
How long does the process take?
Typically 1–2 hours, depending on your internet speed and the size of the macOS download. The erase step is quick; the reinstall takes the most time.
Is factory reset the same as reinstalling macOS?
Not exactly. Reinstalling macOS without erasing keeps your files and settings. A factory reset includes erasing the disk first, so it returns the iMac to its original state.
What if I forgot my Apple ID password?
You will need it to sign out of iCloud or to bypass Activation Lock. Use Apple’s account recovery process if you cannot remember it.