Reset Your Password Using Another Administrator Account
If someone else on your iMac has an administrator account, they can reset your password without erasing your files. This is the fastest route and takes about five minutes.
Have the administrator log in to their account, then open System Settings (or System Preferences on older macOS versions). Click Users & Groups, then click the lock icon in the bottom left and enter the administrator password. Find your account in the list on the left, click it, and click Reset Password. They'll enter a new temporary password for you — write it down and use it to log in next time.
You can change this temporary password to something you prefer once you're logged in. Go to System Settings, click General, then Users & Groups, and select your account. Click Change Password and enter the temporary one first, then your new password twice.
Key Takeaways
- If another administrator account exists on your iMac, they can reset your password in System Settings without erasing your data.
- If you are the only account or the only administrator, you will need your Apple ID and password to regain access.
- Recovery Mode lets you reset a forgotten Apple ID password, but the process varies by whether your iMac uses Apple silicon or an Intel processor.
- If you cannot remember your Apple ID password either, you will need to reset it through Apple's website before you can unlock your iMac.
- Resetting your iMac erases all files and returns it to factory settings — use this only if no other method works.
Use Your Apple ID to Reset Your Password
If you are the only account on your iMac or the only administrator, you can use your Apple ID to reset your login password. At the login screen, click the question mark or wait for a hint to appear, then click Reset Password.
Your iMac will ask for your Apple ID email and password. Enter both, and you'll be prompted to create a new login password. This works on any recent macOS version and does not erase your files or data.
If you see a message that says "This account cannot be reset using your Apple ID," your iMac may be using an older version of macOS or a local account that was never linked to Apple ID. In that case, move to the Recovery Mode method below.
Reset Your Password in Recovery Mode
Recovery Mode is built into every iMac and lets you reset your password even if you cannot log in. Shut down your iMac completely, then turn it back on and hold down Command + R when ready. Keep holding until you see the Apple logo or a spinning globe.
Once Recovery Mode loads, click Utilities in the menu bar, then select Terminal. Type resetpassword and press Enter. A password reset window will open. Select your iMac's hard drive from the dropdown, then select your account, and enter a new password twice. Click Save, then close Terminal and restart your iMac.
On newer iMacs with Apple silicon chips (M1, M2, M3, and later), the process is similar but the Recovery Mode interface looks different. You'll see a startup options screen instead of the spinning globe. Click Options, then continue, and you'll reach the same Utilities menu. The resetpassword command works the same way.
Reset Your Apple ID Password First If Needed
If you've forgotten both your login password and your Apple ID password, you cannot use the Apple ID reset method until you recover your Apple ID. Go to iforgot.apple.com on another device or computer and enter your Apple ID email address.
Apple will ask you to verify your identity using a trusted phone number, a recovery key, or security questions you set up when you created your Apple ID. Once verified, you can create a new Apple ID password. Then return to your iMac and use the Apple ID reset method described above.
This step is separate from resetting your iMac login password — you are only recovering access to your Apple account so you can use it to unlock your iMac.
Erase Your iMac and Start Over
If you cannot remember your Apple ID password and have no way to verify your identity, or if none of the methods above work, your last option is to erase your iMac and set it up as new. This deletes all files, photos, documents, and programs on your computer.
Shut down your iMac, turn it back on, and hold Command + R. Once Recovery Mode loads, click Utilities, then Disk Utility. Select your iMac's hard drive (usually called Macintosh HD), click Erase, and confirm. Return to Utilities and click Reinstall macOS. Your iMac will read and install a fresh copy of its operating system.
When setup completes, you can create a new account and log in. If you have backups of your files in iCloud, Time Machine, or another service, you can restore them after setup is complete. If you do not have backups, those files cannot be recovered.
Prevent This Problem in the Future
Write down your login password and Apple ID password in a find place — a password manager, a locked drawer, or somewhere only you can access. If you use iCloud Keychain, your passwords are encrypted and stored on Apple's servers, but you still need to remember your Apple ID password itself.
Turn on two-factor authentication for your Apple ID. This adds a security layer that makes it harder for someone else to access your account, but it also means you'll need a trusted device to verify your identity if you forget your password. Go to Settings on your iPhone or iPad, tap your name, then tap Password & Security, and toggle on Two-Factor Authentication.
Create a password hint at login time. When you set up your iMac account, you can add a hint that appears on the login screen after a few incorrect password attempts. Make it something only you would understand — not something obvious to someone who knows you.
Frequently Asked Questions
Can I reset my password without erasing everything on my iMac?
Yes, if you have another administrator account, know your Apple ID password, or can access Recovery Mode. Only the full erase method removes your files. Try the administrator account method first, then the Apple ID method, then Recovery Mode — in that order — before considering an erase.
What if I see "This account cannot be reset using your Apple ID"?
Your iMac is using an older macOS version or a local account not linked to Apple ID. Use Recovery Mode instead. Shut down, hold Command + R at startup, go to Utilities, open Terminal, type resetpassword, and follow the on-screen steps.
How long does it take to reset my password in Recovery Mode?
Recovery Mode usually takes 10 to 15 minutes total — a few minutes to boot into Recovery Mode, a minute or two to reset the password, and the rest to restart. On slower internet connections, downloading Recovery Mode files can take longer.
Will resetting my password affect my iCloud data?
No. Your iCloud account, photos, documents, and settings stored in iCloud remain on Apple's servers and are not affected by resetting your iMac login password. Once you log back in with your new password, you can sign in to iCloud and access everything.
What if I do not have access to another computer to reset my Apple ID password?
You can use your iPhone or iPad to reset your Apple ID password at iforgot.apple.com, or call Apple Support at 1-800-MY-APPLE. If you have a trusted phone number or recovery key on file, you can verify your identity without another device.