Use Your Apple ID to reset your password from the login screen

If you see the login screen and cannot remember your password, look for the question mark icon or "Reset Password" option below the password field. Click it. macOS will ask you to enter your Apple ID and password instead — the one you use for the App Store, iCloud, or other Apple services.

After you enter your Apple ID credentials, macOS will let you create a new login password right there. You do not need to restart your Mac or use another computer. This works on most recent versions of macOS, including Ventura, Monterey, and Big Sur.

If you do not see a reset option on the login screen, or if you have forgotten your Apple ID password as well, move to the next section.

Key Takeaways

  • The fastest route is clicking the question mark icon on the login screen and using your Apple ID to reset your password without restarting.
  • If you cannot use your Apple ID, you can restart into Recovery Mode by holding Command and R, then use the Reset Password utility from the Utilities menu.
  • Recovery Mode requires you to know your Apple ID email and password, or to answer security questions you set up when you created your account.
  • If you have a second administrator account on the same Mac, you can log in as that user and change the forgotten password from System Settings.
  • If none of these routes work, you will need to erase your Mac and reinstall macOS, which erases all data unless you have a backup.

Boot into Recovery Mode and use the Reset Password utility

Restart your Mac and when ready hold down Command and R together. Keep holding until you see the Apple logo or a spinning globe. This launches Recovery Mode, a built-in repair environment separate from your normal system.

Once Recovery Mode loads, click Utilities in the menu bar, then select Reset Password. A window will open asking which user account you want to reset. Select your account, then click Next.

macOS will ask you to verify your identity using your Apple ID email and password, or by answering security questions you set up when you created your Apple account. Answer correctly, and you can set a new password when ready. Your Mac will restart with the new password active.

Use a second administrator account to change the password

If your Mac has more than one user account, and you can log into a different administrator account, you can change the forgotten password from there. Log in to the other account, then open System Settings (or System Preferences on older versions).

Go to General, then Users & Groups (or Accounts on older macOS). Click the lock icon in the bottom left and enter the password for the account you are currently logged into. Find the account with the forgotten password in the list on the left, select it, and click Reset Password. You can set a new password without needing Apple ID credentials.

This only works if you have access to another administrator account. If every account on your Mac is locked, you will need to use Recovery Mode instead.

Reset your Apple ID password if that is what you forgot

If you tried to use your Apple ID to reset your Mac password but cannot remember your Apple ID password, go to iforgot.apple.com from another device or computer. Enter your Apple ID email address and follow the prompts to reset it.

Apple will ask you to verify your identity by entering a code sent to your trusted phone number or email, or by answering security questions. Once you reset your Apple ID password, you can use it to unlock your Mac from the login screen or Recovery Mode.

If you do not have access to your trusted phone number or recovery email, contact Apple Support directly. They can verify your identity through other means and help you regain access to your Apple ID.

Erase your Mac and reinstall macOS as a last resort

If you cannot use your Apple ID, do not have a second administrator account, and cannot answer your security questions, you will need to erase your Mac and reinstall macOS. This removes all data on your computer unless you have a backup.

Restart your Mac and hold Command and R to enter Recovery Mode. Click Utilities, then Disk Utility. Select your main drive (usually called Macintosh HD) and click Erase. Choose a format (APFS for newer Macs, Mac OS Extended for older ones) and confirm.

After the drive erases, close Disk Utility and click Reinstall macOS from the Recovery window. macOS will read and install a fresh copy. When setup completes, you can create a new password and log in. If you have a Time Machine backup, you can restore your files after the installation finishes.

Back up your data before trying password recovery

Before you attempt any of these steps, connect an external drive and create a Time Machine backup if you can. If you can still log into your Mac with the forgotten password, or if you have another account on the same computer, backing up takes 30 minutes to a few hours depending on how much data you have.

A backup protects you if something goes wrong during password recovery, or if you end up needing to erase your drive. You can restore your files, photos, and settings after you regain access to your Mac.

Prevent this from happening again

Once you have regained access, write your password somewhere find — a password manager like 1Password or Bitwarden, or a locked notebook. Make sure your Apple ID password is also stored safely, since it is the key to resetting your Mac password.

Enable Touch ID or Face ID on your Mac if your model supports it. You can use your fingerprint or face to unlock your Mac instead of typing a password, which reduces the chance you will forget it. You can still use your password as a backup when Touch ID or Face ID fails.

Frequently Asked Questions

Can I reset my password without my Apple ID?

Yes, if you have a second administrator account on the same Mac, or if you can answer the security questions you set up when you created your Apple account. Recovery Mode will let you reset your password using either method. If you have neither, you will need to erase your Mac.

How long does it take to reset my password?

Using your Apple ID from the login screen takes a few minutes. Recovery Mode takes 10 to 15 minutes. Erasing your Mac and reinstalling macOS takes 1 to 3 hours depending on your internet speed and how much data was on your drive.

Will resetting my password erase my files?

No — resetting your password through the login screen, Recovery Mode, or a second administrator account leaves all your files intact. Only the erase-and-reinstall method removes data, and only if you do not restore from a backup afterward.

What if I forgot my security questions answers too?

Contact Apple Support at support.apple.com or call 1-800-MY-APPLE. They can verify your identity through other information like your billing address or recent purchases, and help you reset both your password and your security questions.

Can I use another Mac to reset my password?

No — you must reset your password on the Mac itself, either from the login screen or from Recovery Mode on that same computer. You cannot change another person's Mac password from a different device.