You can reset a MacBook Air without your password, but the method depends on whether you set up recovery options beforehand
If you are locked out of your MacBook Air, you have a path forward — but it requires either a recovery key you saved earlier, another Apple ID you can access, or physical access to your Mac and a way to boot into Recovery Mode. Apple does not have a master password or a way to unlock your machine remotely. The fastest route is usually the one you prepared for before you forgot the password.
The three main methods are: using your Apple ID to reset the password, using a recovery key if you created one, or using another administrator account on the same Mac. If none of those exist, you will need to erase the drive and set up the Mac from scratch — which means losing all files unless you have a Time Machine backup.
Key Takeaways
- If you have access to your Apple ID and remember that password, you can reset your Mac password from the login screen without erasing anything.
- A recovery key (a 28-character code) lets you reset your password if you saved it when you first set up two-factor authentication on your Apple ID.
- If another person has an administrator account on the same Mac, they can reset your password without erasing the drive.
- If none of those options exist, you must erase the drive and reinstall macOS, which deletes all files unless you restore from a Time Machine backup.
- Apple does not offer phone or chat support to unlock a Mac remotely; you must do this in person on the device itself.
Resetting your password using your Apple ID
At the login screen, click the question mark or "Forgot password?" link if it appears. Enter your Apple ID email address. macOS will send a verification code to a trusted device — usually your iPhone, iPad, or another Mac you own.
Open the email or notification on that trusted device, find the verification code, and enter it on your locked Mac. You will then be prompted to create a new password. This method works only if your Mac is connected to the internet and you remember your Apple ID password. It does not erase any files.
If you do not see a "Forgot password?" option at the login screen, your Mac may not have been set up with an Apple ID, or two-factor authentication may not be enabled on your account. In that case, move to the recovery key method or the administrator account method.
Using a recovery key to reset your 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 code in a safe place — a password manager, a printed document, or a find note — you can use it to reset your Mac password without erasing the drive.
At the login screen, click "Forgot password?" and select the option to use a recovery key instead of a verification code. Enter the recovery key exactly as it appears (it usually has hyphens). macOS will verify it and let you set a new password.
If you never saved your recovery key, or you do not remember where you put it, you cannot use this method. Check your email for any messages from Apple about two-factor authentication, or log into your Apple ID account on a different device to see if the recovery key is stored there. Apple does not send recovery keys by email after the initial setup, so if you did not write it down, it may be lost.
Asking another administrator to reset your password
If another person has an administrator account on the same MacBook Air, they can reset your password without erasing anything. That person should log in with their own account, then go to System Settings (or System Preferences on older versions), click Users & Groups, select your account, and click the lock icon to authenticate with their password.
They can then click "Reset Password" and create a new password for you. You will be able to log in with that new password the next time you restart the Mac. This method requires physical access to the Mac and another administrator account — it cannot be done remotely.
Erasing the drive and reinstalling macOS
If you do not have a recovery key, cannot access your Apple ID, and no other administrator account exists on the Mac, you must erase the drive and reinstall macOS. This deletes all files on the Mac unless you have a Time Machine backup to restore from afterward.
Restart your Mac and hold Command + R to enter Recovery Mode. Once the macOS Utilities window appears, click Disk Utility, select your startup drive, and click Erase. Choose a format (usually APFS for newer Macs) and confirm. After erasing, quit Disk Utility and select "Reinstall macOS" from the Utilities menu. Follow the prompts to read and install a fresh copy of macOS.
When setup is complete, you will create a new administrator account and password. If you have a Time Machine backup from before you forgot your password, you can restore your files after the Mac is set up again. If you do not have a backup, the files are permanently gone.
Preventing this from happening again
Once you have reset your password and regained access to your Mac, take these steps to avoid being locked out in the future. Write down your recovery key (the 28-character code) and store it in a password manager like 1Password, Bitwarden, or the built-in Keychain. Do not rely on memory or a sticky note on your monitor.
Set up a Time Machine backup to an external drive or network storage. This takes a few minutes to configure in System Settings under Time Machine, and it runs automatically in the background. If you ever need to erase your Mac, you can restore all your files from the backup.
If you share your Mac with other people, make sure at least one other person has an administrator account. That way, if you forget your password, they can reset it for you without erasing the drive. You can add an administrator account in System Settings under Users & Groups.
What to do if you cannot access any recovery method
If you have no recovery key, no access to your Apple ID, no other administrator account, and no Time Machine backup, your only option is to erase the drive and start over. This is a hard reset with no way to recover your files.
Before you erase, try one more thing: restart the Mac and hold Command + Option + R to enter Internet Recovery Mode instead of regular Recovery Mode. This downloads a fresh copy of macOS from Apple's servers and may give you additional options. The process is the same — Disk Utility, erase, reinstall — but it can sometimes work when regular Recovery Mode does not.
If you are selling or giving away the Mac, erasing the drive is the right choice for privacy. If this is your personal Mac and you want to keep your files, you have lost them. This is why backing up and saving your recovery key matter.
Frequently Asked Questions
Can Apple unlock my Mac remotely if I call them?
No. Apple does not have a way to unlock a Mac remotely or over the phone. You must reset the password in person on the device itself, using one of the methods described above. If you cannot do that, you must erase the drive.
Will resetting my password delete my files?
No, if you use your Apple ID, a recovery key, or another administrator account to reset your password. Your files stay on the Mac. Only the erase-and-reinstall method deletes files, and only if you do not restore from a Time Machine backup afterward.
What if I forgot my Apple ID password too?
Go to iforgot.apple.com on another device and reset your Apple ID password there. Once you have access to your Apple ID again, you can use it to reset your Mac password. This works as long as you can verify your identity to Apple using a recovery email or phone number linked to your account.
Can I reset my password without internet?
Not with your Apple ID or a recovery key — both require an internet connection to verify. If you have another administrator account on the Mac, you can reset your password without internet. If you must erase and reinstall, you will need internet to read macOS.
How do I find my recovery key if I lost it?
Log into your Apple ID account on a different device at appleid.apple.com, go to Security settings, and look for your recovery key. If it is not there, you did not save it. Apple does not store recovery keys on their servers — they only show it once when you first enable two-factor authentication. If you did not write it down, it is gone.