sodcalculator

10 Tech How-To

How to Unlock iPhone If You Forgot Passcode

Guide 10-47588 · Updated · Step by step

Forgetting your iPhone passcode can lock you out completely, but the official recovery process—using Recovery Mode and a computer—will erase the device and let you set it up again. This guide walks you through the steps for current iPhone models, what you need beforehand, and how to avoid common pitfalls.

What You’ll Need

  • A computer (Mac or Windows PC) with the latest version of iTunes, or on macOS Catalina or later, Finder.
  • The USB cable that came with your iPhone (or a compatible cable).
  • If you have an Apple Watch paired with the iPhone, keep it nearby—you may need to unpair it after the restore.
  • Your Apple ID password and, if enabled, the password for your Mac or PC to allow the restore.
  • Knowledge of your Apple ID credentials to re-activate the iPhone after the erase.

Step-by-Step

  1. Turn off your iPhone. Press and hold the Side button (or Top button on older models) along with either volume button until the power off slider appears. Drag the slider to power off. If your iPhone is disabled and won’t turn off normally, skip to step 3.
  2. Put your iPhone into Recovery Mode. The exact button combination depends on your model:
    • iPhone 8 or later (including SE 2nd gen and later): While the iPhone is off, press and hold the Side button. Immediately connect the iPhone to your computer via USB cable without releasing the Side button. Keep holding the Side button until the Recovery Mode screen appears (a computer icon and a cable).
    • iPhone 7, 7 Plus, and iPod touch (7th gen): Press and hold the Volume Down button. Connect the iPhone to the computer while holding Volume Down. Keep holding until you see the Recovery Mode screen.
    • iPhone 6s and earlier, and iPhone SE (1st gen): Press and hold the Home button. Connect the iPhone to the computer while holding Home. Keep holding until Recovery Mode appears.
  3. Open Finder or iTunes on your computer. If you’re on macOS Catalina or later, open Finder. On Windows or older macOS, open iTunes. If you get a message asking “Allow this computer to access information on your iPhone?”, click “Allow” (if you can’t, that’s fine—proceed).
  4. Locate your iPhone in the app. In Finder, click your iPhone under Locations in the sidebar. In iTunes, click the device icon in the upper-left corner of the window.
  5. Choose “Restore.” A dialog will appear with two options: “Update” and “Restore.” Click Restore. If prompted, confirm that you want to restore. The computer will download the iOS software for your iPhone (this may take a while) and then erase the device, installing the latest iOS.
  6. Wait for the restore to finish. Do not unplug the iPhone during this process. When the progress bar completes, the iPhone will restart and show the “Hello” screen.
  7. Set up your iPhone. Follow the on-screen steps. You can restore from an iCloud or computer backup if you have one, or set up as new. If you have an Apple Watch, you’ll be prompted to unpair it and then re-pair after setup.

Common Mistakes

  • Using the wrong button combination for your model. For iPhone 8 and later, you must hold the Side button, not the volume buttons. For iPhone 7, hold Volume Down, not Home.
  • Releasing the button too early. You must keep holding until you see the Recovery Mode screen, not just when the Apple logo appears.
  • Not having the latest iTunes/Finder. An outdated version may not recognize your iPhone in Recovery Mode.
  • Unplugging the iPhone during the restore. This can cause an error and leave the device in a partial state.
  • Forgetting your Apple ID password. After the restore, Activation Lock will require your Apple ID and password. If you’ve forgotten it, you’ll need to recover it via Apple’s website before you can use the iPhone.

Tips

  • Back up regularly. The only way to avoid losing data in this situation is to have a recent backup. Use iCloud or a computer backup.
  • Use a computer you trust. If you’ve previously synced with a computer, it’s more likely to be recognized without extra prompts.
  • Try “Update” first if you think you might recover data. Sometimes, updating iOS can remove the passcode without erasing, but it only works if the iPhone is not disabled and you can still enter the passcode after the update. If you’re locked out, this is unlikely, but it’s a harmless attempt.
  • Keep your iPhone charged. Plug it into a power source during the restore if possible, though the USB connection to the computer usually provides enough power.
  • Know your Apple ID. Write down your Apple ID and password in a secure place. This is the key to unlocking your device after a restore.

Troubleshooting

  • iPhone not appearing in Finder/iTunes. Make sure the cable is working and directly connected to a USB port on the computer (avoid hubs). Try a different port or cable. Restart both the computer and the iPhone (force restart: press and release Volume Up, then Volume Down, then hold Side until the Apple logo appears) and try again.
  • Recovery Mode screen doesn’t appear. If you see the Apple logo instead, you released the button too early. Try the steps again, holding the button longer. If you see a black screen, the iPhone may be off—hold the button while connecting.
  • Error 4013, 4014, or 9. These errors often indicate a USB connection issue or a problem with the computer’s security software. Try a different USB port, a different cable, or a different computer. Update your computer’s operating system and iTunes/Finder.
  • iPhone stuck on “Hello” after restore. This is normal. If it asks for a passcode, you may have restored from a backup that had a passcode—enter that old passcode. If it asks for your Apple ID, enter it. If you can’t get past Activation Lock, you’ll need to visit Apple’s support site for account recovery.
  • Restore keeps failing halfway. Check your internet connection and make sure the computer has enough free storage for the iOS download. Try disabling antivirus or firewall temporarily (but re-enable after). If the problem persists, try a different computer.

Frequently Asked Questions

Will this erase all my data?

Yes, restoring your iPhone will erase all data and settings. If you have a backup, you can restore from it after setup. Without a backup, your data is lost.

Can I unlock my iPhone without a computer?

No, the official method requires a computer with Finder or iTunes. If you don’t have one, you can borrow a friend’s or use a public computer, but be cautious about security.

What if I have Find My iPhone enabled?

Find My iPhone (Activation Lock) will remain on after the restore. You’ll need your Apple ID and password to activate the iPhone. If you forgot them, go to iforgot.apple.com to reset your password.

Is there any way to keep my data?

Only if you have a backup. If you never backed up, the restore will erase everything. There is no official way to bypass the passcode without erasing.

How long does the restore take?

It depends on your internet speed and the size of the iOS download. Typically, it takes 10–30 minutes, but could be longer on slow connections.

What if my iPhone is disabled for 15 minutes or more?

Recovery Mode works even if the iPhone is disabled. Just follow the steps to enter Recovery Mode; the disabled screen will be bypassed once you connect to the computer.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →