What a factory reset does and when you need one

A factory reset erases everything on your iMac — all files, accounts, settings, and installed programs — and returns it to the state it was in when it left Apple's factory. You are left with a blank machine that asks you to set up a new user account, just as if you had unboxed it for the first time.

You might reset an iMac before selling it, giving it away, or handing it to someone else. You might also reset it if the system has become so slow or unstable that reinstalling macOS from scratch is faster than troubleshooting. A reset is not the same as a restart — restarting just turns the machine off and on again, while a reset destroys all your data.

Before you begin, back up anything you want to keep. Once the reset starts, recovery is difficult and expensive. If you have files on the iMac that you need, copy them to an external drive or cloud storage first.

Key Takeaways

  • A factory reset erases all files, accounts, and settings on your iMac and reinstalls macOS from scratch.
  • Back up all your files to an external drive or cloud storage before you start, because the reset will destroy everything on the machine.
  • The reset process takes 30 minutes to two hours depending on your iMac model and internet speed.
  • You will need your Apple ID and password to complete the reset, or you will be locked out of the machine after it finishes.
  • If you are giving the iMac to someone else, sign out of your Apple ID and iCloud before you hand it over, so they can set up their own account.

How to erase your iMac and reinstall macOS

The most straightforward way to reset an iMac is to erase the disk and reinstall macOS. Start by shutting down the iMac completely. Then turn it back on and when ready hold down Command + R until you see the Apple logo or a spinning globe. This boots the iMac into Recovery Mode, a special environment that lives outside the main operating system.

Once Recovery Mode loads, you will see a window with four options. Click Disk Utility. In the left sidebar, select your main drive — usually called Macintosh HD — and click the Erase button at the top. A dialog will ask you to name the drive (you can keep the default name) and choose a format. Leave the format set to APFS unless you have a specific reason to change it. Click Erase again to confirm. This step takes a few minutes.

After the erase finishes, close Disk Utility and you will return to the Recovery Mode window. Click Reinstall macOS and follow the on-screen prompts. The iMac will read and install the version of macOS that originally shipped with your machine. This can take 30 minutes to two hours depending on your internet speed. Do not shut down the iMac or unplug it during this process.

Setting up your iMac after the reset

When the installation finishes, the iMac will restart and show the setup screen, just as if it were brand new. You will be asked to choose your language, connect to Wi-Fi, and agree to Apple's terms. You will then create a new user account with a name and password.

At some point during setup, you will be asked whether you want to sign in with your Apple ID. If you are keeping the iMac for yourself, sign in with your Apple ID so that you can read apps from the App Store and use iCloud services. If you are giving the iMac to someone else, skip this step and let them sign in with their own Apple ID when they first use the machine.

After setup completes, your iMac is ready to use. You can now restore your files from the backup you made before the reset, or start fresh with a clean machine.

What to do if you forget your Apple ID password

If you reset your iMac and then forget the Apple ID password you need to sign in, you will be locked out. Apple calls this set up Lock, and it is designed to prevent someone else from using your iMac if it is stolen.

To unlock it, go to iforgot.apple.com on another device and follow the steps to reset your Apple ID password. You will need access to the email address or phone number associated with your Apple ID. Once you have reset the password, return to your iMac and sign in with the new password.

If you do not remember the email address or phone number tied to your Apple ID, or if you no longer have access to them, contact Apple Support. They can verify your identity and help you regain access to your account. This process can take several days.

Resetting an iMac you are giving to someone else

If you are selling or giving away your iMac, you should sign out of your Apple ID and iCloud before you hand it over. This removes your personal data from the machine and prevents the new owner from seeing your files, photos, or messages.

Before you reset the iMac, open System Settings and click General in the sidebar. Scroll down and click Transfer or Reset. You will see an option to Erase All Content and Settings. Click it and follow the prompts. This method is faster than using Recovery Mode because it does not require you to reinstall macOS — it just wipes your data and leaves the operating system in place.

If you have already reset the iMac and the new owner is setting it up, make sure you are not in the room when they create their account. If you stay signed in to your Apple ID during their setup, the iMac will be linked to your account and they will not be able to use it freely.

Troubleshooting a reset that goes wrong

If the iMac gets stuck during the erase or reinstall, try shutting it down by holding the power button for 10 seconds, then turning it back on and returning to Recovery Mode. Sometimes the process needs to start over.

If you see an error message about not being able to erase the disk, the disk itself may be failing. In that case, the iMac will need hardware repair and a factory reset will not solve the problem. Contact Apple Support or visit an Apple Store to have the disk checked.

If the iMac will not boot into Recovery Mode even after you hold Command + R, try holding Command + Option + R instead. This boots into Internet Recovery, which downloads macOS from Apple's servers rather than from a local recovery partition. Internet Recovery is slower but works when the local recovery partition is damaged.

How long a factory reset takes and what to expect

The entire process — erase, reinstall, and setup — usually takes between one and three hours. The erase itself takes 5 to 10 minutes. The macOS read and installation takes 20 minutes to an hour depending on your internet speed. The final setup takes 10 to 20 minutes. If your internet is slow or your iMac is older, add extra time.

During the reinstall, you will see a progress bar and an estimate of time remaining. These estimates are often wrong — the actual time may be longer or shorter. Do not interrupt the process even if the estimate seems stuck. The iMac is still working.

Once setup is complete, your iMac will be ready to use when ready. You do not need to wait for anything else to finish in the background, though the first time you open certain apps they may take longer to load as they set themselves up.

Frequently Asked Questions

Can I undo a factory reset after I have started it?

No. Once the erase begins, your data is gone. The only way to recover it is to restore from a backup you made before the reset. If you do not have a backup, a data recovery service may be able to retrieve some files, but this is expensive and not always successful. Always back up before you reset.

Do I need an internet connection to reset my iMac?

Yes. The iMac needs to read macOS from Apple's servers during the reinstall. If your Wi-Fi is unreliable, use an Ethernet cable connected to your router if your iMac has an Ethernet port, or move the iMac closer to your Wi-Fi router. A wired connection is faster and more stable than Wi-Fi.

What if I reset my iMac but still have the same problems?

If your iMac is slow or crashing even after a fresh install of macOS, the problem is likely hardware, not software. The hard drive, RAM, or another component may be failing. Contact Apple Support or visit an Apple Store to have the hardware tested.

Can I reset just part of my iMac instead of everything?

No. A factory reset erases the entire machine. If you want to keep some files, back them up to an external drive before you start, then restore them after the reset is complete. You can also use Time Machine to back up your iMac automatically, so you can restore individual files later without resetting the whole machine.