Where your Mac password is stored and why you can't just look it up
Your Mac password is not stored anywhere you can read it back. Apple's operating system encrypts it the moment you create it, which means even Apple cannot tell you what it is. If you have forgotten your password, you cannot retrieve it — you can only reset it to something new.
The method you use to reset it depends on whether you remember your Apple ID password, whether you set up a recovery key, and whether another administrator account exists on your Mac. Each path is different, and some are faster than others.
Key Takeaways
- Your Mac password is encrypted and cannot be retrieved, but it can be reset using your Apple ID password or a recovery key if you set one up.
- If you have another administrator account on the same Mac, that account holder can reset your password without needing your Apple ID.
- If you remember your Apple ID password but not your Mac password, you can reset it from the login screen in about five minutes.
- If you do not remember either password and have no recovery key, you will need to erase your Mac and set it up again, which deletes all files.
Reset your password from the login screen using your Apple ID
This is the fastest method if you can reach the login screen and remember your Apple ID password. At the login screen, click the question mark icon or "Forgot password?" link below the password field. Enter your Apple ID email address when prompted.
macOS will send a verification code to a trusted device — usually your iPhone or another Mac signed into the same Apple ID. Enter that code on your Mac, then create a new password. You can use the Mac when ready after. This process takes about five minutes and does not affect your files.
Use another administrator account to reset the password
If someone else on your household has an administrator account on the same Mac, they can reset your password without needing your Apple ID. Have that person log in with their account, then open System Settings (or System Preferences on older Macs), go to General, and select Users & Groups or Users & Groups.
They should click the lock icon to unlock the settings, click your account name, and select "Reset Password." They can set a temporary password for you, which you can change to something permanent the next time you log in. This method works even if you have never set up an Apple ID on your Mac.
Reset your password using a recovery key
If you created a recovery key when you first set up your Mac or enabled FileVault encryption, you can use that key to reset your password. At the login screen, click "Forgot password?" and select "Use recovery key" instead of entering your Apple ID. Type the recovery key — it is a long string of letters and numbers that you should have written down or saved somewhere safe.
After you enter the recovery key, create a new password. If you cannot find your recovery key, this method will not work, and you will need to use one of the other options.
What to do if you have no Apple ID, no recovery key, and no other administrator
If you cannot remember your password, do not have an Apple ID set up on the Mac, have no recovery key, and no other administrator account exists, you will need to erase the Mac and set it up again. This deletes all files on the computer, so it should be your last resort.
To do this, restart your Mac and hold Command + R to enter Recovery Mode. Open Disk Utility, select your main drive, and click Erase. After the drive is erased, follow the setup process to create a new account and password. You can then restore your files from a Time Machine backup if you have one.
Prevent this from happening again
Once you have reset your password and regained access, take steps to avoid being locked out in the future. Set up an Apple ID on your Mac if you have not already — go to System Settings, click your name at the top, and follow the prompts. Write down or securely save your Apple ID password in a password manager.
If your Mac uses FileVault encryption (which most newer Macs do by default), Apple will offer to create a recovery key. Accept this offer and save the key somewhere you can find it — a physical notebook, a password manager, or a trusted family member. Having a recovery key means you can reset your password even if you forget your Apple ID password.
Frequently Asked Questions
Can I see my password after I reset it?
No. After you create a new password, macOS encrypts it when ready. You can only change it again if you forget it. Write down or save any new password in a password manager like Keychain, 1Password, or Bitwarden so you do not lose it.
What if I do not have access to the email address for my Apple ID?
If you cannot receive the verification code Apple sends, you cannot use the Apple ID method. Try using another administrator account on the Mac instead, or use your recovery key if you have one. If neither option is available, you will need to erase and set up the Mac again.
Will resetting my password delete my files?
No. Resetting your password using your Apple ID, a recovery key, or another administrator account does not delete anything. Only erasing the Mac in Recovery Mode deletes files, and that is only necessary if you have no other way to regain access.
How long does it take to reset a Mac password?
Using your Apple ID takes about five minutes. Using another administrator account takes two to three minutes. Using a recovery key takes about five minutes. Erasing and setting up the Mac takes 30 minutes to an hour, depending on your Mac's speed and how much data you have to restore.
Can I reset my password without restarting my Mac?
Yes, if you can reach the login screen. You do not need to restart. If you are already logged in and want to change your password (not reset a forgotten one), go to System Settings, click your name, and select Password. You will need to enter your current password to change it.