Forgot your iPhone or iPad passcode? Here’s how to reset it

Learn how to reset the passcode on your iPhone or iPad if you’ve forgotten it, so you can unlock the device and regain access to your apps, settings, photos, etc.

Reset forgotten iPhone passcode

After entering the wrong passcode five times in a row, your iPhone is locked and temporarily disabled to prevent brute-force passcode attacks. You’ll see a message saying “iPhone Unavailable / iPad Unavailable” or “try again in 1 minute, try again in 15 minutes, try again in 1 hour, or try again in an absurdly long time.”

iPhone is disabled for 1 minute and iPhone Unavailable try again after 1 hour message on screen

The tips below will help you fix it.

But note that aside from the first method, all others will fully erase your device and everything on it, except for items saved in iCloud or Google, like contacts, messages, calendar events, apps, and more.

With that said, follow along as we show you seven ways to reset a forgotten iPhone or iPad passcode.

1. If you changed the passcode in the last 72 hours

If you recently set a new iPhone passcode only to forget it shortly after, you have 72 hours to reset it using your old passcode. This is the only way to regain access to the device without erasing it and losing all data. After the 72-hour cutoff period, your only options are one of the solutions below.

Enter Previous Passcode to reset forgotten iPhone passcode

2. Reset the passcode via Security Lockout

You can reset and erase a locked iPhone without a computer. After too many failed passcode attempts, your iPhone enters Security Lockout mode that allows you to erase the device by providing your Apple Account credentials.

1) Enter incorrect passcode multiple times on the Lock Screen until a message appears, saying to try again later.

2) Keep entering the wrong passcode until the “Erase iPhone” option appears at the bottom.

3) Tap Erase iPhone and confirm the action.

4) Enter your Apple Account password. This will sign you out of your Apple account on this iPhone.

5) Select Erase iPhone to permanently delete all of your data, settings, and more.

6) The device will restart and show the iOS setup. Follow the onscreen instructions to set up your iPhone again, restore your data and settings from a backup, and create a new passcode.

Three iPhone device screenshots showing the Security Lockout process when erasing iPhone, set against a vivid gradient background
Security Lockout lets you erase your iPhone without using a computer.

3. Enter Recovery Mode

You’ll need to connect your iPhone to a Mac to use Recovery Mode. If you don’t own a Mac, borrow one from a friend or family member. Or, visit your nearest Apple Store and ask specialists for help.

1) Be sure your iPhone isn’t plugged into a computer, and then turn the device off.

2) Plug one end of the cable into your iPhone.

3) Click and hold the iPhone’s power button and immediately plug the other end of the cable into your Mac. Keep holding the button until the Recovery Mode screen appears, displaying a white cable pointing toward a MacBook. If the Recovery Mode screen doesn’t appear, turn the device off and follow the above steps again.

Recovery mode screen on iPhone
Recovery mode screen.

4) Select your iPhone’s name in the Finder sidebar under Locations.

5) Hit the Restore button on the popup in the Finder. Your Mac will download the latest version of the iOS operating system and install a fresh copy on your iPhone. You’ll then set up your iPhone from scratch and create a new passcode.

Restore iPhone using Finder on Mac

4. Use the Apple Devices app for Windows

You can also do this on a Windows PC; the only difference is that instead of the Finder, you’ll use the official Apple Devices app from Apple.

Connect an iPhone, iPad, or iPod to Apple Devices app on Windows PC

5. Restore from backup if Find My is turned off

Find My is a security feature turned on by default. If you’ve turned Find My off, however, follow the steps below to reset your passcode. You’ll need a Mac or Windows PC, an appropriate USB cable, and a previously made backup to restore your device form.

1) Connect your iPhone or iPad to a Mac or Windows PC using the cable.

2) Select your device in the Finder on your Mac or the Apple Devices app on the PC.

3) Click Restore Backup.

Restore Backup using Finder on Mac

4) Select the most recent backup you created earlier, then click Restore.

Choose an old backup file and click Restore

5) Finally, click Erase and Restore. After the device has been erased, you’ll need to set it up again and create a new passcode.

Erase and Restore iPad in Finder on Mac

As mentioned, this method works only if Find My iPhone was turned off. Otherwise, follow the previous methods (Recovery Mode) or try the remaining solutions below.

Find My must be turned off before iPhone or iPad can be restored

6. Reset the passcode on the iCloud website

1) Visit iCloud.com/find in a web browser, click Sign in, and log in with your Apple Account.

2) Select your iPhone or iPad in the All Devices section.

3) Click Erase and follow the instructions. Your iPhone will be erased remotely, provided it’s connected to a Wi-Fi or cellular network. Otherwise, move to a location where you previously joined a Wi-Fi network. With the erased, set it up again and create a new passcode.

Erase iPhone using iCloud on web

7. Use third-party tools

A quick web search reveals several iPhone tools that promise to recover a forgotten iPhone passcode. In most cases, these third-party tools don’t work. Also, unofficial tools may do more harm than good and only work if Find My is turned off, which is almost never the case. Therefore, it’s best to avoid using them.

What to do after erasing your iPhone

After erasing your iPhone, you’ll need to set it up again, as you did when you unboxed and turned on your new iPhone for the first time. But this time, you’ll need to provide your Apple Account password to bypass the Activation Lock security feature that’s automatically enabled when Find My is turned on. The iOS setup screen also offers you the option to restore the device from a backup on your computer or in iCloud.

If you have forgotten the passcode on your Apple Watch, follow the steps in this tutorial to reset it. We also have the steps for parents wishing to reset the Screen Time passcode that protects parental controls.