The fastest way to reset your password depends on what you remember
If you know your Apple ID and password, you can reset your Mac password from the login screen in under five minutes. If you do not remember your Apple ID password, the process takes longer but still works — you will use your recovery key or answer security questions instead. If you do not have access to any of those, you will need to use Recovery Mode, which erases your Mac and requires you to set it up again from scratch.
The method you use also depends on whether your Mac is running an older or newer version of macOS. Newer Macs (2018 and later) have a recovery key built in. Older Macs use security questions. Both paths work; they just look different on screen.
Key Takeaways
- If you remember your Apple ID password, click the password reset option on the login screen and you will be back in within minutes.
- If you do not remember your Apple ID password, you can use your recovery key (newer Macs) or answer your security questions (older Macs) instead.
- If you have no access to Apple ID, recovery key, or security questions, Recovery Mode will let you reset everything but will erase your Mac.
- After you regain access, turn on FileVault and write down your recovery key in a safe place so you do not get locked out again.
Resetting your password when you know your Apple ID
At the login screen, click the question mark icon or the "Reset Password" option if it appears. Your Mac will ask for your Apple ID email address. Type it in and click the arrow or Next button.
Your 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 the code back into your Mac's login screen. Once verified, you will be asked to create a new password. Type it twice to confirm, then click Reset Password. You can log in with your new password when ready.
This entire process assumes your Mac is connected to the internet. If it is not, connect to Wi-Fi first from the login screen, then try again.
Resetting your password using a recovery key (newer Macs)
If you do not have access to a trusted device but you have your recovery key written down somewhere, you can use it instead. At the login screen, click the question mark icon or Reset Password option. When asked for your Apple ID, type it in. When the screen asks for verification, look for an option that says "Do not have access to your trusted devices?" or similar wording.
Click that option and you will be asked to enter your recovery key — a long string of characters that looks like XXXX-XXXX-XXXX-XXXX-XXXX-XXXX. Type it carefully (spaces do not matter). Once entered, create your new password and click Reset Password.
If you do not have your recovery key written down, you will need to move to the next method.
Resetting your password using security questions (older Macs)
On older Macs running macOS Big Sur or earlier, the login screen will ask security questions instead of a recovery key. At the login screen, click the question mark icon or Reset Password option. Type your Apple ID email address.
You will be asked three security questions you set up when you created your Apple ID — for example, "What was the name of your first pet?" or "In what city were you born?" Answer all three correctly. Once verified, create your new password and click Reset Password.
If you do not remember your answers to these questions, you will need to use Recovery Mode.
Using Recovery Mode when you have no other options
Recovery Mode erases your Mac and lets you set it up as if it were brand new. Use this only if you cannot reset your password any other way. To enter Recovery Mode, shut down your Mac completely. Then turn it on and when ready hold down Command + R (or Command + Option + R for older Macs) until you see the Apple logo or a spinning globe.
Your Mac will load into Recovery Mode, which shows a menu with several options. Click Utilities in the menu bar, then select 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, then select your user account. Enter a new password twice and click Save.
Close Terminal and restart your Mac. You can now log in with your new password. Your files will still be there, but you will need to set up your Mac again — reconnect to Wi-Fi, sign into your Apple ID, and restore any settings you had before.
What to do if Recovery Mode does not work
If you cannot enter Recovery Mode or the password reset does not work, your Mac may have a firmware password set that is preventing access. This is a security feature that requires a separate password before Recovery Mode will load. If you set this password yourself, you will need to remember it. If you did not set it, contact Apple Support — they can help you remove it, but you will need to prove you own the Mac.
You can also take your Mac to an Apple Store or authorized service provider. Bring proof of purchase or your Mac's serial number. They can help you regain access, though there may be a service fee.
Preventing lockouts in the future
After you reset your password and regain access, turn on FileVault encryption. Open System Preferences (or System Settings on newer Macs), click Security & Privacy, then select FileVault. Click the lock icon to unlock it, enter your password, and click Turn On FileVault. Your Mac will generate a recovery key — write this down on paper and store it somewhere safe, like a drawer or safe deposit box. Do not store it only on your computer.
You should also write down the answers to your security questions and store them in the same safe place. If you ever get locked out again, you will have these backups available without needing to erase your Mac.
Frequently Asked Questions
Can I reset my password without an internet connection?
No. The login screen needs to connect to Apple's servers to verify your identity, whether through a trusted device, recovery key, or security questions. Connect to Wi-Fi before attempting a password reset.
Will resetting my password delete my files?
No, unless you use Recovery Mode. A normal password reset through the login screen or Recovery Mode's resetpassword tool keeps your files intact. Only a full erase-and-reinstall removes files.
What if I do not have a trusted device to receive the verification code?
Use your recovery key if you have it written down, or answer your security questions. If you have neither, you will need to use Recovery Mode, which does erase your Mac.
How do I find my recovery key if I lost it?
If you are already logged into your Mac, go to System Preferences, click Security & Privacy, select FileVault, and click the Recovery Key button — it will display your key. If you are locked out, you cannot retrieve it without resetting your password first through another method.
Do I need to contact Apple to reset my password?
No. You can reset it yourself using any of the methods above. Contact Apple only if you cannot enter Recovery Mode, if a firmware password is blocking access, or if you need help proving ownership of your Mac.