How to Reset a MacBook Password Without Losing Data

Read the last updates and news about our brand and line of products.

macOS login window showing password field with question mark icon and Reset Password option on MacBook

Forgot your MacBook login password? Try Apple's non-erasing recovery options before taking any action that could remove your files.

Quick answer: To reset a MacBook password without losing data, start with the login window's reset option. Authenticate with your Apple Account or FileVault recovery key when requested. If needed, open macOS Recovery and run resetpassword in Terminal. These options do not erase your Mac, but recovery depends on your setup.

For MacBook Air and MacBook Pro. Based on Apple's official forgotten-login-password guide, checked November 26, 2026. This is an independent Techs Park guide, not an Apple service document. Illustrations are AI-generated examples, not screenshots; layouts and wording vary by macOS version.

What should you check before resetting your password?

Restart your Mac, then enter your Mac login password, not your Apple Account password. Check that Caps Lock is off and that the keyboard input-language menu matches your keyboard. If the account is temporarily locked, wait for the displayed time to pass, restart, and try again.

Safety checkpoint: Use these steps only for a Mac you own or are authorized to manage. On a work or school Mac, contact the administrator first. Do not share passwords, verification codes, or recovery keys with anyone.

Which MacBook password-reset method should you try first?

These are related recovery paths, not three ways around authentication. Apple does not give a fixed completion time; the estimates below are planning estimates, not guarantees.

Method What You Need Time Required Data Impact
1. Login-window reset An available reset prompt and requested verification About 5–15 minutes No disk erase; keychain caveat below
2. Apple Account or FileVault key Accepted account credentials or the correct Mac's recovery key About 5–20 minutes if information is ready No disk erase; authentication required
3. Recovery and Terminal macOS Recovery access and requested recovery information About 10–30 minutes, potentially longer No disk erase; does not bypass FileVault

Non-erasing does not mean guaranteed recovery or zero risk. Existing keychain contents may remain inaccessible without the old password.

How do you reset your Mac password from the login screen?

macOS login window showing password field with question mark icon and Reset Password option on MacBook
Illustration: look beside the password field for available reset options.
  1. Click the question mark beside the password field, if shown. Review the hint or password-reset message.
  2. If no option appears, try entering a password up to three times. Do not keep guessing if a lockout message appears.
  3. Click the available reset message, such as Reset Password or Restart and show password reset options.
  4. Follow the prompts. Supply the Apple Account or recovery-key information requested, as explained below.
  5. Set a new login password when offered, restart, and sign in with it.

If no reset message appears after those attempts, restart and check again. If that does not help, continue with macOS Recovery.

How do Apple Account and FileVault recovery-key resets work?

These verification options can appear during either the login-window or Recovery process. Use the option your Mac actually offers; not every setup offers both.

  1. Apple Account: Enter the email address or phone number and password requested by the recovery assistant. In Recovery, use the Apple Account previously used with that Mac. Provide a verification code from another device if asked.
  2. FileVault recovery key: Enter the correct Mac's 24-character alphanumeric key. This is different from an Apple Account recovery key.
  3. If asked which volume to recover, select your startup disk, commonly Macintosh HD. Select the user account to reset when offered.
  4. If asked to temporarily deactivate the Mac, follow the assistant's prompt. If offered a new keychain, read the keychain note below before continuing.
  5. Create your new password when prompted and restart as directed.

What if you forgot your FileVault recovery key?

If the locked Mac runs macOS Tahoe 26 or later, its key might be available in the Apple Passwords app on another iPhone, iPad, or Mac. The version condition applies to the Mac requesting the key; finding a saved entry is not guaranteed.

  1. On your other device, confirm that you are signed in to the same Apple Account as the locked Mac and that iCloud Passwords & Keychain is enabled.
  2. Open the Passwords app and search for recovery key.
  3. If the results contain the locked Mac's name, open that entry.
  4. Tap or click the dots in its Recovery Key field to reveal the key, then enter it privately on your Mac.
Finding MacBook FileVault Recovery Key inside the Apple Passwords app on iPhone
Illustration only: the X characters are a sample, not a usable recovery key.

If the entry is missing, try Apple's Recovery options below. For an organization-managed Mac, ask the administrator about recovery information. A missing key cannot be recreated by the Terminal command.

How do you use Terminal in macOS Recovery to reset your password?

Safety checkpoint: Open password-recovery tools only. Do not erase, partition, or format the disk. Terminal's resetpassword launches a recovery assistant; it does not bypass FileVault encryption or remove authentication requirements.

  1. Shut down your MacBook. On a Mac with Apple silicon, hold the power or Touch ID button until startup options appear, release it, then choose Options > Continue. On an Intel-based Mac, turn it on and immediately hold Command-R until the Apple logo or spinning globe appears.
  2. If asked to select a user whose password you know, click Forgot all passwords?
  3. Complete the requested Apple Account or FileVault verification. Select the startup disk if asked, and allow temporary deactivation if prompted.
macOS Recovery screen highlighting the Forgot all passwords button under the Mac user account
Illustration: use the forgotten-password link when the assistant requests a known user's password.
  1. If this process lets you create a new password, finish it and restart. You do not need Terminal.
  2. Otherwise, choose Exit to Recovery when offered. At the Recovery utilities screen, open Utilities > Terminal from the menu bar at the top of the screen.
  3. Type resetpassword exactly, with no spaces, and press Return.
  4. In the assistant, choose the option indicating that you forgot your password or that it does not work, then click Next.
  5. Supply the requested recovery information and create new passwords for the accounts the assistant identifies. Restart and sign in.
Typing resetpassword command in macOS Recovery Terminal to recover MacBook login without data loss
Illustration of the command, not the exact utilities layout. Open Terminal from the top menu bar's Utilities menu.

For startup variations, consult Apple's macOS Recovery startup instructions. If no offered method accepts your recovery information, stop and contact Apple Support before making changes that could affect your files.

Why might macOS ask you to create a new keychain?

Apple's reset process can ask you to create a new keychain for saved passwords. This is an expected prompt and is not a disk erase, but it does not recover items protected by the old keychain password. Do not assume every previously saved password will be available afterward.

What should you do after signing back in?

Check your files and set up a regular backup routine. Planning a backup setup? [INTERNAL_LINK: External SSDs & Time Machine Backup Drives]

For everyday connectivity after recovery, explore [INTERNAL_LINK: Essential MacBook USB-C Hubs & Accessories]. A hub or external drive cannot bypass a locked, encrypted disk.

Frequently asked questions

Can I reset a MacBook password without erasing my files?

Often, if your Mac offers a reset path and you can provide the requested recovery information. The methods here do not erase the disk, but successful recovery is not guaranteed.

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

They are separate credentials. Use your Mac login password at the normal login screen and your Apple Account credentials only when the recovery assistant requests them.

Where can I find a FileVault recovery key on my iPhone?

Search for recovery key in the Passwords app. For a Mac running macOS Tahoe 26 or later, a matching entry might be available when the other device uses the same Apple Account and has iCloud Passwords & Keychain enabled.

Does the resetpassword command bypass FileVault?

No. It opens the password-reset assistant in macOS Recovery. You still need the authentication or recovery information required by your Mac.

Will creating a new keychain delete my documents?

Creating a new keychain is not a disk erase. It creates a place for saved passwords, but old keychain items may remain inaccessible without the old password.

Sources: Apple: If you forgot your Mac login password; Apple: How to start up from macOS Recovery.

Caution: Avoid Erase Mac unless you have a complete, verified Time Machine backup and understand what will be removed. Erase Mac permanently deletes local user accounts and their data, including files not covered by that backup.

Author Avatar
Gamal Nabil

Leave a Comment

We’d love to hear from you! Feel free to share your thoughts, experiences, or questions about the topic.

10 Comments

This is hands down the best password recovery guide for Apple Silicon Macs. Worked instantly. Thank you!
Ryan Cooper

Perfect explanation. Easy to follow and the screenshots helped a lot. I’m bookmarking this!
Chloe Mitchell

You just saved my deadlines, man. I thought my files were gone forever. Appreciate the detailed steps!
Liam Walker

As someone who repairs Macs, I can confirm — this is the cleanest and safest way to recover access. Well done!
Jason Reed

Super helpful! And the fact that it works on M1, M2, M3 AND M4 is amazing. Saved my entire photo library 😅
Emily Grant

The Terminal method actually worked. Didn’t even know this feature existed. Great job explaining every step.
Michael Harris

I almost cried when my Mac wouldn’t accept my password. Your tutorial made the whole process painless. Thank you so much!
Sophie Allen

Honestly, Apple should make THIS the official guide. So simple, no stress, no data loss. Appreciate the humor too 😂
Daniel Brooks

I was freaking out because all my work files were locked. Followed the steps and boom — I’m back in. Super clear explanation!
Megan Cole

This guide literally saved my Mac! I was about to wipe the whole device until I found this. The “resetpassword” trick works like magic. Thank you!
Alex Turner