The fastest way: use your Apple ID
If you remember your Apple ID and password, you can reset your admin password without erasing anything or waiting for support. Restart your Mac and hold Command + Q as soon as you see the login screen. This opens the password reset tool. Enter your Apple ID and password, then create a new admin password. You'll be back at the login screen in a few minutes.
This method works on any Mac running macOS Big Sur or newer. If your Mac is older, you'll see a different screen — skip to the section below about Recovery Mode instead.
Key Takeaways
- Your Apple ID is the fastest reset path if you remember it, and takes about five minutes without erasing your files.
- Recovery Mode lets you reset the password if you don't have your Apple ID, but requires you to restart into a special system area.
- If you have no Apple ID, no recovery key, and no other admin account, you'll need to erase and reinstall macOS.
- Write down your new password somewhere safe after you reset it, because the same situation will happen again if you forget it twice.
Using Recovery Mode if you don't have your Apple ID
Restart your Mac and when ready hold Command + R. Keep holding until you see the Apple logo or a spinning globe. This boots into Recovery Mode, a separate system that lives on your hard drive. When the Recovery utilities window appears, click Utilities in the menu bar, then Terminal.
In the Terminal window, type exactly this: resetpassword and press Enter. A password reset window will open. Select your username from the dropdown, enter a new password twice, and click Reset Password. Close Terminal and restart your Mac normally. You can now log in with the new password.
This method works on Macs from 2012 onward. On very old Macs, the Terminal command may not work — if nothing happens after you type resetpassword, restart and try the Apple ID method instead.
What to do if you have a recovery key but no Apple ID password
A recovery key is a 28-character code that Apple gives you when you set up two-factor authentication. If you have this code but can't remember your Apple ID password, you can use it to reset your account password first, then use your Apple ID to reset your Mac password.
Go to iforgot.apple.com on another device. Enter your Apple ID email, select "I forgot my password," and choose "I have a recovery key" instead of answering security questions. Enter your recovery key, create a new Apple ID password, then return to your Mac and use the Command + Q method at the top of this article.
The nuclear option: erase and reinstall if nothing else works
If you have no Apple ID, no recovery key, and no other admin account on the Mac, the only remaining path is to erase the drive and reinstall macOS. This deletes everything on your Mac, so only do this if you have backups elsewhere or if the Mac is new and empty.
Restart and hold Command + R to enter Recovery Mode. Click Utilities, then Disk Utility. Select your main drive (usually called "Macintosh HD"), click Erase, and confirm. When erasing finishes, close Disk Utility and click "Reinstall macOS." Follow the prompts to read and install a fresh copy of the system. When setup completes, create a new admin account and password.
This process takes 30 minutes to two hours depending on your internet speed and Mac age. You'll need to sign in with your Apple ID during setup, so have that ready.
Preventing this from happening again
The moment you reset your password, open System Settings (or System Preferences on older Macs), click your name at the top, and write down your password somewhere you'll actually remember — a notebook in a drawer, a password manager, or a trusted person who can retrieve it if you forget. Do not store it in a note on the Mac itself, because you won't be able to read it if you're locked out.
Set up two-factor authentication on your Apple ID if you haven't already. Go to appleid.apple.com, sign in, click Security, and follow the prompts. This gives you a recovery key that can save you from the erase-and-reinstall path if you forget your Apple ID password later.
Why your Mac asks for an admin password in the first place
The admin password protects system-level changes — installing software, changing network settings, or accessing files that belong to other users. A standard user account can't make these changes without the admin password, which is why macOS asks for it. This separation keeps one person's mistake or malware from breaking the whole system.
If you share your Mac with others, you can create separate user accounts so each person has their own login. Each account can have its own password, and only admin accounts can install software or change system settings. You manage these accounts in System Settings under General > Users and Groups (or System Preferences > Users and Groups on older Macs).
Frequently Asked Questions
Can I reset the password without restarting my Mac?
No. The password reset tools only work from the login screen or Recovery Mode, both of which require a restart. If you're already logged in and remember your current password, you can change it in System Settings without restarting — but that's a different situation than a forgotten password.
What if I see "This user account is managed by your organization"?
Your Mac is enrolled in a work or school management system. You'll need to contact your IT department or help desk — they control password resets for managed accounts. The methods in this article won't work because the organization's server, not your Mac, holds the authority.
Will resetting my password delete my files?
No, not with the Apple ID or Recovery Mode methods. Both reset only the password and leave your documents, photos, and applications untouched. Only the erase-and-reinstall method deletes everything, and you should only do that if you have no other option.
How long does the Apple ID reset method take?
About five minutes from restart to login. The Command + Q screen appears within 30 seconds, and the password reset itself takes two to three minutes. Recovery Mode is slower — usually 10 to 15 minutes — because your Mac has to load a separate system first.
What if my Mac is too old to use Command + Q?
Macs older than Big Sur (released 2020) don't have the Command + Q shortcut. Use Recovery Mode and the Terminal resetpassword command instead. If that doesn't work, your Mac is likely older than 2012, and you'll need to erase and reinstall.