The fastest way back in: use your Apple ID

If you remember your Apple ID and password, you can reset your MacBook login password without erasing anything on the computer. When you see the login screen and have tried your password several times, macOS will show you a reset option that lets you use your Apple ID instead. This works on any Mac running macOS 10.7 or later.

At the login screen, click the question mark icon or wait for the system to offer password reset options after a few failed attempts. You will be asked to enter your Apple ID email and password. Once you do, macOS will let you create a new login password right there. Your files, applications, and settings stay exactly as they are — nothing gets deleted.

This method only works if you set up your Mac with an Apple ID originally. If you created a local account without linking it to Apple ID, you will need to use a different recovery method.

Key Takeaways

  • Your Apple ID can reset your login password at the macOS login screen without erasing your files or settings.
  • If you do not remember your Apple ID password, you can reset that through Apple's website before attempting the Mac reset.
  • Recovery Mode lets you create a new admin account if you cannot use your Apple ID, though this requires restarting your Mac.
  • A password hint you set during account creation may appear on the login screen if you have tried the password multiple times.
  • If you have a second admin account on the same Mac, that account holder can reset your password without Recovery Mode.

Resetting your Apple ID password first

If the Apple ID reset option appears on your login screen but you cannot remember your Apple ID password, you need to reset that password before you can use it to unlock your Mac. Go to another device — a phone, tablet, or another computer — and visit iforgot.apple.com.

Enter your Apple ID email address and follow Apple's verification steps. You will be asked to verify your identity using a trusted phone number, a recovery key, or security questions you answered when you created the account. Once verified, you can set a new Apple ID password. Then return to your locked Mac and use the new password at the reset screen.

This process usually takes a few minutes. If you do not have access to a trusted phone number or recovery information, contact Apple Support directly — they can verify your identity through other means, though this may take longer.

Using Recovery Mode when Apple ID is not an option

If you cannot use your Apple ID to reset your password, you can restart your Mac into Recovery Mode and create a new admin account from there. This method works on any Mac, but it does require you to restart the computer.

Shut down your Mac completely. Then turn it back on and when ready hold down Command and R together until you see the Apple logo or a spinning globe. Keep holding until the macOS Utilities window appears. This usually takes 30 seconds to a minute. Once in Recovery Mode, click Utilities in the menu bar, then Terminal.

In the Terminal window, type resetpassword and press Enter. A password reset window will open. Select your Mac from the dropdown menu, then enter a new password twice. Click Reset Password and restart your Mac. You can now log in with the new password you just created.

Getting help from another admin account on the same Mac

If someone else uses your Mac and has an admin account, they can reset your password without Recovery Mode. Ask them to go to System Settings (or System Preferences on older Macs), then Users & Groups. They should click the lock icon, enter their admin password, then select your account from the list on the left.

They can then click the "Reset Password" button and set a temporary password for you. You can log in with that temporary password and change it to something you prefer in System Settings under your own account. This is the quickest method if another admin is available.

What to do if you cannot access Recovery Mode

Some Macs with Apple Silicon chips (M1, M2, M3, and newer) have additional security that can prevent Recovery Mode access if you do not remember your login password. If you restart into Recovery Mode but are asked for a password you do not know, you will need to contact Apple Support or visit an Apple Store.

Bring proof of ownership — your receipt, order confirmation, or the serial number from the Mac's original packaging. Apple can verify your identity and help you regain access. This process may take a few days depending on how busy the store is and what information you have available.

Preventing this from happening again

Once you are back in your Mac, write down your new password somewhere safe — a physical notebook kept in a find place, a password manager like Keychain or 1Password, or a trusted person who can help you if you forget again. Do not store passwords in a text file on your computer or in an email account.

Make sure your Apple ID password is also something you can remember or have stored securely. Your Apple ID is the fastest way back into your Mac if you forget your login password, so keeping that password accessible is worth the effort. You can also enable two-factor authentication on your Apple ID for extra security — this makes your account harder to break into, though it does mean you will need access to a trusted device to verify your identity if you forget the password.

Frequently Asked Questions

Can I reset my password if I do not have another device to verify my Apple ID?

Yes. Use Recovery Mode to create a new admin account, then log in with that account. You can then reset your original account password through System Settings. Recovery Mode does not require any verification beyond restarting your Mac.

Will resetting my password delete my files?

No. Resetting your login password through Apple ID or Recovery Mode does not delete anything. Your files, applications, and settings remain on the Mac. Only your login password changes.

What if I forgot both my login password and my Apple ID password?

Use Recovery Mode to create a new admin account and log in. Then reset your Apple ID password through iforgot.apple.com from that account. Once your Apple ID is reset, you can change your original account password if you want to keep using it.

How long does it take to reset my password?

Using your Apple ID at the login screen takes a few minutes. Recovery Mode takes about 10 to 15 minutes from shutdown to logging back in. If you need Apple Support, the process can take several days depending on store availability and how much identity verification is needed.

Is there a way to avoid losing access to my Mac in the future?

Keep your Apple ID password somewhere you can find it, use a password manager to store your login password, and consider setting up a second admin account for emergencies. Two-factor authentication on your Apple ID adds security but requires a trusted device to verify your identity if you forget the password.