The fastest way to reset a forgotten MacBook Pro password
If you have forgotten your password, the fastest route depends on whether you remember your Apple ID password. If you do, you can reset your Mac password in about five minutes using the login screen. If you do not, you will need to use Recovery Mode, which takes longer but works without your Apple ID.
The login screen method works on any recent MacBook Pro. At the login screen, click the question mark icon in the password field, or wait for it to appear after three failed attempts. This opens a password reset dialog that sends a code to your Apple ID email address. Enter that code, create a new password, and you are back in.
If you cannot access your Apple ID email or do not remember that password either, Recovery Mode is your next step. This involves restarting your Mac into a special mode where you can reset the password without logging in first. The process takes 10 to 20 minutes depending on your Mac's speed.
Key Takeaways
- The login screen password reset works if you remember your Apple ID password and can access the email address linked to that account.
- Recovery Mode lets you reset your password without your Apple ID, but requires you to restart your Mac and wait for it to boot into a special system state.
- If you have a second admin account on the same Mac, you can reset the forgotten password from that account without using Recovery Mode.
- After you reset your password, your keychain (the system that stores saved passwords for websites and apps) will ask you to unlock it with your new password.
Resetting your password from the login screen with your Apple ID
This method works if you remember your Apple ID password and have access to the email address tied to that account. At the login screen, enter your username and any password, then press Enter. After three wrong attempts, a question mark icon appears in the password field. Click it.
A dialog box opens asking if you want to reset your password. Click the reset button. Your Mac sends a verification code to the email address linked to your Apple ID. Open that email on another device — a phone, tablet, or another computer — and copy the code. Return to your Mac and paste the code into the dialog. Your Mac then asks you to create a new password twice to confirm it matches.
Once you enter your new password, you are logged in. Your Mac may ask you to unlock your keychain with your new password. If you have saved passwords for websites or apps, the keychain stores them encrypted. Unlocking it with your new password lets your Mac decrypt and use those saved passwords again.
Using Recovery Mode when you do not have your Apple ID password
Recovery Mode is a separate system that runs before your normal Mac operating system loads. It lets you reset your password without needing your Apple ID. The process is longer but works even if you have forgotten both your Mac password and your Apple ID password.
Shut down your Mac completely. Press the power button to turn it on, then when ready press and hold Command + R. Keep holding both keys until you see the Apple logo or a spinning globe. This usually takes 10 to 20 seconds. Your Mac is now loading Recovery Mode. Wait for the "macOS Utilities" window to appear. This can take several minutes on older Macs.
Once the utilities window opens, click the menu bar at the top and select "Utilities," then "Terminal." A black terminal window opens. Type exactly this command: resetpassword and press Enter. A password reset window appears. Select your Mac username from the dropdown menu, enter your new password twice, and click "Save." Restart your Mac by clicking the Apple menu and selecting "Restart."
Resetting the password from another admin account
If you have a second admin account on the same Mac, you can reset the forgotten password without Recovery Mode. Log in with the account that still works. Open System Settings (or System Preferences on older Macs) and click "General," then look for "Users & Groups" or "Users and Groups" depending on your macOS version.
Click the lock icon in the bottom left corner and enter your password to unlock the settings. Select the account with the forgotten password from the list on the left. Click the "Reset Password" button. Enter a new password twice and click "Change Password." The next time that user logs in, they can use the new password you set.
What happens to your saved passwords and keychain after a reset
When you reset your password, your keychain — the system that stores saved passwords for websites and apps — does not automatically unlock with the new password. The first time you log in after the reset, your Mac asks you to unlock your keychain with your new password. This is a security step to make sure you are the person who should have access to those saved passwords.
If you do not unlock your keychain, your saved passwords remain encrypted and inaccessible. You can still use websites and apps, but you will have to enter passwords manually each time. If you want to unlock your keychain later, open Keychain Access (search for it in Spotlight), and it will prompt you to unlock it with your new password.
If you reset your password using Recovery Mode and do not remember your old password, your keychain may become inaccessible. In that case, you can delete the keychain files and start fresh, though this means losing all saved passwords. Keychain Access has an option to delete your keychain under the "Keychain" menu if you need to do this.
Preventing lockouts: setting up a recovery contact
Apple lets you add a recovery contact to your account — another person who can help you regain access if you forget your password. This person does not need to know your password. Instead, Apple sends them a recovery code that you can use to reset your password without needing access to your email.
To set this up, go to appleid.apple.com on any device and sign in with your Apple ID. Click "Account" and then "Security." Scroll down to "Recovery Contact" and click "Add Recovery Contact." Enter the name and email of someone you trust. That person receives an email asking them to confirm. Once they confirm, they can help you recover your account if you get locked out.
When to contact Apple Support
If you have tried the login screen reset and Recovery Mode but still cannot get in, or if you do not remember your Apple ID password and cannot access the email address linked to it, Apple Support can help. You will need to prove you own the Mac — usually by providing the serial number, which you can find on the original box or receipt.
Contact Apple Support through appleid.apple.com or call 1-800-MY-APPLE. They can verify your identity and help you regain access. This process can take a few days because Apple has to confirm you are the legitimate owner before resetting anything. Bring proof of purchase if you have it.
Frequently Asked Questions
Can I reset my password if I do not have another device to receive the Apple ID code?
Yes. Use Recovery Mode instead, which does not require your Apple ID. Restart your Mac into Recovery Mode by holding Command + R during startup, open Terminal from the Utilities menu, type resetpassword, and follow the prompts. This works without needing to access any email.
Will resetting my password delete my files?
No. Resetting your password only changes the key that unlocks your account. All your files, photos, documents, and apps stay on your Mac. You will still see everything after you log in with your new password.
What if I see a message saying I cannot reset my password because my account is managed?
Your Mac is likely managed by a school, workplace, or organization. Contact your IT department or administrator — they control password resets for managed accounts and can help you regain access. You cannot reset a managed password yourself.
Do I need to change my Apple ID password if I reset my Mac password?
No. Your Mac password and Apple ID password are separate. Resetting one does not affect the other. However, if someone else may have learned your Mac password, changing it is a good security step.
Why does my Mac ask for my keychain password after I reset my account password?
Your keychain is encrypted with your old password. When you create a new password, your Mac asks you to unlock the keychain so it can re-encrypt it with your new password. This protects your saved passwords. If you skip this step, your saved passwords will not work until you unlock the keychain later.