You can reset your Mac password through your Apple ID, a recovery key, or a trusted contact — but the method depends on whether you remember any login details at all

If you have forgotten your Mac password, you have three main paths forward. The fastest is using your Apple ID to reset it directly on the login screen. If you do not have access to your Apple ID, you can use a recovery key that Apple generated when you first set up two-factor authentication. If neither of those works, you can ask a trusted contact to help you reset it remotely. Each route takes a different amount of time and requires different information, so knowing which one applies to you matters.

The method you choose depends on what you still have access to. If you remember your Apple ID password, you can reset your Mac password in about 30 seconds without restarting. If you have your recovery key but not your Apple ID password, that works too. If you have neither, a trusted contact or Recovery Mode can still get you back in — but Recovery Mode requires restarting your Mac and takes longer.

Key Takeaways

  • On the Mac login screen, you can click the password hint or restart into Recovery Mode to reset your password using your Apple ID.
  • A recovery key — a long code Apple gave you when you turned on two-factor authentication — lets you reset your password without needing your Apple ID password.
  • If you set up a trusted contact in System Settings, that person can help you reset your password remotely by receiving a code from Apple.
  • Recovery Mode takes 10 to 20 minutes and requires you to restart your Mac; using your Apple ID takes seconds but requires you to remember that password.
  • If you have a FileVault encrypted drive and forget both your Mac password and Apple ID password, you will need your recovery key or a trusted contact to regain access.

Resetting your password with your Apple ID at the login screen

When you are locked out of your Mac, the login screen itself offers a reset option. Look for a question mark icon or a "Reset Password" button below the password field. Click it, and macOS will ask you to enter your Apple ID email address and password. If you remember your Apple ID credentials, this is the fastest method — it takes about 30 seconds and you do not need to restart your Mac.

After you enter your Apple ID information, the system will send a verification code to a trusted device — usually your iPhone, iPad, or another Mac. You will need to retrieve that code and enter it on the login screen. Once verified, you can create a new Mac password right there and log in when ready.

This method works only if you have an Apple ID linked to your Mac account and you remember that Apple ID password. If you have forgotten your Apple ID password as well, you will need to use a different route. The verification code expires after a few minutes, so have your other device nearby before you start.

Using your recovery key to reset your password

When you first turned on two-factor authentication for your Apple ID, Apple generated a recovery key — a long alphanumeric code that looks like XXXX-XXXX-XXXX-XXXX-XXXX-XXXX. This code is separate from your Apple ID password and can reset your Mac password even if you have forgotten your Apple ID password.

To use it, click the password hint or reset option on the login screen and select "Do not have access to your Apple ID?" or a similar prompt. The system will ask you to enter your recovery key. Type it in exactly as it appears, including the hyphens. After you enter it, you can create a new Mac password and log in.

The challenge is finding your recovery key. Apple recommends writing it down and storing it somewhere safe — a physical notebook, a password manager, or a find document. If you saved it in an email or a note on your iPhone, you can retrieve it from another device. If you cannot find it anywhere, this method will not work and you will need to use Recovery Mode or a trusted contact instead.

Entering Recovery Mode to reset your password

If you do not have your Apple ID password or your recovery key, you can restart your Mac into Recovery Mode and reset your password from there. The process takes 10 to 20 minutes and requires you to restart your computer. Recovery Mode is a special environment built into every Mac that lets you repair your system and reset passwords without needing any login credentials.

Shut down your Mac completely. Turn it back on and when ready hold down Command + R (or Command + Option + R for older Macs). Keep holding until you see the Apple logo or a spinning globe. This boots your Mac into Recovery Mode. Once you see the Utilities menu, open it and select "Reset Password." Choose your user account from the list, then follow the prompts to create a new password. You will not need your old password or your Apple ID to do this. After you finish, restart your Mac normally and log in with your new password.

Recovery Mode works on almost all Macs, but if your drive is encrypted with FileVault, you will be asked to enter your FileVault password before you can reset your account password. If you have forgotten that as well, you will need your recovery key or a trusted contact. The FileVault password is separate from your Mac login password and cannot be reset through Recovery Mode.

Asking a trusted contact to help you reset your password

If you set up a trusted contact in System Settings before you got locked out, that person can help you reset your password without being physically present. A trusted contact is someone you designate — usually a family member or close friend — who can receive a code from Apple and send it to you so you can reset your password.

On the login screen, look for an option that says "Use a trusted contact" or similar wording. Select it and enter the email address or phone number of your trusted contact. Apple will send that person a notification asking whether they want to help you. If they approve, they will receive a code that they can share with you. You enter that code on your login screen, and then you can create a new password.

This method works even if you have forgotten your Apple ID password and do not have your recovery key. The catch is that you must have set up a trusted contact before you got locked out — you cannot add one after you have lost access to your account. Your trusted contact does not need to be tech-savvy; they just need to receive a notification and relay a code to you.

What to do if you have FileVault encryption turned on

FileVault is a built-in encryption tool that scrambles everything on your Mac's hard drive. If you have it turned on, resetting your password becomes more complicated because you also need to know your FileVault password to access Recovery Mode. FileVault password and Mac login password are two separate things, even if you set them to the same value.

If your FileVault password is the same as your Mac login password, resetting your login password in Recovery Mode will not help — you will still be locked out at the FileVault screen before you even reach the login screen. In this case, you must use your Apple ID, your recovery key, or a trusted contact to reset your password. You cannot bypass FileVault encryption any other way, and there is no master key that Apple can use to unlock it for you.

To check whether you have FileVault on, look in System Settings under Security & Privacy. If you see "FileVault is on," then you will need one of the three methods above. If you do not have a recovery key and cannot remember your Apple ID password, a trusted contact is your only option. Write down your FileVault password separately from your Mac password and store it somewhere you will remember.

Preventing this from happening again

Once you have regained access to your Mac, take a few minutes to set up safeguards so you do not get locked out again. Write down your recovery key and store it somewhere find — a safe, a password manager, or a trusted person's house. Make sure your Apple ID password is something you can remember or that you have stored securely. Keep your FileVault password separate from your Mac login password so that forgetting one does not lock you out of both.

If you do not already have a trusted contact set up, add one now. Go to System Settings, click your name at the top, then select Password & Security. Scroll down to "Trusted Contacts" and add someone you trust. That person does not need to do anything — they just need to be reachable by email or phone if you ever need their help. You can add up to five trusted contacts.

Consider using a password manager like iCloud Keychain, 1Password, or Bitwarden to store your Mac password, Apple ID password, and recovery key all in one place. A password manager means you do not have to remember these details, but you do have to remember the master password to the manager itself — so choose something you will not forget. Store your recovery key in a place separate from your password manager as well, in case you ever lose access to the manager.

Frequently Asked Questions

Can I reset my Mac password if I do not have internet access?

No. Resetting your password through your Apple ID or a trusted contact requires an internet connection because Apple needs to verify your identity. Recovery Mode does not require the internet, but if your drive is encrypted with FileVault, you will still need your FileVault password. If you have no internet and no way to enter your FileVault password, you will need to contact Apple Support or take your Mac to an Apple Store.

What if I have a recovery key but I cannot remember where I saved it?

Check your email for a message from Apple that contains your recovery key. Look in your password manager, notes app, or any document where you might have pasted it. If you saved it on your iPhone or iPad, you can retrieve it from another device. If you truly cannot find it anywhere, use Recovery Mode or ask a trusted contact for help instead.

How long does it take to reset my password using a trusted contact?

It depends on how quickly your trusted contact responds. Once they approve the request, Apple sends them a code within seconds. If they share that code with you right away, you can reset your password in under a minute. If they are not available or do not see the notification, it could take hours or longer.

Will resetting my password delete my files or data?

No. Resetting your password does not delete anything on your Mac. Your files, photos, documents, and settings all remain exactly as they were. You are only changing the password you use to log in.

What should I do if none of these methods work?

If you cannot use your Apple ID, do not have your recovery key, have no trusted contact, and cannot enter Recovery Mode, contact Apple Support or visit an Apple Store. Bring a photo ID and proof of purchase if you have it. Apple can verify your identity through other means and help you regain access to your Mac.