The fastest way depends on what you have access to

If you have forgotten your Mac password, you can reset it without erasing the computer — but the method depends on whether you remember your Apple ID password, have another admin account on the machine, or can access your Mac's recovery mode. The most common path is through your Apple ID, which takes about 15 minutes. If that is not available, recovery mode is the next option, though it requires restarting your Mac and following several steps in sequence.

You do not need to take your Mac to a repair shop or erase everything on the drive unless you have no other way in. The methods below work on any Mac running macOS Big Sur or newer, though the exact screens you see may differ slightly depending on your macOS version.

Key Takeaways

  • If you remember your Apple ID password, you can reset your Mac password from the login screen without restarting or erasing anything.
  • If you have another admin account on the same Mac, you can reset the forgotten password through System Settings without using your Apple ID.
  • If you have neither, restart your Mac into Recovery Mode by holding Command and R, then use the Reset Password utility from the Utilities menu.
  • If Recovery Mode does not work, you can erase and reinstall macOS, but this removes all files unless you have a backup.

Resetting through your Apple ID at the login screen

This is the fastest method if you remember your Apple ID password. At the Mac login screen, look for a question mark icon or a "Reset Password" button below the password field — the exact label depends on your macOS version. Click it, then enter your Apple ID email address and password when prompted.

Your Mac will verify your identity through Apple's servers, then let you create a new password. You do not need to restart the computer or use recovery mode. Once you set the new password, you can log in when ready and use your Mac normally. All your files and settings stay in place.

Using another admin account on the same Mac

If someone else has an admin account on your Mac and you can ask them to help, they can reset your password without needing your Apple ID. Have them log in with their account, then open System Settings and go to General > Users & Groups (or Users & Groups in older versions). They should click the lock icon in the bottom left, enter their own password, then select your account from the list on the left.

They will see a "Reset Password" button. Clicking it opens a dialog where they can set a new password for you. You do not need to know their password, and they do not need to know your Apple ID. Once the reset is complete, you can log in with the new password on the login screen.

Resetting through Recovery Mode

If you do not have access to another admin account and cannot remember your Apple ID password, Recovery Mode is your next option. Restart your Mac and when ready hold down Command and R together until you see the Apple logo or a spinning globe. Keep holding until the macOS Utilities window appears — this usually takes 30 seconds to 2 minutes.

From the Utilities menu at the top, select Utilities, then click "Reset Password." A new window will open. From the dropdown at the top, select your Mac's hard drive (usually called "Macintosh HD"), then select your user account from the list below. Click "Reset" and enter a new password twice to confirm it. You do not need to enter your old password. Restart your Mac when finished, and log in with the new password.

If the Reset Password option does not appear in the Utilities menu, your Mac may be using a newer security feature called FileVault encryption. In that case, you will need your Apple ID password to proceed — Recovery Mode cannot bypass FileVault without it.

What to do if Recovery Mode does not work

If Recovery Mode does not show a Reset Password option and you do not have your Apple ID password, your remaining option is to erase and reinstall macOS. This removes all files from your Mac unless you have a backup. Restart into Recovery Mode again (Command and R), then select "Erase Mac" from the Utilities menu. Choose your hard drive and confirm — the process takes 15 to 30 minutes depending on your Mac's speed.

Once the erase is complete, macOS will reinstall automatically. You will be walked through setup screens where you can create a new account and password. If you have a Time Machine backup or iCloud backup, you can restore your files after setup is complete. If you do not have a backup, the files are permanently gone.

Preventing this from happening again

Write down your Apple ID password and store it somewhere safe — a password manager, a locked drawer, or a trusted person. Your Apple ID is the master key to resetting your Mac, so losing access to it makes recovery much harder. You can also set up a recovery contact in your Apple ID settings, which lets another person help you regain access if you forget your password.

If you use FileVault encryption (which is on by default on newer Macs), make sure you have saved your recovery key somewhere you can find it. You can view your recovery key by going to System Settings > Privacy & Security > FileVault, clicking the lock icon, and selecting "View Recovery Key." Write it down or save it in a password manager.

Frequently Asked Questions

Will resetting my password delete my files?

No, unless you erase your Mac. Using your Apple ID, another admin account, or Recovery Mode's Reset Password tool all change your password without touching your files. Only the "Erase Mac" option in Recovery Mode removes files, and it does so intentionally.

Can I reset my password if I do not have internet?

If you use Recovery Mode's Reset Password tool, you do not need internet. If you try to reset through your Apple ID at the login screen, your Mac will need internet to verify your identity with Apple's servers. If you are offline, use Recovery Mode instead.

What if I do not remember my Apple ID password either?

Go to iforgot.apple.com on another device and follow Apple's account recovery process. You will need to verify your identity using a trusted phone number, recovery email, or security questions. Once you reset your Apple ID password, you can use it to reset your Mac password.

Do I need to back up my Mac before resetting the password?

No, unless you plan to erase it. Resetting the password through Apple ID, another admin account, or Recovery Mode does not affect your files. Back up only if you are going to erase and reinstall macOS.

How long does password reset usually take?

Through your Apple ID at the login screen: 5 to 10 minutes. Through another admin account: 5 minutes. Through Recovery Mode: 10 to 15 minutes, including the restart. Erasing and reinstalling takes 30 minutes to an hour depending on your Mac's speed and internet connection.