The fastest way to get back into your Mac when you don't remember the password
If you've forgotten your iMac password, you have three working routes: use your Apple ID to reset it from the login screen, answer your security questions if you set them up, or use Recovery Mode to create a new administrator account. The Apple ID method works on most modern Macs and is the quickest if you remember your Apple ID password. If that doesn't work or you don't have an Apple ID linked to your account, Recovery Mode is your backup — it takes longer but doesn't require you to remember anything else.
The method you can use depends on what you set up when you created your account and which version of macOS you're running. All three routes are free and don't require calling Apple Support or taking your Mac to a store.
Key Takeaways
- At the login screen, click the question mark icon or "Reset Password" to use your Apple ID to reset your account password in minutes.
- If you set up security questions during account creation, you can answer them at the login screen without needing your Apple ID password.
- Recovery Mode lets you create a new administrator account if you can't use Apple ID or security questions, but it takes 20 to 30 minutes and requires you to restart your Mac.
- After you regain access, turn on FileVault encryption and write down your recovery key in a safe place so you don't get locked out again.
Using your Apple ID at the login screen
This is the fastest method if you remember your Apple ID email and password. At the login screen where you normally type your password, look for a question mark icon or a "Reset Password" button below the password field. Click it.
Your Mac will ask you to enter your Apple ID email address and password. Once you do, you'll be prompted to create a new password for your iMac account. Type a password you'll remember this time, confirm it, and click "Reset Password." You should be back at the login screen within a minute, and your new password will work when ready.
This method only works if your iMac is connected to the internet and if your Apple ID is actually linked to your account. If you see no reset option at the login screen, your account may not have an Apple ID attached, or your Mac is running an older version of macOS.
Answering security questions if you set them up
When you first created your iMac account, you may have been asked to choose three security questions and write answers to them. If you did, you can use those answers to reset your password without needing your Apple ID.
At the login screen, click the question mark icon or "Reset Password" button. Instead of entering your Apple ID, select "Answer security questions" or a similar option (the exact wording varies by macOS version). Your Mac will ask you to answer two of the three questions you set up. If you answer both correctly, you'll be able to create a new password right there.
The catch: you have to remember the exact answers you gave years ago. If you can't recall them or never set security questions up, this route won't work. Move on to Recovery Mode instead.
Using Recovery Mode to create a new administrator account
If neither Apple ID nor security questions work, Recovery Mode is your last option. It's more involved — you'll restart your Mac and hold down keys to enter a special mode — but it doesn't require you to remember anything. You'll end up creating a brand-new administrator account, which means you can log in and then transfer your files from the old account later.
Shut down your iMac completely. Turn it back on and when ready hold down Command + R (the Command key and the letter R at the same time). Keep holding until you see the Apple logo or a spinning globe. This usually takes 10 to 20 seconds. Your Mac is now in Recovery Mode.
Once Recovery Mode loads, you'll see a menu of tools. Click "Utilities" at the top, then select "Terminal." A black window will open where you can type commands. Type this exactly: resetpassword and press Enter. A password reset window will open. From the dropdown menu at the top, select your account name (the one you're locked out of). Leave the "New Password" field empty and click "Reset." Close the window and restart your Mac.
When you log back in, leave the password field blank and press Enter. You're now inside your old account with no password set. Go to System Settings (or System Preferences on older Macs), click "General," then "Login Items" or "Users & Groups," and create a new administrator account with a password you'll remember. You can then delete the old account later if you want, or keep both and transfer files between them.
What to do after you're back in
Once you've reset your password and logged in, take two steps to avoid this happening again. First, make sure your Apple ID is linked to your account. Go to System Settings, click your name at the top, and verify that your Apple ID is shown. If it's not, click "Sign In with Your Apple ID" and follow the prompts.
Second, turn on FileVault encryption. Go to System Settings, click "Privacy & Security," then "FileVault," and click "Turn On." Your Mac will ask you to save a recovery key — write this down or store it in a password manager. If you ever forget your password again and can't use Apple ID or security questions, this recovery key will let you reset your password without going through Recovery Mode.
Why you might not see a reset option at login
Some Macs don't show a password reset button at the login screen. This usually means your account is a local account with no Apple ID attached, or your Mac is running macOS 10.12 or older. If you're in this situation, Recovery Mode is your only option.
If your Mac is on a company network or managed by an organization, the administrator may have locked down password resets. In that case, you'll need to contact your IT department or the person who manages your Mac.
Frequently Asked Questions
Can I reset my password without restarting my Mac?
Yes, if you can use your Apple ID or security questions at the login screen. Both methods work without restarting. Recovery Mode is the only method that requires a restart.
What if I don't remember my Apple ID password either?
Go to iforgot.apple.com on another device and reset your Apple ID password there. Once you've done that, use the new Apple ID password at your iMac login screen to reset your account password.
Will resetting my password delete my files?
No. Resetting your password only changes how you log in. Your files, photos, and applications stay on your Mac. If you create a new account in Recovery Mode, your old account and its files remain — you'll just need to transfer them over.
Is there a way to prevent this from happening again?
Yes. Link your Apple ID to your account, turn on FileVault and save your recovery key, and consider using a password manager to store your password securely. These three steps cover most scenarios where people get locked out.
Do I need to call Apple if none of these methods work?
If Recovery Mode doesn't work, your Mac may have a hardware issue or a security setting that's blocking access. Contact Apple Support or visit an Apple Store. Bring proof of ownership — your receipt or the serial number from the back of your iMac.