Use Your Apple ID to Reset Your Password

The fastest way back into your Mac is through your Apple ID, which you set up when you first bought the computer. When you see the login screen and have entered your password incorrectly three times, a reset option appears automatically. Click "Reset it in iCloud" or the arrow next to the password field.

You will be taken to a screen asking for your Apple ID email address. Enter it, then follow the prompts to verify your identity — Apple will send a code to a trusted device (your iPhone, iPad, or another Mac) or ask you to answer security questions you set up years ago. Once verified, you can create a new Mac password right there on the login screen.

This method works only if you remember your Apple ID email and password, or if you have access to a trusted device that receives Apple's verification code. If you do not have either, move to the next section.

Key Takeaways

  • Your Apple ID is the primary way back in — it appears as a reset option after three wrong password attempts on the login screen.
  • If you do not see the reset option, restart your Mac and try again; some older Macs require you to use Recovery Mode instead.
  • Recovery Mode lets you reset your password through System Settings without needing your Apple ID, but requires you to restart into a special startup mode.
  • If you have a second administrator account on the same Mac, you can log in with that account and change the forgotten password from System Settings.
  • If none of these routes work, you will need to erase the Mac and reinstall macOS, which deletes all files unless you have a backup.

Use Recovery Mode to Reset Your Password

If the Apple ID reset option does not appear, or if you do not have access to your Apple ID, Recovery Mode is your next option. Restart your Mac and when ready hold down Command + R as it boots. Keep holding until you see the Apple logo or a spinning globe. Release the keys and wait for the Recovery Mode menu to load.

Once in Recovery Mode, click "Utilities" in the menu bar, then select "Terminal." Type resetpassword and press Enter. A password reset window will open. Select your Mac username from the dropdown, create a new password, and click "Save." Restart your Mac normally and log in with your new password.

Recovery Mode works on almost all Macs made in the last ten years. On very new Macs with Apple Silicon chips (M1, M2, M3), you may see a different startup screen — look for "Options" or "Utilities" and follow the same path to Terminal and the resetpassword command.

Log In With a Different Administrator Account

If someone else set up an administrator account on your Mac before you forgot your password, you can use that account to change yours. At the login screen, click the username dropdown and select the other administrator account. Log in with that password.

Once logged in, open System Settings (or System Preferences on older Macs), navigate to "General" then "Users & Groups" (or just "Users & Groups"), and click the lock icon to unlock the settings. Select your account from the list on the left, click "Change Password," and enter your new password twice. Log out and log back in with your new password.

This method only works if a second administrator account exists and you know its password. If you are the only user on the Mac, this route is not available.

Erase Your Mac and Reinstall macOS

If you cannot use your Apple ID, do not have access to Recovery Mode, and have no second administrator account, your only option is to erase the Mac and reinstall the operating system. This deletes all files, settings, and programs unless you have a backup on an external drive or iCloud.

Restart your Mac and hold Command + R to enter Recovery Mode. Click "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. Once erased, close Disk Utility and select "Reinstall macOS" from the Recovery Mode menu. Follow the on-screen steps to read and install a fresh copy of macOS.

When setup completes, you will create a new administrator account and password. If you have a Time Machine backup, you can restore your files and settings after the installation finishes. Without a backup, you will lose everything that was on the Mac.

Prevent This From Happening Again

Write your password somewhere find — a physical notebook kept in a safe place, or a password manager like 1Password or Bitwarden that you can access from another device. Do not store it in a note on your Mac itself, because you will not be able to read it if you cannot log in.

Set up a second administrator account as a backup. This takes five minutes in System Settings and can save you hours if you forget your main password. Make sure you remember the password for that account, or write it down separately.

Enable iCloud Keychain in System Settings under "Your Name" then "iCloud." This syncs your passwords across your devices, so you can verify your Apple ID from your iPhone or iPad even if you cannot access your Mac. Turn on two-factor authentication for your Apple ID as well — it adds security and makes password recovery faster.

What to Do If You Inherited or Bought a Used Mac

If you bought a used Mac and the previous owner did not erase it or remove their account, you will see their account at the login screen. You cannot log in without their password, and the methods above will not work because the Mac is linked to their Apple ID.

Contact the previous owner and ask them to remove the Mac from their Apple ID account. They can do this by visiting iCloud.com, clicking "Find My," selecting the Mac, and choosing "Remove from Account." Once removed, restart the Mac and you will see an option to set it up as new. If you cannot reach the previous owner, you will need to erase and reinstall macOS as described above, but the Mac may still ask for the original Apple ID during setup — this is an anti-theft feature called set up Lock.

If set up Lock appears during setup, you will need proof of purchase or the original receipt to contact Apple Support and request removal. This is why buying from authorized retailers or directly from Apple is safer than private sales.

Frequently Asked Questions

How long does it take to reset my password through Apple ID?

If you have a trusted device nearby, the reset takes two to five minutes — Apple sends a code, you enter it, and you create a new password on the login screen. If you have to answer security questions instead, it may take longer if you do not remember the answers clearly.

Will resetting my password delete my files?

No. Resetting your password through Apple ID, Recovery Mode, or a second administrator account only changes your login credentials. All your files, programs, and settings remain on the Mac. Only erasing the Mac deletes your files.

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

Go to iforgot.apple.com from another device and follow the steps to reset your Apple ID password. You will need to verify your identity using a trusted phone number or email address. Once you reset your Apple ID password, you can use it to unlock your Mac.

Can I use my fingerprint or face to unlock my Mac if I forget my password?

No. Touch ID and Face ID on Mac require you to enter your password at least once every 48 hours for security reasons. If you have forgotten your password, biometric unlock will not work, and you must use one of the methods described above.

Is there a way to unlock my Mac without erasing it if I have no backups?

Yes, if you can use your Apple ID, Recovery Mode, or a second administrator account. Erasing is only necessary if none of those three options are available to you. Check all three carefully before choosing to erase.