You can reset your Mac password from the lock screen using your Apple ID, a recovery key, or another admin account

When you are locked out of your Mac, you have three main paths forward. The fastest is using your Apple ID — if you have one linked to your account, you can click "Reset Password" on the login screen and follow the prompts to set a new one. If you do not have an Apple ID set up or cannot remember it, you can use a recovery key that was generated when you turned on two-factor authentication. If neither of those works, you can restart your Mac in Recovery Mode and use the Reset Password utility, though this requires knowing your Apple ID or having physical access to your Mac's recovery tools.

The method that works depends on what you set up before you got locked out. This guide walks through each one in order of speed and what you need to have ready.

Key Takeaways

  • If your Mac account is linked to an Apple ID, click "Reset Password" on the login screen and follow the prompts to set a new password using your Apple ID credentials.
  • A recovery key — a 28-character code generated when you turned on two-factor authentication — can reset your password if you saved it somewhere safe.
  • Recovery Mode (accessed by restarting and holding Command-R) lets you use the Reset Password utility, but you will need your Apple ID or a recovery key to complete it.
  • If you have another admin account on the same Mac, you can log in as that user and change the forgotten password from System Settings.

Using your Apple ID to reset from the login screen

This is the fastest method if you remember your Apple ID and password. On the Mac login screen, look for the text "Reset Password" below the password field — it appears after a few failed login attempts, or you can click it directly if it is visible. Click it, then enter your Apple ID email address and the password for that Apple ID account.

Your Mac will send a verification code to a trusted device — usually your iPhone, iPad, or another Mac linked to the same Apple ID. Enter that code on the login screen, then create a new Mac password. You do not need to match your old password; this is a completely new one. Once you set it, you can log in with the new password when ready.

If you do not see "Reset Password" on the login screen, your account may not be linked to an Apple ID. Move to the recovery key method or Recovery Mode instead.

Using a recovery key if you have one saved

When you turned on two-factor authentication for your Apple ID, Apple generated a 28-character recovery key — a string of letters and numbers separated by hyphens, like XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX. If you saved this somewhere (a password manager, a printed document, an email), you can use it to reset your password without needing access to a trusted device.

Click "Reset Password" on the login screen, then select "I do not have access to a trusted device" or a similar option. Enter your Apple ID email and your recovery key. Your Mac will let you set a new password without sending a verification code to another device.

If you did not save your recovery key or do not remember generating one, you likely do not have two-factor authentication turned on. In that case, you will need to use Recovery Mode or another admin account.

Resetting your password in Recovery Mode

Recovery Mode is a special startup state that lets you access Mac tools even when you cannot log in normally. To enter it, shut down your Mac completely, then turn it back on and when ready hold down Command-R (or Command-Option-R for older Macs). Keep holding until you see the Apple logo or a spinning globe. Release the keys and wait for the Recovery window to appear.

Once in Recovery Mode, look for "Reset Password" in the Utilities menu at the top of the screen. Click it, then select your user account from the list. You will be asked to enter your Apple ID and password, or your recovery key if you have one. After you verify your identity, you can create a new password for that account.

If you do not have an Apple ID linked to the account or do not remember your Apple ID password, you cannot complete this step. In that case, you will need to use another admin account on the same Mac, or contact Apple Support for further options.

Using another admin account on the same Mac

If someone else has an admin account on your Mac, they can log in and change your password for you without needing your Apple ID. Have them log in with their own credentials, then open System Settings and go to General > Users & Groups (or System Settings > Users & Groups on older macOS versions).

They should click the lock icon in the bottom left, enter their admin password, then select your account from the list. There will be an option to "Reset Password" or "Change Password" — clicking it lets them set a new password for your account. You can then log in with that new password.

This method works only if the other person has admin privileges. A standard user account cannot change another account's password.

What to do if none of these methods work

If you do not have an Apple ID linked to your account, did not save your recovery key, cannot access Recovery Mode, and have no other admin account on the Mac, you have reached the point where Apple Support is your next step. Contact Apple directly through their website or by phone — they can verify your identity and help you regain access to your Mac, though the process may take longer than the methods above.

Before that call, have your Mac's serial number ready (you can find it by holding Option and clicking the Apple menu, then System Information). You will also need to prove you own the Mac, which usually means having the original receipt or proof of purchase.

How to prevent this from happening again

Set up two-factor authentication on your Apple ID now, while you can still log in. This generates a recovery key that you should write down and store somewhere safe — a password manager, a safe deposit box, or a printed document in a find location. Having that key means you can reset your password from the login screen even if you lose access to your trusted devices.

You can also create a second admin account on your Mac as a backup. If you ever get locked out of your main account, you can log in as the second admin and reset the first account's password. This takes only a few minutes to set up and costs nothing.

Frequently Asked Questions

Can I reset my password if my Mac is not connected to the internet?

No. Resetting your password from the login screen requires your Mac to contact Apple's servers to verify your Apple ID. If you are offline, you will need to use Recovery Mode instead, which also requires internet to verify your identity through your Apple ID.

Will resetting my password delete my files?

No. Resetting your password changes only the password you use to log in. Your files, photos, documents, and everything else on your Mac remain untouched and accessible once you log in with the new password.

What if I do not remember my Apple ID password either?

Go to iforgot.apple.com and enter your Apple ID email address. Apple will send you a link to reset your Apple ID password. Once you have reset that, you can use your Apple ID to reset your Mac password from the login screen or in Recovery Mode.

How long does it take to reset my password in Recovery Mode?

The process itself takes about five to ten minutes once you are in Recovery Mode. The longest part is usually waiting for your Mac to restart and enter Recovery Mode, which can take a few minutes depending on your Mac's age and how full the drive is.

Can I use my iPhone to reset my Mac password?

Not directly. However, if your iPhone is a trusted device linked to your Apple ID, you can use it to receive the verification code that you then enter on your Mac's login screen. Your iPhone does not reset the password itself — it just confirms your identity.