What restoring to factory default actually does

Restoring your iMac to factory default erases everything on the drive — all your files, programs, settings, and accounts — and reinstalls a fresh copy of macOS. This is different from a regular backup or restart. Once you start the process, you cannot stop it partway through without losing data.

Most people do this when their iMac has become slow, when they are selling or giving it away, or when they want to start fresh after malware or a major software problem. The process takes between 30 minutes and two hours depending on your internet speed and iMac model.

Before you begin, back up anything you want to keep. After the restore finishes, your iMac will look and run exactly as it did the day it came from Apple, with no personal files or programs remaining.

Key Takeaways

  • Back up all your files to an external drive or cloud storage before you start, because the restore process erases everything.
  • You will need your Apple ID and password during the restore, so have those ready before you begin.
  • The fastest method is to use macOS Recovery, which you reach by restarting your iMac and holding Command + R.
  • After the restore finishes, your iMac will ask you to set up as a new computer, just like when you first bought it.
  • If your iMac will not start or Recovery does not work, you may need to use Internet Recovery (Command + Option + R) or create a bootable USB drive instead.

Back up your files before you do anything

The restore process deletes every file on your iMac. If you have photos, documents, or anything else you want to keep, you must move it to an external drive or cloud storage first.

The simplest method is to plug in an external hard drive or USB drive with at least as much free space as the files you want to save. Open Finder, click on your iMac's name in the sidebar under Devices, then drag your important folders to the external drive. Wait for the copy to finish — you will see a progress bar.

If you use iCloud, Google Drive, Dropbox, or another cloud service, sign in and upload your files there instead. This takes longer but means you do not need an external drive. Make sure the upload finishes completely before you move forward.

Restart your iMac into Recovery mode

Recovery mode is a hidden part of macOS that lets you restore your iMac without needing any external discs or drives. To enter it, shut down your iMac completely, then turn it back on and immediately hold down Command + R. Keep holding these keys until you see the Apple logo or a spinning globe.

Your iMac will load the Recovery environment, which looks different from your normal desktop. You will see a menu bar at the top and a Utilities window in the center. This usually takes two to five minutes. If you see a login screen instead, you held the keys too late — restart and try again.

If Command + R does not work, your iMac may be too old or the Recovery partition may be damaged. In that case, try Command + Option + R instead, which downloads Recovery from Apple's servers. This is slower but works on almost every iMac.

Erase your drive using Disk Utility

In the Recovery window, you will see a menu with several options. Click on Disk Utility and then click Continue. Disk Utility opens and shows you a list of drives on the left side.

Look for the drive named Macintosh HD or your iMac's name. Click on it once to select it, then click the Erase button at the top. A dialog box will appear asking you to name the drive and choose a format. Leave the name as Macintosh HD and leave the format as APFS (or Mac OS Extended if your iMac is very old). Click Erase and confirm when prompted.

The erase process takes a few minutes. You will see a progress bar. Do not turn off your iMac or unplug it during this time. When it finishes, close Disk Utility and you will return to the Recovery menu.

Reinstall macOS from Recovery

Back in the Recovery menu, click on Reinstall macOS (or Reinstall OS X on older iMacs). Click Continue and read through the license agreement, then click Agree. Your iMac will ask you to select a drive — choose Macintosh HD, the drive you just erased.

The installation will begin downloading macOS from Apple's servers. This step requires an internet connection and can take 20 to 60 minutes depending on your speed. You will see a progress bar and an estimated time remaining. Do not close this window or put your iMac to sleep.

When the download finishes, your iMac will begin installing. The screen may go black or show a progress bar. Your iMac may restart several times during this process — this is normal. Let it finish without interrupting it. The entire installation usually takes 30 to 90 minutes.

Set up your iMac as a new computer

When the installation finishes, your iMac will restart and show the setup screen, just like when you first bought it. You will be asked to select your language, connect to Wi-Fi, and sign in with your Apple ID.

Enter your Apple ID email and password. If you have two-factor authentication turned on (which Apple recommends), you will need to confirm the login on another device like your iPhone. Follow the prompts to set up Siri, location services, and other settings.

After setup finishes, your iMac is restored to factory default. You can now restore your files from the backup you created earlier by dragging them back from your external drive, or by signing into your cloud storage account and downloading them.

What to do if something goes wrong

If your iMac will not start at all, or if Recovery mode does not appear when you hold Command + R, try Internet Recovery instead. Restart your iMac and hold Command + Option + R. This downloads Recovery from Apple's servers instead of using the local copy. It is much slower but works when the local Recovery is damaged.

If Internet Recovery does not work either, you will need to create a bootable USB drive on another Mac or PC. Visit Apple's support website, download the macOS installer, and follow their instructions to create a bootable drive. Plug the drive into your iMac, restart while holding Option, and select the USB drive from the boot menu.

If your iMac is very old and you are not sure which version of macOS it can run, check Apple's website or the About This Mac menu (click the Apple logo in the top left, then About This Mac). The restore process will only offer you versions your iMac can actually use.

Frequently Asked Questions

Will I lose my Apple ID or iCloud data?

Your Apple ID itself is not stored on your iMac — it is stored on Apple's servers. After you restore, you can sign back in with the same Apple ID and your iCloud data (photos, contacts, calendar) will sync back down. Any files you stored only on your iMac will be gone unless you backed them up first.

How long does the whole process take?

From start to finish, expect 45 minutes to two hours. The erase takes a few minutes, the download takes 20 to 60 minutes depending on your internet speed, and the installation takes 30 to 90 minutes. The setup at the end takes about 10 minutes.

Can I restore my iMac without an internet connection?

If you have a local Recovery partition (Command + R works), you can erase and reinstall without internet, but it will be an older version of macOS. If you need the latest version, you need internet. If Command + R does not work, you absolutely need internet for Internet Recovery or a bootable USB drive.

What if I forget my Apple ID password?

You will need it to sign in during setup. If you forget it, visit iforgot.apple.com on another device before you start the restore, and reset it there. Write down the new password and keep it with you during the restore process.

Can I undo a restore after it starts?

No. Once you click Erase in Disk Utility, your data is gone. The only way to recover it is from a backup you made before you started. This is why backing up first is so important.