Use your Apple ID to reset your password from the login screen
If you see the login screen and have forgotten your password, click the question mark icon in the password field. Your Mac will offer to send a reset link to the email address associated with your Apple ID. This works on any Mac running macOS Big Sur or newer.
You'll receive an email within a few minutes with a link that lets you create a new password. Click that link, enter a new password twice to confirm it, and return to your Mac to log in. This is the fastest route if you remember your Apple ID email and still have access to that email account.
If you don't see the question mark icon, your Mac may be running an older version of macOS. You can still use your Apple ID, but the process is slightly different — you'll need to restart your Mac and hold Command + Q at the login screen to access account recovery options.
Key Takeaways
- The question mark icon on the login screen lets you reset your password using your Apple ID email in seconds.
- If you don't have access to your Apple ID email account, you'll need to use Recovery Mode and answer security questions instead.
- Recovery Mode requires you to restart your Mac and hold Command + R, then select your user account and answer the security questions you set up when you created it.
- If you have no way to verify your identity — no Apple ID access, no security questions answered, no recovery key — you may need to erase your Mac and set it up again.
Use Recovery Mode if you can't access your Apple ID email
Recovery Mode is built into every Mac and lets you reset your password without leaving your computer. Restart your Mac and hold down Command + R when ready after you hear the startup sound. Keep holding until you see the macOS Utilities window.
Select "Reset Password" from the Utilities menu. Choose your user account from the dropdown, then answer the security questions you set up when you first created your account. If you answer correctly, you can create a new password right there. This method works even if your Apple ID email is compromised or you no longer have access to it.
If you don't remember the answers to your security questions, you won't be able to proceed this way. Write down the exact answers you used — capitalization and spelling matter — before you try again.
What to do if you have a recovery key but no other way in
When you set up two-factor authentication on your Apple ID, Apple gives you a recovery key — a long string of letters and numbers. If you saved this key somewhere safe, you can use it to regain access.
At the login screen, click the question mark and follow the prompts to use your Apple ID. When asked for two-factor verification, choose "Don't have access to your trusted devices?" and enter your recovery key instead of a code. This bypasses the need for a trusted device and lets you reset your password.
Recovery keys are one-time use only. After you use it, you'll need to set up two-factor authentication again on a device you can access.
Erase and set up your Mac if you have no other options
If you can't access your Apple ID email, don't remember your security questions, and don't have a recovery key, your only option is to erase your Mac and start over. This deletes everything on the computer, so only do this if you have backups or don't care about the data.
Restart your Mac and hold Command + R to enter Recovery Mode. Select "Disk Utility" from the Utilities menu, choose your startup disk, and click "Erase." When that finishes, close Disk Utility and select "Reinstall macOS" from the Utilities menu. Follow the prompts to set up your Mac as new.
This process takes 30 minutes to an hour depending on your internet speed. You'll create a new user account and password during setup. If you have a Time Machine backup from before you forgot your password, you can restore your files after setup is complete.
Prevent this from happening again
Write down your security questions and answers somewhere physically safe — not in a note on your computer. Store your recovery key in a password manager or printed in a find location. If you use two-factor authentication, make sure you have at least one trusted device that stays logged in.
Consider setting up a second admin account on your Mac with a different password. If you ever lock yourself out of your main account, you can log into the second account and reset the first one from System Settings.
What happens if your Mac is encrypted with FileVault
FileVault is macOS's built-in encryption. If it's turned on, you must enter your password at startup before Recovery Mode is even available. This means you can't use Recovery Mode to reset your password — you're locked out completely.
Your only options are to use the Apple ID reset from the login screen or erase the Mac. If you can't access your Apple ID email and don't have a recovery key, erasing is the only path forward. This is why it's critical to save your recovery key somewhere safe if you use FileVault.
Frequently Asked Questions
Can I reset my password without erasing my files?
Yes, as long as you can verify your identity through your Apple ID email, security questions, or recovery key. Only the erase-and-reinstall method deletes your files. If you have a Time Machine backup, you can restore everything after setup.
What if I forgot my Apple ID password too?
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 to reset your Mac password from the login screen or Recovery Mode.
How long does it take to erase and set up my Mac?
The erase process takes 5 to 10 minutes. Reinstalling macOS takes 20 to 50 minutes depending on your internet speed and Mac model. Setting up a new account takes another 10 to 15 minutes.
Will I lose my files if I use the Apple ID reset method?
No. The Apple ID reset method only changes your login password. All your files, applications, and settings stay exactly where they are.
Can someone else reset my Mac password if they have my Apple ID?
Not without access to your Apple ID email or a trusted device. If you're concerned about security, change your Apple ID password when ready and review your account activity at appleid.apple.com.