Forgetting your iPhone or iPad passcode can be quite frustrating. With reliance on Face ID or Touch ID in the latest Apple gear, you've probably found yourself using passcode much less frequently than you used to.

As you're less accustomed to entering it now, the chance of forgetting your passcode increases significantly. So, here's what to do if you've forgotten what those pesky digits are.

Are You Sure You've Forgotten Your Passcode?

It might sound obvious, but before getting started with any troubleshooting steps that involve resetting your iPhone, try recalling your passcode. It can save you from the hassle of having to explore methods of removing your passcode.

You've got a few attempts at guessing your passcode first–so take advantage of them. Your iPhone allows five consecutive incorrect attempts to enter your passcode.

Screenshot of the iPhone is disabled message when you enter the wrong passcode too many times

After this, with every attempt, your device will lock you out for longer periods of time. Starting with 30 seconds for the first lock-out, and going up to an hour on the ninth attempt.

Keep in mind that your device will lock you out completely after your tenth attempt. That's when you'll see the iPhone is disabled, connect to computer message.

Once your iPhone or iPad tells you it's disabled, and you need to connect to a computer, you've unfortunately lost the battle. The only way to get it back to life now is by erasing and resetting the device using a computer.

What to Do If You Forget Your Passcode

Apple makes it clear that the only way to fix a forgotten iPhone password is to factory reset your iPhone or iPad. Unless you made a backup before you forgot your passcode, there's really no way to save your phone's current data.

While we refer to resetting your iPhone passcode throughout this article, this applies to all the types of passcodes Apple offers for your device. The steps will work with a four-digit code, a six-digit code, a custom-length code, or an alphanumeric code.

How to Unlock a Disabled iPhone or iPad Using a Computer

The quickest and simplest way to unlock a disabled iPhone is using a computer, and the reset option on there.

Using a Mac

If you've previously synced your device with your Mac, you can use a recent backup to restore your iPhone or iPad and reset its passcode. Here's how to erase your device using a Mac:

  1. Connect your device to your Mac using a Lightning cable.
  2. Open Finder, and select your device from Locations in the sidebar.
  3. Select General from the bar at the top of the window.
  4. Scroll down. Under Backups, select Restore Backup.
  5. You'll be shown all the backups of your device locally or on iCloud, which you can choose to restore from.
  6. After you make your selection, enter your Mac password and click Restore.
Screenshot of the back up process on a Mac

This will restore your data from the most recent backup. Doing so will remove the passcode from the device, giving you a chance to set up a new one.

Using a Windows Computer

If you've previously synced your device with iTunes, you can use a recent backup to restore your iPhone or iPad and reset its passcode. Here's how to erase your device using iTunes:

  1. Connect your device to the computer you previously synced with using a Lightning cable.
  2. Open iTunes. If iTunes lets you in without prompting for a passcode, you can proceed. However, if it prompts you for a password, then try connecting your device to another computer you might have synced with.
  3. Wait for iTunes to sync your device and make a backup.
  4. When the sync completes, click on Restore iPhone and let the restoration process complete. This will reinstall iOS from scratch.
  5. When complete, the iOS setup screen should pop up on your device. Here, tap on Restore from iTunes backup.
  6. Choose the latest backup to restore from.
Screenshot of backing up an iPhone in iTunes on Windows

Doing this will restore your data to the point in time when you made the backup. Also, it will remove the device's passcode, giving you a chance to set up a new one. If you have even worse luck and forgot this backup password too, you may still be able to reset a forgotten iTunes backup password.

How to Reset an iPhone or iPad Using iCloud

Apple's Find My service isn't only useful for finding lost devices. If you sync your iPhone or iPad with iCloud and you have Find My iPhone enabled on your locked device, you can reset your iPhone using iCloud. Then, you can reset your iPhone passcode.

Your locked device must be either connected to Wi-Fi or cellular data.

If you do not have an active internet connection or have disabled access to Control Center on the Lock screen, this method won't work for you. Fortunately, you can still reset your iPhone or iPad using Recovery Mode, per the instructions given in the next section.

As long as your device has a network connection, you can do the following:

  1. Open the Find My app on a Mac or the iCloud website on a non-Mac computer and log in using your Apple ID.
  2. Click on Devices at the top and then select the device you've lost access to.
  3. Choose Erase iPhone to reset your device.
Screenshot of the screen in the Find My App to reset your iPhone

Your device will erase itself remotely, deleting everything including the passcode. Once complete, you'll have to set your device up as new. During the setup process, you can choose between Restoring from an iCloud backup or Setting up your iPhone as new. Select the option you want, then you can set a new passcode.

How to Reset an iPhone or iPad Using Recovery Mode

If you have never synced your iPhone or iPad with iCloud or a computer, erasing your device using Recovery Mode is your only option. Doing so will erase your iPhone or iPad's data permanently and set it up as new.

First, connect your iPhone to a computer and open either Finder or iTunes. You'll then need to press a button combination on the iPhone to enter Recovery Mode, which varies based on your iPhone model. Here's a summary from our guide on using Recovery Mode for each class of device:

  • On an iPhone 8, iPhone X, or later: Press and quickly release the Volume Up button. Then press and quickly release the Volume Down button. Finally, press and hold the Side button until you see the Recovery Mode screen.
  • On an iPhone 7 or iPhone 7 Plus: Press and hold both the Side and Volume Down buttons at the same time. Keep holding them until you see the Recovery Mode screen.
  • On an iPhone 6s and earlier, iPad, or iPod touch: Press and hold both the Home and the Top (or Side) buttons at the same time. Keep holding them until you see the Recovery Mode screen.
Recovery Mode indicator on an iPhone screen

When you enter Recovery Mode, iTunes or Finder will prompt you to either Restore or Update your iPhone. Click on Restore.

Screenshot of when you plug a recovery mode iPhone into a Mac

Your computer will begin downloading software for your device. If the download takes more than 15 minutes, your iPhone will exit Recovery Mode automatically. If this happens, just repeat the above steps.

Once the process completes, you can set up your iPhone and set a new passcode. Unfortunately, without a backup, your data will still be lost.

Can You Reset a Disabled iPhone or iPad Using Another Method?

Apple takes pride in the fact that it protects user security and privacy. In the past, some security exploits have allowed you to bypass the passcode section of your device. These were back around iOS 11 and iOS 13, so won't work any more. Avoid any jailbreaking tools that claim they can bypass your iPhone passcode.

Be wary of tools advertising to be able to unlock your device. Often times, they simply don't work. Ones that do, do so by brute-forcing your iPhone. This involves hacking iOS to try and find out the passcode or directly change it. Such tactics are against Apple's terms and will likely void the warranty on your device.

Remember to Always Back Up Your Devices

Now that you've successfully reset your iPhone or iPad's passcode, you're back into your device. To avoid this happening again, it might be a good idea to make a note of your device's passcode somewhere.

And, as an extra safety precaution, make sure to regularly back up your device in case you ever need to reset it again. But don't just back up your iPhone to your computer, store it on an external device for added security.