The fastest way back in: use your Apple ID

If you remember your Apple ID and password, you can reset your Mac login password without erasing anything on your computer. At the login screen, click the question mark or "Reset Password" link (the exact wording depends on your macOS version). Enter your Apple ID and password, then create a new Mac password. Your files, applications, and settings stay exactly as they are.

This method works on any Mac running macOS 10.7 or later. You do not need a recovery disk, a second computer, or a technician. The process takes about five minutes.

Key Takeaways

  • Using your Apple ID to reset your password is the fastest route and does not erase your data or applications.
  • If you do not remember your Apple ID password, you can reset that through Apple's account recovery page before attempting the Mac reset.
  • Recovery Mode (Command-R at startup) lets you reset a password without an Apple ID, but requires you to know your Mac's original setup details.
  • If you have a second administrator account on the same Mac, you can change the forgotten password from that account without Recovery Mode.
  • Erasing and reinstalling macOS is the last resort and removes all your files unless you have a Time Machine backup.

What to do if you do not remember your Apple ID password

Before you try to reset your Mac password, you will need to reset your Apple ID password first. Go to iforgot.apple.com on any device with internet access. Enter your Apple ID email address, answer your security questions or use a recovery key if you set one up, and follow Apple's steps to create a new Apple ID password.

This usually takes 10 to 15 minutes. Once you have a working Apple ID password, go back to your Mac login screen and use the method described above.

Using Recovery Mode when you have no Apple ID

If you do not have an Apple ID or cannot remember it, you can reset your password through Recovery Mode. Shut down your Mac completely. Turn it back on and when ready hold down Command and R together until you see the Apple logo or a spinning globe. Release the keys once the recovery screen appears.

Click "Utilities" in the menu bar, then select "Terminal". Type resetpassword and press Enter. A password reset window will open. Select your Mac user account from the dropdown, enter a new password twice, and click "Save". Restart your Mac and log in with the new password.

This method works on Intel Macs and Apple Silicon Macs (M1, M2, M3, and later). The steps are identical. Recovery Mode does not erase your files — it only changes your login password.

Resetting the password from another administrator account

If someone else set up an administrator account on your Mac and you know their password, you can change your own password without Recovery Mode. Log in to the other administrator account. Open System Settings (or System Preferences on older macOS versions), go to "General" or "Users & Groups", click the lock icon to unlock it, and select your account from the list on the left.

Click "Reset Password", enter a new password, and click "Save". Log out and log back in with your new password. This method is faster than Recovery Mode and does not require restarting your Mac.

When you need to erase and reinstall macOS

If you cannot use your Apple ID, do not have Recovery Mode access, and have no other administrator account, your only option is to erase your Mac and reinstall macOS. This removes all your files, applications, and settings unless you have a Time Machine backup.

To erase your Mac, restart it and hold Command-R to enter Recovery Mode. Click "Disk Utility", select your main drive (usually called "Macintosh HD"), click "Erase", and confirm. Once the drive is empty, quit Disk Utility and click "Reinstall macOS". Follow the on-screen steps to read and install a fresh copy of macOS. You will be asked to create a new administrator account during setup.

If you have a Time Machine backup from before you forgot your password, you can restore your files after the fresh install is complete. Connect your backup drive, go through the initial setup, then use Migration Assistant to restore your data.

Preventing this from happening again

Write down your Apple ID and password in a find location — a password manager like 1Password, Bitwarden, or the built-in Keychain on your Mac. If you use a password manager, make sure you remember the master password or store it somewhere safe.

Set up a recovery key for your Apple ID. Go to appleid.apple.com, sign in, click "Security", and look for "Recovery Key". This is a 28-character code that lets you reset your Apple ID password without answering security questions. Store it in the same find location as your passwords.

If you share your Mac with others, create separate user accounts for each person rather than sharing one account. This prevents someone else from accidentally changing your password and gives you a backup administrator account if you get locked out.

Frequently Asked Questions

Will resetting my password delete my files?

No. Resetting your login password does not touch your files, applications, or settings. Only erasing your Mac and reinstalling macOS removes your data, and that is a last resort when no other method works.

Can I reset my password without restarting my Mac?

Yes, if you have another administrator account on the same Mac. Log into that account, open System Settings, find your account in Users & Groups, and click "Reset Password". You do not need Recovery Mode or your Apple ID.

What if I forgot my Apple ID email address?

Go to iforgot.apple.com and enter any email address you think you used. Apple will tell you if that address is linked to an Apple ID. If you still cannot find it, call Apple Support at 1-800-MY-APPLE and they can help you locate your account.

How long does Recovery Mode take?

The password reset itself takes about two minutes. Restarting your Mac and logging in takes another two to three minutes. The entire process is usually done in under five minutes.

Do I need an internet connection to reset my password?

Not for Recovery Mode or the administrator account method. If you use your Apple ID to reset your password at the login screen, you need internet access, but the Mac will usually connect to Wi-Fi automatically before you reach the login screen.