Apple’s macOS is a secure operating system, and at the heart of its security is your password: you will need your password whenever you install new software or make changes to macOS via System Preferences (as of Ventura called System Settings); you’ll need it when logging in to you Mac (even if you log into your Mac with an Apple Watch, or using Touch ID you’ll still need to enter your password when your Mac starts up); and sometimes you’ll need your password when deleting important files.
But what do you do if you’ve lost or forgotten the password, or it doesn’t work? Maybe you inherited or bought the Mac secondhand and you don’t know the password. Don’t panic. In this article we’re going to look at how to recover a lost Mac password.
On a related note, if your Mac is asking you for your iCloud login, or Apple ID, then read about what to do if you forget your Apple ID password. Alternatively, if you have forgotten the password to the admin account on your Mac you may also find this article helpful: How to change the admin password on a Mac. We also have How to find a password on a Mac.
View the password hint
Foundry
If you are lucky your Mac’s password has been set up with a hint and you can view this on the log in screen.
You need to be in the log in screen to be able to access this option–just waking your Mac from sleep will not display the ? icon that you need to click on, you need to restart your Mac.
- Restart your Mac.
- When you are on the log in screen select the user you wish to log in as.
- You should see a ? beside the Enter Password field.
- Click on the ? and you might see a password hint.
If this helps you fix the problem excellent. If not we have more ideas below.
Change the password from another account
Foundry
Do you share the Mac with another person – some people do, in these days of remote working and hot-desking – and do they have their own account? Is there an administrator who looks after your work Mac? An IT guy (or girl) who might be able to log on? Or do you have a different user account on the Mac that you do know the password to? The only problem here is that if the other user doesn’t have Admin rights on the Mac they will not be able to change the password for you.
If you know (or can find out) the password to another account for the Mac you can use this account to reset your password. Follow these steps to reset your Mac password from another account. Note the process is a little different depending on which version of macOS you are using.
In Ventura
- Either restart the Mac, or if it is logged in click on the Apple logo and choose Log Out [name].
- Select the account you do know the password to.
- Enter the password for that account.
- In Ventura open System Settings > Users & Groups.
- Click on the i beside the account you’ve forgotten the password for.
- Click Reset Password.
- Enter the password you are logged in with.
- Add a new password and verify it.
- Add a Password hint (so that it doesn’t get forgotten again).
- Click Change Password.
In Monterey or older
- Either restart the Mac, or if it is logged in click on the Apple logo and choose Log Out [name].
- Select the account you do know the password to.
- Enter the password for that account.
- In Monterey or older open System Preferences > Users & Groups.
- In Monterey or older click the lock icon in the bottom left of the window and enter the password again.
- Select the account you’ve forgotten the password for in the sidebar.
- Click Reset Password.
- Fill in the New password, Verify and Password hint fields.
- Click Change Password.
You have now changed the password for that account, and you can log into that account using the new password.
Note that this doesn’t change the password for the Keychain and you will be asked when you log into the account if you want to update the keychain password. To do this you’ll need the old password (which you have forgotten) so you’ll have to click Create New Keychain.
Reset your password using Recovery Assistant and your Apple ID
Foundry
When you start up your Mac and select the user you wish to log in as you should see a ? beside the Enter Password field. Click on the ? and you might see a password hint (as we detailed above).
Below the password hint you should see the option to “Restart and show password reset options”. If you click on this your Mac will restart with Recovery Assistant open. Follow the steps below to reset your password.
- When you are on the log in screen click on the ? beside the Enter Password box.
- Click on Restart and show password reset options.
- Your Mac will restart in the Recovery assistant.
- Enter your Apple ID email address.
- Click on Next.
- Enter your Apple ID password.
- You will now get an alert on another Apple product that is signed into your Apple ID. Approve the fact that there has been a login attempt (even if the alert says it happened in a completely different part of the country).
- You will now see a six number code appear on your device, you should enter this on the the Mac you are trying to log in to.
- Select the user you want to reset the password for.
- Click on Next.
- Enter a new password and then verify it.
- Add a password hint so that you don’t forget it again (but make sure that someone else couldn’t easily guess it!)
If you don’t see the ? this could be because you haven’t started up your Mac from off–so switch the Mac off and turn it on again.
If you still don’t see the ? and Recovery Assistant option at start up move to the next step.
Use Recovery mode, Terminal and your Apple ID to reset your password
Foundry
If you didn’t see the option to “restart and show password reset options” detailed above, you can still enter the Recovery mode and use the Recovery Assistant to change your password.
The process will depend on whether you have a Mac powered by an Intel processor or one that uses one of Apple’s M-series chips, such as the M1 or M2.
On a M1 or M2 Mac: Restart the Mac and press and hold the power button until you see the startup options. Click on Options > Continue.
On an Intel Mac: Restart the Mac and press and hold Command and R until the Apple logo appears. See How to use Recovery mode on a Mac.
Once in Recovery you can change the password for the Mac, even if you don’t know the password. You just need to know your Apple ID and password.
- In macOS Recovery either choose a user you know the password for, or click on Forgot all passwords.
- Now enter your Apple ID email and click on Next.
- Enter your Apple ID password and click Next.
- If all is good you will see Authentication successful. You now need to click on Exit to Recovery.
- When you get the the Recovery screen you don’t want any of the options presented to you, such as Restore from Time Machine and Reinstall macOS. Instead click on Utilities in the menu at the top of the screen.
- Click on Terminal.
- In Terminal type resetpassword
- Click on Return. Now the Reset Password options will open on the screen.
- Choose I forgot my password.
- Click on Next.
- Now sign in with your Apple ID email and password.
- You will see a warning that someone is using your Apple ID flash up on your other Apple devices, approve this and then you will see a six number code.
- Enter the six number code on the Mac.
- Choose the user you wish to reset the password for.
- After you have entered the new password and a hint you can restart your Mac.
Use your recovery key to reset your password
Apple
If your drive is encrypted (either by you or your employer) through FileVault, you will see an option to reset your password using your recovery key. You will of course need that recovery key – which is a string of letters and numbers – so hopefully you haven’t lost it.
If you have FileVault set up with a recovery key when you restart your Mac you will see Enter your FileVault recovery key as an option.
“Reset it using your recovery key” to use the drive’s recovery key to reset your login password.
If you can’t find your FileVault recovery key this may help: How to find your FileVault recovery key in macOS.
How to make a Mac password hint appear
Now you know your password you might want to make sure that a password hint appears if you forget your password again. Follow these steps to set up a hint:
In Ventura:
- Go to System Settings.
- Scroll down to Users & Groups.
- Click on the i beside the user’s name.
- Click on Change Password.
- Enter the old password and then a new password, and verify that.
- Add a password hint that makes sense to you but won’t be easily guessed by someone else.
In Monterey or older:
- Open System Preferences.
- Click on Users & Groups.
- Click on the lock and enter your password.
- Click on Login Options.
- Tick the box that says show password hints.
- If there is no tip set up click on the user.
- Click on Change Password.
- Enter the old password and then a new password, and verify that.
- Add a password hint that makes sense to you but won’t be easily guessed by someone else.
Foundry
How to stop someone else resetting your Mac password
Now you know how to reset your password you may be worried that if you can use Recovery Mode to reset the password, someone else could do the same thing – and once a person has got access to your Mac, you’ve usually lost control over it. There are some steps you can take to protect your data, though.
The best way to protect your data is to turn on FileVault encryption. This encrypts the contents of your Mac, and the Password Reset utility will not show until you unlock it with Disk Utility. When you set up FileVault you can choose to receive a Recovery Key (which you should print out) or you can tie it to your Apple ID. Beware that if you forget or you lose these your data will be lost forever.
To turn FileVault on follow these steps (slightly different depending on the macOS version).
In Ventura:
- Go to System Settings.
- Click on Privacy & Security.
- Scroll down to FileVault.
- Click on Turn On…
- Choose Allow my iCloud account to unlock my disk, or Create a recovery key and do not use my iCloud account. We advise using iCloud due to the risk of losing the recovery key.
- Click on Continue.
In Monterey or older:
- Open System Preferences.
- Go to Security & Privacy.
- Click on FileVault.
- Click the lock and enter your password.
- Choose Allow my iCloud account to unlock my disk, or Create a recovery key and do not use my iCloud account. We advise using iCloud due to the risk of losing the recovery key.
- Click on Continue.