Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Reset a Forgotten Passcode on iPhone or iPad

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If you have forgotten the passcode on your iPhone, iPad, or iPod touch, you must erase the device to regain access. There is no way to retrieve a forgotten passcode without wiping the device. This security measure protects your personal data if your device is lost or stolen. Once erased, you can restore your data from a recent backup.

What You'll Need

  • A computer (Mac or PC) with internet access.
  • A USB or USB-C cable compatible with your iPhone, iPad, or iPod touch.
  • Your Apple ID and password (to disable Activation Lock after the erase).

Step-by-Step

The exact method depends on your device model. Apple support pages refer to these procedures as using "recovery mode."

Note: Menu labels and button sequences can differ slightly depending on your specific device model and the version of macOS or Windows you are using.

Step 1: Turn Off Your Device

  1. For iPhone X and later, iPad with Face ID, or iPod touch (7th generation): Press and hold the side button and either volume button until the power off slider appears. Drag the slider to turn off your device.
  2. For iPhone 8, iPhone SE (2nd and 3rd generation), and iPad with a Home button: Press and hold the side (or top) button until the power off slider appears. Drag the slider to turn off your device.
  3. For iPhone 7, iPhone 7 Plus, and iPod touch (6th generation): Press and hold the side (or top) button until the power off slider appears. Drag the slider to turn off your device.

Step 2: Open Finder or iTunes

  1. On a Mac running macOS 10.15 (Catalina) or later, open Finder.
  2. On a Mac running macOS 10.14 (Mojave) or earlier, or on a Windows PC, open iTunes. If you do not have iTunes, download it from the Microsoft Store or Apple's website.

Step 3: Connect Your Device in Recovery Mode

This step requires precise timing. You must hold the buttons immediately after connecting the cable.

  1. Hold the side button (or top button) on your device while connecting it to the computer. Do not let go of the button.
  2. Keep holding the button until you see the recovery mode screen on your device. This screen displays a picture of a laptop and a cable.
  3. Button variation for iPhone 7/7 Plus and iPod touch (6th generation): Hold the Volume Down button while connecting.
  4. Button variation for iPhone 6s or earlier and iPad with a Home button: Hold the Home button while connecting.

Step 4: Choose Restore

  1. A window will appear on your computer asking if you want to Restore or Update your device. Click Restore.
  2. Your computer will download the latest software for your device. If the download takes more than 15 minutes, your device will exit recovery mode. If this happens, let the download finish, then repeat Step 3 to enter recovery mode again.
  3. Wait for the process to complete. Your device will restart automatically.

Step 5: Set Up Your Device

  1. After the restore finishes, disconnect the device.
  2. Follow the onscreen setup steps. If you have a backup, choose to Restore from iCloud Backup or Restore from Mac/PC when prompted.
  3. If you previously set up Find My, you will be asked to enter your Apple ID and password to disable Activation Lock.

Common Mistakes

  • Letting go of the button too early: Users often release the button as soon as the Apple logo appears. You must continue holding it until the recovery mode screen (computer and cable icon) appears.
  • Not using a trusted computer: If you have never connected your device to the computer before, or if you have not trusted it recently, the computer may not recognize the device until it is in recovery mode.
  • Interrupting the download: The restore process requires downloading the latest iOS or iPadOS firmware. Interrupting this download forces you to start over.
  • Attempting to guess the passcode: Entering the wrong passcode too many times will disable the device for longer periods. If you see "Security Lockout" and a timer, you must wait for the timer to finish before attempting the recovery mode steps.

Tips

  • Use the Erase Device option (iOS 15.2+): If your device is connected to Wi-Fi or cellular data and you see a "Security Lockout" screen with an Erase Device option at the bottom, you can tap it to erase the device without a computer. You will still need your Apple ID password.
  • Check your backups: Regular backups ensure you do not lose important data when a passcode reset is required. iCloud backups happen automatically when the device is locked, plugged in, and on Wi-Fi.
  • Remember Screen Time vs. Device Passcode: If you are locked out of specific settings but can unlock the device itself, you may have forgotten a Screen Time passcode. That requires a different reset process via Screen Time settings or Family Sharing.

Troubleshooting

If the process does not go to plan, try these solutions:

  • Computer does not recognize the device: Try a different USB cable or a different USB port on your computer. If using a USB hub, connect directly to the computer's built-in port.
  • Device exits recovery mode: If the download takes too long and the device times out, let the download complete on your computer first. Once finished, force-restart your device to enter recovery mode again and immediately click Restore.
  • "Unable to Restore" error: Update your computer's operating system or iTunes software to the latest version. Older software may not support newer iOS firmware.
  • Stuck on the Apple logo: If the device is stuck on the Apple logo for more than 10 minutes with no progress bar, attempt the recovery mode steps again.

Frequently Asked Questions

Will resetting my passcode delete my photos?

Yes. Resetting the passcode requires erasing the device, which deletes all data, including photos. You can recover your photos if you have a recent iCloud or computer backup.

Can Apple Support unlock my iPhone without erasing it?

No. Apple Support cannot bypass the passcode lock. The encryption tied to the passcode is designed so that only the person who knows the passcode can access the data.

What if I do not have a computer?

If you are running iOS 15.2 or later and have cellular or Wi-Fi access, you may see an "Erase Device" option at the bottom of the Security Lockout screen. Otherwise, you must borrow a computer or visit an Apple Store or Authorized Service Provider.

How many wrong passcode attempts does it take to lock an iPhone?

After six wrong attempts, the iPhone disables itself for one minute. Subsequent failed attempts increase the lockout time, eventually leading to a permanent lockout requiring a restore.

Do I need my Apple ID to reset a forgotten passcode?

Yes. After erasing the device, Activation Lock requires you to enter the Apple ID and password previously used on that device to set it up again.