What happens when you reset your iMac to factory default
A factory reset wipes your iMac completely and reinstalls macOS from scratch. Everything on your drive — files, photos, applications, settings, passwords — gets deleted. The machine then boots up as if it just came from the box, with no user accounts, no data, and no customizations.
You would do this when selling or giving away your iMac, when the system has become too slow or unstable to fix another way, or when you want a completely clean start. The process takes 30 minutes to two hours depending on your internet speed and iMac model.
Before you start, back up anything you want to keep. Once the reset begins, recovery is difficult and often impossible. If you have files you need, copy them to an external drive or cloud storage first.
Key Takeaways
- Back up all your files to an external drive or cloud service before starting, because a factory reset deletes everything on your iMac.
- You need your Apple ID and password to complete the reset, so have those ready before you begin.
- The reset process uses macOS Recovery, which you reach by restarting your iMac and holding Command + R immediately after the startup sound.
- After the reset finishes, your iMac will restart and ask you to set up a new user account, just like a brand-new machine.
Back up your files before you do anything
Open Finder and click the Apple menu in the top left corner. Select System Settings, then click General in the left sidebar. Look for About and note your iMac's model and how much storage it has — you need enough space on an external drive to hold all your files.
Plug in an external hard drive or USB drive with at least that much free space. Open Finder, click Locations on the left, and drag your user folder (the one with your name and a house icon) onto the external drive. This copies everything — documents, photos, downloads, desktop files — to the backup. Wait for the copy to finish completely before moving forward.
If you use iCloud, sign into iCloud.com on another device and download your photos and documents from there as well. This gives you a second copy in case the external drive fails.
Restart your iMac into Recovery mode
Save and close all open programs. Click the Apple menu and select Restart. When the restart begins, you will see a gray screen and hear a startup sound. The moment you hear that sound, press and hold Command + R together. Keep holding both keys until you see the Apple logo or a spinning globe.
Your iMac will load macOS Recovery, which looks different from your normal desktop. You will see a menu with options like "Restore from Time Machine Backup" and "Reinstall macOS." This is the recovery environment — the place where you can erase and reset your machine.
If you see a login screen instead of the recovery menu, restart again and try holding Command + R a bit longer. Some iMacs need you to hold the keys for 10 to 15 seconds before Recovery loads.
Erase your drive using Disk Utility
In the Recovery menu, click Disk Utility and then Continue. Disk Utility opens and shows you all the drives connected to your iMac. On the left side, you will see your main drive — usually called "Macintosh HD" or something similar. Click it once to select it.
Click the Erase button at the top. A dialog box appears asking for a name for the drive. You can call it "Macintosh HD" or anything else — the name does not matter. Leave the format set to APFS (the default) and the scheme set to GUID Partition Map. Click Erase again to confirm.
Disk Utility will erase your entire drive. This takes a few minutes. You will see a progress bar. When it finishes, close Disk Utility and you will return to the Recovery menu. Your drive is now blank.
Reinstall macOS on your blank drive
Back in the Recovery menu, click Reinstall macOS (or Reinstall OS X on older iMacs). Click Continue. You will see the macOS license agreement. Read it if you want, then click Agree twice — once in the dialog and once in the confirmation that appears.
The installer asks you to select a drive. Your freshly erased drive should be the only one showing. Click it and then click Install. The installer downloads macOS from Apple's servers and installs it on your blank drive. This step takes 20 minutes to an hour depending on your internet speed.
Your iMac will restart several times during installation. Let it do this — do not turn it off or unplug it. You will see progress bars and status messages. When the installation finishes, your iMac restarts one final time.
Set up your iMac as a new machine
After the final restart, your iMac boots into the setup screen, just like a brand-new machine. You will see "Welcome" and a language selection. Choose your language and click the arrow to continue.
The setup walks you through selecting your country, keyboard layout, and Wi-Fi network. When it asks about transferring information from another Mac or backup, click Do Not Transfer — you are starting fresh. When it asks for an Apple ID, enter yours. If you do not have one, you can create one or skip this step and create a local account instead.
Create a user account with a password. This becomes your main login. Finish the setup by clicking through the remaining screens. Your iMac is now reset to factory default with a clean copy of macOS and no trace of your old files or settings.
What to do if something goes wrong
If your iMac gets stuck on a progress bar or freezes during installation, wait at least 30 minutes before doing anything — large downloads can appear frozen while they work. If it is still stuck after 30 minutes, hold the power button for 10 seconds to force a shutdown, then restart and try again from the Recovery menu.
If you cannot get into Recovery mode, restart your iMac and try holding Command + Option + R instead. This loads Internet Recovery, which downloads macOS over the internet. It is slower but works when regular Recovery fails. If that does not work either, your iMac may have a hardware problem — contact Apple Support or visit an Apple Store.
If you forgot your Apple ID password, go to iforgot.apple.com on another device and reset it before you start the factory reset. You will need that password to complete the setup on your iMac.
Frequently Asked Questions
Can I undo a factory reset after I have started it?
Once you erase the drive in Disk Utility, recovery is very difficult. If you have not yet erased the drive, you can quit Disk Utility and restart normally to cancel. After the erase completes, your only option is to restore from a Time Machine backup if you have one. This is why backing up before you start is so important.
Do I need an internet connection to reset my iMac?
Yes. Your iMac downloads macOS from Apple's servers during the reinstall step. A wired connection is faster and more reliable than Wi-Fi. If you do not have internet at home, you can do the reset at a library, coffee shop, or Apple Store.
How long does a factory reset take from start to finish?
The entire process usually takes 30 minutes to two hours. Erasing the drive takes a few minutes, downloading and installing macOS takes 20 minutes to an hour, and the initial setup takes 10 to 15 minutes. Slow internet can add significant time to the macOS download step.
What if I want to sell my iMac — is a factory reset enough?
A factory reset removes your files and settings, but it does not prevent someone with technical skills from recovering deleted data. If you are selling an iMac with sensitive information, use a secure erase tool like Permanent Eraser before the reset, or take your iMac to an Apple Store and ask them to securely erase it for you.
Can I reset my iMac without losing my Apple ID settings?
No. A factory reset erases everything, including Apple ID login information. You will need to sign in with your Apple ID again during the setup process after the reset finishes. Have your Apple ID and password ready before you start.