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?

- Click the question mark beside the password field, if shown. Review the hint or password-reset message.
- If no option appears, try entering a password up to three times. Do not keep guessing if a lockout message appears.
- Click the available reset message, such as Reset Password or Restart and show password reset options.
- Follow the prompts. Supply the Apple Account or recovery-key information requested, as explained below.
- 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.
- 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.
- FileVault recovery key: Enter the correct Mac's 24-character alphanumeric key. This is different from an Apple Account recovery key.
- If asked which volume to recover, select your startup disk, commonly Macintosh HD. Select the user account to reset when offered.
- If asked to temporarily deactivate the Mac, follow the assistant's prompt. If offered a new keychain, read the keychain note below before continuing.
- 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.
- 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.
- Open the Passwords app and search for recovery key.
- If the results contain the locked Mac's name, open that entry.
- Tap or click the dots in its Recovery Key field to reveal the key, then enter it privately on your Mac.

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.
- 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.
- If asked to select a user whose password you know, click Forgot all passwords?
- Complete the requested Apple Account or FileVault verification. Select the startup disk if asked, and allow temporary deactivation if prompted.

- If this process lets you create a new password, finish it and restart. You do not need Terminal.
- 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.
- Type
resetpasswordexactly, with no spaces, and press Return. - In the assistant, choose the option indicating that you forgot your password or that it does not work, then click Next.
- Supply the requested recovery information and create new passwords for the accounts the assistant identifies. Restart and sign in.

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.
10 Comments