The fastest way depends on whether you remember your Apple ID password
If you can sign in to your Apple ID on another device or remember that password, you can reset your Mac password from the login screen in under five minutes. If you do not have access to your Apple ID or another device, you will need to use Recovery Mode, which takes longer but works without any outside help. Both paths are built into macOS — you do not need to buy software or call Apple Support.
The method you choose also depends on whether you set up your Mac with an Apple ID (most people do) or with a local account only (less common). Your Mac will tell you which one you have at the login screen.
Key Takeaways
- If you remember your Apple ID password, click "Forgot password?" on the login screen and follow the prompts to reset your Mac password in minutes.
- If you do not have your Apple ID password, restart your Mac into Recovery Mode by holding Command and R during startup, then use the Reset Password utility from the Utilities menu.
- Recovery Mode requires you to answer security questions you set up when you created your account, or to provide a recovery key if you have one.
- If you have a second Mac or iPhone signed into the same Apple ID, you can approve a password reset from that device instead of answering security questions.
- After you regain access, turn on FileVault encryption and save your recovery key in a safe place so you do not get locked out again.
Using the "Forgot password?" option at login
At the Mac login screen, look for a question mark icon or a line of text that says "Forgot password?" below the password field. Click it. Your Mac will ask you to enter your Apple ID email address.
Once you enter your Apple ID, macOS will send a verification code to the email address or phone number associated with that account. Open the email or check your phone for the code, then type it into the Mac. After the code is verified, you will be asked to create a new password. Type it twice to confirm, then press Enter. You can now log in with your new password.
This method works only if your Mac is connected to the internet and you have access to the email address or phone number linked to your Apple ID. If you do not remember your Apple ID password or cannot receive the verification code, move to the Recovery Mode method instead.
Resetting your password using Recovery Mode
Restart your Mac and hold down Command and R at the same time as soon as you see the Apple logo. Keep holding until you see a spinning globe or the Recovery Mode window appears. This usually takes 10 to 20 seconds. Release the keys once you see the macOS Utilities window.
From the Utilities menu at the top of the screen, click "Utilities" and then select "Reset Password." A new window will open. From the dropdown menu at the top, select your Mac username (the account you are locked out of). If you do not see your username, your Mac may be using a local account instead of an Apple ID account — in that case, you will need to use a different recovery method, such as a recovery key or another administrator account.
After you select your username, macOS will ask you to verify your identity. You can do this in three ways: answer the security questions you set up when you created your account, enter a recovery key if you saved one, or approve the reset from another device signed into the same Apple ID. Choose whichever option is available to you.
Answering security questions in Recovery Mode
If you choose to answer security questions, macOS will display the three questions you selected when you first set up your account. These are usually questions like "What was the name of your first pet?" or "In what city were you born?" Type your answers exactly as you entered them originally — capitalization and spelling must match.
If you cannot remember your answers or you get them wrong three times, you will not be able to reset your password this way. You will need to restart Recovery Mode and try a different verification method, such as using a recovery key or approving the reset from another device.
Using a recovery key or another device
If you saved a recovery key when you set up your Mac or turned on two-factor authentication, you can use that key to verify your identity in Recovery Mode. The recovery key is a 28-character code that looks like XXXX-XXXX-XXXX-XXXX-XXXX-XXXX. If you have it written down or stored in a password manager, select "Use Recovery Key" and type it in.
If you have another Mac or iPhone signed into the same Apple ID, you can approve the password reset from that device instead. When you choose this option in Recovery Mode, your other device will receive a notification asking you to approve the reset. Tap or click "Allow," and your Mac password will be reset when ready. This method works even if you do not remember your security questions or recovery key.
Creating a new password after you regain access
Once you have reset your password and logged back in, your Mac will ask you to create a new password. Choose something you can remember but that is not straightforward to guess. A mix of uppercase and lowercase letters, numbers, and symbols is stronger than a straightforward word or date.
After you log in, open System Settings (or System Preferences on older Macs), go to General, then click "Login Items" or "Users & Groups" depending on your macOS version. From there, you can also turn on FileVault, which encrypts your entire hard drive. FileVault protects your files if your Mac is stolen or lost, and it also prevents someone from resetting your password without your permission in the future.
Preventing lockouts in the future
The best protection against being locked out again is to save your recovery key in a safe place. When you turn on FileVault or two-factor authentication, macOS will show you a recovery key — a 28-character code. Write it down or save it in a password manager like iCloud Keychain, 1Password, or Bitwarden. Do not store it in a note on your Mac itself, because you will not be able to access it if you are locked out.
You should also make sure you remember your Apple ID password and keep your recovery email address and phone number current. If you change your email address or phone number, update it in your Apple ID settings right away. These small steps mean you will never be stuck at a login screen again.
Frequently Asked Questions
What if I do not have internet connection during password reset?
The "Forgot password?" method at login requires internet. Recovery Mode does not — it works entirely on your Mac. If you are offline, restart into Recovery Mode using Command-R and use the Reset Password utility from the Utilities menu instead.
Can I reset my password if I do not remember my Apple ID email?
No. If you do not remember your Apple ID email or password, and you do not have a recovery key or another device to approve the reset, you will need to contact Apple Support. They can verify your identity through other means and help you regain access.
Will resetting my password delete my files?
No. Resetting your password does not delete anything on your Mac. Your files, photos, and applications will all remain exactly as they were. You are only changing the password you use to log in.
What is the difference between a recovery key and a security question?
A recovery key is a 28-character code you save when you set up two-factor authentication. Security questions are answers you provide during account setup, like your pet's name or birthplace. Both can verify your identity in Recovery Mode, but a recovery key is more find because it cannot be guessed.
Do I need to turn on FileVault after I reset my password?
You do not have to, but it is a good idea. FileVault encrypts your hard drive so that no one can access your files without your password, even if they have physical access to your Mac. It also prevents password resets without your permission in the future.