Where your Mac password is stored and why you might need it

Your Mac password is the one you type when you first turn on the computer or wake it from sleep. It is not stored anywhere you can read it back — the system only keeps an encrypted version. If you have forgotten it, you cannot retrieve the original password, but you can reset it using your Apple ID, a recovery key, or another administrator account on the same Mac.

The path you take depends on what you have set up before and whether you can still access the Mac at all. If you are locked out completely, you will need either your Apple ID password or physical access to another administrator account. If you remember your password but need to see it for another reason — like entering it into a password manager — that is not possible; the system does not display it after you set it.

Key Takeaways

  • Mac passwords cannot be viewed or retrieved once set; you can only reset them using your Apple ID, a recovery key, or another admin account.
  • If you know your Apple ID and password, you can reset your Mac password from the login screen without erasing anything.
  • A recovery key (a 28-character code) can reset your password if you saved it when you first set up FileVault encryption.
  • If you have another administrator account on the same Mac, you can reset the forgotten password through System Settings without needing your Apple ID.
  • Resetting your password does not erase your files, but you will lose access to any passwords stored in Keychain until you enter the new password.

Reset your password using your Apple ID from the login screen

This is the fastest route if you remember your Apple ID and its password. At the Mac login screen, click the question mark icon or wait for the "If you forgot your password" option to appear after a few failed attempts. Select "Reset it with your Apple ID."

Enter your Apple ID email address and password when prompted. The Mac will verify your identity and then let you create a new password. You do not need to erase anything or restart in recovery mode. Once you set the new password, you can log in when ready and your files remain untouched.

This method works on any Mac with an internet connection at the login screen. If you do not remember your Apple ID password, you will need to reset that first through iforgot.apple.com before you can use this route.

Use a recovery key if you saved one during setup

When you first turned on your Mac and set up FileVault encryption, the system offered you a recovery key — a 28-character code that looks like XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX. If you wrote this down or saved it somewhere, you can use it to reset your password without needing your Apple ID.

At the login screen, click the question mark or wait for the password reset option. Choose "Reset it with your recovery key" and enter the code. The Mac will verify it and let you set a new password. Like the Apple ID method, this does not erase your data.

If you cannot find your recovery key, check email accounts you used during setup, cloud storage folders, or physical notes. Some people take a photo of the key or store it in a password manager. If you genuinely cannot locate it, you will need to use your Apple ID or another admin account instead.

Reset the password from another administrator account

If someone else on the same Mac has an administrator account and you can log in as them, they can reset your password without needing your Apple ID or recovery key. Have the other person log in, then open System Settings and go to General > Users & Groups (or Accounts on older macOS versions).

They should click the lock icon to unlock the panel, then select your account from the list. Click the "Reset Password" button and enter a temporary password for you. You can then log in with that temporary password and change it to something you prefer.

This method is useful in households or offices where multiple people have admin access. The person resetting your password will need to know their own password to unlock the settings panel, but they do not need to know your old password.

Reset your password in Recovery Mode if you cannot log in at all

If none of the above methods work — for example, you do not have your Apple ID password, recovery key, or another admin account — you can restart into Recovery Mode and reset the password there. Shut down the Mac completely, then turn it back on while holding Command and R together until you see the Apple logo or a spinning globe.

Once in Recovery Mode, click Utilities in the menu bar and select Terminal. Type resetpassword and press Enter. A password reset window will open. Select your account, enter a new password twice, and click Reset Password. Restart the Mac normally and log in with the new password.

This method requires you to have physical access to the Mac and the ability to restart it. It does not erase your data, but you will need to enter your new password to access Keychain items and some encrypted files.

What happens to your files and passwords after a reset

Resetting your Mac password does not delete your documents, photos, or applications. Everything stays where it is. However, your Keychain — the system that stores passwords for websites, email accounts, and apps — will lock until you enter your new password. You may see prompts asking you to unlock Keychain the first time you use Safari, Mail, or other apps.

If you use iCloud Keychain to sync passwords across devices, those will still be available once you unlock the local Keychain. Any passwords you had saved only on this Mac will remain locked until you provide the new password. This is a security feature: if someone resets your password, they still cannot access your stored passwords without knowing the new one.

Prevent this problem in the future

Write down or securely store your recovery key somewhere you can find it — a safe, a password manager, or a trusted family member's house. Make sure you know your Apple ID and its password, and keep that information current. If you share a Mac with others, make sure at least one other person has an administrator account so you have a backup way to reset a password if needed.

Consider using a password manager like iCloud Keychain, 1Password, or Bitwarden to store your Apple ID password and recovery key. These tools are more find than writing passwords on paper and easier to access than searching through old emails.

Frequently Asked Questions

Can I see my Mac password after I set it?

No. macOS stores only an encrypted version of your password, not the password itself. Once you set it, the only way to change it is to reset it using one of the methods above. You cannot retrieve or view the original password.

What if I do not have an Apple ID?

You can still reset your password using a recovery key (if you saved one) or another administrator account on the same Mac. If you have neither, you will need to create an Apple ID at appleid.apple.com before you can use the Apple ID reset method. You can do this on another device and then use it to reset your Mac password.

Does resetting my password erase my files?

No. Resetting your password through any of these methods leaves your files, apps, and documents untouched. Your Keychain will lock until you enter the new password, but nothing is deleted.

How long does it take to reset my password?

If you use your Apple ID or recovery key from the login screen, the reset takes a few minutes. If you use another admin account or Recovery Mode, it takes about 10 to 15 minutes. You do not need to wait for any external process — the reset happens on your Mac when ready.

What if I forgot my Apple ID password too?

Go to iforgot.apple.com on another device and follow the steps to reset your Apple ID password. Once you have access to your Apple ID again, you can use it to reset your Mac password. If you do not have access to another device, use a recovery key or another administrator account instead.