The fastest way depends on whether you remember your Apple ID
If you are locked out of your MacBook Air, your path forward splits into two routes: one if you remember your Apple ID password, and one if you do not. The Apple ID route works on any recent MacBook Air and takes about 10 minutes. If you do not have access to your Apple ID, you will need either a recovery key you saved earlier, or physical access to another Mac or iPhone that is signed into the same Apple ID account.
Do not attempt to bypass the login screen by restarting into Recovery Mode and erasing the drive unless you have already backed up your files elsewhere. That step is irreversible and will delete everything on the machine.
Key Takeaways
- If you remember your Apple ID password, you can unlock your MacBook Air from the login screen by clicking "Forgot password?" and following the reset flow.
- A recovery key (a 28-character code you may have saved when you first set up two-factor authentication) lets you reset your password without needing access to another device.
- If you have another Mac or iPhone signed into the same Apple ID, you can use it to unlock your MacBook Air remotely through iCloud.
- Restarting into Recovery Mode and erasing the drive is the last resort and will delete all your files unless you have a backup elsewhere.
Unlocking with your Apple ID password
At the MacBook Air login screen, click the question mark icon or the "Forgot password?" link below the password field. You will be asked to enter your Apple ID email address. After you do, macOS will send a verification code to a phone number or email address associated with your Apple ID account.
Open the email or text message, copy the code, and enter it on the MacBook Air. You will then be prompted to create a new password. Make it at least 8 characters long and include uppercase letters, lowercase letters, numbers, and a symbol if possible — macOS will suggest a strong password, or you can type your own. Once you confirm the new password, the login screen will unlock and you can sign in.
Using a recovery key if you have one
When you first turned on two-factor authentication for your Apple ID, Apple gave you a 28-character recovery key that looks like XXXX-XXXX-XXXX-XXXX-XXXX-XXXX. If you saved this key in a safe place (a password manager, a printed document, or a note in another account), you can use it to reset your password without needing access to another device.
At the login screen, click "Forgot password?" and enter your Apple ID email. Instead of waiting for a verification code, look for a link or button that says "Don't have access to your trusted devices?" or "Use your recovery key." Paste or type the recovery key, then create a new password. The process takes about five minutes.
Unlocking from another Mac or iPhone on the same account
If you have a second Mac or an iPhone that is already signed into the same Apple ID, you can use it to unlock your MacBook Air. On the second device, open System Settings (Mac) or Settings (iPhone), go to [Your Name] at the top, then select "Password & Security." Look for an option to reset the password for another device, or go directly to iCloud.com, sign in, and select "Account Settings."
From iCloud.com, click "Security," then look for "Reset your password" or a similar option. You will be asked which device you want to unlock. Select your MacBook Air, and iCloud will send a reset link to your email. Open that link on the second device, create a new password, and your MacBook Air will unlock within a few minutes.
Erasing the drive and starting over (last resort)
If you have no recovery key, no access to another device, and cannot remember your Apple ID password, your only option is to erase the MacBook Air and reinstall macOS. This will delete all files on the machine unless you have a Time Machine backup or other backup stored elsewhere.
Restart the MacBook Air and hold Command + R as it boots to enter Recovery Mode. From the Utilities menu, select Disk Utility, choose your main drive (usually called "Macintosh HD"), and click Erase. Choose APFS as the format and give it a name. After erasing, quit Disk Utility, go back to Utilities, and select "Reinstall macOS." Follow the prompts to read and install a fresh copy of the operating system. You will be able to set up a new account and password when the installation finishes.
Preventing lockout in the future
Save your recovery key somewhere you can find it — a password manager like 1Password or Bitwarden, a printed document in a safe, or a note in a trusted contact's email. Do not store it in a note on the MacBook Air itself, because you will not be able to access it when locked out.
Turn on two-factor authentication for your Apple ID if you have not already. Go to Settings > [Your Name] > Password & Security and toggle on "Two-Factor Authentication." This makes your account harder to break into and gives you the recovery key option. Also set up a trusted phone number so you can receive verification codes by text or call if your email is not available.
What to do if you think someone else is trying to access your account
If you are locked out and suspect someone else changed your password, go to iforgot.apple.com from another device and sign in with your Apple ID email. If you cannot sign in there either, your account may have been compromised. Click "Forgot Apple ID or password?" and follow the account recovery flow, which may ask you security questions or require you to verify your identity with a government ID.
Once you regain access, change your Apple ID password when ready, review your account activity in Settings > [Your Name] > Password & Security > Security Recommendations, and check which devices are signed into your account. Remove any devices you do not recognize. If you use iCloud Keychain, consider changing passwords for important accounts like email and banking.
Frequently Asked Questions
Can I unlock my MacBook Air without an Apple ID?
No. Modern MacBook Air models require an Apple ID to unlock after a forgotten password. If you do not have an Apple ID, you will need to create one at appleid.apple.com, then use the "Forgot password?" flow on the login screen. You can create an Apple ID from any device with internet access.
How long does it take to reset my password?
If you have your Apple ID password and can receive a verification code, the reset takes about 10 minutes. If you are using a recovery key, it takes about 5 minutes. If you need to erase and reinstall macOS, plan for 30 minutes to an hour depending on your internet speed.
Will resetting my password delete my files?
No. Resetting your password through Apple ID or a recovery key keeps all your files intact. Only erasing the drive in Recovery Mode deletes files, and that is a separate step you would choose only if you have no other way to unlock the machine.
What if I do not remember my Apple ID email address?
Go to iforgot.apple.com from another device and enter your phone number or the email address you think you used. Apple will show you which email is associated with your account. If you do not remember any email you used, you may need to contact Apple Support with proof of purchase or identity.
Can I use someone else's Apple ID to unlock my MacBook Air?
No. The MacBook Air will only unlock with the Apple ID that was used to set it up. Using another person's credentials will not work and may lock the account further if you enter the wrong password multiple times.