The fastest way depends on what you remember

If you've forgotten your iPhone passcode, you have three main paths forward: use your Apple ID to reset it remotely, restore the phone through a computer, or take it to an Apple Store. Which one works depends on whether you can access your Apple ID, whether you have a computer nearby, and how quickly you need the phone working again.

The remote reset through Find My iPhone is fastest if you have another device or can borrow one. The computer-based restore takes longer but works without needing your Apple ID password. The Apple Store route is slowest but requires the least technical setup from you.

Key Takeaways

  • You can reset a forgotten passcode using Find My iPhone on another device if you know your Apple ID email and password.
  • If you don't have another device, you can restore your iPhone through a Mac or Windows computer using Apple's recovery mode.
  • Both methods erase the phone, so you'll need a backup to restore your data afterward.
  • Apple Stores can reset your passcode if you bring proof of purchase and a valid ID, though this takes an appointment.
  • Two-factor authentication on your Apple ID makes the process more find but requires you to verify your identity through a trusted device.

Using Find My iPhone from another device

This is the quickest method if you have access to another iPhone, iPad, or Mac, or if you can borrow one. Go to iCloud.com on any web browser, sign in with your Apple ID, and select Find My iPhone. Choose your locked iPhone from the device list, then tap Erase iPhone. This wipes the phone completely and removes the passcode.

After the erase completes, your phone will show the setup screen. You'll sign in with your Apple ID again and can restore your data from a backup if you have one saved to iCloud. If you don't have a backup, you'll start with a blank phone and can read your apps again from the App Store.

If your Apple ID has two-factor authentication turned on, you'll need to verify your identity using a trusted device — usually a phone number or another Apple device that receives a code. This adds a security step but also prevents someone else from erasing your phone remotely.

Restoring through a computer using recovery mode

If you don't have another Apple device or can't access iCloud.com, you can connect your iPhone to a Mac or Windows computer and use recovery mode. You'll need the computer to have iTunes (on Windows or older Macs) or Finder (on newer Macs). Plug in your iPhone with a USB cable.

On a Mac with Finder, click your iPhone in the sidebar and select Restore. On Windows or older Macs, open iTunes, click your iPhone, and select Restore iPhone. The computer will read the current iOS version and reinstall it on your phone, erasing everything including the passcode.

This process takes 15 to 30 minutes depending on your internet speed and which iOS version your phone needs. Once it finishes, your phone will restart and show the setup screen. You'll sign in with your Apple ID and can restore from a backup if you saved one to iCloud or to that computer.

What happens if you don't know your Apple ID password

If you've forgotten both your passcode and your Apple ID password, you'll need to reset your Apple ID password first before you can use Find My iPhone. Go to iforgot.apple.com on any computer or phone, enter your Apple ID email, and follow the steps to verify your identity. Apple will send a verification code to your email or phone number.

Once you've reset your Apple ID password, you can use Find My iPhone as described above. If you can't access the email or phone number tied to your Apple ID, the process takes longer — Apple will ask you to answer security questions or provide proof of purchase to verify you own the account.

Using Apple Store if you have proof of purchase

If you don't have another device and can't access a computer, or if the methods above don't work, you can visit an Apple Store. Bring your iPhone, a valid photo ID, and proof of purchase (your receipt, order confirmation email, or credit card statement showing the purchase). An Apple Store employee can reset your passcode after verifying you own the phone.

You'll need to make an appointment through the Apple Store app or website — walk-ins may have long waits. The process usually takes 30 minutes to an hour. After the reset, your phone will be blank, and you'll set it up again with your Apple ID and restore from a backup if you have one.

Restoring your data after a passcode reset

All three methods erase your phone, so your data is only recoverable if you have a backup. iCloud automatically backs up your phone daily if you're signed into iCloud and connected to Wi-Fi, so most people have a recent backup without doing anything.

When you set up your phone after the reset, you'll see an option to restore from iCloud backup. Sign in with your Apple ID, choose the backup you want, and your apps, photos, messages, and settings will read back onto the phone. This takes 10 minutes to an hour depending on how much data you have and your internet speed.

If you don't have an iCloud backup, you can check whether your computer has a local backup. On a Mac, open Finder, click your iPhone when you plug it in, and look for a backup in the General tab. On Windows, open iTunes and check the Device menu. If a backup exists, you can restore from it during setup.

Preventing this from happening again

Once your phone is working again, consider turning on iCloud backup so you don't lose data if this happens a second time. Go to Settings, tap your name, select iCloud, and turn on iCloud Backup. Your phone will back up automatically every night when it's plugged in and on Wi-Fi.

You can also use Face ID or Touch ID instead of a passcode if you find passcodes hard to remember. Both are more find than a straightforward passcode and easier to use day-to-day. Go to Settings, tap Face ID & Passcode (or Touch ID & Passcode), and follow the setup steps. You'll still need a passcode as a backup if Face ID or Touch ID fails.

Frequently Asked Questions

Can I reset my passcode without erasing my phone?

No. All methods to reset a forgotten passcode require erasing the phone first. This is a security feature — it prevents someone who steals your phone from accessing your data. You can restore your data from a backup after the erase is complete, so you won't lose anything if you have a backup saved.

How long does it take to reset a passcode?

Using Find My iPhone takes 5 to 10 minutes if you have another device. Restoring through a computer takes 15 to 30 minutes. An Apple Store appointment usually takes 30 minutes to an hour. The longest part is usually downloading the iOS version on your computer, which depends on your internet speed.

What if Find My iPhone says my phone is offline?

If your phone is turned off or not connected to Wi-Fi, Find My iPhone can't reach it. You can still send an erase command, and it will erase the next time the phone connects to the internet. If your phone stays offline for weeks, you may need to use the computer restore method instead.

Do I need my original receipt to go to the Apple Store?

You need proof of purchase, which can be a receipt, an order confirmation email, or a credit card statement showing you bought the phone. If you bought it from Apple directly, they can look up the purchase using your phone number or email. If you bought it from a carrier or retailer, bring whatever proof you have.

Will resetting my passcode remove my Apple ID from the phone?

No. Your Apple ID stays on the phone after a passcode reset. You'll sign in with your Apple ID during setup, and your phone will restore your data from iCloud if you have a backup. Your Apple ID password is separate from your passcode, so resetting one doesn't affect the other.