How to Reset Admin Password on Mac
In this article
If you're locked out of your Mac because you forgot the admin password, you can reset it using Apple's built-in recovery tools. The exact steps depend on whether your Mac uses an Apple silicon chip (M1 or newer), an Intel processor, or if you have FileVault enabled. This guide walks you through each method, plus what to do if things go wrong.
What You'll Need
- Your Mac (obviously)
- Access to a Wi-Fi network (for some recovery methods)
- Your Apple ID and password (if you use FileVault or a firmware password)
- Patience – the process can take a few minutes
Step-by-Step
Method 1: Reset via macOS Recovery (Apple Silicon)
- Shut down your Mac completely: click the Apple menu and choose Shut Down, or press and hold the power button until the screen goes dark.
- Press and hold the power button on your Mac. Keep holding it until you see the startup options window – this shows a gear icon labeled Options and your hard drive.
- Click Options, then click Continue. If asked, select a user account (any user) and enter its password. If you don't know any user's password, skip to the troubleshooting section below.
- You'll see the Recovery app window. From the menu bar at the top, click Utilities and choose Terminal.
- In the Terminal window, type exactly:
resetpasswordand press Enter. - A window titled “Reset Password” will appear. Follow the on-screen instructions – you'll be asked to choose the disk (usually “Macintosh HD”) and then the user account whose password you want to reset.
- Enter a new password, verify it, and add a password hint (optional). Click Next or Reset.
- When done, click the Apple menu and choose Restart. Log in with your new password.
Method 2: Reset via macOS Recovery (Intel Mac)
- Shut down your Mac.
- Press the power button to turn it on, then immediately press and hold Command (⌘) + R. Keep holding until you see the Apple logo or a spinning globe.
- If you see a globe, you're in Internet Recovery – you'll need a Wi-Fi connection. Choose your network and wait for the progress bar.
- Once in Recovery, go to Utilities > Terminal (same as above).
- Type
resetpasswordand press Enter. - Follow the same steps as in Method 1 to choose the disk, select the user, and set a new password.
- Restart your Mac and log in with the new password.
Method 3: If FileVault Is Enabled
If FileVault is on (it encrypts your disk), you might be able to reset the password using your Apple ID at the login screen. This only works if you set up “Allow my Apple ID to reset my password” when you enabled FileVault.
- At the login window, after a few failed password attempts, a message may appear: “If you forgot your password, you can reset it using your Apple ID.”
- Click that message, then enter your Apple ID and password.
- Follow the prompts to create a new login password.
- If you don't see this option, you'll need to use Recovery as described above – but note that with FileVault, you may be asked for the password of any known user to unlock the disk. If you don't know any user's password, you'll need to erase the Mac (see Troubleshooting).
Common Mistakes
- Holding the wrong key combo: On Intel Macs, holding Command+R is the most common, but some older models use Option+Command+R (Internet Recovery) or Shift+Option+Command+R (reinstall macOS). If Command+R doesn't work, try the others.
- Letting go too early: On Intel Macs, you must hold Command+R until the Apple logo appears – if you release too soon, it boots normally.
- Typing “resetpassword” incorrectly: It's one word, all lowercase. A space or capital letter will cause a “command not found” error.
- Forgetting to choose the correct disk: If you have multiple volumes, make sure you select the one that contains your user account (usually “Macintosh HD”).
- Assuming the Apple ID method always works: It only works if you enabled that option in FileVault settings beforehand. If you didn't, you must use Recovery.
Tips
- After resetting, immediately create a password hint that you'll remember – but don't make it too obvious (e.g., “my dog's name” is fine, but not your actual dog's name if someone knows it).
- If you reset the password, your keychain (saved passwords for websites, Wi-Fi networks, etc.) may become locked. You'll be asked to enter your old password to unlock it. If you don't remember it, you can create a new keychain – you'll lose saved passwords, but you can re-enter them.
- Consider enabling FileVault after you regain access, but make sure you remember your Apple ID password, as it becomes a backup way to reset your login password.
- If you have multiple admin accounts, you can also reset another admin's password from a different admin account (System Settings > Users & Groups). But this guide is for when you're locked out of all admin accounts.
Troubleshooting
If you don't know any user's password to enter Recovery
On Apple Silicon Macs, you can sometimes skip entering a password by clicking “Forget all passwords?” – but that only works if you have an iCloud recovery key. Otherwise, you'll need to erase the Mac. On Intel Macs, if you can't get past the password prompt in Recovery, you may need to use Internet Recovery (Command+Option+R) and try again – sometimes it asks for a password, sometimes not.
If “resetpassword” doesn't work or says “command not found”
Make sure you're in the Terminal from Recovery, not from the normal desktop. If you're in Recovery and it still fails, you might be in an older version of macOS that uses a different method. For macOS Catalina and earlier, you can sometimes reset the password by selecting the user in the Utilities menu (if available). Or try the “Erase Assistant” method below.
If you can't reset because of FileVault
If FileVault is enabled and you don't know any user's password, the only way to regain access is to erase the Mac. This deletes all data. To do that: boot into Recovery, open Disk Utility, select your startup disk, and click Erase. Then reinstall macOS. After that, you can restore from a Time Machine backup (if you have one) – but you'll need the backup's password if it was encrypted.
If you have a firmware password
If a firmware password is set, you'll be prompted for it when trying to boot into Recovery. If you don't know it, you can't reset the password without contacting Apple Support – they can help if you have proof of purchase.
If the new password doesn't work after restart
Try restarting again. If it still doesn't work, you may have typed it incorrectly during reset. Repeat the process, and be careful with capitalization and special characters. Also, make sure you selected the correct user account.
Frequently Asked Questions
Can I reset the admin password without losing my files?
Yes, in most cases – the reset password process only changes the password, it doesn't delete your data. However, if you have FileVault enabled and you don't know any user's password, you may need to erase the disk, which will delete everything unless you have a backup.
Do I need an Apple ID to reset my Mac password?
Not always. If you use the Recovery method, you don't need an Apple ID unless you have a firmware password or FileVault is set to allow Apple ID reset. If you use the login screen method (FileVault), you do need your Apple ID.
What if I don't have a second admin account?
That's fine – the Recovery method doesn't require a second admin. It lets you reset any user's password directly from the recovery environment.
Will I lose my Keychain passwords after resetting?
Your Keychain (saved passwords) is encrypted with your old password. After reset, you'll be prompted to enter the old password to unlock it. If you don't remember it, you can create a new Keychain, but you'll lose saved passwords and will need to re-enter them for websites, Wi-Fi, etc.
Can I reset the password from another Mac?
No, not directly. You can't remotely change a Mac's password from another device. However, if you have iCloud Keychain and the Mac is online, you might be able to use your Apple ID to reset – but that's not a standard feature. The only official methods are the ones described above.
What if I have an older Mac (pre-2010) with a different recovery method?
Older Intel Macs may use the same Command+R method, but some very old models (like 2009 or earlier) might not support Internet Recovery. In that case, you can use the macOS installation disc that came with the Mac. Insert the disc, restart, hold C to boot from it, then use Utilities > Reset Password.