The fastest way: use your Apple ID on the lock screen

If you see the lock screen with a keypad, tap "iPhone Unavailable" or wait for it to appear after several wrong attempts. You'll see an option to unlock with your Apple ID instead of your passcode. Enter the email address and password for the Apple ID connected to your iPhone, and the phone will unlock when ready.

This works on iPhones running iOS 15.1 and newer. Your Apple ID is the account you used to set up the phone — usually an email address you chose or your iCloud address. If you don't remember your Apple ID password, you'll need to reset it through Apple's website before you can use this method.

This method does not erase your data. Your photos, messages, and apps stay on the phone exactly as they were.

Key Takeaways

  • On newer iPhones, you can unlock the phone directly from the lock screen using your Apple ID instead of your passcode.
  • If you don't have access to your Apple ID, you can use a computer and iCloud.com to erase the phone and set it up again with your Apple ID.
  • Using Find My iPhone through iCloud.com erases the phone but lets you restore your data from a backup if you have one.
  • If you have a Mac or another Apple device signed into the same Apple ID, you can unlock the iPhone from that device without erasing it.
  • Recovery Mode through a computer is the last option if you cannot access iCloud or another Apple device.

Using iCloud.com if you don't remember your Apple ID password

Go to iCloud.com on any computer or another phone and sign in with your Apple ID email. If you don't remember the password, click "Forgot Apple ID or password?" on the sign-in page and follow Apple's steps to reset it — you'll need access to a recovery email or phone number you set up with the account.

Once you're signed into iCloud.com, click "Find My iPhone" (or "Find My" on newer versions). Select your iPhone from the list of devices. Click "Erase iPhone" and confirm. The phone will erase completely and you'll be able to set it up again using your Apple ID.

After the phone erases and restarts, you'll see the setup screen. Sign in with your Apple ID. If you have a backup saved to iCloud, the phone will offer to restore your photos, messages, and apps from that backup. This process takes 15 minutes to an hour depending on how much data you have.

Unlocking from another Apple device on the same account

If you have a Mac, iPad, or another iPhone signed into the same Apple ID, you can unlock your locked iPhone without erasing it. On the other Apple device, open System Settings (Mac) or Settings (iPad or iPhone) and go to the account section at the top. Look for your locked iPhone in the list of devices.

Select the locked iPhone and choose the option to unlock it or reset the passcode. The phone will unlock within a few seconds. Your data stays intact and you don't need to set up the phone again.

This method only works if the other device is signed into the exact same Apple ID as the locked phone. If you use different Apple IDs on different devices, this won't work.

Using Recovery Mode on a computer as a last resort

If you can't use your Apple ID, don't have access to iCloud, and don't have another Apple device, you can use a computer to put the iPhone into Recovery Mode. Connect the iPhone to a Mac or Windows computer with a USB cable. On a Mac, open Finder and select the iPhone. On Windows, open iTunes.

Look for a button or option that says "Restore" — this will erase the phone and install a fresh copy of iOS. The phone will restart and show the setup screen. Sign in with your Apple ID to finish setting up. If you have an iCloud backup, you can restore from it during setup.

Recovery Mode erases everything on the phone, so you'll lose any data that wasn't backed up to iCloud. This method takes 20 to 45 minutes depending on your internet speed and the size of your backup.

What to do if you don't have a backup

If you erase your iPhone and don't have an iCloud backup, your photos and messages are gone permanently. You can still recover some data — contacts synced to your Apple ID will reappear when you sign in, and any photos uploaded to iCloud Photo Library will come back.

To prevent this in the future, turn on iCloud backup in Settings. Go to Settings, tap your name at the top, select iCloud, then tap iCloud Backup and turn it on. The phone backs up automatically when it's plugged in and connected to WiFi overnight.

Preventing this from happening again

Write your passcode down and store it somewhere safe — a notebook in a drawer, a password manager like 1Password or Bitwarden, or even a note to a trusted family member. Don't store it in your phone's notes app, because you won't be able to access it if you're locked out.

Turn on Face ID or Touch ID so you don't have to type your passcode every day. Go to Settings, tap Face ID (or Touch ID), and follow the setup steps. You'll still need your passcode to unlock the phone if Face ID or Touch ID fails, but you'll use it much less often and be less likely to forget it.

Enable iCloud backup so that if you do get locked out and have to erase the phone, you can restore everything afterward. This takes five minutes to set up and runs automatically.

Frequently Asked Questions

Will unlocking my iPhone erase my data?

Using your Apple ID from the lock screen does not erase anything. Using iCloud.com or Recovery Mode does erase the phone, but you can restore your data from an iCloud backup during setup if you have one. If you don't have a backup, your photos and messages are lost, but contacts and other data synced to your Apple ID will return when you sign in.

What if I don't remember my Apple ID email address?

Go to iforgot.apple.com and enter your phone number or a recovery email address you set up with Apple. Apple will send you a link to find your Apple ID email. If you don't remember any recovery information, you may need to contact Apple Support by phone or through their website.

How long does it take to unlock my iPhone?

Using your Apple ID from the lock screen takes seconds. Using iCloud.com to erase and restore takes 15 minutes to an hour depending on your backup size. Recovery Mode takes 20 to 45 minutes. The time depends mostly on your internet speed and how much data is on the phone.

Can I unlock my iPhone without a computer or another device?

Yes, if your iPhone is running iOS 15.1 or newer, you can unlock it directly from the lock screen using your Apple ID. If you can't remember your Apple ID password, you'll need access to a computer or another device to reset it through iCloud.com or Apple's website.

What if my iPhone is too old to use the Apple ID unlock method?

Older iPhones running iOS 15.0 or earlier require a computer to unlock. Connect the iPhone to a Mac or Windows computer, use Finder or iTunes to put it in Recovery Mode, and restore it. You'll need your Apple ID to set it up again after the restore.