What to do when you forget your iPhone passcode

If you forget your iPhone passcode, you have several paths forward depending on whether you remember your Apple ID password and what device you have access to. The fastest option is using Find My iPhone on another device or a computer at an Apple Store. If you don't have access to another device, you can erase your iPhone and set it up fresh using your Apple ID credentials. None of these routes require you to own a computer at home — you can use a library computer, a friend's device, or visit an Apple Store in person.

The key constraint is that Apple locks you out after too many wrong attempts (six attempts, then increasing delays), so you cannot straightforward guess your way in. Once locked, your only legitimate paths are recovery methods tied to your Apple ID account.

Key Takeaways

  • You can unlock a forgotten passcode using Find My iPhone from any web browser, another iPhone, iPad, or Mac — you do not need your original computer.
  • If you remember your Apple ID email and password, you can erase your iPhone remotely and set it up again without visiting a store.
  • Visiting an Apple Store in person lets you prove ownership with ID and a receipt, and they can help you regain access without erasing your data in some cases.
  • If you have no access to another device and no Apple ID password, you will need to visit an Apple Store or contact Apple Support to verify your identity.
  • Recovery mode (holding buttons to force a restart) erases your iPhone but works without needing another device or internet access.

Using Find My iPhone from a web browser

The fastest remote method is Find My iPhone through iCloud.com. Go to iCloud.com on any computer or phone with a web browser, sign in with your Apple ID, and select Find My iPhone. Locate your device in the list and choose "Erase iPhone." This wipes your passcode and all data, but you can then set up your phone fresh using your Apple ID password to restore your apps and settings from a backup.

This method works from a library computer, a friend's phone, or any public computer with internet access. You need to remember your Apple ID email address and password. After erasing, your iPhone will show the setup screen, and you can sign back in with your Apple ID to restore your previous backup if one exists in iCloud.

Using Find My on another Apple device

If you have access to another iPhone, iPad, or Mac, open the Find My app (or Find My iPhone on older devices). Sign in with the same Apple ID, select your locked iPhone from the list, and tap "Erase This Device." This sends a command to your phone to erase itself and remove the passcode.

After erasing, your iPhone will restart and show the setup screen. You can then sign in with your Apple ID to restore from a backup. This method is faster than using a web browser if you have another Apple device nearby, and it does not require you to remember your Apple ID password if you are already signed in on that device.

Recovery mode without another device

If you have no access to another device or computer, you can use recovery mode on your iPhone itself. Plug your iPhone into power, then press and hold the correct button combination for your model: on iPhone 8 and newer, hold the volume-up button and side button together until the power-off slider appears, then keep holding until you see the recovery mode screen. On iPhone 7 and earlier, hold the top (or side) button and home button together.

Once in recovery mode, your iPhone will prompt you to restore or update. Choose "Restore," which erases your phone and removes the passcode. You will need your Apple ID password to complete setup afterward. This method works without internet access and without another device, but it does erase all data unless you have a backup in iCloud or on a computer.

Visiting an Apple Store in person

If you cannot remember your Apple ID password and have no access to another device, visiting an Apple Store is the most direct path. Bring a photo ID and proof of purchase (receipt, order confirmation, or credit card statement). Apple staff can verify your identity and help you regain access to your account or reset your passcode without erasing your data in some cases.

Wait times vary by location and time of day. You can book a Genius Bar appointment on Apple's website or in the Apple Store app to avoid a long walk-in wait. Tell them you forgot your passcode when you book so they can allocate enough time. If you cannot find your proof of purchase, bring your ID and be prepared to answer security questions about your account.

Contacting Apple Support by phone

You can also call Apple Support at 1-800-MY-APPLE (1-800-692-7753) to report a forgotten passcode. They will ask you to verify your identity using your Apple ID, phone number, and other account details. If you can verify ownership, they may be able to help you reset your passcode or walk you through recovery mode over the phone.

Phone support is useful if you cannot visit a store or access another device. The call may take 20 to 30 minutes depending on how busy the support line is. Have your Apple ID email, phone number, and any security questions answers ready before you call.

What happens to your data after unlocking

If you erase your iPhone using Find My or recovery mode, all data on the device is deleted. However, if you have an iCloud backup, you can restore your apps, photos, messages, and settings after you set up your phone again with your Apple ID. To check if you have a backup, sign into iCloud.com and look under Account Settings > iCloud > Manage Storage.

If you do not have a backup, your data is gone. This is why setting up iCloud backups or regular computer backups is important for the future. After you regain access to your phone, turn on iCloud backup in Settings > [Your Name] > iCloud > iCloud Backup and toggle it on.

Frequently Asked Questions

Can I unlock my iPhone without erasing it?

Only if you visit an Apple Store in person and can prove ownership with ID and a receipt. In that case, Apple staff may be able to help you reset your passcode without erasing your data. If you use Find My iPhone or recovery mode remotely, erasing is required because there is no other way to bypass a forgotten passcode.

What if I don't remember my Apple ID password either?

Visit an Apple Store with a photo ID and proof of purchase, or call Apple Support at 1-800-MY-APPLE. They can verify your identity using security questions and help you reset your Apple ID password. Once you have access to your Apple ID again, you can use Find My iPhone or recovery mode to unlock your phone.

How long does it take to unlock my iPhone?

Using Find My iPhone from a web browser takes 5 to 10 minutes. Recovery mode takes 10 to 20 minutes depending on your internet speed. An Apple Store visit can take 30 minutes to an hour depending on wait times. Phone support with Apple typically takes 20 to 30 minutes.

Will I lose my photos and messages if I erase my iPhone?

Yes, unless you have an iCloud backup or a computer backup made before you forgot your passcode. If you have either, you can restore your data after you set up your phone again. Check iCloud.com to see if a recent backup exists before you erase.

Can I use someone else's computer to unlock my iPhone?

Yes. You can use any computer with a web browser to go to iCloud.com and use Find My iPhone. You do not need to use your own computer or the computer you originally set up your iPhone with. Just make sure you sign out of that computer's iCloud account after you finish.