Forgot Your MacBook Password? How to Get Back In

Forgot Your MacBook Password? How to Get Back In

Forgot your MacBook password? You can almost always get back in without losing anything. Restart, try the password a few more times, then use the reset options at the login window: your Apple Account or your FileVault recovery key can set a new password in a few minutes. If neither works, macOS Recovery has a Reset Password assistant, and erasing the Mac is only the very last step.

The steps are the same on a MacBook Air, MacBook Pro, iMac or Mac mini.

Which one did you forget?

A Mac can ask for three different things, and they’re easy to mix up. Your Mac login password is not your Apple Account password, even if you use the same email for both.

What it is Where you see it How to get past it
Mac login password The login window after you turn the Mac on, and when you install apps or change settings Reset it with your Apple Account, your recovery key, another admin account or macOS Recovery (stages below)
Apple Account password (formerly Apple ID) iCloud, the App Store, Find My, signing in on a new device Reset it from another Apple device or Apple’s account website; see how to find or reset your Apple ID password
FileVault recovery key Asked for when you reset the login password on a Mac whose disk is encrypted A 24-character code made when FileVault was turned on; it can’t be reset, only found

Lost the Apple Account password? Fix that first; it often unlocks the Mac reset too.

Forgot your MacBook password? Work through these stages

Go in order. Each stage takes a few minutes. These steps follow Apple’s current instructions for macOS Tahoe 26 and newer; older versions look slightly different but work the same way. They are for your own Mac only.

Stage 1. Try this first: restart and type slowly

  1. Restart the Mac. If there’s no restart button, hold the power (Touch ID) button for up to 10 seconds until it turns off, then turn it on again.
  2. Check the Caps Lock light and the keyboard language in the top-right corner of the login window. A different keyboard layout changes what some keys type.
  3. Type the password up to three times. If a question mark appears next to the password field, click it to see your password hint.

If that fails: after a few wrong tries, macOS usually shows a message such as Restart and show password reset options. Move to stage 2. If it says the account is locked, wait for the time shown, restart and try again.

Stage 2. Reset it with your Apple Account

This works if your Mac user account is linked to your Apple Account and the option to reset with it was left on during setup.

  1. Click the reset message at the login window.
  2. Sign in with your Apple Account email and password, then type the verification code sent to your other device or phone number.
  3. If asked to choose a startup disk, pick Macintosh HD.
  4. If asked to pick a user whose password you know, click Forgot all passwords?
  5. Allow the Mac to deactivate if it asks. This is temporary; you’ll activate it again with your Apple Account.
  6. Create a new login password, then restart and log in.

If that fails: if the Mac asks for a recovery key instead of your Apple Account, or you can’t get the verification code, go to stage 3.

Stage 3. Use your FileVault recovery key

With FileVault on, the reset steps may ask for the recovery key. It’s a code of 24 letters and numbers in groups of four.

  • Look wherever you saved it when you set up the Mac: a printout, a note, or your password manager.
  • On macOS Tahoe 26 or later, Apple says you can also find it in the Passwords app on another device signed in to the same Apple Account with iCloud Keychain on. Search for “recovery key”.
  • If you chose to let your iCloud account unlock the disk, the Apple Account route in stage 2 does the job instead.

If that fails: without the key or a working Apple Account link, try stage 4, then stage 5.

Stage 4. Ask another admin on the same Mac

If someone else in the house has an administrator account on this Mac, they can set a new password for you.

  1. They log in to their own account.
  2. They open System Settings and choose Users & Groups.
  3. They click the Info button (a small i) next to your name, then Reset.
  4. They type the new password twice and confirm.

Your files stay. Your old login keychain doesn’t open with the new password, so macOS creates a new one; saved Wi-Fi networks and some website passwords stored only in that local keychain may have to be entered again. Anything in iCloud Keychain comes back once you sign in.

If that fails: no other admin? Use the Reset Password assistant in stage 5.

Stage 5. Use the Reset Password assistant in macOS Recovery

Getting into Recovery is the one place where Apple silicon and Intel Macs differ.

Apple silicon (M1 and later)

  1. Shut the Mac down.
  2. Press and hold the power button until you see Loading startup options.
  3. Click Options, then Continue.

Intel Mac

  1. Shut the Mac down.
  2. Press the power button, then at once press and hold Command (⌘) + R until you see the Apple logo or a spinning globe.
  3. Join Wi-Fi if asked.

Then, on either kind of Mac:

  1. When asked to select a user you know the password for, click Forgot all passwords?
  2. Follow the prompts. You may need your Apple Account, your recovery key, or to deactivate the Mac.
  3. If the prompts don’t lead to a new password, click Exit to Recovery, then choose Terminal from the Utilities menu.
  4. Type resetpassword and press Return. The Reset Password assistant opens.
  5. Choose I forgot my password, click Next, and set a new password. Then restart from the Apple menu.

If FileVault is on and you have neither the recovery key nor a working Apple Account link, the encrypted data can’t be opened. That’s the point of encryption, and it means only one option is left.

Stage 6. Last resort: erase and restore

Erasing removes every user account, password and file on the Mac. Only do it once the stages above have truly failed.

Before you erase. Anything not backed up is gone for good. Check whether you have a Time Machine drive, files in iCloud Drive, or photos in iCloud Photos. Make sure you know your Apple Account password: after erasing, the Mac may ask for it to activate again (Activation Lock), and you won’t get past that screen without it.

  1. Start up in macOS Recovery as in stage 5.
  2. When asked to select a user, choose Erase Mac from the Recovery Assistant menu in the menu bar, then confirm.
  3. After the restart, if you see an Activate Mac window, connect to the internet and enter your Apple Account details. If you see a flashing question mark, reinstall macOS from Recovery.
  4. During setup, choose to transfer from a Time Machine backup in Migration Assistant, or pick Restore from Time Machine in Recovery.

Make the next reset painless

Once you’re back in, spend two minutes on prevention. Add a password hint in Users & Groups that means something only to you. Check that your Apple Account can reset the login password. Find your FileVault recovery key, or note that your iCloud account can unlock the disk.

Then store the important ones somewhere safe that isn’t the Mac itself. A password manager is a good home for your Mac login password, your Apple Account password and the 24-character recovery key, because you can open it on your phone or another computer when the Mac won’t let you in. If you’re choosing one, our guide to the best password manager options on a Mac compares the built-in Passwords app with the alternatives. PassHulk keeps these in an encrypted vault on your iPhone, Android phone, Mac and the web, with secure notes for recovery keys (see PassHulk’s features). It can’t unlock a Mac for you, but it makes sure the key is there when you need it.

When you set a new login password, make it long rather than clever. Several random words beat a short word with symbols, as the NIST password guidelines explain.

FAQ

How do I reset my MacBook password without losing data?

Use stages 2 to 5: your Apple Account, your FileVault recovery key, another admin account or the Reset Password assistant. None of these erase your files. Only erasing the Mac removes data.

I forgot my password on my MacBook Air. Is it any different?

No. A MacBook Air follows the same steps. Modern MacBook Air models use Apple silicon, so hold the power button (not Command-R) to reach Recovery.

Is my Mac password the same as my Apple Account password?

Not usually. They’re separate unless you chose to use the same one. The login window wants your Mac user password, not your email or phone number.

Can Apple reset my Mac password for me?

Apple Support can guide you through these steps, but it can’t see or bypass your password or recovery key. Without the key or your Apple Account, erasing is the only way in, and that’s what keeps a stolen Mac’s data safe.

Don’t wait for the next leak. Get every password protected.

PassHulk creates a strong, unique password for every account, fills it in for you, and warns you when one turns up in a breach.

Start free trial
15 days freeNo card neededNothing charged when it ends