The fastest way depends on whether you remember any password at all
If you can log in with your Apple ID on the login screen, that is your quickest path — it takes about five minutes and requires no recovery key or external drive. If you cannot remember your Apple ID password either, or if you do not have an Apple ID set up on this Mac, you will need either a recovery key (if you saved one earlier) or access to another Mac or iPhone that you own. The method changes based on what you have available right now.
The reason these routes exist is that Apple locks the Mac to you — not to the machine itself. Your password protects your user account, but your Apple ID is what actually controls access to the device. That is why resetting the password is not a straightforward "clear and start over" process. It is a verification process that proves you own both the account and the Mac.
Key Takeaways
- If you remember your Apple ID and its password, you can reset your Mac password directly from the login screen in about five minutes.
- If you saved a recovery key when you first set up your Mac, you can use it to reset your password without needing another device.
- If you have another Mac or iPhone you own, you can use it to verify your identity and reset the password on the locked Mac.
- If none of these options are available, you will need to contact Apple Support or take the Mac to an Apple Store, as the device is designed to prevent unauthorized access.
- The process is different on Macs with Apple silicon chips (M1, M2, M3) versus older Intel-based Macs, though the basic steps are similar.
Resetting your password using your Apple ID from the login screen
On the Mac login screen, you will see your username and a password field. Below the password field, there is a question mark icon or a "Reset Password" button. Click it. The Mac will ask you to enter your Apple ID email address and password.
Once you enter your Apple ID credentials, the Mac will send a verification code to a trusted phone number or email address associated with your Apple ID. You will see a prompt asking for this code. Open the email or text message on another device (your phone, tablet, or another computer) and enter the code into the Mac. After the code is verified, you will be able to create a new Mac password right there on the login screen.
This method works on any Mac running macOS Big Sur or newer. It does not require you to restart the Mac or use Recovery Mode. You can use your new password when ready to log in.
Using a recovery key if you saved one earlier
When you first set up your Mac or enabled two-factor authentication on your Apple ID, you may have been offered the chance to save a recovery key — a 28-character code that looks like XXXX-XXXX-XXXX-XXXX-XXXX-XXXX. If you saved this code in a safe place (a password manager, a printed document, a safe deposit box), you can use it to reset your password without needing another device.
On the login screen, click the question mark icon or "Reset Password" button. Instead of entering your Apple ID password, select the option to use your recovery key. Enter the 28-character code exactly as it appears. The Mac will then ask you to create a new password. You do not need a verification code sent to another device — the recovery key itself proves your identity.
If you cannot find your recovery key and do not remember where you saved it, this method is not available to you. Recovery keys are not stored on the Mac itself, and Apple does not have a copy of yours. You will need to use one of the other methods instead.
Using another Mac or iPhone to verify your identity
If you own another Mac or an iPhone that is signed into the same Apple ID, you can use it to reset the password on the locked Mac. On the locked Mac, click the question mark icon or "Reset Password" button on the login screen. Select the option to use a trusted device.
Your other Mac or iPhone will receive a notification asking you to confirm that you want to reset the password on the locked device. Approve the notification on the trusted device. The locked Mac will then ask you to create a new password. This method works because Apple knows you own both devices — they are both signed into the same Apple ID account.
The trusted device must be powered on and connected to the internet. If your other device is offline or in airplane mode, the notification will not arrive. Make sure both devices are on the same Wi-Fi network or that the trusted device has cellular service.
What to do if you have no recovery key and no other device
If you cannot remember your Apple ID password, do not have a recovery key, and do not own another Mac or iPhone, you will need to verify your identity through Apple Support. This process is slower — it can take several days — but it is designed to prevent someone else from taking over your Mac.
Go to iforgot.apple.com on any other computer and follow the steps to reset your Apple ID password. You will need to answer security questions, verify your identity through email or phone, or both. Once your Apple ID password is reset, you can use it to reset your Mac password from the login screen using the first method described above.
If you cannot reset your Apple ID password online, or if you need faster help, contact Apple Support at support.apple.com or call 1-800-MY-APPLE. You will need to provide proof of purchase or other information that proves you own the Mac. An Apple Support representative can walk you through additional verification steps and help you regain access.
The difference between Intel Macs and Apple silicon Macs
Macs with Apple silicon chips (M1, M2, M3, M4) use the same password reset methods as Intel-based Macs, but the underlying security is slightly different. Apple silicon Macs have a security feature called the find Enclave that stores encryption keys separately from the main processor. This makes the Mac harder to break into, but it also means you cannot bypass the password reset process even if you have physical access to the machine.
If you are using an Intel Mac from 2017 or earlier, you have one additional option: you can restart into Recovery Mode and use the "Reset Password" utility there. Press Command + R while the Mac is starting up to enter Recovery Mode, then go to Utilities menu and select "Reset Password." This method is not available on Apple silicon Macs — they require you to use one of the methods described above.
Preventing this from happening again
The easiest way to avoid being locked out is to save your recovery key in a place you can actually find it. When you first set up your Mac or enable two-factor authentication, Apple offers to show you a recovery key. Write it down or save it in a password manager like 1Password, Bitwarden, or the built-in Keychain. Do not take a screenshot and store it on the same Mac — store it somewhere separate.
You should also make sure you remember your Apple ID password, or store it in a password manager. If you use iCloud Keychain (Apple's built-in password storage), your passwords are encrypted and stored on Apple's servers, but you still need to remember your Apple ID password to access them. Consider writing your Apple ID password down and storing it in a physical safe or with a trusted person.
If you have another Mac or iPhone, make sure it is signed into the same Apple ID as your main Mac. That way, if you ever get locked out, you have a trusted device ready to help you regain access.
Frequently Asked Questions
Can I reset my Mac password without knowing my Apple ID password?
Yes, if you have a recovery key or another Mac or iPhone signed into the same Apple ID. If you have neither of those, you will need to reset your Apple ID password first at iforgot.apple.com, which may take several days if you need to verify your identity through Apple Support.
What if I forgot my Apple ID password and do not have a recovery key?
Go to iforgot.apple.com on another computer and follow the steps to reset your Apple ID password. You will answer security questions or verify your identity through email or phone. Once your Apple ID password is reset, you can use it to reset your Mac password from the login screen.
Does resetting my Mac password erase my files?
No. Resetting your password only changes the password you use to log in. Your files, applications, and settings remain exactly as they were. You will still have access to everything on the Mac once you log in with your new password.
Can I reset my Mac password if it is encrypted with FileVault?
Yes. FileVault encryption protects your data, but the password reset process works the same way. You will still use your Apple ID, recovery key, or trusted device to reset your password. Once you log in with the new password, FileVault will automatically decrypt your files.
How long does it take to reset a Mac password?
If you use your Apple ID or recovery key, it takes about five minutes. If you need to reset your Apple ID password first through Apple Support, the process can take several days depending on how quickly you can verify your identity.