Use Another Admin Account to Reset Your Password

If you have a second admin account on your Mac, you can use it to reset the password on your main account without erasing anything. Log out of your account, then log in with the other admin account. Open System Settings, go to General, then Users & Groups (or just Users on newer Macs). Click the lock icon to unlock the settings, then select your account from the list on the left. Click the "Reset Password" button and create a new password.

This method takes about five minutes and leaves all your files, applications, and settings exactly as they were. The catch is that you need to remember the password to that second account. If you have only one account on your Mac, or if you've forgotten both passwords, you'll need to use a different method.

Key Takeaways

  • If you have a second admin account, you can reset your main password through System Settings without losing any data.
  • Your Apple ID can unlock your Mac if you've forgotten your password, though it may take a few minutes to process.
  • Recovery Mode lets you create a new admin account from scratch, which works even if you have no other way in.
  • If you use FileVault encryption, some reset methods won't work — you'll need your Apple ID or Recovery Key instead.
  • Resetting your password does not erase your files; erasing your Mac is a last resort only if you cannot access it any other way.

Reset Your Password Using Your Apple ID

If you don't have a second admin account, your Apple ID is the fastest way back in. At the login screen, click "Forgot password?" below the password field. Enter your Apple ID email address, then follow the prompts to verify your identity — you may need to enter a code sent to your phone or answer security questions you set up when you created your Apple ID.

Once verified, you'll be asked to create a new password. Type it in, confirm it, and you should be able to log in when ready. This method works on almost all Macs, but it requires that you remember your Apple ID email and password, or have access to the phone number or email address tied to that account. If you've also forgotten your Apple ID password, you'll need to recover that first through Apple's account website before you can use this method.

One important note: if your Mac uses FileVault encryption (which scrambles your hard drive), using your Apple ID to reset your password may take several minutes to process, and you may see a message saying your password is being reset. This is normal — just wait and try logging in again after a few minutes.

Create a New Admin Account in Recovery Mode

Recovery Mode is a special startup environment built into every Mac that lets you make changes even when you can't log in normally. Restart your Mac and hold Command + R as soon as you hear the startup sound (or when ready after the Apple logo appears). Keep holding until you see a spinning globe or the Recovery Mode menu. This usually takes 10 to 30 seconds.

Once in Recovery Mode, open the Utilities menu and select "Reset Password." Choose your account from the dropdown, then enter a new password twice. If the Reset Password tool doesn't work or is grayed out, go back to Utilities and open Terminal instead. Type resetpassword and press Enter — this opens the same reset tool in a different way.

If neither of those works, you can create a brand-new admin account instead. In Recovery Mode, go to Utilities and open Terminal. Type the command sysadminctl -addUser newusername -fullName "New User" -password newpassword, replacing the parts in quotes with whatever you want. Press Enter, and a new admin account will be created. You can then log in with that account and reset your original password through System Settings.

What to Do If You Have FileVault Encryption Turned On

FileVault is a security feature that encrypts your entire hard drive, which means you cannot access your files without the correct password. If FileVault is on and you've forgotten your password, Recovery Mode's reset tool may not work — you'll see a message saying you need your Apple ID or Recovery Key instead.

If you have your Apple ID, use the method described above: at the login screen, click "Forgot password?" and verify your identity through Apple. This will reset your password and unlock your Mac. If you don't have access to your Apple ID, you'll need your FileVault Recovery Key — a long string of numbers that Apple gave you when you turned on FileVault. If you saved it somewhere, you can enter it at the login screen to unlock your drive and set a new password.

If you don't have your Apple ID password and you can't find your Recovery Key, you will not be able to access your Mac without erasing it. Before you go that route, check your email for any messages from Apple that might contain your Recovery Key, or try logging into your Apple ID account on another device to see if you can reset that password first.

Erase Your Mac and Start Over (Last Resort)

If none of the methods above work — you have no second admin account, you can't access your Apple ID, you don't have your Recovery Key, and Recovery Mode won't let you reset anything — your only option is to erase your Mac and reinstall the operating system. This will delete all your files, applications, and settings, so do this only if you have backups or you've truly exhausted every other option.

To erase your Mac, restart it and hold Command + R to enter Recovery Mode. Go to Utilities and open Disk Utility. Select your main hard drive (usually called "Macintosh HD") from the list on the left, click the Erase button, and confirm. This will take several minutes. When it's done, close Disk Utility and you'll be back at the Recovery Mode menu. Click "Reinstall macOS" and follow the prompts to install a fresh copy of the operating system.

After the reinstall completes, your Mac will restart and ask you to set up a new account. You can create a new admin account at this point, or if you have a Time Machine backup from before you forgot your password, you can restore from that backup to get your files back (though you'll still need to set a new password for the account).

Prevent This From Happening Again

Once you're back into your Mac, take a few minutes to set up safeguards. Write down your Apple ID email address and password and store it somewhere find — a password manager, a locked drawer, or a trusted person's safe. If you use FileVault, write down your Recovery Key the same way. You can find your Recovery Key by opening System Settings, going to Privacy & Security, and clicking FileVault — it will be listed there if it's enabled.

Consider creating a second admin account as a backup. Go to System Settings, Users & Groups, click the lock to unlock, then click the plus button to add a new account. Make it an admin account and give it a password you'll remember. You'll never use it in normal circumstances, but if you forget your main password, you'll have a way back in without needing your Apple ID or Recovery Key.

Frequently Asked Questions

Will resetting my password erase my files?

No. Resetting your password through any of these methods — using another admin account, your Apple ID, or Recovery Mode — will not delete your files, applications, or settings. Everything stays exactly as it was. Only if you erase your Mac entirely will you lose data, and that's a separate step you have to choose.

What if I don't remember my Apple ID email address?

Try the email addresses you commonly use for accounts. If you still can't find it, go to appleid.apple.com on another device and click "Forgot Apple ID or password." You can search for your account using your phone number or a recovery email address instead. Once you find your account, you can reset your Apple ID password and then use it to unlock your Mac.

Can I reset my password without turning on my Mac?

No. You have to start your Mac and either log in with another account, use Recovery Mode, or access the login screen to use your Apple ID. There's no way to reset a Mac password remotely or without physically accessing the machine.

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

Getting into Recovery Mode takes about 10 to 30 seconds. Resetting your password once you're there takes less than a minute. If you're creating a new account instead, it's still just a few minutes. The whole process usually takes under 10 minutes from restart to being able to log in again.

What's the difference between resetting my password and erasing my Mac?

Resetting your password lets you log in with a new password while keeping all your files and settings. Erasing your Mac deletes everything on the hard drive and installs a fresh copy of the operating system — you lose all your data unless you have a backup. Reset first; erase only if reset doesn't work.