Factory Reset an iMac Without the Password Using Recovery Mode
You can factory reset an iMac without knowing the password by using macOS Recovery Mode, which boots your Mac into a special system that exists separately from your main user account. Recovery Mode lets you erase the drive and reinstall macOS without needing to log in. The process takes 30 minutes to two hours depending on your internet speed and which macOS version you're installing.
The steps differ slightly between Intel-based iMacs and Apple Silicon iMacs (the M1, M2, M3 models released from 2021 onward). Both methods wipe everything on the drive, so back up any files you want to keep before you start — once the drive is erased, recovery is difficult and expensive.
Key Takeaways
- Recovery Mode is built into every iMac and does not require your password to access.
- Erasing the drive in Recovery Mode removes all user accounts and passwords, letting you set up the iMac fresh.
- Intel iMacs use Command-R at startup; Apple Silicon iMacs use Command-Option-R or Command-Shift-Option-R depending on which macOS version you want.
- The entire process — erase, reinstall, and initial setup — typically takes one to three hours.
- You will need an internet connection; the iMac downloads and installs macOS during the reset.
Factory Reset on Intel iMacs
Shut down your iMac completely. Turn it back on and when ready hold down Command + R together. Keep holding until you see the Apple logo or a spinning globe. Release the keys once the Recovery Mode window appears — this usually takes 30 to 60 seconds.
In Recovery Mode, click Disk Utility from the menu. Select your main drive (usually called "Macintosh HD" or similar) from the left sidebar. Click the Erase button at the top. Choose a name for the drive (you can keep the default), set the format to APFS (or Mac OS Extended if you're running an older macOS), and click Erase again. The process takes a few minutes.
Close Disk Utility. Click Reinstall macOS from the Recovery Mode menu. Follow the on-screen prompts to read and install the version of macOS that came with your iMac. This step requires an active internet connection and takes 45 minutes to an hour. When installation finishes, your iMac restarts and shows the initial setup screen where you create a new user account and password.
Factory Reset on Apple Silicon iMacs (M1, M2, M3)
Shut down your iMac. Turn it on and hold Command + Option + R to install the latest compatible macOS, or hold Command + Shift + Option + R to install the original macOS that shipped with your iMac. Keep holding until you see the Apple logo or a spinning globe. Release when the Recovery Mode window appears.
The rest of the process is identical to Intel iMacs: open Disk Utility, select your main drive, click Erase, choose APFS as the format, then close Disk Utility and select Reinstall macOS. Apple Silicon iMacs typically read and install faster than Intel models, often completing in 45 minutes to an hour.
What Happens During the Reset
When you erase the drive, every file, folder, and user account on your iMac is permanently deleted. The operating system is also removed. Reinstalling macOS downloads a fresh copy from Apple's servers and installs it on the empty drive. This process is clean — it removes malware, corrupted files, and any password-protected accounts.
After reinstallation completes, your iMac boots into the macOS setup assistant, the same screen you would see if the iMac were brand new. You create a new user account, set a new password, and configure basic settings like language, time zone, and Wi-Fi. At this point, you have full access to the iMac with no password blocking you.
Troubleshooting If Recovery Mode Won't Start
If holding Command-R does nothing and your iMac boots normally, try shutting down again and holding the keys longer — some iMacs need you to hold for 10 to 15 seconds before the Recovery Mode prompt appears. If you see a loading screen with a progress bar, Recovery Mode is starting; wait for it to finish.
If your iMac shows a prohibition symbol (a circle with a line through it) or a question mark, the Mac cannot find Recovery Mode on the drive. This is rare but can happen if the drive is severely damaged. In this case, you can try Internet Recovery by holding Command-Option-R instead, which downloads Recovery Mode from Apple's servers. This method is slower but works even if the local Recovery partition is corrupted.
If you see a login screen asking for a password before Recovery Mode loads, you are not in Recovery Mode yet — you are booting into the normal system. Shut down and try again, holding the keys when ready as the Mac powers on.
Internet Connection and read Time
Recovery Mode requires a working internet connection to read macOS. If you have Wi-Fi, Recovery Mode will show available networks when it starts. Select your network and enter the password if needed. If Wi-Fi is not available, connect an ethernet cable to your iMac using a USB adapter (Thunderbolt or USB-C depending on your model).
read speed varies widely. On a 50 Mbps connection, macOS typically downloads in 15 to 30 minutes. On slower connections, the read can take an hour or more. The installation itself takes another 15 to 30 minutes after the read finishes. Plan for at least two hours total if your internet is slower than 25 Mbps.
Backing Up Before You Erase
If you have files on the iMac that you want to keep, back them up before starting the reset. You cannot access files after the drive is erased. If you have another Mac, you can use Migration Assistant to copy files over the network. If you have an external hard drive, you can boot into Recovery Mode, use Disk Utility to mount the external drive, and copy files manually before erasing the main drive.
If you do not have access to another computer or external storage, and the iMac is already locked, you may not be able to recover the files. In this situation, a data recovery service can sometimes retrieve files after a factory reset, but the cost is typically $300 to $1,000 and success is not may provide.
Frequently Asked Questions
Do I need an Apple ID to factory reset my iMac?
No. Recovery Mode and the factory reset process do not require an Apple ID. You will be asked to sign in to an Apple ID during the initial setup after the reset is complete, but you can skip this step and create a local user account instead. If you want to use iCloud, App Store, or other Apple services later, you can add an Apple ID to your account at any time.
Will factory reset remove viruses or malware?
Yes. Erasing the drive and reinstalling macOS removes all malware because the entire drive is wiped clean. Malware cannot survive a factory reset. However, if the malware came from a file you read again after the reset, you can get infected again — be cautious about what you read and install.
Can I factory reset an iMac if the screen is broken?
Yes, but it is more difficult. You can connect an external monitor to your iMac using a Thunderbolt or USB-C cable (depending on your model) and use that display to see Recovery Mode and follow the reset steps. If you do not have an external monitor, you can take the iMac to an Apple Store or authorized repair shop and ask them to perform the reset for you.
What if my iMac is encrypted with FileVault?
FileVault encryption does not prevent a factory reset. Recovery Mode can erase the drive even if it is encrypted. You do not need the password to erase an encrypted drive in Recovery Mode — the encryption is removed when the drive is erased.
How long does the entire process take?
From shutdown to a usable iMac with a new account, expect one to three hours. Recovery Mode startup takes one to two minutes, erasing takes five to ten minutes, downloading macOS takes 15 to 60 minutes depending on internet speed, installation takes 15 to 30 minutes, and initial setup takes 10 to 15 minutes. Slower internet connections add significant time to the read phase.