You can reset a forgotten MacBook Pro password using your Apple ID, a recovery key, or another admin account on the same Mac
If you cannot remember your password, you do not need to erase your Mac or take it to Apple. macOS gives you three working paths: use your Apple ID to reset it, use a recovery key you saved earlier, or have another administrator on the same computer reset it for you. Which one works depends on what you set up before you got locked out.
The fastest route is usually your Apple ID, because most people have one and it requires no preparation. If you do not have access to your Apple ID, a recovery key (a 28-character code you may have saved when you turned on two-factor authentication) will work. If neither of those is available, you need another admin account on the Mac itself.
Key Takeaways
- Your Apple ID can reset your password at the login screen without erasing your Mac or losing your files.
- A recovery key works if you saved it when you set up two-factor authentication, and it is faster than waiting for Apple ID verification.
- If another administrator account exists on your Mac, that person can reset your password from System Settings without needing your old password.
- If you have none of these options, you will need to erase your Mac and set it up again, which deletes all your files unless you have a Time Machine backup.
Reset using your Apple ID at the login screen
When you see the login screen and cannot remember your password, look for a question mark icon or a "Reset Password" option below the password field. Click it. macOS will ask you to enter your Apple ID email address and password.
After you sign in with your Apple ID, the Mac will send a verification code to a trusted device — usually your iPhone, iPad, or another Mac you own. Open that device, find the code in a notification or in your Apple ID settings, and type it back into your Mac. Once verified, you can create a new password right there at the login screen.
This method works only if your Mac is connected to the internet and you remember your Apple ID password. If your Apple ID itself is locked or you do not have a trusted device nearby, this path will not work.
Reset using a recovery key
A recovery key is a 28-character code that Apple generates when you turn on two-factor authentication for your Apple ID. If you saved this code somewhere safe — a password manager, a printed card, a note in a drawer — you can use it instead of waiting for a verification code on another device.
At the login screen, click the question mark or "Reset Password" option and choose "Use a recovery key" if that option appears. Type the recovery key exactly as it is written, including hyphens. You will then create a new password without needing to verify on another device.
Recovery keys are useful when your other devices are not nearby or not working. However, they only exist if you saved one when you set up two-factor authentication. If you never wrote one down or saved it, you cannot use this method.
Reset using another administrator account on the same Mac
If someone else has an administrator account on your Mac, they can reset your password without knowing your old one. That person should log in with their own account, then open System Settings and go to General > Users & Groups (or Accounts, depending on your macOS version).
They will see your account listed. They should click the lock icon to unlock the settings, then right-click your account name and choose "Reset Password." They can set a temporary password for you, which you can change to something you prefer the next time you log in.
This method requires that the other person has administrator privileges and physical access to the Mac. It is the fastest option if you have another admin on the computer, because it does not depend on internet connection or Apple ID verification.
What to do if you have none of these options
If you do not have your Apple ID password, a recovery key, another admin account, or access to a trusted device, you will need to erase your Mac and set it up as new. This deletes all your files, applications, and settings unless you have a Time Machine backup or another copy of your data.
To erase and set up your Mac, restart it and hold Command + R to enter Recovery Mode. Open Disk Utility, select your main drive, and click Erase. Once that finishes, you can set up macOS from scratch and create a new account with a password you choose.
Before you erase, check whether you have a Time Machine backup. If you do, you can restore your files and applications after the setup is complete. If you do not have a backup and you have important files on the Mac, consider taking it to an Apple Store to explore whether any data recovery is possible before you erase.
How to avoid being locked out in the future
Write down or save your recovery key in a password manager the moment you set up two-factor authentication. This single step makes it much faster to reset your password if you forget it, because you do not have to wait for verification codes or have another device nearby.
If you use a password manager like 1Password, Bitwarden, or Dashlane, store your recovery key there along with your Apple ID password. If you prefer not to use a password manager, write the key on a card and store it somewhere safe — a desk drawer, a safe, or with important documents.
You should also make sure at least one other person you trust has administrator access to your Mac, or that you have a regular Time Machine backup. Either one gives you a way out if you forget your password and cannot access your Apple ID.
Frequently Asked Questions
Can I reset my password if my Mac is not connected to the internet?
If you have a recovery key saved, yes — you can type it in at the login screen without internet. If you only have your Apple ID, you need internet to send and receive the verification code. If you have another admin account on the Mac, that person can reset it without internet.
Will resetting my password delete my files?
No. Resetting your password using your Apple ID, a recovery key, or another admin account keeps all your files, applications, and settings intact. Only erasing your Mac deletes everything, and you should only do that if you have no other way to regain access.
What if I do not remember my Apple ID password either?
Go to iforgot.apple.com on another device and follow the steps to reset your Apple ID password. Once you have access to your Apple ID again, you can use it to reset your Mac password. This usually takes a few minutes to an hour, depending on which verification method Apple asks you to use.
Can I use a recovery key more than once?
A recovery key can be used multiple times. You do not lose it after you use it once. However, if you lose the key or forget where you saved it, you cannot get it back from Apple — you will need to use your Apple ID or another method instead.
What happens if I reset my password but forget the new one?
You can use the same method again — your Apple ID, recovery key, or another admin account. The process is identical each time. This is why saving your recovery key is so useful: it gives you a reliable way to reset your password as many times as you need to.