The fastest way back into your Mac
If you remember your Apple ID email and password, you can reset your Mac login password in about five minutes without erasing anything. Go to the login screen, click the question mark icon below the password field, then click "Reset it" next to "Forgot password?" You'll be guided through verifying your identity with your Apple ID, and your Mac will let you create a new login password when ready.
If you don't remember your Apple ID password, or if you don't have an Apple ID at all, you have other routes — but they take longer and may require a second device. The method you use depends on what you remember and what's set up on your Mac.
Key Takeaways
- If you know your Apple ID email and password, use the "Reset it" option on the login screen to create a new Mac password in minutes.
- If you don't have an Apple ID or can't remember it, you can use Recovery Mode to create a new administrator account, though this takes 20 to 30 minutes.
- If you set up a recovery contact (another person with their own Mac), they can reset your password remotely without you needing to restart into Recovery Mode.
- If your Mac is part of a work or school network, contact your IT department — they may have tools to reset it without you losing data.
Using your Apple ID to reset your password
This is the simplest method if you have an Apple ID. At the Mac login screen, look below the password field for a question mark icon (it may say "Reset password" or show a small "?" symbol). Click it, then click "Reset it" next to "Forgot password?"
Your Mac will ask you to enter your Apple ID email address. Type it in, then click the arrow or Next button. You'll be asked to verify your identity — usually by entering a code sent to your Apple ID email or phone number, or by answering security questions you set up when you created the Apple ID. Once verified, you'll create a new Mac login password right there on the screen. Your Mac will unlock and you're done.
This method works on Macs running macOS 10.7 or newer. If your Mac is older than that, you'll need to use Recovery Mode instead.
Using a recovery contact to reset remotely
If you set up a recovery contact on your Mac — another person with their own Mac who can help you — they can reset your password without you needing to do anything technical. At your login screen, click the question mark icon and look for "Ask a recovery contact." Click that option and your Mac will send a notification to your recovery contact's device.
Your recovery contact opens the notification on their Mac, verifies they want to help, and your Mac generates a reset code. They read the code to you (or send it to you), you enter it at your login screen, and you create a new password. This takes about five minutes and requires no restart or Recovery Mode.
If you don't have a recovery contact set up yet, you can't use this method now — but it's worth setting up for the future. Go to System Settings (or System Preferences on older Macs), click your Apple ID, then look for "Password and Security" or "Security" and add a recovery contact there.
Resetting your password in Recovery Mode
If you don't have an Apple ID, don't remember it, or the methods above don't work, you can use Recovery Mode to create a new administrator account. This takes longer — usually 20 to 30 minutes — but it works on any Mac.
Restart your Mac and hold down Command + R as soon as you hear the startup sound (or see the Apple logo). Keep holding until you see a spinning globe or the Recovery Mode menu. On newer Macs with Apple Silicon chips, hold the power button instead until you see "Loading startup options," then select Options and click Continue.
Once in Recovery Mode, you'll see a menu. Click "Utilities" at the top, then "Terminal." A black window will open. Type resetpassword and press Enter. A password reset window will appear. Select your Mac from the dropdown menu, enter a new password twice, then click "Save." Restart your Mac and log in with the new password.
If you see a message that the password reset tool is not available, your Mac may have FileVault encryption turned on. In that case, you'll need to restart again, stay in Recovery Mode, and look for "Reset Password" in the Utilities menu instead of using Terminal.
What to do if you're locked out of Recovery Mode
Some Macs require a firmware password to enter Recovery Mode — this is a security feature that prevents someone else from resetting your password without permission. If you see a password prompt when you try to enter Recovery Mode, you've hit this barrier.
If you remember the firmware password, enter it and proceed. If you don't remember it, you'll need to contact Apple Support or visit an Apple Store. They can verify you're the owner and help you reset it, though this usually requires proof of purchase or your serial number.
If your Mac is part of a work or school network, contact your IT department first — they may have a faster way to help you without needing to go through Apple.
If your Mac is encrypted with FileVault
FileVault is a built-in encryption tool that protects your data. If it's turned on, you'll see a FileVault login screen before the regular login screen when you start your Mac. You need the FileVault password (which is often the same as your login password, but not always) to get past it.
If you've forgotten both your login password and your FileVault password, the password reset methods above won't work until you get past FileVault. In Recovery Mode, you can turn off FileVault if you know your login password, but if you don't know either one, you'll need to contact Apple Support or visit an Apple Store.
If you remember your FileVault password but not your login password, use the password reset method for your Apple ID or Recovery Mode — you'll get past FileVault first, then reset your login password.
Preventing this from happening again
Once you're back in, take a few minutes to set up safeguards. Go to System Settings, click your Apple ID, then find "Password and Security." Turn on two-factor authentication if it's not already on — this protects your Apple ID from being used to reset your password without your knowledge. Add a recovery contact (another person with a Mac) so you have a fast way back in next time.
Consider writing your Apple ID email and a hint about your password somewhere safe — not the password itself, but something only you would understand. Some people keep this in a locked drawer or a password manager. You could also set up a recovery phone number on your Apple ID account, so Apple can reach you if something goes wrong.
Frequently Asked Questions
Can I reset my password without restarting my Mac?
Yes, if you remember your Apple ID password. Click the question mark at the login screen and use the "Reset it" option. If you're already logged in and just want to change your password, go to System Settings, click your Apple ID, then "Password and Security," and choose "Change Password." No restart needed.
What if I don't have an Apple ID?
You can create one for free at appleid.apple.com using any email address. Once created, use that Apple ID to reset your Mac password at the login screen. If you can't access a web browser because you're locked out, you'll need to use Recovery Mode instead to create a new administrator account.
Will resetting my password delete my files?
No. Resetting your login password or creating a new administrator account in Recovery Mode does not erase your files or applications. Everything stays where it is. If you use FileVault encryption, your files remain encrypted and protected.
How long does it take to reset my password?
Using your Apple ID at the login screen takes about five minutes. Using a recovery contact takes about the same. Recovery Mode takes 20 to 30 minutes because you need to restart your Mac and navigate the recovery tools. Contacting Apple Support or visiting an Apple Store can take anywhere from an hour to several days depending on availability.
What if I see an error message during the reset?
The most common errors are "Connection failed" (try again in a few minutes), "Invalid code" (check that you entered the code correctly), or "This account cannot be used to reset the password" (your Apple ID may not be set up on this Mac). If an error persists, try a different method — for example, switch from the Apple ID method to Recovery Mode — or contact Apple Support.