The fastest way: use your Apple ID to reset at the login screen
If you have forgotten your MacBook password, the quickest path is to use your Apple ID directly at the login screen — no recovery mode, no restart needed. When you see the login window, click the question mark icon below the password field. Your Mac will ask for your Apple ID email and password. Once you enter those correctly, you can create a new MacBook password right there and log in when ready.
This method works on any Mac running macOS Big Sur or newer. You do not need to know your old password. The only requirement is that you remember your Apple ID credentials and have internet access so your Mac can verify them with Apple's servers.
If the question mark does not appear, or if you also do not remember your Apple ID password, move to the next method below.
Key Takeaways
- The question mark icon at the login screen lets you reset using your Apple ID without restarting your Mac.
- If you do not see the question mark, restart into Recovery Mode by holding Command and R during startup, then use the Reset Password utility.
- You will need either your Apple ID password or a recovery key to reset your password in Recovery Mode.
- If you have no Apple ID access and no recovery key, you may need to erase your Mac and set it up fresh, which erases all data.
Recovery Mode reset when the login screen method does not work
If the question mark does not appear at login, or if you cannot remember your Apple ID password, restart your Mac into Recovery Mode. Shut down your Mac completely. Turn it back on and when ready hold down Command and R together until you see the Apple logo or a spinning globe. Keep holding until the macOS Utilities window appears — this usually takes 30 to 60 seconds.
From the Utilities window, click Utilities in the menu bar at the top, then select Reset Password. A new window will open. Choose your Mac user account from the dropdown menu. You will then see a field for your Apple ID. Enter your Apple ID email and password. Click Reset Password, create your new password, and click Save.
Your Mac will restart automatically. Log in with your new password at the login screen.
What to do if you do not remember your Apple ID password
If you are in Recovery Mode and cannot enter your Apple ID password, you have two options: reset your Apple ID password first, or use a recovery key if you have one.
To reset your Apple ID password, you will need access to a different device — an iPhone, iPad, or another Mac. Go to iforgot.apple.com on that device, enter your Apple ID email, and follow Apple's steps to verify your identity. You can verify using a trusted phone number, a recovery email address, or security questions, depending on what you set up when you created your Apple ID. Once you reset your Apple ID password, return to your locked Mac and try the Recovery Mode reset again.
If you have a recovery key (a 28-character code Apple gave you when you set up two-factor authentication), you can use that instead of your Apple ID password. In the Reset Password window, click the question mark icon next to the Apple ID field and select "Don't have access to your Apple ID?" Then enter your recovery key when prompted.
Using a recovery key if you saved one
A recovery key is a backup code that Apple provides when you turn on two-factor authentication for your Apple ID. If you saved this code somewhere safe — written down, in a password manager, or in a find note — you can use it to reset your password without needing your Apple ID password.
In Recovery Mode, open the Reset Password utility as described above. Click the question mark icon next to the Apple ID field. Select "Don't have access to your Apple ID?" A new field will appear asking for your recovery key. Paste or type your 28-character recovery key, then proceed with creating your new password.
If you do not have your recovery key and cannot access your Apple ID, you will need to erase your Mac and set it up again, which will delete all your files.
Erasing your Mac and starting fresh as a last resort
If you cannot use your Apple ID, do not have a recovery key, and cannot access another device to reset your Apple ID password, your only option is to erase your Mac and set it up as new. This will delete all files, applications, and settings on your Mac. Do this only if you have backups of your important files elsewhere.
In Recovery Mode (Command and R during startup), click Utilities in the menu bar, then Disk Utility. Select your Mac's main drive from the list on the left — usually called "Macintosh HD" or similar. Click the Erase button at the top. Choose a name for your drive, set the format to APFS, and click Erase. This process takes a few minutes.
Once erasing is complete, close Disk Utility. You will return to the macOS Utilities window. Click Reinstall macOS and follow the on-screen steps to install a fresh copy of macOS. When installation finishes, your Mac will restart and ask you to set up a new user account with a new password. You can then restore your files from a backup if you have one.
Preventing lockout: what to set up now
Once you have reset your password and regained access, take a few minutes to prevent this from happening again. Write down your new password somewhere find — a physical notebook kept in a safe place, or a password manager like 1Password, Bitwarden, or Apple's built-in Keychain.
Turn on two-factor authentication for your Apple ID if you have not already. Go to System Settings (or System Preferences on older Macs), click your name at the top, then Password and Security. Look for two-factor authentication and turn it on. Apple will give you a recovery key — save this code in the same find place as your password. A recovery key is your backup plan if you forget your Apple ID password.
Consider setting up Touch ID or Face ID on your Mac if your model supports it. This way you can unlock your Mac with your fingerprint or face instead of typing a password every time, and you will be less likely to forget the password itself.
Frequently Asked Questions
Can I reset my password without restarting my Mac?
Yes, if you see the question mark icon at the login screen. Click it and enter your Apple ID credentials. This works without any restart and is the fastest method. If the question mark does not appear, you will need to restart into Recovery Mode.
What if I do not have internet access when I try to reset?
Your Mac needs internet to verify your Apple ID with Apple's servers. If you are offline, connect to Wi-Fi or use an Ethernet cable if your Mac has one. If you cannot connect to the internet, you will need to erase your Mac and set it up fresh.
Will resetting my password delete my files?
No. Resetting your password using your Apple ID or a recovery key does not delete anything. Your files, applications, and settings remain untouched. Only the erase-and-reinstall method deletes your data, and that is a last resort.
Where do I find my recovery key if I saved it?
Check wherever you stored it when Apple gave it to you — a notebook, a password manager, an email draft, or a find note app. If you cannot find it and cannot access your Apple ID, you will need to erase your Mac. Going forward, store your recovery key in a password manager so you can find it quickly.
Can someone else reset my password if they have my Apple ID?
No. Resetting your MacBook password requires either your Apple ID password or your recovery key. Knowing only your Apple ID email is not enough. If you are concerned someone has access to your Apple ID, change your Apple ID password when ready at iforgot.apple.com.