Resetting an iPhone when you've forgotten the password

If you've forgotten your iPhone password, you cannot unlock it by guessing. Instead, you'll need to erase the device and set it up again from scratch. This process is called a factory reset, and it wipes everything on the phone — all photos, messages, apps, and settings — so you start with a blank device. Apple built this into iPhones specifically so you can regain access if you're locked out, but it means losing any data you haven't backed up elsewhere.

The method you use depends on what you have available: a computer, another Apple device, or just the locked iPhone itself. Each path takes a different amount of time and requires different tools. The fastest option if you have a Mac or Windows computer is to use a tool called Finder (on Mac) or iTunes (on Windows). If you don't have a computer, you can use another iPhone, iPad, or iPod touch. If you have neither, you can still reset the phone using only the iPhone itself, but the process is slower.

Key Takeaways

  • A factory reset erases everything on your iPhone, so back up your data first if you have any way to do so.
  • Using a Mac or Windows computer with Finder or iTunes is the fastest method and takes about 15 to 30 minutes.
  • If you have another Apple device, you can use Find My iPhone to erase and reset your phone remotely.
  • You can reset the iPhone using only the device itself by holding buttons and following the recovery mode steps, though this takes longer.
  • After the reset completes, you'll set up the iPhone as new or restore from a backup if you have one saved to iCloud or a computer.

Reset using a Mac or Windows computer

This is the most straightforward path if you have access to a computer. Connect your locked iPhone to the computer with a USB cable. On a Mac running Monterey or newer, open Finder and look for your iPhone in the sidebar under Locations. On an older Mac or any Windows computer, open iTunes instead. In both programs, your iPhone will appear in the window even though it's locked.

Click on your iPhone's name to select it. You'll see a button labeled "Restore" — click it. The computer will read the current iPhone software and install it on your phone. This process takes 10 to 20 minutes depending on your internet speed and which iPhone model you have. Do not unplug the phone during this time. When it finishes, your iPhone will restart and show the setup screen, as if it came fresh from the factory.

At this point, you can set up the iPhone as a new device, or if you have a backup saved to iCloud or to this same computer, you can restore from that backup. If you choose to restore from a backup, your photos, messages, and apps will return to the phone — but only the data that was in the backup. Anything created after the backup was made will be gone.

Reset using another Apple device

If you have a second iPhone, iPad, or iPod touch, you can use Apple's Find My service to erase your locked phone remotely. On the other device, open the Find My app (or Settings > [Your Name] > Find My on older iOS versions). Tap "Find My iPhone" or "Devices," then select your locked iPhone from the list.

Tap "Erase This Device" or a similar option — the exact wording varies by iOS version. You'll be asked to confirm. The phone will be erased and will restart into the setup screen. This method works even if your locked iPhone is not physically near you, as long as it's connected to the internet. The erase command is sent over the internet and takes effect the next time the phone connects.

After the erase completes, you'll set up the iPhone the same way as after a computer reset: as new, or from an iCloud backup if you have one. This method is useful if you don't have a computer available but do have another Apple device.

Reset using only the locked iPhone

If you have no computer and no other Apple device, you can still reset the iPhone using only the phone itself. This method uses Recovery Mode, a special state the iPhone enters when you hold specific buttons. The exact buttons depend on your iPhone model: on iPhone X and newer, hold the Volume Up button and the Side button together until you see "slide to power off," then release and when ready hold the same buttons again until Recovery Mode appears. On iPhone 8 and earlier, hold the Top (or Side) button and the Home button together.

Once Recovery Mode appears on the screen, you'll see options including "Restore" and "Update." Tap "Restore." The iPhone will read and install fresh software, which takes 15 to 30 minutes. When it finishes, the setup screen appears. You can then set up as new or restore from iCloud if you have a backup there.

This method is slower than using a computer because the iPhone downloads the software over its own internet connection rather than getting it from a computer. It also requires you to hold buttons for extended periods, which can be uncomfortable. Use this only if a computer and another Apple device are truly unavailable.

What happens after the reset is complete

Once the reset finishes and your iPhone restarts, you'll see the setup screen that appears on a brand-new phone. You'll be asked to choose a language, connect to Wi-Fi, and sign in with your Apple ID. This is the moment to decide whether to set up as new or restore from a backup.

If you set up as new, you'll have a blank iPhone with no apps, photos, or messages. You can then read apps from the App Store and restore photos from cloud storage or a computer if you have them saved elsewhere. If you restore from an iCloud backup, your photos, messages, app data, and most settings will return automatically — but only data that was in the backup. Any data created after the backup was made is permanently gone.

If you don't have a backup, you'll need to set up as new and rebuild your phone manually. This is why backing up regularly is important: if you ever need to reset, you can restore everything instead of starting from scratch.

Preventing this situation in the future

Once your iPhone is set up again, create a new password you can remember, or use Face ID or Touch ID so you don't have to type a password every time. Write your password down and store it somewhere find — a locked drawer, a password manager, or a trusted person's safe. Do not store it in a note on the iPhone itself, because if you forget it again, you won't be able to read the note.

Set up automatic backups so that if you ever need to reset again, you can restore your data. On any iPhone, go to Settings > [Your Name] > iCloud > iCloud Backup and turn it on. This backs up your phone automatically every night when it's plugged in and connected to Wi-Fi. You can also plug your iPhone into a computer and back it up to that computer using Finder or iTunes, which creates a second copy of your data.

Frequently Asked Questions

Will I lose all my photos and messages when I reset?

Yes, unless you have a backup. A factory reset erases everything on the phone. If you have an iCloud backup or a backup on a computer, you can restore from it after the reset and get your photos and messages back. If you have no backup, they're permanently gone.

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

Yes. Hold the Volume Up and Side buttons (or Top and Home buttons on older models) until Recovery Mode appears, then tap Restore. The iPhone downloads the software itself, which takes longer than using a computer, but it works without any other device.

How long does a factory reset take?

Using a computer, 15 to 30 minutes depending on your internet speed. Using only the iPhone, 20 to 40 minutes because the phone downloads the software itself. The actual erase happens in seconds; most of the time is spent downloading and installing the new software.

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

After the reset, when the setup screen asks you to sign in, tap "Forgot password?" and follow Apple's recovery steps. You can verify your identity using a trusted phone number, a recovery key, or a trusted device. This process takes a few minutes but doesn't require you to remember your password.

Can someone else reset my iPhone if they have it?

Yes, anyone with physical access to your iPhone can reset it using the methods described here. This is why set up Lock exists: after a reset, the iPhone asks for the Apple ID and password that was on the phone before the reset. This prevents someone from resetting your phone and using it as their own. If you've forgotten your Apple ID password, you'll need to recover it before you can complete the setup.