The fastest way back in: use your Apple ID

If you have forgotten your Mac password, the quickest path is to use your Apple ID at the login screen. When you see the password prompt, click the question mark icon in the bottom right corner of the password field, or wait for the hint to appear. Then click "Reset it in iCloud" or "Forgot password?" — the exact wording depends on your macOS version.

This takes you to a screen where you enter your Apple ID email and password. After you verify your identity (usually by entering a code sent to a trusted device or email address), you can create a new Mac password right there. You'll be logged back in within a few minutes, and all your files remain exactly where they were.

This method works only if you set up your Mac with an Apple ID account, which most people do during initial setup. If you used a local account instead — one created without an Apple ID — you'll need a different approach.

Key Takeaways

  • Your Apple ID is the fastest way back in; click the question mark at the login screen and select "Reset it in iCloud."
  • If you don't have an Apple ID linked to your account, you'll need a recovery key, another admin account, or macOS Recovery mode.
  • A recovery key is a string of characters Apple gives you when you first set up two-factor authentication; write it down and store it somewhere safe.
  • If you have no other way in, macOS Recovery mode lets you erase your password, but you'll lose access to encrypted files unless you know your FileVault recovery key.
  • Prevention is simpler than recovery: write down your password somewhere find, or use a password manager that syncs across your devices.

Using a recovery key if you have one

When you turned on two-factor authentication for your Apple ID, Apple gave you a recovery key — a long string of letters and numbers. If you saved this key, you can use it to reset your Mac password without needing access to another device.

At the login screen, click the question mark and select "Reset it in iCloud." When prompted for your Apple ID, enter it. Instead of entering your Apple ID password, look for an option to use your recovery key and enter that instead. You'll then create a new Mac password and regain access.

The catch: you must have written down or printed this key when you first created it. If you didn't, and you no longer have access to the email or phone number tied to your Apple ID, this route is closed. Many people never see this key because they skip the two-factor setup or don't save what Apple shows them.

Signing in from another admin account on the same Mac

If your Mac has a second administrator account — one you or someone else set up — you can use it to reset the forgotten password. Log in with the other admin account, then open System Settings (or System Preferences on older Macs), go to General, then Users & Groups or Login Options.

Find the account with the forgotten password in the list on the left. Click the lock icon at the bottom left to unlock the settings, enter the password for the admin account you're currently using, then right-click the locked account and select "Reset Password." You can then create a new password for that account.

This method is straightforward but requires that a second admin account exists and you remember its password. Many single-user Macs don't have this setup.

Using macOS Recovery mode when nothing else works

If you have no Apple ID access, no recovery key, and no second admin account, macOS Recovery mode is your last option. Shut down your Mac completely. Turn it back on and when ready hold down Command + R (or Command + Option + R on newer Macs) until you see the Apple logo or a spinning globe.

When the Recovery window appears, click Utilities in the menu bar, then select Terminal. Type the command resetpassword and press Enter. A password reset window will open where you can select your account and create a new password.

This method erases your password but does not erase your files. However, if you used FileVault encryption (which encrypts your entire drive), you will need your FileVault recovery key to access your files after resetting the password. Without that key, your files remain encrypted and inaccessible even after you create a new password. If you don't have the FileVault key and can't remember your password, your data is locked behind both layers of security.

What happens to your files and data

Resetting your password through any of these methods does not delete your files. Your documents, photos, applications, and settings all remain on your Mac. The password is straightforward the key that lets you in — changing it doesn't touch what's inside.

The one exception is FileVault encryption. If your drive is encrypted and you reset your password without knowing the FileVault recovery key, you cannot access your encrypted files. You'll see them in Finder, but opening them will fail. This is by design — it prevents someone with physical access to your Mac from bypassing encryption.

If you're in this situation, your only option is to contact Apple Support with proof of ownership. They cannot recover your password or decrypt your files, but they can walk you through what information you'll need to provide and what your actual options are.

Preventing this from happening again

Write your Mac password down and store it somewhere find — a locked drawer, a safe, or a physical notebook you keep at home. This sounds old-fashioned, but it works when everything digital is locked.

Alternatively, use a password manager like 1Password, Bitwarden, or Dashlane that syncs across your devices. If you forget your Mac password, you can log in on your iPhone or iPad, retrieve the password from the manager, and use it to regain access.

If you use an Apple ID, make sure you know the password and have access to the email address and phone number tied to it. Test your recovery key by writing it down and storing it separately from your computer. The few minutes this takes now will save you hours of frustration later.

Frequently Asked Questions

Can I reset my password if I don't remember my Apple ID password either?

Yes. At the Mac login screen, click "Reset it in iCloud" and enter your Apple ID email. You'll be prompted to verify your identity through a code sent to your phone or email address associated with the Apple ID. You don't need to remember the Apple ID password itself — the verification code is enough.

What if I forgot my password and I don't have two-factor authentication turned on?

You can still use your Apple ID to reset it. Go to the login screen, click the question mark, and select "Reset it in iCloud." You'll enter your Apple ID email and password. If you've also forgotten that password, you can reset your Apple ID password at iforgot.apple.com before trying again on your Mac.

Will resetting my password in Recovery mode delete everything on my Mac?

No. Using the Terminal resetpassword command only changes your login password. All your files, applications, and settings stay exactly where they are. The only data you lose access to is encrypted files if you don't have your FileVault recovery key.

How do I find my FileVault recovery key if I need it?

If you set up FileVault when you first configured your Mac, Apple showed you a recovery key and asked you to write it down. Check any notebooks, printed documents, or emails from that time. If you genuinely cannot find it, contact Apple Support with proof of Mac ownership. They cannot retrieve the key, but they can explain your options for accessing your drive.

Can someone else reset my Mac password if they have physical access to it?

Yes, using Recovery mode. This is why FileVault encryption matters — it prevents someone from resetting the password and then reading your files. If your drive is encrypted and they don't have the FileVault key, your data stays protected even if they change the login password.