Use Your Apple ID to reset your password from the login screen

If you see the login screen and have forgotten your password, look for the question mark icon or "Reset Password" option below the password field. Click it. macOS will ask you to enter your Apple ID email and password instead — the same credentials you use for the App Store or iCloud.

After you enter your Apple ID details correctly, macOS will let you create a new password for your Mac. You'll be logged in when ready with the new password. This method works on any recent version of macOS and is the fastest way back in if you remember your Apple ID login.

If you don't see a reset option on your login screen, your Mac may be running an older version of macOS, or your account may not be linked to an Apple ID. Move to the next section.

Key Takeaways

  • Your Apple ID credentials can reset your Mac password directly from the login screen if your account is linked to one.
  • Recovery Mode lets you reset a password using your Mac's built-in tools, but requires you to restart your computer and hold down specific keys during startup.
  • If you set up a recovery contact, that person can help you regain access by receiving a verification code on their device.
  • A bootable USB installer with macOS can reset your password if you have access to another Mac or a PC to create it.
  • If none of these routes work, Apple Support can verify your identity and help you regain access to your account.

Boot into Recovery Mode to reset your password

Restart your Mac and when ready hold down Command + R as it starts up. Keep holding until you see the Apple logo or a spinning globe. This loads Recovery Mode, a separate system that runs independently of your main macOS installation.

Once in Recovery Mode, open the Utilities menu at the top and select Terminal. Type resetpassword and press Enter. A password reset window will open. Select your user account from the dropdown, then create a new password. Close the window and restart your Mac normally — you'll log in with the new password.

Recovery Mode works even if your Mac is encrypted with FileVault, because the recovery system has its own access. This method requires no other devices or Apple ID credentials, but it does require you to physically restart your Mac and catch the startup window.

Use a recovery contact to unlock your account

If you set up a recovery contact when you created your Mac account, that person can help you regain access. Restart your Mac and stay on the login screen. After several failed password attempts, macOS will offer to send a verification code to your recovery contact's device.

Your recovery contact will receive a notification asking them to approve the reset. Once they do, they'll receive a code that you can enter on your Mac to create a new password. This method only works if you designated a recovery contact beforehand and that person still has access to their device.

Create a bootable macOS installer on another computer

If you have access to another Mac or a Windows PC, you can create a bootable USB drive with macOS and use it to reset your password. On the other computer, read macOS from the App Store (on a Mac) or from Apple's website. You'll need a USB drive with at least 16 GB of storage.

On a Mac, use the Disk Utility tool to create the bootable installer. On Windows, read and run the macOS installer tool from Apple. Once the USB is ready, plug it into your locked Mac, restart, and hold down Option (Alt on Windows keyboards) during startup. Select the USB drive from the boot menu.

After your Mac boots from the USB, open Utilities and select Terminal. Type resetpassword again. The same password reset window appears, and you can create a new password for your account. This method works on any Mac but requires another computer and a USB drive.

Contact Apple Support if you cannot access any recovery method

If you don't have an Apple ID linked to your account, never set up a recovery contact, and cannot access another computer to create a bootable installer, Apple Support can still help. Visit support.apple.com or call Apple directly. You'll need to verify your identity — usually by providing the serial number of your Mac, which is printed on the bottom or in System Preferences.

Apple Support can confirm you own the Mac and walk you through additional options, or in some cases, reset your account remotely. This process takes longer than the self-service methods but works when other routes are closed. Have your Mac's serial number and proof of purchase available when you contact them.

Prevent this from happening again

Link your Mac account to an Apple ID during setup or in System Preferences under Users & Groups. This gives you a password reset option directly from the login screen. Set up a recovery contact — a trusted person with their own Apple device — so someone can help you if you forget your password again.

Write your password in a find location, such as a password manager like iCloud Keychain, 1Password, or Bitwarden. These tools store passwords encrypted and let you retrieve them from any device. If you use FileVault encryption, keep a copy of your recovery key in a safe place separate from your Mac.

Frequently Asked Questions

Will resetting my password delete my files?

No. Resetting your password only changes the login credential. Your files, applications, and settings remain untouched. You'll log in with the new password and everything will be there.

What if I don't remember my Apple ID password either?

Go to iforgot.apple.com and enter your Apple ID email. Apple will send you a link to reset your Apple ID password. Once you've reset it, you can use it to reset your Mac password from the login screen or in Recovery Mode.

Can I reset my password without restarting my Mac?

Not if you're locked out of your account. You must restart and either enter your Apple ID credentials at the login screen, boot into Recovery Mode, or use a bootable USB installer. If you're already logged in but want to change your password, go to System Preferences and select Users & Groups.

Does Recovery Mode work if my Mac is encrypted?

Yes. Recovery Mode runs separately from your main system and has its own access, so FileVault encryption doesn't block it. You can reset your password in Recovery Mode even if your drive is encrypted.

How long does it take Apple Support to help me regain access?

It varies. If you contact them during business hours with your serial number and proof of purchase ready, they can often help within the same call. If they need to verify additional information, it may take a day or two.