The fastest way depends on what you remember

If you have forgotten your iPhone passcode, you have three main routes: 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 still access your Apple ID, whether you have a computer nearby, and how much time you have. None of these routes will recover your data if you have not backed it up — the reset process erases everything on the phone.

The method you choose also depends on whether you turned on Find My iPhone before you forgot the passcode. If you did, you can erase and reset the phone from any web browser or another Apple device. If you did not, you will need either a computer with iTunes or Finder, or a trip to an Apple Store.

Key Takeaways

  • Resetting your iPhone passcode erases all data on the phone unless you have a backup stored in iCloud or on a computer.
  • If Find My iPhone is turned on, you can reset the phone from iCloud.com or another Apple device without needing a computer.
  • If Find My iPhone is off, you need a Mac or Windows computer with iTunes or Finder to restore the phone.
  • Apple Stores can reset your iPhone, but you will need to prove ownership with a photo ID and your Apple ID password.
  • After a reset, you can restore your data from an iCloud backup or a computer backup if one exists.

Reset using Find My iPhone on iCloud.com

This is the fastest method if you have internet access and you remember your Apple ID email and password. Go to iCloud.com, sign in with your Apple ID, and click Find My. Select your iPhone from the list of devices. Click the device name, then choose Erase iPhone. Confirm that you want to erase it. The phone will be wiped and you will see the setup screen.

This works whether your iPhone is at home, in your pocket, or across the country — as long as it is connected to the internet or has been connected recently. After the erase completes, you can set up the phone again and restore from an iCloud backup if you have one. You will need your Apple ID password to complete the setup.

If you do not remember your Apple ID password, you can reset it at iforgot.apple.com before you start. You will need access to the email address or phone number associated with your account.

Reset using another Apple device

If you have a Mac, iPad, or another iPhone, you can use the Find My app instead of going to iCloud.com. Open Find My, go to the Devices tab, select your locked iPhone, and tap Erase This Device. The process is the same as using iCloud.com, and the phone will erase remotely.

This method also requires that Find My iPhone was turned on before you forgot the passcode. If it was not, this route will not work and you will need to use a computer or visit an Apple Store.

Reset using a Mac or Windows computer

If you have a computer but Find My iPhone is not turned on, you can restore the phone using Finder (on Mac) or iTunes (on Windows). Connect your iPhone to the computer with a USB cable. On a Mac running macOS Monterey or newer, open Finder and select your iPhone in the sidebar. On Windows or older Mac, open iTunes.

Click Restore (or Restore iPhone). The computer will read the latest iPhone software and erase the phone. This takes 15 to 30 minutes depending on your internet speed. When it finishes, you will see the setup screen. You will need your Apple ID password to complete the setup and set up the phone.

This method works even if Find My iPhone is off, but it requires a computer with the right software. If you do not have access to a computer, you will need to visit an Apple Store or use Find My iPhone if it is turned on.

Reset at an Apple Store

If you do not have a computer and Find My iPhone is off, an Apple Store can reset your iPhone for you. Bring your phone and a photo ID. You will also need to know your Apple ID password or be able to reset it on the spot using a phone number or email address you have access to.

The store will verify your identity and ownership of the phone, then perform the reset. This usually takes 30 minutes to an hour. After the reset, you can set up the phone and restore from a backup if you have one. Some Apple Stores require an appointment, so check the store's website or call ahead.

Restore your data after the reset

After your iPhone is reset and you have completed the setup, you can restore your data from a backup. If you have an iCloud backup, the setup screen will offer to restore from it — just sign in with your Apple ID and choose the backup you want. If you have a backup on a computer, connect the phone to that computer and choose Restore Backup in Finder or iTunes.

Restoring from a backup takes 10 minutes to an hour depending on how much data you have. Your apps, photos, messages, and settings will come back, but only if they were included in the backup. If you do not have a backup, your data is gone — the reset erases everything on the phone.

To avoid this in the future, turn on iCloud backup in Settings > [Your Name] > iCloud > iCloud Backup, or connect your phone to a computer regularly and back it up in Finder or iTunes.

What to do if you do not remember your Apple ID password

You will need your Apple ID password to complete the setup after a reset, no matter which reset method you use. If you do not remember it, go to iforgot.apple.com and enter your Apple ID email address. Apple will send you a link to reset the password, or you can answer security questions if you set them up.

You can also reset your Apple ID password on your iPhone itself if you can still access it — go to Settings > [Your Name] > Password & Security > Change Password. But if you have forgotten the passcode and cannot unlock the phone, you will need to reset the Apple ID password on a computer or another device first.

Frequently Asked Questions

Will resetting my iPhone delete everything on it?

Yes. A passcode reset erases all data on the phone — photos, messages, apps, settings, everything. The only way to get your data back is to restore from an iCloud backup or a computer backup that you made before you forgot the passcode. If you do not have a backup, your data is permanently gone.

Can I reset my iPhone passcode without a computer or Apple ID?

No. You need either your Apple ID password, a computer with Finder or iTunes, or access to an Apple Store. There is no way around this — it is a security feature to prevent someone else from unlocking your phone without your permission.

How long does it take to reset an iPhone?

Using Find My iPhone or another Apple device takes 5 to 10 minutes. Using a computer takes 15 to 30 minutes. At an Apple Store, plan for 30 minutes to an hour. Restoring from a backup afterward takes another 10 minutes to an hour depending on how much data you have.

What if I forgot my Apple ID password too?

Go to iforgot.apple.com and reset it using your email address or phone number. You can do this on any computer or device. Once you have reset your Apple ID password, you can use it to complete the iPhone reset and setup.

Can I reset my iPhone passcode if Find My iPhone is off and I do not have a computer?

No, not without visiting an Apple Store. You need either Find My iPhone turned on, a computer with Finder or iTunes, or in-person help from Apple. This is why turning on Find My iPhone and making regular backups matters — it gives you options if you forget your passcode.