Your MacBook password is the code you type when you turn on your computer or wake it from sleep
If you have forgotten the password you use to log into your MacBook, you have a few ways to recover it. The fastest route depends on whether you remember your Apple ID password, whether you set up recovery options when you created your account, and which version of macOS your computer runs. None of these methods will erase your files — they straightforward let you regain access to your account.
The key difference is between resetting a password you forgot and changing a password you know. If you can log in but want to change your password for security reasons, that is a different process than recovering a forgotten one. This guide covers recovering a forgotten password.
Key Takeaways
- If you remember your Apple ID password, you can reset your MacBook login password from the login screen without erasing anything.
- If you do not remember your Apple ID password either, you will need to use Recovery Mode, which requires your Mac to restart.
- A password hint you set up when creating your account will appear on the login screen after you enter the wrong password a few times.
- If you are the administrator on your Mac and another user account exists, you can reset the forgotten password from that account.
- FileVault encryption, if turned on, means you must enter your password to decrypt your drive before any reset method will work.
Using your Apple ID to reset your password from the login screen
When you see the login screen and have entered your password incorrectly several times, a message appears that says "If you forgot your password, you can reset it using your Apple ID." Click this message or the question mark icon below the password field. Your Mac will ask for your Apple ID email address and password.
Enter your Apple ID credentials. Your Mac will then prompt you to create a new login password. Type the new password twice to confirm it, then press Enter. You can now log in with this new password. Your files remain untouched — only your login password changes.
This method works on macOS Big Sur and newer. If your Mac runs an older version, you will need to use Recovery Mode instead. You can check which macOS version you have by clicking the Apple menu in the top left corner of any screen where you are logged in, then selecting "About This Mac."
Resetting your password using Recovery Mode
Recovery Mode is a special startup environment on your Mac that lets you perform maintenance tasks without logging in. To enter Recovery Mode, shut down your Mac completely. Press the power button to turn it on, then when ready press and hold Command + R until you see the Apple logo or a spinning globe. Keep holding until the macOS Utilities window appears.
From the Utilities window, click "Utilities" in the menu bar at the top, then select "Reset Password." A new window will open. From the dropdown menu at the top, select your user account. Enter your Apple ID email and password when prompted. Create a new login password, enter it twice to confirm, then click "Reset Password."
Your Mac will restart and return to the login screen. Log in with your new password. If you have FileVault turned on, your Mac may take longer to restart the first time after a password reset.
Using another administrator account to reset the password
If a second administrator account exists on your Mac and you can log into it, you can reset the forgotten password from that account without using Recovery Mode. Log into the account you remember, then open System Settings (or System Preferences on older Macs). Click "General" in the sidebar, then scroll down and click "Users & Groups" or "Login Items."
Look for the account with the forgotten password and click it. Click the lock icon in the bottom left corner and enter the password for the account you are currently logged into. Once unlocked, click "Reset Password." Enter a new password twice to confirm it, then close System Settings. The user can now log in with the new password.
This method only works if you have administrator privileges on the account you are currently using. If both accounts are standard users rather than administrators, you will need to use Recovery Mode instead.
What to do if you do not remember your Apple ID password either
If you have forgotten both your MacBook login password and your Apple ID password, you will need to recover your Apple ID first. Go to iforgot.apple.com on another device or computer. Enter your Apple ID email address and follow the steps to verify your identity. Apple will ask you to answer security questions, receive a code by email, or use a trusted device to confirm who you are.
Once you have regained access to your Apple ID and reset that password, return to your Mac and use the Apple ID method described above to reset your login password. If you cannot verify your Apple ID identity through any of those methods, you will need to contact Apple Support directly — they can help you regain access to your account.
Understanding FileVault and password recovery
FileVault is a built-in encryption tool that scrambles everything on your Mac's hard drive. If FileVault is turned on, you must enter your login password to decrypt the drive before your Mac can start up fully. This means you cannot use Recovery Mode to reset your password without first entering the current password.
If FileVault is on and you have forgotten your password, your only option is to use the Apple ID reset method from the login screen. If you have also forgotten your Apple ID password, contact Apple Support — they can help you regain access, but the process takes longer because your drive is encrypted.
You can check whether FileVault is on by logging into your Mac, opening System Settings, clicking "Privacy & Security" in the sidebar, then looking for "FileVault" in the list. If you see "FileVault is on," encryption is active.
Preventing password loss in the future
When you first set up your Mac or create a new user account, macOS asks you to create a password hint. This hint appears on the login screen after you enter the wrong password a few times. A good hint is something only you would understand but not something someone else could guess easily. "My first pet's name" is too obvious; "The street where I lived in 2005" is better.
You can also set up recovery contacts in System Settings. These are trusted people who can help you regain access to your Apple ID if you forget your password. Open System Settings, click your name at the top of the sidebar, then look for "Password & Security" or "Sign-In & Security." Add trusted contacts there, and they will receive a code they can share with you if you need to recover your account.
Frequently Asked Questions
Will resetting my password delete my files?
No. Resetting your login password does not touch your files, photos, documents, or any data on your Mac. It only changes the code you use to log in. Your files remain exactly where they are.
How long does it take to reset a password using Recovery Mode?
The process itself takes five to ten minutes. However, if FileVault is on, your Mac may take significantly longer to restart afterward — sometimes 15 to 30 minutes — because it is decrypting your drive. Let it finish without interrupting.
What if I see a message saying my account is managed by my organization?
Your Mac is connected to a work or school network that controls your account settings. You cannot reset this password yourself. Contact your IT department or help desk — they have the ability to reset it for you.
Can I reset my password if my Mac is broken and will not turn on?
If your Mac will not power on at all, the password is not the problem — the hardware needs repair first. If it powers on but will not start up fully, try Recovery Mode as described above. If Recovery Mode will not load, your Mac likely needs professional service.
Do I need an internet connection to reset my password?
Yes, you need internet access to verify your Apple ID. If you are using Recovery Mode, your Mac will prompt you to connect to Wi-Fi. If you cannot connect to Wi-Fi on your Mac, use another device to reset your Apple ID password first, then return to your Mac and use that new Apple ID password to reset your login password.