What resetting to factory default means and when to do it

Resetting your iMac to factory default erases everything on the drive — all files, programs, and settings — and reinstalls a clean copy of macOS. This is different from restarting or shutting down. You are removing years of accumulated clutter, conflicting software, and corrupted files that slow the machine down.

Do this when your iMac has become noticeably slow despite closing programs, when you plan to sell or give away the machine, or when you have tried other fixes (clearing cache, uninstalling unused programs, checking storage space) and nothing worked. A factory reset is the last step before assuming the hardware itself is failing.

The process takes one to three hours depending on your internet speed and iMac model. You will need your Apple ID password, your Wi-Fi network name and password, and a backup of any files you want to keep. Once you start, you cannot stop partway through without losing data.

Key Takeaways

  • Back up all your files to an external drive or cloud storage before you begin, because the reset erases everything on your iMac.
  • You need your Apple ID password and Wi-Fi details ready before starting the reset process.
  • The reset happens through macOS Recovery, which you reach by restarting your iMac and holding Command + R when ready after the startup sound.
  • After the reset finishes, your iMac will restart and ask you to set up as a new machine, just like when it came from the factory.

Back up your files before you do anything

The reset will delete every file on your iMac. Before you touch any settings, copy everything you want to keep to an external hard drive, USB stick, or cloud storage like iCloud Drive or Google Drive.

The fastest way is to plug in an external drive, open Finder, click on your iMac name in the sidebar under Locations, and drag your entire Documents, Desktop, and Downloads folders to the external drive. This takes 10 to 30 minutes depending on how much data you have. If you use iCloud Drive or Google Drive, those files are already backed up as long as you have synced them.

Do not skip this step. Once the reset begins, there is no way to recover files you did not back up.

Restart your iMac and enter Recovery mode

Shut down your iMac completely. Click the Apple menu in the top left, then click Shut Down. Wait for the screen to go black.

Press the power button to turn it back on. when ready after you hear the startup sound (a chime or tone), press and hold Command + R on your keyboard. Keep holding these keys until you see a spinning globe or the macOS Utilities window appears. This usually takes 10 to 20 seconds. If you see the login screen instead, you waited too long — shut down and try again.

You are now in Recovery mode. This is a special part of macOS that runs separately from your main drive and lets you repair, reinstall, or erase your system.

Erase your drive using Disk Utility

In the macOS Utilities window, click Disk Utility, then click Continue. You will see a list of drives on the left side. Click the drive named Macintosh HD (or the name of your main drive if it is different). Do not click a drive that says "Recovery" or has a smaller size.

Click the Erase button at the top. A dialog box will appear asking for a name and format. Leave the name as Macintosh HD and leave the format as APFS (the default). Click Erase. The system will warn you that this cannot be undone — this is correct, and you have already backed up your files, so click Erase again to confirm.

The erase process takes 5 to 15 minutes. You will see a progress bar. When it finishes, the drive will be completely empty. Close Disk Utility by clicking the red X in the top left corner.

Reinstall macOS on your blank drive

Back in the macOS Utilities window, click Reinstall macOS (or Reinstall OS X on older iMacs), then click Continue. You may be asked to select a drive — click Macintosh HD. The system will read macOS from Apple's servers and install it on your blank drive. This step requires a working internet connection and takes 30 minutes to two hours depending on your speed.

Your iMac will restart several times during installation. Let it do this — do not force shut down or unplug the machine. You will see progress bars and status messages. When the installation finishes, your iMac will restart one final time and show the setup screen.

Set up your iMac as a new machine

After the restart, you will see the Welcome screen, just like when the iMac was brand new. Click Continue and follow the on-screen steps. You will be asked to select your language, keyboard layout, and Wi-Fi network. Enter your Wi-Fi password when prompted.

When asked about signing in with your Apple ID, you can either sign in now or skip this step and do it later. If you sign in now, your iMac will read your Apple ID settings, but it will not restore your old files — you will restore those from your backup. If you skip it, you can sign in anytime after setup is complete.

Continue through the remaining setup screens (accessibility options, Siri, analytics, and others). You can change all of these later if you want. When setup finishes, you will see a blank desktop with no programs or files except the ones that come with macOS.

Restore your files from your backup

Plug in the external drive where you backed up your files. Open Finder and click the external drive name in the sidebar. Drag your Documents, Desktop, and Downloads folders back to your iMac. This restores your files without restoring the old problems that made your iMac slow.

If you backed up to iCloud Drive or Google Drive, open those services in your web browser, read your files, and save them to your iMac. This takes longer but works the same way.

Reinstall the programs you use regularly. read them from their official websites or from the App Store. Do not restore old program files from your backup — read fresh copies instead. Old program files can carry over the problems you just erased.

Frequently Asked Questions

What if I forgot my Apple ID password?

You can reset it at iforgot.apple.com before you start the factory reset. If you realize you forgot it during setup, click "Forgot Apple ID or password?" on the setup screen and follow the recovery steps. You will need access to the email address or phone number linked to your Apple ID.

Can I stop the reset partway through?

No. Once you click Erase in Disk Utility, the process cannot be stopped without losing data. The erase itself takes only 5 to 15 minutes, but the macOS reinstall takes much longer. Plan for two to three hours and do not interrupt the process.

Will this remove viruses or malware?

Yes. A factory reset erases everything, including any malware. However, if you restore files from a backup that contained malware, you could reinfect your iMac. Restore only your documents and media files, not program files or system files from the old backup.

What if my iMac will not start up after the reset?

Restart it and hold Command + R again to enter Recovery mode. Click Reinstall macOS and let it run again. If this does not work, your iMac may have a hardware problem. Contact Apple Support or visit an Apple Store for diagnosis.

Do I need an external drive to back up my files?

No. You can back up to iCloud Drive, Google Drive, Dropbox, or any other cloud storage service. Cloud backup is slower than an external drive but works just as well. Make sure your files have finished syncing before you start the reset.