The fastest way back in: 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 disk or second computer needed. At the login screen, click the question mark or "Reset Password" option (the exact wording depends on your macOS version). Enter your Apple ID and follow the prompts to create a new login password.
This method works on any Mac running macOS 10.7 or later. The process takes about five minutes and you'll be able to log in when ready with your new password. Your files and programs stay exactly where they are.
If you don't see a reset option on your login screen, your Mac may be set up differently — move to the next section for other routes.
Key Takeaways
- If you know your Apple ID password, you can reset your login password directly from the login screen without any other tools or devices.
- Recovery Mode lets you reset your password using your Mac's built-in tools, and works even if you don't remember your Apple ID.
- If you set up a password hint or recovery key when you created your account, those can unlock your Mac faster than other methods.
- On newer Macs with Apple Silicon chips, the process is slightly different but still takes only a few minutes.
- If none of these methods work, you may need to erase your Mac and reinstall macOS, which removes all data unless you have a backup.
Using Recovery Mode when you don't remember your Apple ID
Recovery Mode is a special startup environment built into every Mac. It lets you reset your password without needing your Apple ID. Restart your Mac and hold down Command + R as soon as you hear the startup sound (or when ready after the Apple logo appears). Keep holding until you see the macOS Utilities window.
From the Utilities menu, select "Reset Password". Choose your user account from the dropdown, then create a new password. You don't need to enter your old password. Click "Reset Password" and restart your Mac — you can now log in with the new password you just created.
This method works on Intel-based Macs and Apple Silicon Macs (M1, M2, M3, and newer). The main difference is the timing: on Apple Silicon Macs, hold the power button instead of Command + R, then select "Options" when the startup menu appears.
If you set up a password hint or recovery key
When you first created your Mac account, you may have set up a password hint — a clue to help you remember your password. If you see a hint option on the login screen, click it to read that clue. Sometimes the hint is enough to jog your memory.
If you set up a recovery key (a long string of characters) when you enabled two-factor authentication on your Apple ID, you can use that key instead of your Apple ID password. At the login screen, click "Reset Password", then choose "Use a recovery key" and enter the key you saved. This skips the need to remember your Apple ID password.
Recovery keys are usually saved in your Apple ID account settings or in a find location you chose when you set them up. If you can't find yours, the Apple ID password method or Recovery Mode will still work.
Resetting your password on an Apple Silicon Mac (M1, M2, M3, and newer)
Apple Silicon Macs use a slightly different startup process. Shut down your Mac completely. Press and hold the power button until you see "Loading startup options" on the screen — this usually takes about 10 seconds. Release the button.
You'll see a startup menu with several options. Click "Options", then "Continue". This takes you to macOS Recovery. From there, select "Reset Password" from the Utilities menu, choose your account, and create a new password just as you would on an Intel Mac.
The password reset itself works identically on Apple Silicon and Intel Macs — the only difference is how you enter Recovery Mode. Once you're in Recovery Mode, the steps are the same.
What to do if you forgot your Apple ID password too
If you don't remember your Apple ID password and can't use Recovery Mode for some reason, you can reset your Apple ID password through another device or computer. Go to iforgot.apple.com on any web browser, enter your Apple ID email address, and follow Apple's verification steps. You'll receive a code by email or text message to confirm your identity.
Once you've reset your Apple ID password online, go back to your Mac and use the login screen reset option or Recovery Mode with your new Apple ID password. This approach takes longer because you need access to another device, but it works when other methods don't.
If you don't have access to another device and can't remember either your Mac password or your Apple ID password, your only option is to erase your Mac and reinstall macOS. This removes all your files and programs unless you have a backup.
When you need to erase your Mac and start over
If you've tried all the methods above and none of them work, you can erase your Mac and reinstall macOS. This is a last resort because it removes everything on your Mac — all your files, programs, and settings — unless you have a backup.
To erase your Mac, enter Recovery Mode (Command + R on Intel, or hold the power button on Apple Silicon), then select "Disk Utility" from the Utilities menu. Select your Mac's main drive and click "Erase". After erasing, quit Disk Utility and select "Reinstall macOS" to put a fresh copy of the operating system back on your Mac.
Before you erase, check whether you have a Time Machine backup or an iCloud backup. If you do, you can restore your files and programs after reinstalling macOS. If you don't have a backup, erasing means losing everything that wasn't backed up elsewhere.
Preventing this from happening again
Once you're back into your Mac, take a few minutes to set up recovery options so you don't get locked out again. Open System Settings (or System Preferences on older Macs), go to your user account settings, and make sure your Apple ID is connected to your Mac account. This is the fastest way back in if you forget your password again.
If you use two-factor authentication on your Apple ID, generate and save a recovery key. Write it down or store it in a password manager — somewhere you can find it if you need it. You can also set up a password hint that will appear on your login screen, though hints work best if they're specific enough to actually help you remember.
Consider setting up a second administrator account on your Mac. If you ever get locked out of your main account, you can log in with the second account and reset the main one from there. This is one of the most reliable backup plans.
Frequently Asked Questions
How long does it take to reset my Mac password?
If you use your Apple ID or Recovery Mode, the reset takes about 5 to 10 minutes. If you need to reset your Apple ID password first through iforgot.apple.com, add another 10 to 15 minutes. If you have to erase your Mac and reinstall macOS, expect 30 minutes to an hour depending on your internet speed.
Will resetting my password delete my files?
No. Resetting your login password through the login screen, Recovery Mode, or your Apple ID does not delete any files or programs. Everything stays on your Mac. Only erasing your Mac (the last resort option) removes your files, and only if you don't have a backup.
Can I reset my password if my Mac is encrypted with FileVault?
Yes. FileVault encryption doesn't prevent password resets — you can still use your Apple ID or Recovery Mode. However, you'll need to enter your password to decrypt your drive after you reset it, so make sure you remember the new password you create.
What if I don't have an Apple ID?
You can still use Recovery Mode to reset your password without an Apple ID. Enter Recovery Mode, select "Reset Password", choose your account, and create a new password. You don't need an Apple ID for this method, though having one makes future resets faster.
Can someone else reset my Mac password if I'm not the owner?
No. Only the account owner or someone with administrator access can reset a password. If you're trying to reset someone else's password without permission, you'll need their Apple ID or administrator credentials. This is a security feature to protect your data.