The fastest way: use your Apple ID
If you remember your Apple ID and password, you can reset your Mac login password from the login screen itself — no recovery mode, no restart needed. When you see the login screen and cannot remember your password, click the question mark icon next to your username. Your Mac will ask if you want to reset it using your Apple ID.
Click "Reset using Apple ID" and enter your Apple ID email and password. Your Mac will then let you create a new login password right there. This works on any Mac running macOS Big Sur or newer, and it is the path most people should try first because it takes about two minutes and does not require restarting into recovery mode.
If you do not see the question mark icon, or if your Mac is older than Big Sur, you will need to use recovery mode instead — see the next section.
Key Takeaways
- If you remember your Apple ID, click the question mark on the login screen and select "Reset using Apple ID" to create a new password without restarting.
- If you do not remember your Apple ID password, or if your Mac is older than Big Sur, restart into recovery mode by holding Command and R during startup.
- In recovery mode, open Utilities from the menu bar, select Password Reset, choose your account, and create a new password.
- If you do not remember your Apple ID at all, you will need to verify your identity through Apple's account recovery process before you can reset anything.
- After you regain access, change your Apple ID password from another device to prevent this from happening again.
Recovery mode: the backup method for older Macs
If the Apple ID method does not work — because your Mac is older, or because you do not remember your Apple ID password — you can reset your login password using recovery mode. This is a built-in system that starts before your normal Mac operating system loads.
Shut down your Mac completely. Press the power button to turn it on, then when ready hold down Command and R at the same time. Keep holding both keys until you see the Apple logo or a spinning globe. This usually takes about 10 to 15 seconds. Your Mac will load into recovery mode, which looks different from your normal desktop.
Once you are in recovery mode, look at the menu bar at the top of the screen. Click "Utilities" and then select "Password Reset" from the dropdown menu. A window will open showing your user accounts. Click the account you need to reset, then click "Next."
Create a new password in the field that appears. You do not need to remember your old password — just type a new one you will remember, then type it again to confirm. Click "Save" and restart your Mac. You can now log in with your new password.
What to do if you do not remember your Apple ID
If you cannot reset your password using your Apple ID because you do not remember the password itself, you have two options. The first is to use another Mac, iPhone, or iPad where you are already signed into that Apple ID — you can reset your Apple ID password from the Settings app on any of those devices, then use the new password to reset your Mac login.
If you do not have access to another Apple device, go to iforgot.apple.com from any computer or phone. Enter your Apple ID email address and follow Apple's account recovery process. You will need to answer security questions or receive a verification code by email or phone. Once you have regained access to your Apple ID, you can use that to reset your Mac password.
This process can take anywhere from a few minutes to several hours depending on which verification method Apple requires. If you set up recovery contacts on your Apple ID account, the process is usually faster.
Resetting your password if you cannot access recovery mode
In rare cases, your Mac will not start into recovery mode when you hold Command and R. This usually means your Mac is very old, or there is a hardware problem. Try restarting and holding Command-Option-R instead, which loads recovery mode from Apple's servers over the internet. This takes longer but works on almost all Macs.
If Command-Option-R does not work either, your Mac may have a hardware issue that requires a visit to an Apple Store or authorized repair shop. Bring your proof of ownership — your receipt or the serial number from the original box — because Apple will need to verify you own the device before resetting it.
Preventing this from happening again
Once you have regained access to your Mac, take a few minutes to set up a password recovery method so you do not get locked out again. Open System Settings (or System Preferences on older Macs), click your name at the top, then look for "Password" or "Login Items." Make sure your Apple ID is connected to your Mac account.
You should also set up a recovery contact — another person with an Apple ID who can help you regain access if you forget your password again. This is done in your Apple ID settings on iCloud.com, not on your Mac itself.
If you use a password manager like 1Password or Bitwarden, store your Mac login password there so you have a backup copy. Do not store it in Notes or email — use an actual password manager that encrypts the data.
What happens if your Mac is used or secondhand
If you bought a used Mac and it is locked with someone else's password, you cannot reset it yourself. The previous owner must remove their Apple ID from the Mac before you can use it. Ask the seller to sign into the Mac, open System Settings, click their name, then click "Sign Out" and remove the device from their Apple ID account.
If the seller is not available or refuses to do this, the Mac is essentially locked to their account and cannot be used. This is called set up Lock, and it is a security feature designed to prevent theft. There is no way around it without the original owner's cooperation.
Frequently Asked Questions
Can I reset my password without restarting my Mac?
Yes, if you remember your Apple ID password. On the login screen, click the question mark next to your username and select "Reset using Apple ID." This works on macOS Big Sur and newer without any restart. On older versions, you must restart into recovery mode.
What if I see "This user account is managed by your organization"?
Your Mac is managed by a workplace or school IT department. You cannot reset this password yourself. Contact your IT support team or help desk — they have the ability to reset it for you or provide a temporary password.
How long does it take to reset my password in recovery mode?
The entire process usually takes 5 to 10 minutes once you are in recovery mode. Restarting into recovery mode itself takes about 15 seconds. If you are using Command-Option-R to load recovery from the internet, add 5 to 10 minutes for the read.
Will resetting my password delete my files?
No. Resetting your login password does not touch any of your files, photos, documents, or applications. Everything stays exactly where it is. You are only changing the password you use to log in.
What if I get stuck in recovery mode and cannot get out?
Press Command and Q to close any open windows, then click the Apple menu at the top left and select "Restart." Your Mac will restart normally. If it goes back into recovery mode, restart again and try holding Command and R for a shorter time — sometimes holding too long keeps you in recovery mode.