The fastest way back in: use your Apple ID
If you have forgotten your MacBook password, the quickest path is to use your Apple ID at the login screen. When you see the password prompt, click the question mark icon in the bottom right corner, or wait for the system to offer password hints. After a few failed attempts, macOS will show you an option to reset your password using your Apple ID instead.
This works because your Apple ID is linked to your Mac during setup. The system will ask you to enter your Apple ID email and password, then verify your identity through a trusted device or phone number on file. Once verified, you can create a new Mac password when ready and return to your desktop.
This method takes about five minutes and requires no additional software or restart. You do need to remember your Apple ID password — if you have forgotten that too, you can reset it at iforgot.apple.com before attempting this step.
Key Takeaways
- Your Apple ID is the fastest way to reset a forgotten Mac password at the login screen without restarting or special tools.
- Recovery Mode lets you create a new administrator account if you do not have an Apple ID or cannot remember that password either.
- The process requires either a trusted device that receives a verification code or a phone number linked to your Apple account.
- If you set up your Mac with a recovery key instead of a phone number, you will need that key to proceed with any password reset.
- After regaining access, you should update your password hint and may support your recovery information is current to prevent this situation again.
Using Recovery Mode when Apple ID is not an option
If you do not have an Apple ID linked to your Mac, or you cannot remember that password either, Recovery Mode is your next step. Restart your Mac and hold Command + R as it boots. Keep holding until you see the Apple logo or a spinning globe — this usually takes 10 to 20 seconds. Your Mac will load into Recovery Mode, a special environment separate from your normal system.
Once in Recovery Mode, open Utilities from the menu bar and select Terminal. Type resetpassword and press Enter. A password reset window will open. Select your Mac user account from the dropdown, then enter a new password twice. Click Reset Password, and your Mac will restart with the new credentials active.
This method works on any Mac, regardless of whether an Apple ID is set up. The trade-off is that it requires you to restart your computer and navigate a less familiar interface. The entire process takes about 10 minutes once you are in Recovery Mode.
What to do if you see a message about a recovery key
Some Macs are set up with FileVault encryption and a recovery key instead of a phone number for account recovery. If you see a prompt asking for a recovery key, you will need that key to proceed — there is no way around it. This key is a long string of letters and numbers that was given to you when FileVault was first turned on.
Check your email for a message from Apple that contains this key, or look in any password manager where you may have stored it. If you genuinely cannot find the key and do not have access to a trusted device, you will need to contact Apple Support. They can verify your identity through other means, though this process takes longer than the self-service options.
If you do locate the recovery key, enter it at the prompt and you will be able to create a new password. After you regain access, turn off FileVault encryption in System Settings > Privacy & Security > FileVault if you want to avoid this requirement in the future — though this reduces your Mac's security.
Resetting your password from another Mac or iPhone
If you have a second Apple device — another Mac, an iPhone, or an iPad — you can reset your Mac password from that device without touching the locked Mac at all. On your other device, go to iforgot.apple.com and sign in with your Apple ID. Select "Reset your password" and follow the prompts to verify your identity.
Once you have reset your Apple ID password, go back to your locked Mac and use the Apple ID reset method described above. Your new Apple ID password will now work at the login screen. This is useful if your Mac is in another room or if you want to handle the reset before sitting down at the keyboard.
This method requires that your other device is already signed in to the same Apple ID, or that you can sign in to it. If you do not have a second device, or if that device is also locked, you will need to use Recovery Mode instead.
Why your password hint did not help, and what to do next
When you set up your Mac, you created a password hint — a clue meant to jog your memory if you forgot the password. If that hint is not helping you remember, it is time to move forward with one of the reset methods above rather than spending time guessing. Password hints are intentionally vague to protect your security, so they often do not contain enough information to reconstruct the actual password.
After you regain access to your Mac, take a moment to update your password hint to something more useful to you personally. Go to System Settings > General > Login Items & Extensions, then click the lock icon and enter your current password. Look for the option to change your password hint and make it something you will actually remember next time.
Preventing this from happening again
Once you are back in your Mac, make sure your recovery information is up to date. Go to System Settings > [Your Name] > Password & Security and check that your phone number and trusted devices are current. If you have changed phone numbers or no longer use certain devices, update this information now.
Consider using a password manager like iCloud Keychain, 1Password, or Bitwarden to store your Mac password securely. These tools can generate strong passwords and store them encrypted, so you do not have to remember them. You can also enable Touch ID or Face ID on your Mac if your model supports it, which lets you unlock your computer without typing a password at all.
Write down your recovery key if your Mac uses FileVault encryption, and store it somewhere safe — a physical safe, a safety deposit box, or a trusted family member. Do not store it in a note on your Mac itself, because you will not be able to access that note if you are locked out.
Frequently Asked Questions
How long does it take to reset my password?
Using your Apple ID at the login screen takes about five minutes. Recovery Mode takes 10 to 15 minutes total, including the restart time. If you need to contact Apple Support because you have lost your recovery key, the process can take several hours or a full business day.
Will I lose my files if I reset my password?
No. Resetting your password does not touch your files, applications, or settings. Everything on your Mac stays exactly as it was. You are only changing the password you use to log in.
What if I do not remember my Apple ID email address?
Go to iforgot.apple.com and click "Forgot your Apple ID?" You can search for your account using your phone number, email address, or the name associated with your account. Once you find your account, you can reset the password.
Can I reset my password without restarting my Mac?
Yes, if you have an Apple ID linked to your account. Use the Apple ID reset option at the login screen — no restart needed. If you do not have an Apple ID set up, Recovery Mode requires a restart.
What happens if I reset my password but still cannot log in?
Restart your Mac and wait 30 seconds before trying again. If the new password still does not work, restart into Recovery Mode again and repeat the password reset process. If this continues, contact Apple Support — there may be a deeper issue with your account or system.