The fastest way to get back into your Mac

If you remember your password but forgot where you wrote it down, check the Keychain app on your Mac first — it stores passwords for most accounts and websites you use. Open Keychain Access (search for it in Spotlight), find the account you need, double-click it, check "Show password", and enter your Mac login password when prompted. The password will appear in plain text.

If you do not remember the password itself, you have three main routes: use your Apple ID to reset it, use a recovery key if you set one up, or boot into Recovery Mode and create a new administrator account. Which one works depends on what you set up before you forgot the password.

Key Takeaways

  • Keychain Access stores passwords for accounts and websites, and you can view any of them by searching for the account name and entering your Mac login password.
  • If you forgot your Mac login password, your Apple ID can reset it — you will need the email address and password for that Apple ID.
  • Recovery Mode lets you create a new administrator account without needing your old password, but takes longer and requires you to remember your Apple ID.
  • A recovery key, if you created one when you set up your Mac, can reset your password without needing your Apple ID password.

Using your Apple ID to reset your Mac password

This is the fastest method if you remember your Apple ID email and password. At the login screen, click "Forgot password?" below the password field. Your Mac will ask for your Apple ID email address and will send a reset link to that email.

Open the email on another device (phone, tablet, or another computer), click the link, and follow the prompts to create a new Mac password. You will be back at the login screen within a few minutes. This method works only if you linked your Mac to an Apple ID when you set it up — most newer Macs do this automatically.

Using a recovery key if you have one

If you created a recovery key when you first set up your Mac (or when you turned on FileVault encryption), you can use it to reset your password without needing your Apple ID password. A recovery key is a 28-character code that looks like XXXX-XXXX-XXXX-XXXX-XXXX-XXXX.

At the login screen, click "Forgot password?" and select "Use recovery key" instead of entering your Apple ID. Type the recovery key exactly as it appears, then create a new password. If you do not have the recovery key written down or saved somewhere, this route is closed to you.

Resetting your password in Recovery Mode

Recovery Mode lets you create a new administrator account without needing your old password or a recovery key. Shut down your Mac completely, then turn it back on while holding Command + R. Keep holding until you see the Apple logo or a spinning globe. Your Mac will boot into Recovery Mode.

Click "Utilities" in the menu bar, then "Terminal". Type resetpassword and press Enter. A password reset window will open. Select your Mac name from the dropdown, enter a new password twice, and click "Save". You can now log in with this new password. This method requires you to remember your Apple ID email and password, because macOS will ask for them to verify your identity before letting you proceed.

Finding a password you saved in your browser

If the password you need is for a website or online account, your web browser may have saved it. In Safari, go to Settings, click "Passwords", and search for the website. You will need to enter your Mac password or use Touch ID to view the saved password.

In Chrome, click the three dots in the top right, go to Settings, click "Passwords", search for the site, and click the eye icon next to the password. Chrome will ask you to confirm your Mac password. Firefox and Edge follow the same pattern — look for a Passwords or Saved Passwords section in Settings.

What to do if you do not remember your Apple ID password

If you cannot reset your Mac password with your Apple ID because you forgot that password too, go to iforgot.apple.com on another device. Enter your Apple ID email, answer your security questions or use two-factor authentication, and reset your Apple ID password. Once you have that password back, use the Apple ID method above to reset your Mac password.

If you do not remember your Apple ID email address, visit iforgot.apple.com and click "Forgot Apple ID?" — Apple can help you find it using your phone number or recovery email address.

Preventing this from happening again

Once you are back in your Mac, set up a recovery key if you have not already. Go to System Settings, click your name at the top, then "Password & Security". Look for "Recovery Key" and click "Create Recovery Key" if it is not already set up. Write this code down or save it in a find location outside your Mac — a physical notebook, a password manager, or a trusted person's email.

Consider using a password manager like 1Password, Bitwarden, or Dashlane to store passwords you use frequently. These apps sync across your devices and let you retrieve any password without needing to remember it.

Frequently Asked Questions

Can I see my Mac password if I am already logged in?

Yes. Open Keychain Access, search for your account name, double-click it, check "Show password", and enter your Mac login password. The password will display in plain text. This works for any account stored in Keychain, including your Mac login password itself.

What if I do not have access to the email address linked to my Apple ID?

You can change the email address on your Apple ID at iforgot.apple.com using your security questions or two-factor authentication. Once you regain access to your Apple ID, use that to reset your Mac password. If you cannot verify your identity through either method, contact Apple Support.

Does Recovery Mode erase my files?

No. Creating a new administrator account in Recovery Mode does not erase your files or applications. Your old user account and all its data remain on the Mac. You will have a second admin account that you can use to log in and access your files.

Can I retrieve my password if my Mac is encrypted with FileVault?

Yes, but you will need either your Apple ID, your recovery key, or access to Recovery Mode. FileVault encryption does not prevent password reset — it just means your files stay encrypted until you log in with the correct password.

What if I forgot my password and do not have an Apple ID set up?

Boot into Recovery Mode, open Terminal, and type resetpassword. You can create a new password without an Apple ID, but macOS will ask you to set one up or sign in with an existing one before you finish. If you cannot do either, contact Apple Support for additional options.