What a factory reset does and when you actually need one
A factory reset — technically called erasing and reinstalling macOS — wipes your Mac's hard drive and installs a fresh copy of the operating system. It removes all your files, apps, and settings. You do not need the login password to start this process, but you will need either your Apple ID, a recovery key, or physical access to Apple's servers through your Mac's firmware.
Most people think they need a factory reset when they actually need one of the simpler unlock methods from the previous section. A reset is the right choice only if: you inherited or bought a used Mac and cannot contact the previous owner; you are troubleshooting severe software corruption; or you are preparing a Mac to sell or give away and want to erase it completely. If you just forgot your password and the Mac is yours, the password reset methods are faster and safer.
A factory reset takes 30 minutes to several hours depending on your Mac's age and internet speed. You will lose everything on the drive unless you have a backup. Once it is done, you will boot into the setup screen and create a new account from scratch.
Key Takeaways
- You can start a factory reset without knowing the login password by using Recovery Mode, which you reach by restarting and holding Command+R.
- The reset process requires either your Apple ID and password, a recovery key from a previous setup, or the ability to authenticate through your Mac's firmware security settings.
- Recovery Mode is built into every Mac and does not require internet, though downloading a fresh macOS copy is faster with a wired connection.
- A factory reset erases everything on your drive, so only use it if you have a backup or you are intentionally wiping the Mac to sell it.
- If you own the Mac and remember your Apple ID, that is usually the fastest path; if you do not remember it, you may need to recover your Apple ID through Apple's website first.
Starting Recovery Mode without a password
Recovery Mode is a separate operating system that lives in your Mac's firmware and runs before the normal login screen appears. You can enter it without knowing your password.
Shut down your Mac completely. Press the power button to turn it on, then when ready hold down Command + R (the Command key and the letter R at the same time). Keep holding both keys until you see the Apple logo or a spinning globe. This usually takes 10 to 20 seconds. Release the keys once the Recovery Mode window appears.
On newer Macs with Apple Silicon chips (M1, M2, M3, and later), you may see a startup options screen first. If so, select your startup disk, then click the gear icon and choose "Utilities" or "Reset Password" depending on what appears. The exact wording varies by macOS version.
Using your Apple ID to erase and reinstall
Once you are in Recovery Mode, open the Disk Utility app from the Utilities menu. Select your Mac's main hard drive (usually called "Macintosh HD" or similar) from the left sidebar. Click the "Erase" button at the top, choose a format (APFS for newer Macs, Mac OS Extended for older ones), and confirm. This step takes a few minutes.
After the drive is erased, close Disk Utility and return to the Recovery Mode menu. Select "Reinstall macOS" and follow the on-screen steps. When prompted, sign in with your Apple ID and password. This is the credential you use to access the App Store, iCloud, or other Apple services — not your Mac login password. If you do not remember your Apple ID password, you will need to recover it through appleid.apple.com before you continue. That process usually takes a few minutes and involves answering security questions or receiving a code on a trusted device.
The reinstall downloads a fresh copy of macOS from Apple's servers and installs it on your erased drive. This step can take 30 minutes to over an hour depending on your internet speed. A wired Ethernet connection is much faster than Wi-Fi.
Using a recovery key if you have one
If you set up two-factor authentication on your Apple ID before you lost access to this Mac, you may have received a recovery key — a 24-character code that looks like XXXX-XXXX-XXXX-XXXX-XXXX-XXXX. This key can unlock your Mac even if you do not have access to a trusted device.
In Recovery Mode, when you are asked to sign in with your Apple ID, look for a link that says "Do not have access to your trusted phone?" or similar. Select it and choose "Use a recovery key" from the options. Type in your recovery key (spaces do not matter) and your Apple ID email address. Then proceed with the erase and reinstall as described above.
If you do not have your recovery key written down anywhere, you cannot use this method. Recovery keys are not stored on your Mac — they exist only in your own records or in a password manager. If you lost it, you will need to use your Apple ID password instead, or contact Apple Support.
What happens if you do not have your Apple ID password
If you do not remember your Apple ID password and do not have a recovery key, you have two options: recover your Apple ID password through Apple's website, or contact Apple Support to verify your identity another way.
Go to appleid.apple.com on any device with internet access. Click "Forgot Apple ID or password?" and enter your Apple ID email address. Apple will send you a verification code to your recovery email address or phone number on file. Enter that code, then create a new password. This usually takes 5 to 10 minutes. Once you have a new password, return to your Mac in Recovery Mode and sign in with it.
If you do not have access to your recovery email or phone number, or if you cannot remember your Apple ID email address at all, contact Apple Support by phone or through their website. They can verify your identity using your Mac's serial number, your billing address, or other account details. This process can take longer — sometimes a day or more — because Apple needs to confirm you own the device and the account.
Firmware security and newer Macs
Macs with Apple Silicon chips have an additional security layer called find Enclave that can prevent a factory reset if the previous owner set it up. This is intentional — it makes stolen Macs much harder to wipe and resell.
If you are trying to reset a Mac you own but did not set up yourself, and Recovery Mode asks for the previous owner's Apple ID, you have only a few paths forward. The fastest is to contact the previous owner and ask them to remove the Mac from their Apple ID account through iCloud.com or by signing into the Mac itself. Once they do, you can try the reset again.
If you cannot reach the previous owner, contact Apple Support with proof of purchase (receipt, credit card statement, or similar). Apple can sometimes remove the security lock, but they will ask for documentation that you own the device. This process can take several days.
After the reset is complete
Once macOS finishes reinstalling, your Mac will restart and show the setup screen. You will create a new user account, choose your language and timezone, and set up iCloud if you want. This is the same screen you would see on a brand-new Mac.
If you have a Time Machine backup from before you lost your password, you can restore your files and apps from it now. Plug in your backup drive, and when the setup asks if you want to restore from a backup, select your Time Machine drive. This copies everything back onto your Mac — your files, apps, and settings — but you will still need to log into individual apps like email and banking with your own credentials.
If you do not have a backup, you will need to reinstall your apps from the App Store or their publishers' websites, and restore your files from cloud storage (Google Drive, Dropbox, OneDrive) or from external drives if you have them.
Frequently Asked Questions
Can I factory reset a Mac without internet?
Yes. Recovery Mode can reinstall macOS using the copy already stored in your Mac's firmware, though this is slower and older than downloading a fresh copy from Apple. If you have no internet at all, hold Command+Option+R instead of Command+R to use the internet recovery option, which will prompt you to connect to Wi-Fi.
Will a factory reset remove the previous owner's Apple ID lock?
No. On newer Macs with Apple Silicon, the find Enclave lock persists even after a complete erase. You will still need the previous owner's Apple ID credentials or Apple Support's help to remove it. This is a security feature to prevent theft.
What if my Mac is too old to run the latest macOS?
Recovery Mode will reinstall the newest version of macOS that your Mac supports. Older Macs cannot run newer operating systems, so you may end up with a version from several years ago. Check your Mac's model and year on Apple's website to see what the maximum supported version is.
Can I keep my files if I factory reset?
Only if you restore from a Time Machine backup after the reset is complete. The erase step deletes everything, so if you do not have a backup beforehand, your files are gone. External drives and cloud storage are not affected by a Mac reset.
How long does a factory reset actually take?
Erasing the drive takes 5 to 15 minutes. Downloading and installing macOS takes 30 minutes to 2 hours depending on your internet speed and Mac age. The full process from start to a working Mac is usually 1 to 3 hours.