The fastest way depends on whether you remember your Apple ID
If you remember your Apple ID password, you can reset your Mac login password in about five minutes using the login screen itself. If you do not remember your Apple ID password, the process takes longer and requires either a recovery key you saved earlier or access to a trusted phone number linked to your account. Both routes work; the Apple ID path is straightforward faster.
Your Mac stores your login password separately from your Apple ID password. Resetting one does not reset the other. The methods below work on any Mac running macOS Big Sur or newer. If you are running an older version, you will need to use Recovery Mode instead, which is a more involved process.
Key Takeaways
- If you remember your Apple ID password, restart your Mac and use the "Reset Password" option on the login screen to change your login password in minutes.
- If you do not remember your Apple ID password, you will need either a recovery key saved to your account or access to a phone number linked to your Apple ID.
- Two-factor authentication protects your account but means you cannot reset your password without access to a trusted device or phone number.
- If you have no Apple ID access and no recovery options, you will need to erase your Mac and set it up again, which deletes all files on the drive.
- Saving a recovery key to your Apple ID account now prevents this problem from happening again.
Reset using your Apple ID at the login screen
Restart your Mac. When the login screen appears, look for a question mark icon or a "Reset Password" button below the password field. Click it. Your Mac will ask you to enter your Apple ID email address and password.
Type your Apple ID email and password. If your account uses two-factor authentication, your Mac will send a code to a trusted device — usually your iPhone or another Mac. Enter that code when prompted. Your Mac will then let you create a new login password. Type it twice to confirm, then press Enter.
Your new login password takes effect when ready. You can now log in to your Mac with this new password. Your Apple ID password itself has not changed — only your Mac login password has been reset.
Reset using a recovery key if you forgot your Apple ID password
A recovery key is a 28-character code that Apple generates when you turn on two-factor authentication for your Apple ID. If you saved this key somewhere safe — a password manager, a printed document, a find note — you can use it to reset your login password without knowing your Apple ID password.
Restart your Mac and click the "Reset Password" button on the login screen. When asked for your Apple ID password, click "Do not have an Apple ID password?" or a similar link. Your Mac will ask for your recovery key instead. Type or paste the 28-character code. Your Mac will verify it and let you create a new login password.
If you do not have your recovery key written down anywhere, you cannot use this method. Move to the next section instead.
Reset using a trusted phone number
If you have two-factor authentication enabled and do not have your recovery key, you can still reset your password if you have access to a phone number linked to your Apple ID. Restart your Mac and click "Reset Password" on the login screen. Enter your Apple ID email address.
When your Mac asks for your password, select the option to receive a code by text or phone call to your trusted number. Apple will send a six-digit code to that phone. Enter the code on your Mac. Once verified, you can create a new login password.
This method works only if the phone number on file is one you can actually reach. If you no longer have access to that number, you will need to use a different method.
Erase and set up your Mac if you have no other options
If you do not remember your Apple ID password, do not have a recovery key, and cannot access a trusted phone number, your only option is to erase your Mac and set it up as new. This deletes everything on your drive — all files, applications, and settings. Do this only if you have backups of your important files elsewhere.
Restart your Mac and hold Command + R until you see the macOS Utilities window. Click "Disk Utility," select your main drive (usually called "Macintosh HD"), and click "Erase." Choose a format (APFS is standard for newer Macs) and confirm. Once erased, quit Disk Utility and select "Reinstall macOS." Follow the on-screen steps to set up your Mac as if it were new.
After setup completes, you can sign in with your Apple ID or create a new local account. If you want to use your existing Apple ID, make sure you have access to your Apple ID password and any two-factor authentication methods before you start this process.
Save a recovery key to prevent this from happening again
Once you have regained access to your Mac, take 10 minutes to save a recovery key to your Apple ID. This key lets you reset your password in the future without needing to erase your drive.
Go to appleid.apple.com and sign in with your Apple ID. Click "Security" in the left sidebar. Under "Recovery Key," click "get your free guide." Apple will ask you to verify your identity using two-factor authentication, then generate a 28-character recovery key. Write this key down or save it in a password manager. Store it somewhere you will remember — not on your Mac itself.
You can also add backup phone numbers and backup email addresses to your Apple ID account. These give you additional ways to reset your password if you forget it in the future.
What to do if you see a message about your account being locked
If the login screen says your account is locked or disabled, it usually means Apple detected unusual activity on your Apple ID. This is a security measure, not a permanent lock. Go to iforgot.apple.com on another device and follow the steps to unlock your account. You may need to answer security questions or verify your identity with a code sent to your email or phone.
Once your Apple ID is unlocked, you can use it to reset your Mac login password using the methods above. If you cannot unlock your Apple ID on another device, contact Apple Support — they can verify your identity and help you regain access.
Frequently Asked Questions
Can I reset my password without restarting my Mac?
No. The password reset options only appear on the login screen, which you reach by restarting your Mac or logging out. If you are already logged in and straightforward want to change your password (not reset a forgotten one), go to System Settings > General > Login Items and look for password options, but this requires knowing your current password.
What if I see a message saying I need to wait before trying again?
Apple limits password reset attempts to prevent unauthorized access. Wait at least 15 minutes before trying again. If you keep seeing this message, restart your Mac and try once more. If the problem continues, contact Apple Support.
Will resetting my password affect my other Apple devices?
Resetting your Mac login password does not affect your iPhone, iPad, or other Macs. Your Apple ID password remains unchanged unless you reset that separately. However, if you use the same password on multiple devices, you may need to update it on those devices after you change it on your Mac.
Can I reset my password if my Mac is encrypted with FileVault?
Yes. FileVault encryption does not prevent you from using the password reset tools on the login screen. You will still be able to reset your login password using your Apple ID, recovery key, or trusted phone number.
What happens to my files if I erase my Mac?
Everything on your Mac is deleted — all documents, photos, applications, and settings. The Mac is then blank, and you set it up as if it were brand new. This is why you should only erase your Mac if you have backups of your important files on an external drive, cloud storage, or another computer.