How to recover a forgotten Mac password [2024]: My experience and tips

837.7K views
12 min read

I always thought I was too responsible to forget my laptop password. But on the last day of work before a two-week vacation, I changed the password on my work Mac, and when I got back, of course, I couldn’t remember it.

Well, it’s my job to figure these things out, right? Read on to learn how to unlock your MacBook without a password and discover the tips I adopted to never forget it again.

Quick password recovery solutions 

I’ll start with quick tips, but if you need detailed instructions, just scroll down!

What do you have? Your steps
Mac linked to Apple ID. After 3 failed attempts at login, select Reset with Apple ID and follow the prompts.
No Apple ID linked. Restart in Recovery Mode, go to Options > Terminal, and type resetpassword.
You have a FileVault Recovery Key. At login, select Reset with Recovery Key and enter the 28-character code.
You’re not an admin on Mac. Ask the admin to change password in System Settings > Users & Groups > your Mac username > Reset a Password.
Need to prevent future password issues. Use Secrets 4, a password manager.

Reset Mac password with Apple ID

The easiest way is to reset the password with your Apple ID. Unfortunately, this method didn’t work for me because it only applies if your Mac is linked to an Apple ID. And, of course, before my vacation, I had logged out of my Apple ID just to be extra cautious. Later, I tested the method by "forgetting" my Mac password again, and I can assure you it works perfectly.

Here's how to reset your Mac password with Apple ID.

  1. Enter your username at the Mac's login screen. After three attempts of entering an incorrect password, your Mac will display an option to reset the password.
  2. Click Reset using your Apple ID. 
  3. Wait for your Mac to reboot. 
  4. Fill in your Apple ID and password to continue.
  5. Choose your username and click Next.
  6. Enter your new password and click Next.
  7. Then, click Restart to complete the recovery.

You can now access your Mac with the new password. But what if you forget it again? Setting up additional recovery options helps. Apple lets you add recovery contacts and recovery keys to make password reset easier. 

Follow these steps to add a recovery contact.

  1. Click the Apple icon > System Settings > your Apple ID. 
  2. Select Sign In & Security > Account Recovery.
  3. Click Set up. Then, click the + button at Recovery Contact.
  4. Click Add Recovery Contact. 

    add a recovery contact

  5. At the next dialog, click the + button to bring up your contact list.
  6. Browse and select the desired person. 
  7. Click Next.
  8. You'll be prompted to send the contact a message. Click Send to complete the setup.

If you forget your Mac password again, you can get Mac to send a recovery code to the contact to help you regain access.

Reset Mac password using a recovery key

Another way to make Macintosh password reset easier is to create a recovery key. This method works if you or your company have created a Recovery Key in advance. If it's your work MacBook, reach out to your system administrator or someone from the IT department who handles security issues.

How to use it? After several failed password attempts, you’ll need to select the "Reset using your recovery key" option and enter the key.

If you don’t have this key, here’s a guide on how to create one for future use.

  1. Click the Apple icon > System Settings > Apple ID.
  2. Select Sign In & Security > Account Recovery.
  3. Look for the Recovery Key section and click Manage.
  4. Click Turn On when a new dialogue shows up.
  5. At a confirmation dialog, Click Use Recovery Key to continue. 
  6. Then, enter your admin password and click Allow to proceed. 
  7. Your Mac will generate a 28-character recovery key. Screenshot, print, or write down the key before proceeding. If you lose it, Apple cannot help you regain access to your Mac. 
  8. Click Continue.

    create a Recovery Key

  9. You'll be asked to enter the recovery key to continue. Fill in the 28-character code and click Done.

Now, you've enabled the Recovery Key on your Mac and will be able to regain access if you forget your Mac password. 

How to recover Mac password with Apple's Recovery mode

Recovery mode is Apple's emergency option that lets you restore your device and regain access. This was the method that saved me. With it, you can still reset your Mac password even if you didn't link your Mac with your Apple ID. Exactly my case!

Here's how to access the Recovery mode on a Mac with an Apple M1 or M2 chip.

  1. Restart your Mac.
  2. Hold the power button until you see the startup options.
  3. Click Options > Continue to proceed.

For Macs running Intel processors, follow these steps.

  1. Restart your Mac.
  2. Press and hold the Command + R buttons.
  3. Wait until the Apple logo shows up.
  4. Connect to a Wi-Fi if you're prompted to.
  5. Click Options > Continue to proceed.

Once you're in Recovery mode, reset your Mac password with these steps.

  1. Click Utilities > Terminal on the top menu. A new window will appear.
  2. Type resetpassword in the terminal and press Return. 
  3. Close the terminal window.
  4. Now, you'll find a Password tool.
  5. Select "I forgot my password" and click Next. You'll then be asked to sign in with your Apple ID.
  6. Enter your Apple ID and password to continue.
  7. Apple will send a 6-digit code to your signed-in devices. Enter the code on the Mac to proceed. 
  8. Choose your Mac username. 
  9. Enter the new password and click Save.
  10. Restart your Mac and unlock it with the new password.

That's it. While it takes more steps and is less straightforward, Recovery mode is your best bet when other methods fail.

Change Mac password with another account

If you share the computer with friends or family, you can ask the administrator to change your Mac password.

  1. Use a Mac logged in by the admin. 
  2. Click on the Apple icon > System Settings > Users & Groups.
  3. Click the i icon on your Mac username.
  4. On the user window, click Reset a Password. 
  5. Enter the new password and verify it. I also recommend including a hint to help you remember your password.
  6. Click Reset Password.

Now, log in to your account with the new password.

How to get a hint for your password

Sometimes, you can recall your password by viewing the hint you've set. Doing so saves you the trouble of resetting and creating a new password. Follow these steps to get your password hint. 

  1. Power up or reset your Mac.
  2. At the login screen, click the ? icon beside the Enter Password box. 
  3. You will see your password hint.

Chances are, the hint might help you remember your Mac password. 

How to recover password by using Target Disk Mode

Target disk mode is not directly intended for password recovery, but at least it helps you transfer data between two Macs.

Here's how it works.

  1. Connect both Macs with a USB or Thunderbolt cable.
  2. Restart or turn on the locked Mac while holding the T key.
  3. The locked Mac will enter the target disk mode.
  4. On the working Mac, you'll find an external disk containing your files in the locked Mac.

You can now transfer the files to the working Mac and change your password on the locked Mac later. Note that TargetDisk mode may not work if FileVault and Firmware password are turned on.

Reset Mac password with a FileVault recovery key

I know it can be hard to remember, but if you enabled FileVault to encrypt your storage data, you would have received a recovery key generated by your Mac. Again, if you’re using a work MacBook, reach out to your IT department — they might have the key. With it, you can reset your Mac password in just a few steps.

  1. Power up your Mac.
  2. At the login screen, click the ? icon next to the password field. 
  3. Select Reset it using your recovery key.
  4. Fill in the recovery key and click Next.
  5. Reset your password by following the on-screen instructions.

Restart your Mac, and you can use the new password to log in. 

Tips to protect your data on Mac

I hope you’ve been able to recover your password by now. Passwords are here to protect our data, but there’s more you can do to keep your information secure. I’ve got some tips and ideas to help you store, find, and manage your passwords more easily. I’ve been using these ever since my own password incident.

Never forget passwords with Secrets 4

If you've forgotten your password once, you will likely forget it again. Rather than trying to remember dozens of passwords, I now use Secrets 4 to help. Secrets 4 is a password manager that encrypts and stores all passwords safely on the Mac. It also synchronizes with the Mac's keychain and system settings.

To store your password with Secrets 4.

  1. Download and open Secrets 4.
  2. Click the + icon.
  3. Select Login.
  4. Give the password a name.
  5. Generate a random password by clicking the half-circle arrow icon.. 
  6. Click Done.

    Secrets 4 password storage

Your password is now saved and synchronized on all your Apple devices. If you forgot your Macbook password, log in to Secrets 4 from a different device, and you'll find it. 

Find lost passwords using Keychain Access

If you've forgotten some passwords, such as those used for signing into a drawing app, you can find them with Keychain Access or System settings. 

Keychain Access is a Mac app that stores the passwords you use. Here's how to recover them. 

  1. Search for the Keychain Access app on your Mac.
  2. Launch the app and click Open Keychain Access.
  3. Browse and select a specific keychain.
  4. On the attribute pane that pops up, click Show Password.
  5. Enter your keychain password and the hidden password will be revealed.

    search for a password in Keychain Access

Another way to recover passwords on Mac is through the System Settings. 

  1. Open System Settings.
  2. Scroll down and select Passwords on the left panel.
  3. Enter your Mac password to continue. 
  4. Then, choose the passwords you want to reveal and click the i icon.
  5. A window containing the login credentials will appear. Hover your mouse over the password to reveal it. 

    view your passwords in System Settings > Passwords

You can only recover passwords with Keychain Access and System Settings if you've previously saved them, either automatically or manually. 

Backup your files 

Make a copy of your important files so you can recover them, even if you get locked out of your Macbook. You can use Time Machine on your Mac to clone the entire drive.

  1. Connect a storage disk to your Mac.
  2. Click the Apple icon > System Settings > General > Time Machine.
  3. Click Add Backup Disk and select the connected storage.
  4. Click Set Up Disk.
  5. Choose to erase the disk when prompted to. Wait for the setup to complete.
  6. Then, click the Time Machine icon on the menu bar and choose Back Up Now.
  7. Wait for your Mac to back up all files to the disk.

You can also use Time Machine to back up only important files, but I find the process clumsy. In this case, I use Get Backup Pro. Like Time Machine, it lets you clone files from your Mac to a storage device, but Get Backup Pro is easier to use, and its archives are much more compressed. Here's how:

  1. Download and launch Get Backup Pro.
  2. Click File+ or Apps Data+ to select the data for backing up.
  3. Click run. 

    Get Backup Pro

Now, you have a copy of your important files that you can access anytime.

Always protect your data

Unlocking your Mac after forgetting the password seems impossible, but as you see, it's not. I hope my experience proves helpful to you.

As long as you remember your Apple ID, you can easily reset your Mac password. Even if you don't, you can try Recovery mode, an admin account, or a recovery key. The real challenge is not resetting passwords but remembering and storing them safely. Don't write them down on Apple Notes or other note-taking apps on your Mac because hackers might steal them. Instead, I recommend using password managers like Secrets 4 to store your website passwords on Mac securely.

You can try Secrets 4 and other apps I mentioned on Setapp for free. Setapp lets you subscribe to dozens of apps to get more productive and secure on Mac at an affordable fee.

FAQ

What to do: I forgot my MacBook password and didn't have an Apple ID; how can I reset it?

Try these options if you can't remember both credentials.
  • Reset your Mac password from the administrative account of a person you share your device with.
  • Use the FileVault recovery key to reset your Mac password.
  • Consider erasing your Mac as a last resort. Doing so will wipe all the data and restore it to factory settings. 

Can I log into my Mac without a password?

Yes, you can log in without a password if you have Automatic Login by going to System Settings > Users & Groups. Click Lock > Login options > Automatic login. Then, choose your Mac account and confirm your intention by typing its password. Now, it’s password-free. 

Note that Automatic Login is disabled in case the account uses iCloud to log in, or you have FileVault enabled on your Mac. Each of these helps ensure your Mac’s security, so we don’t recommend disabling password-protected login. 

Why can’t I change my password?

If you remember your old password, it’s usually pretty simple to change it via System Settings > Users & Groups > your account > Password Change...

Mac user password change

If, however, you don’t remember the password and none of the recovery methods from this article work for you, consider erasing your Mac. You can find a full guide on safely erasing Mac without losing your data here

Can someone else reset your Mac password?

“If I forgot my admin password on Mac and can’t reset it, can someone else reset it?” Fair enough. The thing is, letting someone else easily access your Mac if they don’t know the password would be a terrible idea security-wise. The bad news is that if you have FileVault disabled, anyone can reset your password by running the reset password command in Terminal from Recovery Mode. So make sure you always stick with Apple’s security requirements, FileVault being one of the most important ones.

Can someone else reset your Mac password?

Yes, they can reboot and reset the password by rebooting your Mac in Apple Recovery Mode. This is possible if you don't turn on the FileVault. You can also ask the administrative user of your shared Mac to reset your password from their account if you forgot the administrator name and password on your Mac.

What is the shortcut key for resetting the password on Mac?

There is no shortcut key for resetting a password on a Mac. You'll need to recover the password using Apple ID, Recovery Key, or another traditional method.

,
250+ apps for $9.99
per month

Sign up to Setapp and try them for free.

Security-tested