The admin password is stored in your Mac's system, not written down anywhere you can retrieve it
Your Mac's admin password is encrypted in the system and cannot be recovered by looking it up somewhere. If you remember it, you can verify it works by opening System Settings, clicking General, then Users & Groups (or System Settings > General > Login Items on newer macOS versions), and attempting to make a change that requires admin rights. If you do not remember it, you will need to reset it using one of the methods below.
The path to reset depends on whether you set up a recovery key, whether you remember your Apple ID password, and which version of macOS you are running. Each route takes a different amount of time and requires different information.
Key Takeaways
- Your admin password cannot be looked up or retrieved from Apple or your Mac — it can only be reset.
- If you set up a recovery key when you created your account, you can reset your password in about five minutes using that key.
- If you remember your Apple ID password, you can reset your admin password through System Settings without restarting your Mac.
- If you have neither a recovery key nor access to your Apple ID, you will need to restart your Mac into Recovery Mode and erase the account, which takes longer and requires you to set up the account again.
- On newer Macs with Apple silicon, some reset methods are faster than on older Intel-based Macs.
Reset using a recovery key if you have one
A recovery key is a 28-character code you may have saved when you first set up your Mac or enabled two-factor authentication on your Apple ID. If you have this code, you can reset your password without restarting your Mac.
Open System Settings, go to General, then Users & Groups. Click the lock icon in the bottom left and enter any admin password (it does not have to be correct). When the password prompt appears, click "Reset Password" or "Forgot Password?" — the exact wording depends on your macOS version. Select "Use my recovery key" and enter the 28-character code. Create a new admin password and click Reset Password. You will be logged out and can log back in with your new password.
If you cannot find your recovery key, check your email for a message from Apple ID Support sent when you set up two-factor authentication. The subject line usually contains "recovery key" or "security code". If you still cannot locate it, move to the next method.
Reset using your Apple ID password
If you remember the password for the Apple ID linked to your Mac account, you can reset your admin password through System Settings. This method works on macOS Big Sur and newer.
Open System Settings, go to General, then Users & Groups. Click the lock icon and enter any password. When prompted, select "Reset Password" or "Forgot Password?" and choose "Use my Apple ID". Enter your Apple ID email address and password. You may be asked to verify your identity using a trusted device or phone number associated with your Apple ID. Once verified, create a new admin password and click Reset Password.
This process usually takes five to ten minutes. You will remain logged into your Mac and can use your new password when ready. If you have two-factor authentication enabled on your Apple ID, you will need access to a trusted device to complete the verification step.
Reset by restarting into Recovery Mode
If you do not have a recovery key and cannot access your Apple ID, you can reset your password by restarting your Mac into Recovery Mode. This method works on all Macs but takes longer and requires you to set up your account again.
Shut down your Mac completely. If you have an Apple silicon Mac (M1, M2, M3, or newer), press and hold the power button until you see "Loading startup options". If you have an Intel Mac, press and hold Command + R when ready after pressing the power button. Either way, you will see the Recovery Mode menu. Click Utilities in the menu bar, then select Terminal. Type resetpassword and press Enter. A password reset window will open. Select your account from the dropdown, enter a new password, and click Reset Password. Restart your Mac.
After restart, you can log in with your new password. If you were using FileVault encryption, your files remain encrypted and accessible with the new password. This method does not erase your files or applications.
Reset by erasing your account in Recovery Mode
If the password reset utility does not work or you cannot access Recovery Mode, your last option is to erase the account and set it up again. This keeps your files intact but removes all account settings, preferences, and login items.
Restart into Recovery Mode using the steps above. Click Utilities, then Terminal. Type rm /var/db/.AppleSetupDone and press Enter. Restart your Mac. You will see the setup assistant, which will let you create a new account. You can use the same Apple ID or create a new local account. Your existing files will remain in the Users folder and you can access them once you set up the new account.
This method takes 15 to 30 minutes depending on how much data is on your Mac. It is the most time-consuming option but works when other methods fail.
Prevent this problem by saving your recovery key
Once you reset your password and regain access to your Mac, take five minutes to save your recovery key so you do not face this problem again.
Open System Settings, click your Apple ID at the top, then select Password & Security. Scroll down to Account Recovery and click get your free guide. Follow the prompts to generate a recovery key. Write it down on paper or save it in a password manager you trust — do not store it in a note on your Mac, because you will not be able to access it if you forget your password. Keep this key somewhere safe, like a drawer or safe deposit box.
You can also enable a recovery contact — another person with an Apple ID who can help you reset your password if you lose access to your account. This adds a second layer of protection and takes less than a minute to set up.
What to do if you are locked out of your Apple ID too
If you cannot remember your admin password and cannot access your Apple ID, you will need to contact Apple Support. They can verify your identity using your Mac's serial number, proof of purchase, or other account information, and help you regain access to your Apple ID. This process takes longer than the methods above — usually one to three business days — but it is the only option when both passwords are lost.
You can reach Apple Support through apple.com/support, by calling 1-800-MY-APPLE, or by visiting an Apple Store in person. Have your Mac's serial number ready, which you can find in System Settings under General > About.
Frequently Asked Questions
Can I see my admin password if I am already logged in?
No. Passwords are encrypted and cannot be displayed, even if you are logged in as an admin. If you need to verify your password works, try making a change in System Settings that requires admin rights, like adding a new user account or changing the date and time.
What if I reset my password but still cannot log in?
Restart your Mac and try logging in again. If the password still does not work, restart into Recovery Mode and run the password reset utility a second time. If you are still locked out, contact Apple Support — this usually means a deeper system issue that requires professional help.
Will resetting my password erase my files?
No. Resetting your admin password through System Settings, Recovery Mode, or using your Apple ID does not erase any files. Only the account erase method (the last option) removes account settings, but your files remain intact in the Users folder.
Can I reset my password if my Mac is encrypted with FileVault?
Yes. All the methods above work with FileVault encryption. Your files remain encrypted and accessible with your new password. You do not need to disable FileVault or enter a separate encryption key.
How long does password reset usually take?
Using a recovery key or Apple ID takes five to ten minutes. Restarting into Recovery Mode takes 10 to 15 minutes. Erasing your account and setting it up again takes 15 to 30 minutes depending on how much data is on your Mac.