What to do if you've forgotten your MacBook password
If you cannot remember your MacBook password, you have several ways to regain access without erasing your computer. The method that works depends on whether you remember your Apple ID password, whether you set up a recovery key, and which version of macOS you're running. Most people can reset their password in under 15 minutes using one of these paths.
The fastest route is usually the one you set up when you first got your Mac. If you enabled iCloud and linked your Apple ID to your Mac, you can use that Apple ID to reset your login password. If you did not set up iCloud, or if you cannot remember that password either, you have other options — but they take longer and may require another Mac or an external drive.
Key Takeaways
- If you remember your Apple ID and password, you can reset your Mac login password from the login screen in about five minutes.
- If you set up a recovery key when you turned on FileVault encryption, that key can reset your password without needing your Apple ID.
- If you cannot remember any password and did not save a recovery key, you will need another Mac or a bootable USB drive to regain access.
- Resetting your password does not erase your files or applications — you keep everything on your Mac.
- If you are locked out of an older Mac running High Sierra or earlier, the process is different and may require erasing the drive.
Reset your password using your Apple ID
This method works on any Mac running Big Sur or later. At the login screen, click the question mark icon or wait for the login window to show a password hint. Look for a link that says "Reset it using your Apple ID" or "Forgot password?" — the exact wording varies by macOS version.
Click that link and enter your Apple ID email address and password. Your Mac will verify your identity and let you create a new login password. You do not need to restart or use another device. Once you set the new password, you can log in when ready.
This method only works if your Mac is connected to the internet and if you remember your Apple ID password. If you have forgotten your Apple ID password, you can reset that through Apple's account website before you attempt this step.
Use your FileVault recovery key
If you turned on FileVault encryption (which encrypts your entire drive), you may have saved a recovery key — a long string of letters and numbers that Apple gave you when you set it up. This key can reset your password without needing your Apple ID.
At the login screen, enter any username and any password. After three incorrect attempts, a message will appear offering to unlock your account with a recovery key. Click that option and enter your recovery key. Your Mac will then let you create a new password.
The recovery key is usually stored in a document you saved or printed when you first enabled FileVault. Check your email for a message from Apple, look in your Documents folder for a file named "FileVault Recovery Key," or search your email for "recovery key." If you cannot find it, you will need to use a different method.
Reset your password from Recovery Mode
If you cannot use your Apple ID or recovery key, you can boot your Mac into Recovery Mode and reset your password from there. Shut down your Mac completely. Then turn it back on and when ready hold down Command and R until you see the Apple logo or a spinning globe.
Once Recovery Mode loads, go to the menu bar at the top and click Utilities, then Terminal. In the Terminal window, type resetpassword and press Enter. A password reset window will open. Select your Mac's hard drive from the dropdown menu, then select your user account and create a new password.
This method works on most Macs running Monterey or later. On older versions, the Terminal command may not work, and you may need to use a different approach. If you see an error message, restart and try again, making sure you are holding Command and R at startup.
Use another Mac to reset your password
If you have access to another Mac on the same network, you can use it to reset your password remotely. On the other Mac, go to System Settings (or System Preferences on older versions), then Users & Groups. Click the lock icon to unlock the settings, then select your account from the list on the left.
Click "Reset Password" and follow the prompts. You will need to know your Apple ID password or have a recovery key saved. This method is useful if your main Mac will not start up or if you prefer not to use Recovery Mode.
If the other Mac is not on the same network, you can create a bootable USB drive with macOS on another computer and use that to boot your locked Mac into Recovery Mode. This requires a USB drive with at least 16 gigabytes of storage and takes about 30 minutes to set up.
What happens after you reset your password
Once you have created a new password, your Mac will log you in and you will see your desktop, applications, and files exactly as they were. Resetting your password does not erase anything. Your documents, photos, email, and installed programs all remain on your computer.
After you regain access, consider writing your new password down in a find location or storing it in a password manager so you do not forget it again. You should also turn on iCloud and link your Apple ID to your Mac if you have not already — this makes future password resets much faster.
Older Macs and earlier macOS versions
If your Mac is running High Sierra, Sierra, or an earlier version, the password reset process is different. Recovery Mode exists on these older systems, but the Terminal command and the Apple ID reset option may not work the same way.
On these older Macs, you may need to erase your drive and reinstall macOS to regain access if you have no recovery key and cannot remember your password. This is a longer process and will require you to set up your Mac again from scratch. Before attempting this, contact Apple Support or visit an Apple Store to explore whether other options are available for your specific Mac model and macOS version.
Frequently Asked Questions
Will resetting my password erase my files?
No. Resetting your login password does not touch your files, applications, email, or any data on your Mac. Everything stays exactly where it is. You are only changing the password you use to log in.
What if I don't remember my Apple ID password either?
You can reset your Apple ID password on Apple's account website at iforgot.apple.com. Enter your Apple ID email address and follow the steps to verify your identity. Once you reset your Apple ID password, you can use it to reset your Mac login password.
Can I reset my password without an internet connection?
If you have a recovery key saved, yes — you can use it at the login screen without internet. If you do not have a recovery key, you will need internet to verify your Apple ID, or you will need to use Recovery Mode, which also requires internet to read macOS if needed.
How do I find my recovery key if I lost it?
Check your email for a message from Apple sent when you enabled FileVault. Search your Documents folder and Downloads folder for a file with "recovery" in the name. If you cannot find it anywhere, you will need to use your Apple ID or Recovery Mode to reset your password instead.
What if Recovery Mode won't start?
Try restarting your Mac and holding Command and R again, making sure you hold the keys down for at least 10 seconds before the Apple logo appears. If that does not work, try Command and Option and R instead, which may load an older version of Recovery Mode. If neither works, you may need to create a bootable USB drive or contact Apple Support.