Courtsey- https://support.apple.com/en-ae/HT204306

Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled

Learn what to do if you have forgotten your iOS device passcode, or if your device displays a message saying that it’s disabled.

If you enter the wrong passcode into an iOS device six times in a row, you’ll be locked out. You’ll also see a message that says your device is disabled.

  • iPhone is disabled
  • iPad is disabled
  • iPod touch is disabled

Erase and restore

If you can’t remember your passcode, you’ll need to erase your device, then use a backup to put your data and settings back on your device.

Use these steps if
you’ve synced your
device with iTunes.
Use these steps if you
have an iCloud account
and have Find My iPhone
turned on.
Use recovery mode if you
can’t sync or connect with
iTunes and don’t have an
iCloud account.


If you’ve synced your device with iTunes, you can restore your device.

  1. Connect the device to the computer you normally sync with.
  2. Open iTunes. If iTunes asks you to enter your passcode or asks you to allow access, try another computer that you’ve synced with. Or use recovery mode. (Click the link to be taken to the steps.)
  3. iTunes will automatically sync your device and create a backup. If it doesn’t, sync the device with iTunes.
  4. After the sync is complete, restore your device.
  5. When iOS Setup Assistant asks to set up your device, choose “Restore from iTunes backup.”
  6. Select your device in iTunes and choose the most recent backup.

Find My iPhone

If you enabled Find My iPhone through iCloud, you can use it to erase your device.

  1. Go to icloud.com/find.
  2. If prompted, sign in with your iCloud Apple ID.
  3. Click All Devices at the top of your browser window.
  4. Select the device you want to erase.
  5. Click “Erase [device]” to erase your device and its passcode.
  6. Use the Setup Assistant on your device to restore the most recent backup.

Recovery mode

If you’ve never synced your device with iTunes, or haven’t set up Find My iPhone, you’ll need to put your device in recovery mode. Then you’ll restore your device as new or from a backup.

This will erase the device and its passcode.

  1. Disconnect all cables from your device.
  2. Hold down the Sleep/Wake button, then “slide to power off” to turn off your device.
  3. Press and hold the Home button and plug the device into your computer. If your device doesn’t turn on automatically, turn it on. Don’t release the Home button.
  4. Continue holding the Home button until you see the Connect to iTunes screen.
  5. If iTunes doesn’t open automatically, open it. iTunes will alert you that it has detected a device in recovery mode.
  6. Click OK. Then restore the device.

If your device doesn’t go into recovery mode, try steps 1–4 again.