What you can do if you're locked out of your iPhone 8

If you've forgotten your iPhone 8 passcode, Apple gives you several legitimate ways to regain access. The method that works depends on whether you remember your Apple ID password, whether you have a trusted device nearby, and whether you set up recovery options like a recovery key or trusted phone number. None of these routes are when ready — most take 15 minutes to an hour — but they all work without losing your data if you act before the phone locks you out permanently.

The fastest path is usually through a trusted device you own, like an iPad or Mac. If you don't have one, your next option is to use your Apple ID and password on a computer. If you've lost access to both your passcode and your Apple ID password, you'll need to contact Apple Support or visit an Apple Store, where they can verify your identity through your receipt or other proof of purchase.

Key Takeaways

  • If you have another Apple device signed into the same Apple ID, you can use Find My iPhone on that device to reset your passcode without a computer.
  • If you remember your Apple ID password, you can reset your passcode on any computer by connecting your iPhone 8 and using Finder (Mac) or iTunes (Windows).
  • If you set up a recovery key when you enabled two-factor authentication, that key can unlock your account without needing a trusted device.
  • After six failed passcode attempts, your iPhone locks for one minute; after ten attempts, it locks for progressively longer periods, so take your time entering the code.
  • If you've forgotten both your passcode and your Apple ID password, Apple Support or an Apple Store can help verify your identity and reset your account.

Using Find My iPhone from another Apple device

This is the fastest method if you own an iPad, Mac, or another iPhone. Open Find My on that device (on Mac, it's in the Applications folder under Utilities; on iPad or iPhone, it's in the home screen). Sign in with the same Apple ID you use on your locked iPhone 8.

Tap or click Devices, then select your iPhone 8 from the list. Choose "Erase iPhone" — this will wipe the device but also remove the passcode. Once it's erased, you can set it up again from scratch or restore from a backup you made before you forgot the passcode. This process takes about 10 to 15 minutes depending on your internet speed.

Resetting your passcode on a Mac or Windows computer

If you have access to a computer but no other Apple device, connect your iPhone 8 with a USB cable. On a Mac running Catalina or newer, open Finder and click your iPhone in the sidebar. On Windows or older Mac, open iTunes instead.

Click "Restore" when prompted. Your computer will read the latest iPhone software and install it, which erases your passcode. You'll then set up your iPhone 8 again, and you can restore your data from a backup if you have one saved to iCloud or to that computer. This method works even if you haven't backed up recently — you'll just start with a blank phone. The read and install usually takes 20 to 30 minutes.

Using your recovery key if you have two-factor authentication

If you enabled two-factor authentication on your Apple ID and saved your recovery key, you can use that key to reset your account password without needing a trusted device. Go to iforgot.apple.com on any computer or phone, enter your Apple ID email, and choose "I don't have access to a trusted device."

Apple will ask you to enter your recovery key. Once you do, you can create a new Apple ID password. After you've reset your password, go back to your locked iPhone 8, tap "iPhone Unavailable," then tap "Try Again" after the timer counts down. Enter your Apple ID email and your new password, and you'll be able to set a new passcode.

What to do if you don't remember your Apple ID password either

If you've forgotten both your passcode and your Apple ID password, you'll need to reset your Apple ID password first. Go to iforgot.apple.com, enter your Apple ID email, and follow the prompts to verify your identity. Apple will ask you to confirm your identity through a trusted device, a recovery key, or by answering security questions you set up when you created your account.

Once you've reset your Apple ID password, use the method described in the section above to unlock your iPhone 8. If you don't have access to any of those verification methods, contact Apple Support or visit an Apple Store with proof of purchase — your receipt, credit card statement, or the original packaging. Apple can verify your identity and help you regain access to your account.

Avoiding permanent lockout during the reset process

Your iPhone 8 has built-in protections that slow down repeated wrong guesses. After six failed attempts, the phone locks for one minute. After the tenth attempt, it locks for five minutes. After the fifteenth attempt, it locks for 60 minutes. If you reach 16 failed attempts, the phone may erase itself automatically — this depends on whether you turned on "Erase Data" in your Settings under Face ID & Passcode (or Touch ID & Passcode on older models).

Because of these delays, don't guess randomly. If you think you remember your passcode, enter it slowly and carefully. If you're not sure, use one of the reset methods above instead of guessing, which is faster and safer.

Getting help from Apple if nothing else works

If you don't have another Apple device, can't access a computer, don't have a recovery key, and can't reset your Apple ID password, visit an Apple Store or contact Apple Support by phone. You'll need to prove you own the iPhone — bring your receipt, the original box with the serial number, or a credit card statement showing the purchase.

Apple can verify your identity through their systems and help you reset your account. This process usually takes 24 to 48 hours because Apple needs to confirm the information with their records. During that time, your iPhone will remain locked, but you won't lose your data — once your identity is verified, Apple can help you regain access without erasing the phone.

Frequently Asked Questions

Can I unlock my iPhone 8 without knowing my Apple ID password?

Yes, if you have another Apple device signed into the same Apple ID, or if you saved a recovery key when you set up two-factor authentication. If you have neither, you'll need to reset your Apple ID password first using iforgot.apple.com, which requires you to verify your identity through a trusted device, recovery key, or security questions.

What happens if I enter the wrong passcode too many times?

After six wrong attempts, your iPhone locks for one minute. After ten attempts, it locks for five minutes. After fifteen attempts, it locks for 60 minutes. If you reach 16 attempts and have "Erase Data" turned on in your passcode settings, the phone may erase itself. Don't guess — use a reset method instead.

Will I lose my photos and messages if I reset my passcode?

Not if you restore from a backup. When you reset your passcode using Find My or a computer, your iPhone erases, but you can restore your data from an iCloud backup or a backup saved to your computer. You'll only lose data created after your last backup.

How long does it take to unlock an iPhone 8?

Using Find My from another device takes 10 to 15 minutes. Using a computer takes 20 to 30 minutes. Using a recovery key takes about 5 minutes. If you need Apple Support to verify your identity, it usually takes 24 to 48 hours.

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

Yes, if you have your recovery key or can reset your Apple ID password through iforgot.apple.com using security questions. If you have none of those, you'll need to visit an Apple Store or contact Apple Support with proof of purchase.