The fastest way back in depends on what you remember

If you've forgotten your Mac password, you have several routes back in. The quickest is usually to use your Apple ID on the login screen itself — macOS will let you reset your password there without restarting into recovery mode. If that doesn't work, you can restart into Recovery Mode and reset from there. If you've forgotten both your Mac password and your Apple ID password, or if you don't have an Apple ID linked to your account, the process takes longer but is still possible.

The method that works for you depends on whether your Mac is running a recent version of macOS, whether you set up an Apple ID when you created your account, and whether you can remember that Apple ID password. Start with the simplest option first — it usually works.

Key Takeaways

  • On the login screen, click the question mark icon next to your password field to reset using your Apple ID without restarting your Mac.
  • If you don't see the question mark, or if you've forgotten your Apple ID password too, restart into Recovery Mode by holding Command and R during startup.
  • In Recovery Mode, open Utilities > Reset Password from the menu bar to create a new password for your account.
  • If you have no Apple ID and no recovery contact, you may need to erase your Mac and set it up fresh, which erases all files on the drive.
  • Write down your new password somewhere safe after you regain access — consider a password manager so you don't lose it again.

Using the question mark icon on the login screen

When you're at the login screen and have entered an incorrect password, look for a small question mark icon to the right of the password field. Click it. macOS will show you a hint if you set one up when you created your account, or it will offer to reset your password using your Apple ID.

If you choose to reset with your Apple ID, enter the email address and password for the Apple ID that's linked to your Mac account. macOS will send a verification code to a trusted device or phone number on file with that Apple ID. Once you verify, you can create a new Mac password right there on the login screen without restarting.

This method works on macOS Big Sur and newer. If you don't see the question mark, your Mac is running an older version or your account wasn't set up with an Apple ID.

Resetting your password in Recovery Mode

If the question mark method doesn't appear or doesn't work, restart your Mac into Recovery Mode. Shut down your Mac completely, then turn it back on and when ready hold down Command and R until you see the Apple logo or a spinning globe. Keep holding until the macOS Utilities window appears.

From the Utilities menu at the top, select Utilities > Reset Password. Choose your account name from the dropdown menu. You'll be asked to enter your Apple ID password. Once verified, you can create a new password for your Mac account.

If you don't remember your Apple ID password either, click the "Can't reset your password?" link in the Reset Password window. Apple will walk you through verifying your identity using a trusted device or phone number linked to your Apple ID account.

What to do if you have no Apple ID or recovery option

If your Mac account was never linked to an Apple ID, or if you can't verify your identity through Apple's system, you'll need to use your Mac's built-in administrator account or erase and reinstall macOS.

Some older Macs have a built-in "root" or administrator account that can be used to reset other accounts. In Recovery Mode, open Utilities > Terminal and type specific commands to reset the password. This is technical and varies by macOS version — Apple's support pages have the exact commands for your version.

If you can't use the administrator account, your last option is to erase your Mac and reinstall macOS. This deletes all files on your drive. You'll need either a second Mac or a bootable USB drive with macOS on it. After erasing and reinstalling, you can set up your Mac fresh with a new password.

Preventing this from happening again

Once you're back in, change your password to something you can actually remember, or use a password manager like 1Password, Bitwarden, or the built-in Keychain to store it securely. Write down your Apple ID email and password separately and store it somewhere physical and safe — a locked drawer, a safe, or a trusted person's house.

Set up a recovery contact on your Apple ID account (Settings > [Your Name] > Password & Security > Recovery Contact). This gives you another way to verify your identity if you forget your Apple ID password later. You can also add a trusted phone number so Apple can send verification codes there.

Consider turning on FileVault encryption while you're in System Settings. It doesn't prevent you from forgetting your password, but it does protect your files if your Mac is stolen or lost.

What happens to your files while you're locked out

Your files are still on your Mac — you're just locked out of the account that accesses them. Resetting your password doesn't delete anything. If you have to erase your Mac and reinstall macOS, however, everything on the drive is erased. That's why the password reset methods above are preferable.

If you have a Time Machine backup, you can restore your files after a fresh macOS installation. If you don't have a backup and you have to erase, those files are gone. This is another reason to set up automatic backups now that you're back in.

When to contact Apple Support

If you've tried the Recovery Mode reset and Apple's identity verification isn't working, or if you're getting error messages you don't understand, contact Apple Support. They can verify your identity through your Apple ID account and walk you through the next steps. You can reach them through apple.com/support or by calling 1-800-MY-APPLE.

Have your Mac's serial number ready (you can find it in System Settings > General > About even while locked out, or on the bottom of your Mac). Apple will also ask for the email address associated with your Apple ID and may ask security questions about your account.

Frequently Asked Questions

Can I reset my password without an Apple ID?

Not easily on modern Macs. If your account was never linked to an Apple ID, you'll need to use Recovery Mode and either access a built-in administrator account or erase and reinstall macOS. Older Macs have more options — check Apple's support pages for your specific macOS version.

Will resetting my password delete my files?

No. Resetting your password through the login screen or Recovery Mode keeps all your files intact. Only erasing your Mac and reinstalling macOS deletes files, and that's only necessary if you have no other way in.

How long does it take to reset my password?

If you use the question mark on the login screen, it takes a few minutes. Recovery Mode takes 10 to 20 minutes. If you need to erase and reinstall macOS, plan for 30 minutes to an hour depending on your Mac's speed and internet connection.

What if I forgot my Apple ID password too?

In Recovery Mode, when you try to reset your Mac password, you'll see a "Can't reset your password?" link. Click it and Apple will walk you through verifying your identity using a trusted device, phone number, or security questions. This usually takes 10 to 15 minutes.

Can someone else reset my Mac password if I'm not home?

No. You need either your Mac password, your Apple ID password, or access to a trusted device or phone number linked to your Apple ID. This is intentional — it prevents someone else from locking you out of your own Mac.