October 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 NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Cupertino desk3 min

How to Access an iPhone When You Forgot the Passcode

A recent passcode change may let you use the previous code for 72 hours. If not, Apple’s supported recovery methods erase the iPhone and may allow a backup restore.
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 use iOS 17 or later, try your previous passcode first—it may let you regain access without erasing the phone. Otherwise, Apple’s supported recovery options erase the iPhone: reset it from the lockout screen if it meets Apple’s requirements, or use recovery mode with a computer. You can restore your data during setup if you have a backup.

Try your previous passcode first

If you recently changed the passcode, Apple’s Passcode Reset feature may let you use the old one. On iOS 17 or later, the previous passcode remains usable for 72 hours after the change. This is the option to try first because it can restore access without erasing the iPhone.

As an Amazon Associate I earn from qualifying purchases.

  1. On the Lock Screen, enter the wrong passcode until the iPhone displays an unavailable message.
  2. Tap Forgot Passcode?, then tap Enter Previous Passcode.
  3. Enter the old passcode and follow the prompts to set a new one.

Apple describes this 72-hour window in its Passcode Reset guidance. If the old passcode is not accepted or the window has expired, use one of the erase-and-reset methods below.

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

Reset the iPhone from the lockout screen

This option is available on iOS 15.2 or later when Find My was enabled before the lockout, the iPhone has an active cellular or Wi-Fi connection, and you know the Apple Account password associated with it. It permanently erases the data and settings currently on the iPhone. Afterward, set up the device again and restore from a backup if one is available.

#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. From the unavailable or Security Lockout screen, tap Forgot Passcode? if that option appears.
  2. On iOS 17 or later, tap Start [Device] Reset, enter the Apple Account password to sign out, then choose Erase [Device]. In iOS 15.2 or iOS 16, Apple says an Erase [Device] option appears when the required account, network, and Find My conditions are met.
  3. Follow the prompts. When the iPhone restarts, complete setup and restore from a backup if available.

Apple’s instructions for erasing a locked iPhone also explain eSIM handling. On iOS 17 or later, you can choose whether to retain or delete the eSIM during erasure. If the iPhone uses an eSIM and runs iOS 16 or earlier, contact your carrier before resetting and ask for a QR code to set it up again.

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

Erase and restore the iPhone with a computer

If the lock-screen reset is unavailable, Apple’s recovery-mode procedure uses a Mac or Windows PC, an internet connection, and a cable that can charge the iPhone. The process erases the phone’s current data. Apple says to allow up to 60 minutes; that is an estimate for the procedure, not a guaranteed completion time.

  1. Use Apple’s model-specific recovery-mode instructions to identify the button sequence for your iPhone. Apple gives different instructions for Face ID models, iPhone 8 and later model groups, iPhone 7 models, and iPhone 6s and earlier.
  2. Connect the iPhone to the computer with a cable that can charge it, then put it into recovery mode using the sequence for that model.
  3. On a Mac, open Finder and select the iPhone. On Windows, open Apple Devices and select the iPhone.
  4. Choose Restore and follow the on-screen instructions. When the restore is complete, set up the iPhone and restore a backup if available.

If the iOS download takes more than 15 minutes and the iPhone leaves the recovery screen, let the download finish. Then turn off the iPhone and repeat the recovery-mode steps. Apple recommends visiting an Apple Store or Apple Authorized Service Provider if you cannot borrow a computer.

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

What happens to your data?

The previous-passcode method is the only route here that may avoid erasing the iPhone. Both reset options erase current data and settings. You can recover data only if it is available through a backup or other Apple-supported restore option during setup; the erase itself does not recover files that were not backed up. Apple’s reset guidance covers the on-device erase and computer restore outcomes.

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 *

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

More from the Wire

  1. Cupertino desk3 min
    Apple Unveils AirPods Max 2: The Upgrade That Should Have Happened Years AgoI have always had a weird relationship with AirPods Max. On one hand, they sounded great. On the other, they felt strangely outdated for…
  2. Cupertino desk4 min
    Apple’s OLED Touch MacBooks Are Coming But the Dynamic Island Is the Real GambleApple is reportedly lining up a major MacBook Pro redesign for late 2026, bringing OLED displays, full touchscreen support, and yes, a Mac version…
  3. Cupertino desk3 min
    Apple’s March 4 Event Could Be About Macs, But It Feels Bigger Than ThatApple has officially invited press to a March 4, 2026 gathering at 9 a.m. ET in New York, with parallel experiences reportedly happening in…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

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.