Security

Forgot your MacBook password? Here’s how to reset or recover it

Jacob Fox

Jul 1, 20248 min read

If you’ve forgotten your MacBook password, don’t panic. Depending on how you’ve set up your device and what information you have on hand, you may be able to reset your password quickly and easily.

The quickest and easiest way to reset your MacBook password is to use your Apple ID, but there are other ways to do so if this method isn’t an option for you. Read on to find out how to reset your password if you find yourself locked out of your MacBook.

How to reset your MacBook password using Apple ID

The easiest way to reset your MacBook password is to use your Apple ID and Apple ID password. Your Apple ID is what gives you access to all the settings that apply across your Apple devices, such as iCloud and your account’s security settings.

Here’s how to reset your MacBook password using Apple ID:

  1. Attempt to log in to your MacBook 3 times.
  2. Press “Restart and show password reset options” if this option appears and allow your MacBook to restart.
  3. Select “Reset it using your Apple ID.”
  4. Enter your Apple ID and password.
  5. Select the desired account and click “Reset Password.”
  6. Enter a new password for the account and press “Restart.”

How to use the FileVault recovery key to reset your MacBook password

FileVault is an option you can enable on Macs and MacBooks that encrypts all the data on your device, preventing anyone from accessing it without entering a key.

If you already created a FileVault recovery key and you know it or have access to it, you should be able to use this to reset your MacBook password.

A screenshot showing FileVault settings in Mac OS X.
MacBook, macOS, and FileVault are trademarks of Apple Inc.

To use FileVault to reset your MacBook password:

  1. Try to log in to your MacBook 3 times.
  2. Press “Restart and show password reset options” if this option appears and allow your MacBook to restart.
  3. Select “Reset it using your recovery key.”
  4. Enter your FileVault recovery key.
  5. Select the user and click “Next.”
  6. Enter a new password and click “Next” or “Reset Password,” then click “Restart.”

Resetting your MacBook password via Recovery Mode

Mac Recovery Mode is designed to help you troubleshoot problems with your Mac at start-up, even if you can’t boot into macOS. You can use it to reset your password when you’re locked out of your MacBook.

However, if you have FileVault turned on, you might need your FileVault recovery key to boot into Recovery Mode.

How to access Recovery Mode on an Intel Mac

Booting into Recovery Mode on your Intel Mac or MacBook is simple. To access Recovery Mode on an Intel Mac:

  1. Restart your MacBook.
  2. Press and hold Command + R while booting it up.
  3. If the MacBook is split into multiple drives, select the main volume you want to recover and click “Next.”

How to access Recovery Mode on a Mac with an M-series chip

Booting into Recovery Mode on your M-Series Mac or MacBook is even simpler than on an Intel Mac. To access Recovery Mode on a Mac with an M-Series chip:

  1. Power off your MacBook completely.
  2. Hold down the power button until you see the Start-up Options screen.
  3. Select Options > Recovery.

How to reset your Mac password in Recovery Mode using Terminal

Once you’ve booted into Recovery Mode using one of the above methods, you can use the Mac Terminal and Password Recovery Tool to reset your MacBook’s password. Here’s how to do so:

  1. On the Menu Bar, click Utilities.
  2. Click Terminal.
  3. Type “resetpassword” (without quotes) and hit Enter.
  4. In the newly opened Password Recovery Tool window, select the user account.
  5. Enter your new password.
  6. Hit “Restart.”
A screenshot of the reset password command typed into MacBook Terminal.
MacBook and macOS are trademarks of Apple Inc.

How to reset your MacBook password using another admin account

If you’ve forgotten the password for one of your MacBook accounts but there’s an administrator account on your MacBook for which you do know the key, you can use this admin account to reset the forgotten password.

You can check whether an account has administrator privileges by going to the Apple Menu and navigating to System Preferences > Users & Groups.

A screenshot of Mac OS X Privacy and Security settings page showing Users and Groups. User accounts are listed showing whether they are standard or administrator users.
MacBook and macOS are trademarks of Apple Inc.

To reset your MacBook password using another admin account, first log into the admin account, then do the following:

  1. Open the Apple Menu.
  2. Go to System Preferences > Users & Groups.
  3. Select the Information button (the small “i”) next to the user profile for which you want to reset the password.
  4. Next to “Password,” click “Reset…”
  5. Enter a new key, then enter it again next to “Verify.” Enter a hint if you desire.
  6. Click “Reset Password.”
Mac Settings showing an administrator's option to reset the password of a standard user account.
MacBook and macOS are trademarks of Apple Inc.

How to use Target Disk Mode when locked out of your MacBook

Target Disk Mode is a mode that you can enable on your Mac or MacBook to allow it to act as a storage device for another Mac or MacBook. When your MacBook goes into Target Disk Mode, you can connect it to another Mac device and use it the same way you would a regular storage device, such as an external USB SSD.

Using Target Disk Mode allows you to back up or transfer files from one Mac or MacBook to another if you physically connect them. This can be particularly useful if you’re locked out of your MacBook because it can allow you to transfer some of your important files to a new device.

However, to use Target Disk Mode, you have to have FileVault disabled. If it was enabled before you got locked out of your MacBook, you’re out of luck.

Here’s how to use Target Disk Mode when locked out of your MacBook:

  1. Power off the MacBook that you’re locked out of.
  2. Connect the powered-off MacBook to another Mac or MacBook via Thunderbolt or USB.
  3. Power the MacBook on again while holding down “T” on the keyboard. This should boot it into Target Disk Mode.
  4. On the second Mac or MacBook, locate your first MacBook’s storage either in the Network section of the Finder or as an image file on your Desktop.
  5. Transfer any files you want from your Target Disk Mode MacBook to the other one.

Common questions about resetting your MacBook password

If you’re struggling to figure out whether you should reset your MacBook password or which method to use to do so, we have you covered.

Will resetting my MacBook password delete my files?

No, resetting your MacBook password won’t delete any of your files.

What should I do if I forget both my MacBook password and my Apple ID password?

If you forget your MacBook password and Apple ID password, try to reset your password using FileVault, Recovery Mode, or another administrator account.

How often should I change my MacBook password?

While there’s no hard and fast rule, it’s a good idea to try to change your MacBook password every few months or so.

What should I do if the Mac password reset doesn’t work?

If none of the Mac password reset methods work and you’ve tried FileVault, Recovery Mode, and administrator reset methods, try contacting Apple Support.

How to change your MacBook password

Changing your MacBook password is easy if you’re already logged in to the user account you want to change the key for. To change your MacBook password:

  1. Open the Apple Menu.
  2. Go to System Preferences > Users & Groups.
  3. Select the Information button (the small “i”) next to your user profile.
  4. Next to “Password,” click “Change…”
  5. Enter a new key and enter it again next to “Verify.”
  6. Click “Change Password.”
A screenshot showing how to change MacBook password.
MacBook and macOS are trademarks of Apple Inc.

How to set a password hint for your MacBook

You can set a password hint for your MacBook by following the same steps as resetting your password. Navigate to the settings for Users & Groups, select the Information button next to your user profile, and click “Change…”

From here, there should be an option to enter a “Password Hint.” Whatever you enter here will pop up whenever you click the question mark next to your MacBook login page’s password field.

If you want to keep your key the same but simply add a Password Hint, simply enter a new password that’s identical to your old one, then add what you want to the hint field. Click Change Password, and you’ll have set a password hint for your MacBook.

A screenshot showing how to set a password hint on MacBook or Mac devices.
MacBook and macOS are trademarks of Apple Inc.

Tips for securing your Mac password

Securing your MacBook is a bit of a balancing act. On the one hand, you need a strong password that can’t be easily guessed or accessed. On the other hand, you need to be able to remember it and recover your user account if you forget it.

Here are some general tips to follow for creating, storing, and managing your Mac password.

Pick a strong password

To keep your MacBook safe, it’s crucial you pick a strong password. This means a password that’s sufficiently long (ideally longer than 16 characters), isn’t easy to guess, doesn’t contain any personal information, and uses lowercase and uppercase letters, as well as numbers and special characters.

It’s often a good idea to think of a random or semi-random long sentence or phrase, as this will be difficult for hackers to crack but easy for you to remember.

Store your password in a password manager

If you want to use a secure password but you’re afraid you might forget it, store it in a password manager program. Setting up a password manager can be a great way to improve your overall digital security, and as long as you remember your password manager’s login information, you won’t have to worry about forgetting any other password.

A photo of a key inside a lock on a gray background.

Write your password down and store it safely

If you’re worried about forgetting your MacBook password, it might be a good idea to write it down somewhere. However, this should be done very carefully, as someone could find it and make a note of it to gain access to your device. If you do write it down, store it somewhere safe where nobody else will find it.

Prepare for password recovery

Even if you adhere to password best practices, and even if it’s unlikely, you should prepare for a worst-case scenario in which you forget your password or can’t find it.

On MacBook, it means enabling FileVault, making a note of your recovery key, and keeping it in a safe location. Plus, it means storing your Apple ID and password in a safe location, perhaps in a password manager. Preparing for both of these backup options should allow for easier MacBook password recovery in future.

Change your password every so often

Returning to security rather than backups for a moment, it’s a good practice to change your MacBook password every now and then. There’s always a chance that someone has somehow discovered your current password. Changing your password every few months or so can help keep these potential attackers at bay.

Keep malware off your MacBook

Although important, passwords are only one line of defense against attackers. It’s also important to keep malware off your MacBook and to check for it regularly. Easy-to-use software such as CleanMyMac X with Moonlock Engine’s anti-malware technology, for example, can help keep your MacBook squeaky clean.

A screenshot of the Malware Removal module in CleanMyMac X, powered by Moonlock Engine.

It can be scary to forget your password and get locked out of your MacBook. Thankfully, Apple’s set up some pretty handy features to help you reset or recover your password.

A big part of this process depends on how well-prepared you are. If you keep your Apple ID and Apple ID password handy, enable FileVault, and possibly even set up a spare admin account on standby, you’ll have plenty of solutions open to you in the unfortunate event that you forget your MacBook password.

This is an independent publication, and it has not been authorized, sponsored, or otherwise approved by Apple Inc. MacBook and macOS are trademarks of Apple Inc.

Jacob Fox Jacob Fox
In addition to being an academic, Jacob is a lifelong technology expert and cybersecurity writer who has helped his readers understand information security for almost five years. He has written for TechRadar, PCGamer, and other online technology publications.