DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
Cupertino desk3 min

How to Recover or Reset Your iPhone Passcode

A recently changed passcode may be reset with the previous one within 72 hours. Otherwise, Apple’s recovery routes erase the iPhone; restore a backup during setup if available.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If you changed your iPhone passcode within the last 72 hours and remember the previous one, you may be able to set a new passcode without erasing the phone. Otherwise, Apple’s supported recovery options erase and reset the iPhone; you can restore backed-up data during setup if a backup exists. The iPhone passcode is different from your Apple Account password: the latter may be required to erase the phone, but it does not unlock or recover the device passcode.

Choose the recovery route that fits your situation

Route When it can work What happens to the iPhone
Use the previous passcode You changed the passcode within the past 72 hours, use iOS 17 or later, and know the previous passcode. Apple’s 72-hour Passcode Reset instructions Set a new passcode without resetting the device.
Reset on the iPhone The phone meets Apple’s requirements: iOS 15.2 or later, Find My was enabled before lockout, it has an active cellular or Wi-Fi connection, and you know the Apple Account password. Apple’s on-device reset instructions Erases the phone’s data and settings.
Reset with a computer The other routes are unavailable, and you can use a Mac or Windows PC, a cable that can charge the iPhone, and an internet connection. Apple’s computer reset instructions Recovery mode and Restore erase the phone’s current data.

Try the previous passcode if you changed it recently

Apple’s Passcode Reset feature is a temporary option, not a way to reveal a forgotten passcode. On an iPhone with iOS 17 or later, you can use the previous passcode within 72 hours of changing it to create a new one.

  1. On the lock screen, tap Forgot Passcode? when the option appears.
  2. Choose the option to enter your previous passcode and follow the prompts.
  3. Set a new passcode when asked.

If the 72-hour window has passed, you do not know the previous passcode, or the option is not available, move to a reset route below.

Reset the iPhone from its lock screen

This option erases the iPhone’s data and settings. Use it only if you are prepared to set up the device again and restore from a backup if you have one. Apple requires iOS 15.2 or later, Find My enabled before the phone was locked, a working cellular or Wi-Fi connection, and the Apple Account password associated with the iPhone.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
PBN-TEC Cell Phone Investigation Kit Investigates Cell Phone Data
  • The Cellphone Investigation Kit is a complete solution for accessing and preserving data from virtually any mobile device. One kit covers iPhones, Android phones, GSM SIM cards, and photo backup — giving investigators, IT professionals, and parents everything they need in a single package.
  • The included iRecovery Stick accesses data directly from iPhones and iPads running up to iOS 26.x, pulling contacts, text messages, call logs, saved passwords, WiFi networks, photos, the Deleted Photos folder, and more. Runs entirely on your Windows PC — no software is installed on the target device and no trace is left behind.
  • The Phone Recovery Stick analyzes Android devices, recovering contacts, messages, photos, call logs, and more from a wide range of Android smartphones and tablets. Connect the target Android device to your Windows PC alongside the stick to begin extraction and data analysis.
  • The SIM Card Seizure reader pulls data stored directly on GSM SIM cards, including contacts, SMS messages, call history, carrier information, and SIM serial numbers. Compatible with SIM cards from any carrier — including older flip phones and prepaid devices — making it essential for cases involving old phones that store data on SIM cards.
  • The Photo Backup Stick completes the kit with fast photo and video backup from phones, tablets, and even computers, preserving visual evidence without requiring a PC or special software. All four tools work together to give you comprehensive mobile device coverage from a single professional investigation kit.
  1. On iOS 17 or later, tap Forgot Passcode? on the iPhone Unavailable or Security Lockout screen. On earlier supported versions, look for Erase [Device].
  2. Follow the onscreen instructions to begin erasing the iPhone and enter your Apple Account password if prompted.
  3. After the erase completes, set up the iPhone and restore a backup if one is available.

Check the eSIM prompt before confirming

On iOS 17 or later, the reset flow may offer the choice to keep or delete an eSIM while erasing the iPhone. If the phone has an eSIM and runs iOS 16 or earlier, Apple advises contacting your carrier before resetting to arrange setting it up again. See Apple’s on-device reset guidance.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use recovery mode and a computer if on-device reset is unavailable

Apple’s computer method also erases the iPhone. You need a Mac or Windows PC with internet access and a cable that can charge the phone; check that the cable connectors fit both the iPhone and computer. A cable does not retrieve or bypass a passcode. Apple states, “To access your iPhone after you’ve forgotten your passcode, you must reset your device.”

  1. Follow Apple’s instructions to put your specific iPhone model into recovery mode and connect it to the computer.
  2. When the computer offers Restore or Update, select Restore to reset the iPhone.
  3. Allow the software download to finish. If it takes more than 15 minutes and the iPhone exits recovery mode, let the download complete, then put the iPhone into recovery mode again and continue.
  4. After the restore, set up the iPhone and restore from a backup if available.

If you cannot borrow a computer, Apple directs you to an Apple Store or Apple Authorised Service Provider for help.

What data can you get back?

After either erase-and-reset method, you can restore data and settings from a backup if one exists. Apple’s recovery steps do not promise recovery of local data that was not backed up. A reset clears the current data and settings rather than decrypting or displaying them.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Apple explains that setting an iPhone passcode turns on data protection, which encrypts iPhone data with 256-bit AES encryption; some apps may opt out of data protection. That security design is why Apple’s forgotten-passcode guidance centers on resetting the device instead of bypassing the lock. See the iPhone User Guide’s passcode and data-protection explanation.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.