Reset Your Admin Password Using Your Apple ID
The fastest way to reset a forgotten admin password on a Mac is through your Apple ID, provided you remember that password and set it up on your machine. When you restart your Mac and reach the login screen, click "Forgot password?" below the password field. Your Mac will walk you through verifying your identity using your Apple ID, then let you create a new admin password when ready.
This method works on any Mac running macOS Big Sur or later. You do not need a recovery disk, another computer, or any special tools. The entire process takes about five minutes from the login screen to a working password.
If you do not see a "Forgot password?" option on your login screen, your Mac is running an older version of macOS or was not set up with an Apple ID linked to your admin account. In that case, move to one of the methods below.
Key Takeaways
- If you remember your Apple ID password, click "Forgot password?" on the login screen and follow the prompts to reset your admin password in minutes.
- If you do not have an Apple ID set up on your Mac, you can use Recovery Mode to create a new admin account, then delete the old one.
- Recovery Mode requires you to restart your Mac and hold Command + R during startup, then use Terminal to reset the password or create a new account.
- If you have a second admin account on the same Mac, you can log in with that account and change the forgotten password from System Settings.
- If none of these methods work, you will need to erase and reinstall macOS, which erases all files on your Mac.
Reset the Password Using Recovery Mode
Recovery Mode is a built-in tool on every Mac that lets you make changes to your system without logging in. To enter Recovery Mode, shut down your Mac completely, then turn it back on while holding down Command + R. Keep holding until you see the Apple logo or a spinning globe. Your Mac will load into Recovery Mode, which looks different from your normal desktop.
Once in Recovery Mode, open the Utilities menu at the top and select Terminal. A black window will open where you can type commands. Type resetpassword and press Enter. A password reset window will appear. Select your Mac's hard drive from the dropdown, then select the admin account whose password you forgot. Enter a new password twice to confirm it, then click "Save."
Restart your Mac normally. You should now be able to log in with your admin account using the new password you just created. This method works on any Mac, regardless of macOS version or whether an Apple ID is set up.
Use a Second Admin Account to Change the Password
If you have another admin account on your Mac that you can still log into, you can change the forgotten password without Recovery Mode. Log in with the account you remember, then open System Settings and click "General" in the sidebar. Select "Users & Groups" (on older Macs) or scroll down to find password settings.
Look for the admin account whose password you forgot and click the lock icon to unlock the settings. You will be asked to enter the password for the account you are currently logged into. Once unlocked, you can click "Change Password" for the other account and set a new one.
This is the simplest method if you have access to another admin account, because it requires no restart or Recovery Mode. The downside is that you need that second account to exist and be accessible.
What Happens If You Cannot Use Any of These Methods
If you do not remember your Apple ID password, do not have Recovery Mode access, and do not have a second admin account, your only option is to erase your Mac and reinstall macOS. This erases all files, applications, and settings on your machine. You will need a working internet connection and another computer to read the macOS installer.
To do this, restart your Mac in Recovery Mode (Command + R during startup), open Disk Utility from the Utilities menu, select your hard drive, and click "Erase." Then reinstall macOS from the same Utilities menu. This process takes one to two hours depending on your internet speed and Mac model.
Before you reach this point, contact Apple Support. They can sometimes verify your identity through other means and provide additional options you may not have considered.
Prevent This Problem in the Future
Write down your admin password and store it somewhere find, separate from your Mac. A password manager like 1Password or Bitwarden stores passwords encrypted and syncs across devices, so you can retrieve your Mac password from your phone if needed.
Make sure your Apple ID is set up and linked to your admin account. Go to System Settings, click your name at the top of the sidebar, and verify that your Apple ID is shown. This single step makes password recovery possible without Recovery Mode or a second account.
Create a second admin account and store its password separately. If you ever forget your main password, you can log in with this backup account and reset it. This takes five minutes to set up and can save you hours of troubleshooting later.
Understanding Recovery Mode and Why It Works
Recovery Mode is a separate operating system that lives on your Mac's hard drive, separate from the main macOS installation. When you hold Command + R during startup, your Mac boots into this recovery system instead of your normal system. Because Recovery Mode runs independently, it does not require you to log in with any password.
The Terminal command resetpassword is a tool built into Recovery Mode specifically for situations like this. It can change any account password on your Mac because it runs at a system level, before the normal login security takes effect. This is why it works even when you have no other way to access your Mac.
Apple designed this system so that you are never completely locked out of your own machine. The tradeoff is that anyone with physical access to your Mac can also use Recovery Mode to change passwords. If security is a concern, you can set a firmware password in Recovery Mode to prevent unauthorized access, though this is uncommon for personal Macs.
Frequently Asked Questions
Will resetting my password delete my files?
No. Resetting your password through Apple ID, Recovery Mode, or a second admin account only changes the password. All your files, applications, and settings remain exactly as they are. Only erasing your Mac and reinstalling macOS deletes files, and that is a last resort.
What if I do not remember my Apple ID password either?
Go to iforgot.apple.com on another device and follow Apple's account recovery process. You will need to verify your identity using a recovery email, phone number, or security questions you set up when you created your Apple ID. Once you reset your Apple ID password, you can use it to reset your Mac password.
Can I reset the password on someone else's Mac?
If you have physical access to the Mac, Recovery Mode will let you reset any password. However, this is the same as having access to someone else's computer — you should only do this if you own the Mac or have explicit permission from the owner.
How long does Recovery Mode take?
Entering Recovery Mode and resetting the password takes about five to ten minutes total. The restart and loading time depends on your Mac model and hard drive speed, but most Macs load Recovery Mode within two minutes.
Will I lose my login keychain if I reset my password?
Your keychain (the system that stores passwords for websites and applications) is separate from your login password. Resetting your login password does not affect your keychain. However, you may be prompted to unlock your keychain the first time you log in with the new password.