Use Your Apple ID to reset your password from the login screen
If you've forgotten your Mac password, the fastest way back in is through your Apple ID. At the login screen, click the question mark icon below the password field (or wait for it to appear after a few wrong attempts). Enter your Apple ID email address and password, and your Mac will let you create a new password when ready.
This works on any Mac running macOS Big Sur or newer. You don't need to restart, call anyone, or use another device — just your Apple ID credentials. Your Mac will ask you to set a new password right there, and you can start using your computer within seconds.
If you don't remember your Apple ID password either, you'll need to reset that first at iforgot.apple.com before you can use this method. Apple will send a verification code to your recovery email or phone number.
Key Takeaways
- The question mark icon on the Mac login screen lets you reset your password using your Apple ID without restarting or losing files.
- You need to know your Apple ID email and password — if you don't, reset your Apple ID at iforgot.apple.com first.
- If you don't have an Apple ID or can't access it, you can use Recovery Mode and your Mac's built-in administrator account to create a new password.
- On older Macs without an Apple ID option, Recovery Mode is your only path back in without erasing everything.
- If you set up FileVault encryption, you'll need your FileVault recovery key or Apple ID to regain access — passwords alone won't work.
Reset your password in Recovery Mode if you don't have an Apple ID
If you don't have an Apple ID, never set one up on this Mac, or can't access it, Recovery Mode gives you another way in. Restart your Mac and hold Command + R as it boots. Keep holding until you see the Apple logo or a spinning globe. This takes you to macOS Recovery, a special startup mode where you can change your password without knowing the old one.
Once in Recovery Mode, go to Utilities in the menu bar and select Terminal. Type resetpassword and press Enter. A password reset window will open. Select your Mac's hard drive from the dropdown, then select your user account. Enter a new password twice, click Reset Password, and restart your Mac. You'll log in with the new password you just created.
This method works on almost every Mac, but it requires you to restart and spend a few minutes in Recovery Mode. It's slower than the Apple ID method, but it doesn't depend on remembering anything except how to hold down Command + R.
What to do if FileVault encryption is turned on
If your Mac has FileVault turned on (you can check in System Settings under Security & Privacy), the password reset process changes. FileVault encrypts your entire hard drive, so you can't reset your password in Recovery Mode the normal way — the system won't let you access the drive without the correct password or a recovery key.
Your best option is still your Apple ID. At the login screen, use the question mark method described above. If that doesn't work, you'll need your FileVault recovery key, which is a long string of characters Apple gave you when you turned FileVault on. If you saved it somewhere (email, Notes, a password manager, or printed it), you can use it to unlock your Mac and reset your password.
If you don't have your Apple ID, your FileVault recovery key, and you can't remember your password, you'll need to erase your Mac and start over. This deletes everything on it. Contact Apple Support to explore whether they can help you recover the key before you take that step.
Find your FileVault recovery key if you saved it
When you first turned on FileVault, Apple showed you a recovery key and asked you to save it. Most people save it to their Apple ID account automatically, but some write it down or save it to a password manager instead.
Check these places first: your Apple ID account at appleid.apple.com (sign in and look under Security), your email inbox (search for "FileVault" or "recovery key"), your password manager if you use one like 1Password or Bitwarden, or any printed documents you might have filed away. The key is 28 characters long, usually in groups of four letters separated by hyphens.
If you find it, restart your Mac and hold Command + R to enter Recovery Mode. When asked for your password, click the question mark icon and select "I forgot my password." Enter your FileVault recovery key instead of your password. Your Mac will unlock and let you set a new password.
Create a new administrator account if you're locked out completely
If you have no Apple ID, no FileVault recovery key, and can't use the question mark method, you can still create a brand new administrator account from Recovery Mode. This doesn't recover your old account or its files, but it gets you back into your Mac.
Restart and hold Command + R. Once in Recovery Mode, go to Utilities and select Terminal. Type resetpassword and press Enter. Instead of resetting an existing password, look for the option to create a new administrator account. Enter a username and password for this new account, then restart your Mac. You'll log in as the new administrator.
Your old account and its files will still be on the Mac, but you won't be able to access them without the original password. You can contact Apple Support to explore recovery options, or you can back up what you can and erase the drive to start fresh.
Prevent this from happening again
Once you're back in, set up an Apple ID on your Mac if you haven't already. Go to System Settings, click your name at the top, and follow the prompts. This creates a backup way to reset your password if you forget it again. You can also turn on iCloud Keychain to store passwords securely, though that won't help you get into your Mac itself.
Write down or securely save your FileVault recovery key if you have FileVault turned on. Store it in a password manager, email it to yourself, or print it and keep it somewhere safe. This key is the only way back in if you forget your password and don't have an Apple ID set up.
Consider using a password manager like 1Password, Bitwarden, or the built-in Keychain to store your Mac password somewhere you can retrieve it. These tools won't help you log in to your Mac itself, but they can remind you what your password is if you're unsure.
Frequently Asked Questions
Can I reset my password without restarting my Mac?
Yes, if you have an Apple ID set up. Click the question mark on the login screen and enter your Apple ID credentials. You'll be able to set a new password without restarting. If you don't have an Apple ID, you'll need to restart and use Recovery Mode.
What if the question mark icon doesn't appear on my login screen?
It only shows up on Macs running Big Sur or newer. If you have an older Mac, restart and hold Command + R to enter Recovery Mode, then use the resetpassword tool. You can also check your macOS version in System Settings under General to see if you need to update.
Will resetting my password delete my files?
No. Resetting your password through Apple ID or Recovery Mode keeps all your files intact. You'll log in with your new password and everything will be there. The only way files get deleted is if you erase your Mac, which you should only do as a last resort.
Can I reset my password if I don't know my Apple ID password?
Not through the Apple ID method. Go to iforgot.apple.com and reset your Apple ID password first using your recovery email or phone number. Once you've done that, you can use your Apple ID to reset your Mac password.
What happens if I lose my FileVault recovery key?
If you also don't remember your Mac password and don't have an Apple ID set up, you'll need to erase your Mac and start over. Contact Apple Support before you do this — they may be able to help you recover the key or explore other options.