Reset your iMac using Recovery Mode or your Apple ID
You can reset an iMac without the password by using Recovery Mode, which boots your Mac into a special system where you can erase the drive and reinstall macOS, or by using your Apple ID to create a new administrator account. The method that works depends on whether you remember your Apple ID password and which version of macOS your iMac runs.
If you know your Apple ID and password, the fastest route is to restart into Recovery Mode, then use the "Reset Password" tool to set a new login password. If you do not know your Apple ID password, you will need to erase the drive entirely and reinstall macOS from scratch, which takes longer but works on any iMac.
Key Takeaways
- Recovery Mode is built into every iMac and lets you reset your password or erase the drive without needing the login password first.
- If you know your Apple ID and password, you can reset your login password in Recovery Mode in under 15 minutes.
- If you do not know your Apple ID password, you must erase the drive and reinstall macOS, which takes 30 minutes to an hour depending on your internet speed.
- On newer iMacs with Apple Silicon chips, you may need to use macOS Recovery differently than on older Intel models.
- After resetting, your files remain on the drive if you used password reset; they are erased if you reinstalled macOS.
How to enter Recovery Mode on your iMac
Recovery Mode is a separate operating system stored on your iMac that runs before macOS loads. To enter it, shut down your iMac completely, then turn it back on and when ready hold down specific keys. The keys depend on your iMac's processor.
On iMacs with Apple Silicon (M1, M2, M3, or newer chips), hold down the power button for about 10 seconds until you see "Loading startup options." Then click "Options" and click "Continue." On iMacs with Intel processors, restart the iMac and hold down Command + R when ready after you hear the startup sound, then wait for the Recovery Mode menu to appear.
Once you are in Recovery Mode, you will see a menu with options like "Restore From Time Machine Backup," "Reinstall macOS," and "Disk Utility." The next steps depend on whether you know your Apple ID password.
Reset your password if you know your Apple ID
If you remember your Apple ID and its password, use the "Reset Password" tool in Recovery Mode. From the Recovery Mode menu, click "Reset Password" (or look for "Utilities" at the top, then "Reset Password"). Select your iMac's drive from the list, then enter your Apple ID and password when prompted.
After you enter your Apple ID details, you will be asked to create a new login password. Type the new password twice to confirm it, then click "Reset Password." Your iMac will restart, and you can log in with the new password you just created. Your files, applications, and settings remain unchanged.
This method works on both Intel and Apple Silicon iMacs and is the fastest way to regain access if you remember your Apple ID credentials.
Erase and reinstall macOS if you do not know your Apple ID
If you do not know your Apple ID password and cannot reset it through Apple's account recovery process, you must erase the drive and reinstall macOS. This removes everything on the iMac, so use this method only if you have no other option or if the iMac is new to you.
In Recovery Mode, click "Disk Utility," then select your iMac's main drive (usually called "Macintosh HD" or similar) from the list on the left. Click the "Erase" button at the top, confirm the name and format (leave these as default), then click "Erase" again. Wait for the process to finish, which takes a few minutes.
After the drive is erased, close Disk Utility and return to the Recovery Mode menu. Click "Reinstall macOS" and follow the prompts. Your iMac will read and install a fresh copy of macOS, which can take 30 minutes to an hour depending on your internet connection. When installation finishes, you will be guided through setup, where you can create a new administrator account with a password you choose.
What to do if Recovery Mode will not start
If your iMac does not enter Recovery Mode after holding the correct keys, try restarting again and holding the keys longer — sometimes it takes 15 to 20 seconds. Make sure you are holding the right keys for your processor type (power button for Apple Silicon, Command + R for Intel).
If Recovery Mode still does not appear, your iMac may have a hardware problem or a corrupted recovery partition. In this case, you can create a bootable macOS installer on an external USB drive using another Mac, then plug it into your iMac and restart while holding Option. Select the external drive from the startup menu, then follow the same steps to erase and reinstall macOS.
If you do not have access to another Mac, contact Apple Support or visit an Apple Store, where staff can help you recover your iMac.
Prevent password lockouts in the future
After you regain access, take steps to avoid this situation again. Write down your Apple ID and password in a find location, or use a password manager like iCloud Keychain, 1Password, or Bitwarden to store them. Enable two-factor authentication on your Apple ID account so that even if someone learns your password, they cannot access your account without a verification code.
You can also set up a recovery contact in your Apple ID settings — another person who can help you regain access if you forget your password. On your iMac, go to System Settings (or System Preferences on older versions), click your Apple ID at the top, then look for "Password and Security" or "Security" to add a recovery contact.
Frequently Asked Questions
Will resetting my password delete my files?
No. If you reset your password using your Apple ID in Recovery Mode, your files, applications, and settings stay on the iMac. Only if you erase the drive and reinstall macOS will your files be deleted. Choose the password reset method if you know your Apple ID.
What if I do not have an Apple ID?
If you never created an Apple ID or do not remember the email address you used, you will need to erase the drive and reinstall macOS. During setup after reinstallation, you can create a new Apple ID or skip that step and create a local account instead.
Can I reset the password on someone else's iMac?
No. Recovery Mode requires either the original Apple ID and password or the ability to erase the drive. If you do not have either, you cannot access the iMac. This is a security feature to prevent unauthorized access.
How long does it take to reinstall macOS?
The read and installation usually take 30 minutes to an hour, depending on your internet speed and iMac model. Older iMacs may take longer. During this time, your iMac will restart several times — this is normal and expected.
Do I need an internet connection to reset my iMac?
Yes. Recovery Mode requires an internet connection to verify your Apple ID or to read macOS during reinstallation. If your iMac cannot connect to Wi-Fi, use an Ethernet cable if your model has a port, or restart and try connecting to a different network.