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. 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 login password. This takes about five minutes and leaves all your files, applications, and settings untouched.
This method works on any Mac running macOS 10.7 or later. You do not need a recovery disk, another computer, or a second account. The only requirement is that you set up your Apple ID on this Mac at some point in the past — if you never did, you will need to use a different method.
Key Takeaways
- Using your Apple ID at the login screen is the fastest reset method and does not erase your files or applications.
- If you do not have an Apple ID set up on your Mac, you can use Recovery Mode to create a new administrator account instead.
- Resetting through Recovery Mode takes longer but works even if you have no Apple ID or recovery contacts on file.
- If you have a second administrator account on the same Mac, you can change the forgotten password from that account without Recovery Mode.
- After you regain access, turn on FileVault encryption and set up a recovery contact so you have options if this happens again.
Using Recovery Mode when you have no Apple ID option
If the Apple ID reset does not appear on your login screen, or you do not remember your Apple ID password, you can use Recovery Mode to create a new administrator account. Restart your Mac and hold Command + R when ready after you hear the startup sound. Keep holding until you see the Apple logo or a spinning globe. This loads macOS Recovery, a built-in repair environment separate from your normal system.
Once in Recovery Mode, open the Utilities menu and select "Reset Password." Choose your Mac's hard drive from the list, then select the user account you are locked out of. Click "Reset" and create a new password. Your files remain on the Mac — you are only changing the password that unlocks the account. This process takes ten to fifteen minutes depending on your Mac's speed.
Recovery Mode works on Macs from 2010 onward. If your Mac is very old or will not start up normally, you may see a different recovery screen, but the basic steps are the same: restart, hold Command + R, and look for password reset options in the Utilities menu.
Creating a new administrator account in Recovery Mode
If you cannot reset the password through the normal Recovery Mode path, you can create an entirely new administrator account. This is slower but works on any Mac. In Recovery Mode (Command + R at startup), go to Utilities and open Terminal. Type the command resetpassword and press Enter. A password reset window opens — this is the same tool as before, but accessed through a different route.
If that does not work, you can create a new account instead. In Terminal, type dscl . -create /Users/newusername UserShell /bin/bash, replacing "newusername" with whatever you want to call the account. Then set a password for it with dscl . -passwd /Users/newusername password. Once you restart and log in with this new account, you can transfer your files from the old account or straightforward use the new one going forward.
Creating a new account is more complex than resetting a password, so try the Reset Password tool first. Only move to Terminal commands if the graphical reset tool does not appear or does not work.
Resetting a password from another administrator account
If your Mac has a second administrator account that you can still access, you do not need Recovery Mode at all. Log in with the account you remember, open System Settings (or System Preferences on older Macs), and go to General > Users & Groups. Click the lock icon at the bottom left and enter your password to unlock the settings. Select the account you are locked out of and click "Reset Password." Enter a new password and click "Reset."
This method is the simplest if you have it available — it takes two minutes and requires no restart. The catch is that you need a second administrator account on the same Mac. If you are the only account holder or all other accounts are standard (non-administrator) accounts, you will need to use Recovery Mode instead.
What to do if your Mac will not start up at all
If your Mac does not turn on, shows a folder with a question mark, or gets stuck on the Apple logo, the problem is not your password — it is your Mac's startup disk. Recovery Mode will not help because your Mac cannot reach it. In this case, restart your Mac and hold Command + Option + R to connect to Internet Recovery instead. This downloads macOS Recovery from Apple's servers, which takes longer but works even if your startup disk is damaged.
Internet Recovery requires a working Wi-Fi connection. If your Mac cannot connect to Wi-Fi, or if Internet Recovery also fails, your Mac may need hardware repair. Contact Apple Support or visit an Apple Store to have a technician check the hard drive and startup disk.
Preventing this from happening again
Once you have regained access to your Mac, take two steps to make future lockouts much easier. First, turn on FileVault encryption in System Settings > Privacy & Security > FileVault. This encrypts your entire hard drive and requires your password to start up, but it also means you can reset your password from the login screen without losing anything. Second, add a recovery contact in System Settings > General > Users & Groups. A recovery contact is a trusted person whose Apple ID can help you reset your password if you forget it again.
If you do not want to use a recovery contact, at minimum write down your Apple ID and password somewhere safe — a password manager, a locked drawer, or a trusted family member. The Apple ID reset method is so fast and reliable that having it available makes a huge difference.
Frequently Asked Questions
Will resetting my password erase my files?
No. Resetting your login password does not touch your files, applications, or settings. You are only changing the password that unlocks your account. The only exception is if you erase your entire Mac during the reset process, which you should not do unless you have no other option.
What if I do not remember my Apple ID password either?
Go to iforgot.apple.com and follow the steps to reset your Apple ID password. You will need access to the email address or phone number associated with your Apple ID. Once you reset that password, you can use it to reset your Mac login password at the login screen.
Can I reset my password without restarting my Mac?
Only if you have a second administrator account on the same Mac. If you are the only account holder, you must restart and use Recovery Mode. There is no way to reset your own password while logged in as that account.
How long does Recovery Mode take?
Restarting and reaching Recovery Mode takes about one minute. The actual password reset takes another five to ten minutes depending on your Mac's speed. Total time is usually ten to fifteen minutes from start to finish.
What if I see "This user account is managed by your organization"?
Your Mac is enrolled in a workplace or school management system. You cannot reset this password yourself — contact your IT department or school tech support. They have the ability to reset managed accounts remotely.