The fastest way back in: use your Apple ID
If you have an Apple ID linked to your Mac, you can reset your password at the login screen without needing recovery tools or a second computer. At the login screen, click the question mark or "Reset Password" option (the exact wording depends on your macOS version). Enter your Apple ID email address, then follow the prompts to verify your identity — usually by answering security questions or receiving a code on another Apple device you own.
This method works on macOS Monterey and newer. Your password resets when ready, and you can log in with your new password right away. You do not need to restart or wait for anything to process.
If you do not see a reset option at the login screen, or if you do not have an Apple ID set up on this Mac, move to the next section.
Key Takeaways
- Using your Apple ID at the login screen is the fastest reset method if your account is linked to one.
- Recovery Mode (Command-R at startup) lets you reset your password through System Settings without an Apple ID, but requires you to restart your Mac.
- If you have a second Mac or iPhone, you can use it to reset your password remotely through Find My Mac or iCloud.com.
- A bootable USB installer can reset your password if Recovery Mode is not working, but you need to create it on another Mac first.
- If none of these work, you may need to erase your Mac and reinstall macOS, which erases all files on the drive.
Using Recovery Mode when you have no Apple ID
If your Mac account is not linked to an Apple ID, or if the login screen reset did not work, restart your Mac and hold Command-R as soon as you hear the startup sound. Keep holding until you see the Apple logo or a spinning globe. This boots your Mac into Recovery Mode.
Once in Recovery Mode, open Utilities from the menu bar, then select Terminal. Type resetpassword and press Enter. A password reset window opens. Select your user account from the dropdown, enter a new password twice, and click Reset Password. Restart your Mac normally and log in with your new password.
Recovery Mode works on almost all Macs, but it requires you to restart and wait for the recovery environment to load — usually one to three minutes. If your Mac does not boot into Recovery Mode, your startup disk may be damaged, and you will need to use a bootable USB installer instead.
Resetting from another Apple device
If you own a second Mac, iPad, or iPhone, you can reset your password without touching the locked Mac. On your other device, go to iCloud.com or open the Find My app. Sign in with your Apple ID, select Find My Mac, choose the locked Mac from the list, and select your user account. Click Reset Password, enter a new password, and confirm.
Your Mac does not need to be powered on for this to work — the password change takes effect the next time you try to log in. This is useful if your Mac is at home and you are somewhere else, or if you want to avoid restarting it.
This method only works if Find My Mac is turned on in System Settings. If you turned it off before locking yourself out, you will need to use Recovery Mode or a bootable installer instead.
Creating a bootable USB installer to reset your password
If Recovery Mode will not load, you can create a bootable USB drive on another Mac and use it to reset your password. You need a USB drive with at least 16 GB of space and another Mac with internet access.
On the working Mac, open the App Store and search for the macOS version you want to install (usually the same version as your locked Mac). Click Get, then Install. When prompted, choose your USB drive as the destination. The process takes 15 to 45 minutes depending on your internet speed and the macOS version.
Once the USB drive is ready, plug it into your locked Mac, restart, and hold Option as it starts up. Select the USB drive from the startup menu. When macOS loads, open Utilities and select Terminal. Type resetpassword, select your account, enter a new password, and restart normally.
What to do if your Mac will not restart or load Recovery Mode
If your Mac restarts but does not respond to Command-R, or if it gets stuck on the Apple logo, your startup disk may have a hardware problem or file corruption. Try restarting again and holding Command-R longer — sometimes it takes 10 to 15 seconds before Recovery Mode responds.
If that does not work, try Internet Recovery instead: restart and hold Command-Option-R. This downloads Recovery Mode from Apple's servers instead of loading it from your disk. It is slower (usually 10 to 20 minutes) but works even if your disk is partially damaged.
If neither Command-R nor Command-Option-R works, your disk may need repair or replacement. At that point, a bootable USB installer is your best option. If you do not have access to another Mac, you may need to take your Mac to an Apple Store or authorized repair shop.
Erasing your Mac as a last resort
If none of the above methods work, you can erase your Mac and reinstall macOS from scratch. This removes all files, accounts, and settings — use this only when you have no other option.
Boot into Recovery Mode (Command-R) or Internet Recovery (Command-Option-R). Open Disk Utility from Utilities. Select your startup disk from the left sidebar, click Erase, choose a format (APFS for newer Macs, Mac OS Extended for older ones), and confirm. Once erasing finishes, close Disk Utility and select Reinstall macOS from the Recovery menu. Follow the prompts to read and install a fresh copy of macOS.
The reinstall takes 30 minutes to two hours depending on your internet speed. When it finishes, you will see the setup screen where you can create a new account and link it to your Apple ID. All your previous files are gone, so only use this if you have backups or if the data on this Mac is not important to you.
Preventing lockouts in the future
Link your Mac account to an Apple ID in System Settings under General or Users & Groups. This gives you a password reset option at the login screen if you ever forget your password again. You can also turn on Find My Mac in System Settings under your Apple ID — this lets you reset your password from another device.
Write your password down and store it somewhere safe, or use a password manager like Keychain (built into macOS) or a third-party app like 1Password or Bitwarden. If you use a password manager, make sure you remember the main password — if you forget that one too, you are back to square one.
Frequently Asked Questions
Can I reset my password without restarting my Mac?
Only if you have an Apple ID linked to your account and you can see the reset option at the login screen. All other methods require a restart because they need Recovery Mode or a bootable drive to run outside your normal user account.
What if I do not remember my Apple ID password either?
Go to iforgot.apple.com on any device with internet access. Enter your Apple ID email, answer security questions or receive a code on a trusted device, and reset your Apple ID password. Once you have that back, you can reset your Mac password using the Apple ID method.
Will resetting my password delete my files?
No. Resetting your password only changes the password you use to log in. All your files, apps, and settings stay on your Mac. Only erasing your disk (the last resort method) deletes files.
How long does it take to reset my password?
Using your Apple ID at the login screen takes one to two minutes. Recovery Mode takes five to ten minutes total (including restart time). A bootable USB installer takes 20 to 45 minutes depending on your internet speed and whether you need to create the USB drive first.
Can someone else reset my Mac password if they have physical access?
Yes, if they can restart your Mac and access Recovery Mode or a bootable drive. This is why physical security matters — if someone steals your Mac, they can reset your password and access your files. Turn on FileVault (full-disk encryption) in System Settings to prevent this.