iPhone Unavailable is what the Lock Screen shows after too many wrong passcode entries. Apple publishes the way back in, and the order matters: try Passcode Reset first, then the on-device erase, then a computer recovery Restore. Only the first rung keeps your data. Read the rung you are on before tapping.
Five wrong attempts show the iPhone Unavailable screen
After five incorrect passcode attempts the screen changes to "[Device] Unavailable", Apple's Passcode Reset support page says (published August 11, 2026). On some versions the same screen reads Security Lockout. A Forgot Passcode? button sits in the bottom corner when the device qualifies. That button is the entry to every rung below. If it never appears, the iPhone is missing a network connection, Find My, or an Apple Account sign-in, and you go straight to the computer rung.
Passcode Reset uses the old passcode within 72 hours
When you change your passcode in iOS 17 or iPadOS 17 or later, the old passcode keeps working for 72 hours through Passcode Reset. Forget the new code inside that window and you can unlock without erasing anything. Tap Forgot Passcode?, tap Enter Previous Passcode, type the old passcode, then follow the prompts to set a new one immediately. No computer, no restore, no data loss.

Apple also documents expiring the old passcode sooner than 72 hours, if you want the window shorter. The trap is simple. After 72 hours the old passcode stops working and this rung is gone. Changed the passcode a week ago? Passcode Reset will not save you, and the questions readers raised about the window in August still apply: our earlier coverage of the 72-hour passcode relief goes into who should retire the old code.
Forgot Passcode erase needs network, Find My and an Apple Account
Outside the 72-hour window, the next rung is the on-device erase in Apple's reset-without-computer guide. Requirements first: iOS 15.2 or later, Find My previously turned on, an active cellular or Wi-Fi connection, and your Apple Account password. On iOS 17 or later, tap Forgot Passcode? on the Unavailable screen, tap Start [Device] Reset, enter the Apple Account password to sign out, then tap Erase [Device].
With an eSIM on iOS 17 or later you get a choice: keep the eSIM and erase the data, or delete the eSIM and erase the data. On iOS 16 or earlier with an eSIM, Apple says to contact your carrier first and ask for a QR code to set up the eSIM again. On iOS 15.2 or iOS 16 the button reads Erase [Device] instead of Forgot Passcode?. Every version of this rung deletes what is on the phone. After the restart, set up the device, restore from a backup if you have one, and set a new passcode.
Computer recovery Restore when Forgot Passcode never appears
No network, no Find My, no button. The last rung is recovery mode on a Mac or Windows PC. Apple's computer guide lists what you need: the computer, a charge cable, an internet connection, and up to 60 minutes. The Restore erases the iPhone.
For Face ID models, power off with the side button and Volume down. Then connect the cable to the computer, connect it to the iPhone, and quickly hold the side button. Keep holding through the Apple logo until the computer-and-cable image appears. On a Mac, open Finder, select the iPhone under Locations, and choose Restore when the choice is Restore or Update. On Windows, open Apple Devices, select the iPhone, tap Trust, then General, then Restore.

One timing note from Apple: the software download can take more than 15 minutes. If the iPhone leaves the recovery screen while the download runs, let it finish, power off the iPhone, and start recovery mode again. When the Hello screen appears, disconnect and set up. No computer at all? Apple sends you to an Apple Store or an Apple Authorized Service Provider instead.
After the erase: backup, eSIM and the same Apple Account
Both erase rungs delete data, so the backup decides what comes back. Set a passcode you can remember this time. If setup hits Activation Lock, sign in with the Apple Account that was on the iPhone before. There is no bypass here. Two related ladders on the site: when the iPhone keeps asking for the passcode instead of accepting Face ID, our Face ID fix covers that side, and a forgotten Mac login password has its own reset path from the login window.
Photo: Apple Support screenshots, via Apple Support 105039 and 118430.