What you need to know about Mac admin passwords
Your Mac administrator password is the one you use to log in to your computer or to approve system changes — installing software, changing network settings, or modifying security features. If you remember it, you do not need to do anything. If you have forgotten it, you have a few paths forward depending on whether you set up a recovery account and whether you have access to the email address tied to your Apple ID.
The fastest route is usually your Apple ID if you set up your Mac with one. The next option is a recovery account you may have created during setup. The slowest but most reliable path is erasing your Mac and starting over, which you can do without knowing the password at all.
Key Takeaways
- If you remember your Apple ID email and password, you can reset your admin password through the login screen without erasing anything.
- A recovery account — a separate admin account created during Mac setup — lets you reset the main password if you remember that account's password.
- If you have neither your Apple ID password nor a recovery account, you will need to erase your Mac and set it up again from scratch.
- You can prevent this situation by writing down your admin password somewhere safe or by setting up a recovery account right after you buy your Mac.
Using your Apple ID to reset the password
If your Mac is connected to the internet and you remember your Apple ID email and password, this is the fastest way. At the login screen, enter your username wrong three times. A message will appear saying you can reset your password using your Apple ID.
Click the arrow or press Enter. You will be asked for your Apple ID email and password. Enter both. Your Mac will send a verification code to a trusted device — usually your iPhone or another Mac. Enter that code, and you will be able to create a new admin password right there on the login screen.
This method works even if you have not used your Apple ID in years. The only requirement is that your Mac was set up with an Apple ID originally, and that you still have access to that email account and can receive codes on a trusted device.
Using a recovery account if you have one
When you first set up your Mac, the system may have offered to create a recovery account — a separate administrator account used only for emergencies like this. If you created one and remember its password, you can use it to reset your main password without touching your Apple ID.
Log in using the recovery account instead of your regular one. Once you are logged in, open System Settings (or System Preferences on older Macs). Go to General, then Users & Groups. Click the lock icon at the bottom left and enter the recovery account password. Find your main account in the list, click it, and select "Reset Password." You will be prompted to create a new password.
The recovery account is useful because it works offline and does not depend on remembering your Apple ID. However, it only exists if you chose to create one during setup — many people skip this step.
Erasing your Mac if you have no other options
If you do not remember your Apple ID password and you did not create a recovery account, you will need to erase your Mac and set it up again. This sounds drastic, but it is straightforward and does not require any password.
Restart your Mac and hold down Command + R as it starts up. This boots into Recovery Mode. From the Utilities menu, select Disk Utility. Select your main drive (usually called "Macintosh HD"), click Erase, and confirm. This wipes everything on your Mac.
After erasing, your Mac will restart and walk you through setup again, just as if it were brand new. You will create a new admin password at that point. This process takes 30 minutes to an hour depending on your Mac's speed and how much data was on it.
Before you do this, make sure you have backups of anything you want to keep. If you have a Time Machine backup, you can restore your files after setup is complete. If you do not have a backup, the data is gone.
Preventing this problem going forward
The easiest way to avoid being locked out is to write your admin password somewhere find — a password manager, a locked drawer, or a trusted person's safe. This takes 30 seconds and saves hours of trouble later.
The second step is to create a recovery account right after you buy your Mac. During initial setup, when asked if you want to create a recovery account, say yes and write down that password too. This gives you a backup path that does not depend on your Apple ID.
If your Mac is already set up, you can still create a recovery account now. Open System Settings, go to General, then Users & Groups. Click the lock and enter your current admin password. Click the plus sign and select "New Account." Choose "Administrator" from the dropdown, give it a name and password, and you are done.
What to do if you are locked out of a work Mac
If this is a Mac provided by your employer, do not try to reset the password yourself. Contact your IT department or help desk instead. Work Macs are often managed by your company's systems, and resetting the password yourself may lock you out of company resources or violate security policy.
Your IT team can reset the password remotely or walk you through the correct process for your company's setup. This usually takes a few hours to a day depending on how busy they are.
Frequently Asked Questions
Can I reset my password if my Mac is not connected to the internet?
Not through your Apple ID — that method requires sending a verification code to another device. A recovery account works offline if you have one. If you have neither, you will need to erase your Mac, which also requires internet to read the latest macOS during setup.
Will resetting my password delete my files?
No. Resetting through your Apple ID or a recovery account leaves all your files untouched. Only the erase-and-setup method deletes everything, and you have to choose that deliberately.
How long does it take to reset my password?
Through your Apple ID or recovery account, it takes about five minutes. Erasing and setting up your Mac takes 30 minutes to an hour depending on your Mac's age and speed, plus however long it takes to restore your files from a backup afterward.
What if I get an error when I try to use my Apple ID?
Make sure your internet connection is working and that you are entering your Apple ID email and password correctly. If you still get an error, try using a recovery account if you have one. If that does not work either, erasing your Mac is your remaining option.
Can someone else reset my Mac password for me?
Only if they have access to your Apple ID account or your recovery account password. If neither exists, they would need to erase your Mac. This is intentional — it prevents someone from taking over your Mac without your permission.