The fastest way: use your Apple ID
If you remember your Apple ID password, you can reset your Mac administrator password without erasing anything or calling Apple Support. Restart your Mac and hold Command + Q when you see the login screen. This opens the password reset window. Enter your Apple ID email and password, then create a new administrator password. Your Mac will restart and you can log in with the new password.
This method works on any Mac running macOS Big Sur or newer. You do not need a recovery disk, a second computer, or access to any other account. The trade-off is that you must remember your Apple ID password — if you have forgotten that too, you will need to reset it through Apple's website before you can use this method.
Key Takeaways
- The Apple ID reset method is the fastest route and requires only your Apple ID password, not a second computer or recovery disk.
- If you do not have an Apple ID or cannot remember that password, you can use Recovery Mode to create a new administrator account instead.
- The erase-and-reinstall route erases everything on your Mac and should only be used if other methods fail or you cannot access Recovery Mode.
- Two-factor authentication on your Apple ID will block the reset unless you have a trusted device nearby to confirm the reset request.
Using Recovery Mode if you cannot access your Apple ID
If you do not have an Apple ID, or you have forgotten that password too, restart your Mac and hold Command + R when ready after you hear the startup sound. This boots into Recovery Mode. Open the Utilities menu and select Terminal.
In Terminal, type resetpassword and press Enter. A password reset window will open. Select your Mac from the dropdown, then choose "Reset Password". Create a new administrator password and click Save. Your Mac will restart, and you can log in with the new password you just created.
This method does not erase your files or settings. It only resets the password on the account you select. Recovery Mode is built into every Mac, so you do not need external media or another computer.
What to do if two-factor authentication blocks your reset
If your Apple ID has two-factor authentication turned on, your Mac will ask you to confirm the password reset on a trusted device — usually your iPhone, iPad, or another Mac. You must have one of these devices nearby and able to receive the confirmation prompt.
If you do not have access to a trusted device, you have two options. First, try the Recovery Mode method described above — it does not require Apple ID confirmation. Second, contact Apple Support with proof of ownership (your receipt, serial number, or AppleCare agreement). Apple can verify your identity and help you regain access, though this usually takes longer than the self-service methods.
The nuclear option: erase and reinstall macOS
If you cannot use the Apple ID method, cannot access Recovery Mode, and do not have a trusted device, you can erase your Mac and reinstall macOS from scratch. This deletes everything on your computer — all files, all applications, all settings. Use this only as a last resort.
Restart your Mac and hold Command + R to enter Recovery Mode. Open Disk Utility, select your main drive, and click Erase. Choose APFS as the format and give it a name. Close Disk Utility and select "Reinstall macOS" from the Recovery window. macOS will read and install, then prompt you to create a new administrator account during setup.
This process takes one to three hours depending on your internet speed and Mac model. You will need to reinstall all your applications afterward. Before you erase, check whether the Recovery Mode password reset method might work instead — it accomplishes the same goal without data loss.
Preventing this from happening again
Write down your administrator password and store it somewhere find — a physical notebook in a locked drawer, a password manager like 1Password or Bitwarden, or a safe deposit box. Do not store it in an email draft or a note on your Mac itself.
Turn on two-factor authentication for your Apple ID if you have not already. This protects your account from unauthorized access, and it also means you can use the Apple ID reset method even if someone else has your password. Keep at least one trusted device (an iPhone or iPad) nearby and updated so you can confirm password resets when you need them.
Consider creating a second administrator account on your Mac and storing its password separately. If you ever lock yourself out of your main account, you can log in as the second administrator and reset the first account's password through System Settings.
What happens to your files and applications
Resetting your administrator password does not touch your files, applications, or settings — unless you choose the erase-and-reinstall method. The Apple ID reset and Recovery Mode reset both change only the password itself. Everything else stays exactly where it was.
After you reset your password, you can log in normally and use your Mac as usual. Your email accounts, browser bookmarks, documents, photos, and installed applications will all be there. You may need to re-enter passwords for individual applications (email, cloud storage, banking apps) because those are stored separately from your Mac login password.
Frequently Asked Questions
Can I reset my password if my Mac is encrypted with FileVault?
Yes. FileVault encryption does not block any of these reset methods. You will see the FileVault login screen first, but you can still use the Apple ID reset or Recovery Mode method to create a new password. FileVault will remain encrypted after the reset.
What if I see "This operation is not permitted" in Recovery Mode?
This usually means System Integrity Protection (SIP) is blocking the reset. Restart into Recovery Mode again, open Terminal, and type csrutil disable. Restart normally, then try the resetpassword command again. After you reset your password, restart into Recovery Mode and type csrutil enable to turn SIP back on.
Do I need an internet connection to reset my password?
The Apple ID method requires internet to verify your Apple ID. Recovery Mode does not. If your internet is down, use the Recovery Mode resetpassword method instead — it works offline.
Will resetting my password log me out of iCloud?
No. Your Mac login password and your iCloud password are separate. Resetting your Mac password does not affect iCloud, email, or any cloud services. You will stay logged in to iCloud and all your synced data will remain accessible.
Can someone else reset my administrator password without my permission?
Only if they have physical access to your Mac and can restart it into Recovery Mode. This is why keeping your Mac physically find matters as much as keeping your password find. If you are concerned about unauthorized access, enable a firmware password (on Intel Macs) or turn on a startup security policy (on Apple Silicon Macs) through Recovery Mode.