Reset Your iMac Password Using Your Apple ID
If you have forgotten your iMac password, the fastest way back in is through your Apple ID — the account you use for the App Store, iCloud, or iTunes. When you enter your password wrong three times at the login screen, macOS automatically offers you the option to reset it using your Apple ID instead. Click that option, enter your Apple ID email and password, then create a new iMac password.
This method works only if you set up your iMac with an Apple ID originally, which most people do. You will need access to the email address and password for that Apple ID. If you have forgotten your Apple ID password as well, you will need to reset that first through iforgot.apple.com before you can use it to unlock your Mac.
The new password takes effect when ready. You do not need to restart or wait — just log in with your new password right away.
Key Takeaways
- Your Apple ID is the primary way to reset an iMac password when you are locked out, and it works at the login screen after three wrong attempts.
- If you do not remember your Apple ID password, reset it at iforgot.apple.com before attempting to unlock your Mac.
- Recovery mode lets you reset your password if you cannot use your Apple ID, but it requires you to know the email address associated with your iMac account.
- If you have a second admin account on the same iMac, you can change the forgotten password from that account without restarting.
- A password reset erases nothing on your Mac — your files, photos, and apps all remain intact.
Reset Your Password From Another Admin Account
If someone else on your household has an admin account on the same iMac, they can reset your password without restarting or using Recovery mode. Have that person log in with their account, then go to System Settings (or System Preferences on older Macs), click General, then Users & Groups (or just Users & Groups on older versions).
They should find your account in the list on the left, click the lock icon at the bottom to unlock the settings, then click Reset Password. A new temporary password will appear — write it down. You can then log in with that temporary password and change it to something you will remember.
This method is often the quickest if you have another person with admin access on the same machine. It bypasses Apple ID entirely and takes about two minutes.
Use Recovery Mode if You Cannot Access Your Apple ID
If you do not have access to your Apple ID password and no other admin account exists on your iMac, you can reset your password through Recovery mode. Restart your iMac and hold down Command + R as soon as you hear the startup sound or see the Apple logo. Keep holding until you see the macOS Utilities window.
From the Utilities menu, select Utilities at the top of the screen, then click Terminal. Type this command exactly: resetpassword and press Enter. A password reset window will open. Select your iMac account from the dropdown menu, enter a new password twice, then click Save.
Recovery mode works on any iMac, but you must know the email address associated with your account. If you do not know it, you cannot proceed this way. After you reset the password, restart your iMac normally and log in with your new password.
What Happens to Your Files After a Password Reset
Resetting your password does not delete anything on your iMac. Your documents, photos, email, browser history, and all installed programs remain exactly where they are. The reset only changes the password you use to log in — nothing else on the machine is affected.
If you had files encrypted with FileVault (Apple's disk encryption), you will still need your old password to decrypt them after you reset your login password. FileVault and login passwords are separate. If you have forgotten both, you will need to contact Apple Support, as there is no way to recover encrypted files without one of those passwords.
Prevent Lockouts by Saving Your Password Somewhere Safe
After you reset your password and regain access to your iMac, consider storing it somewhere you can retrieve it later. The Keychain app on your Mac can store passwords securely, or you can use a password manager like 1Password or Bitwarden that syncs across your devices.
You should also make sure your Apple ID password is written down or stored in a password manager. If you ever forget both your iMac password and your Apple ID password, recovery becomes much harder. A password manager means you only have to remember one strong master password, and it remembers everything else.
If you use Touch ID or Face ID on your iMac, enable it in System Settings under Touch ID or Face ID. This lets you unlock your Mac without typing your password every time, reducing the chance you will forget it from disuse.
What to Do if Recovery Mode Does Not Work
Recovery mode sometimes fails if your iMac has a hardware problem or if the recovery partition is corrupted. If the Terminal command does not open or the password reset window does not appear, try restarting and holding Command + R again — sometimes it takes two or three attempts.
If Recovery mode still does not work after three attempts, your iMac may need service. Contact Apple Support or visit an Apple Store with proof of ownership. They can verify you own the machine and help you regain access, though the process may take several days.
Frequently Asked Questions
Can I reset my iMac password without my Apple ID?
Yes. If you have another admin account on the same iMac, that person can reset your password from System Settings. If no other admin account exists, you can use Recovery mode and the Terminal command, though you will need to know the email address associated with your account.
Will resetting my password delete my files?
No. Resetting your login password does not touch your documents, photos, email, or any other files. Everything stays on your iMac. If you use FileVault encryption, you will still need your old password to decrypt files, since that is separate from your login password.
What if I do not remember my Apple ID email address?
Go to iforgot.apple.com and enter any email address you think might be associated with your Apple ID. Apple will tell you if that email is linked to an account. If you cannot find it, you may need to contact Apple Support with proof of identity to recover your account.
How long does it take to reset my password in Recovery mode?
Recovery mode usually takes five to ten minutes from restart to login. Most of that time is waiting for your iMac to boot into Recovery. The actual password reset takes about one minute once the Terminal window opens.
Can I reset my password if my iMac is encrypted with FileVault?
Yes, but you will need either your Apple ID or access to another admin account. Recovery mode works the same way on FileVault-encrypted Macs. After you reset your login password, you can still access your files normally — FileVault decryption happens automatically when you log in.