Local Tech Fix (626) 655-0020
All articles

Forgot Your iPhone Passcode or Seeing "iPhone Unavailable"? The Honest Way Back In

June 12, 2026

There's one hard truth and a couple of genuine lifelines here. We'll give you both straight — including the free reset Apple builds in, and the Apple ID gotcha that locks people out a second time.

You've typed the passcode you were sure was right, again and again, and now your iPhone is counting down — "iPhone Unavailable, try again in 5 minutes" — or it's gone all the way to a "Security Lockout" or "iPhone Unavailable" screen with no timer at all. It's a sinking feeling, because everything is on that phone. So let's be straight with you, the way we would be in person, and walk through exactly what you can and can't do.

First, the one hard truth, because every honest guide has to start here: for security reasons, there is no way to get into a locked iPhone without either remembering the passcode or erasing the phone. Not a secret button combination, not a phone call to Apple, not a $40 app. Apple built it that way on purpose so that a stranger who finds or steals your phone can't get in either. That sounds bleak, but there are two real lifelines — one that can get you back in without erasing anything, and one free, built-in reset — and the rest of this is how to use them without making things worse.

First, read the screen you're actually looking at

The wording matters, so take a second to look. After a handful of wrong tries in a row (around five), an iPhone starts locking you out for a minute; keep guessing and the delays climb to 5 minutes, then 15, then an hour. Push past that and it stops offering a timer entirely and just says "iPhone Unavailable" or "Security Lockout" — at that point the only paths forward are the ones below. The good news hidden in the timed version: if you're only being made to wait a few minutes, you still have guesses left, so stop and think rather than burning them.

Two quick things this article is not, so you don't waste time. If you're locked out of your Windows PC rather than your iPhone, that's a completely different fix (we have a separate guide for it). And if your iPhone won't turn on, is stuck on the Apple logo, or shows a black screen — that's a boot problem, not a passcode lockout, and it has its own steps. This guide is specifically for a phone that powers on fine but won't accept your code.

The 72-hour lifeline: try your old passcode

Before you erase anything, there's one way back in that keeps everything, and almost nobody knows about it. If you recently changed your passcode — within the last 72 hours — and the lockout is because you can't remember the new one, an iPhone on iOS 17 or later will let you use the previous passcode to get in. On the "iPhone Unavailable" screen, tap "Forgot Passcode?" in the corner, then choose "Enter Previous Passcode," and type the code you used before the change. If it works, you're in — and you'll be asked to set a new passcode right away (pick one you'll actually remember this time).

This only works inside that 72-hour window and only if you're genuinely remembering an older code, so it won't help everyone. But it's the single way to recover from a lockout without wiping the phone, which is exactly why it's worth trying first. If the option isn't there, or the old code is expired, or you simply never knew the passcode — then resetting is the road, and the next sections are the calm version of that.

The honest truth: getting back in means erasing — and only a backup saves your data

If the 72-hour trick doesn't apply, here's the reality to make peace with before you start: the only way to get past a forgotten passcode is to erase the iPhone and set it up again. There is no "unlock and keep everything" option — that's the whole point of the lock. What decides whether this is a minor annoyance or a genuine loss is one thing and one thing only: whether you have a backup.

If your iPhone has been backing up to iCloud (or to a computer), then erasing it is no big deal — you wipe it, then during setup you choose "Restore from iCloud Backup," and your photos, messages, apps, and settings come flooding back to roughly where they were at the last backup. If there's no backup anywhere, then erasing means the data that was only on the phone — most painfully, photos you never saved elsewhere — is gone, and not even Apple can bring it back. That's the brutal math, and it's why we nag everyone about backups. (If you're not sure whether you have one, you can check from another device or your computer before you commit to erasing.)

The easiest reset: straight from the Lock Screen, no computer

On any reasonably modern iPhone (iOS 15.2 or later), you can erase and reset the phone right from the lock screen, without a computer at all — this is the simplest route for most people. You need two things for it to work: the phone has to be on Wi-Fi or cellular, and you have to know your Apple Account password (the one for your Apple ID / iCloud). Keep guessing the passcode until you reach the "iPhone Unavailable" screen with the option in the bottom corner.

On iOS 17 and later that option says "Forgot Passcode?"; on iOS 15.2 or 16 it says "Erase iPhone." Tap it, tap "Start iPhone Reset" or "Erase iPhone" to confirm, sign out of your Apple Account by entering your Apple ID password when asked, and tap to erase. The phone wipes itself and restarts to the "Hello" setup screen. From there you set it up like new and, when offered, choose to restore from your iCloud backup. This is the free, built-in version of exactly what the paid "unlocker" apps are selling — you already own it.

No internet, or an older iPhone? Reset with a computer in recovery mode

If the phone can't get online, or the on-screen "Erase"/"Forgot Passcode?" option isn't there (older iOS), you do the same erase using a computer and a cable — Apple calls it recovery mode. On a Mac you'll use Finder; on a Windows PC, install Apple's free "Apple Devices" app from the Microsoft Store. (That app has replaced the old standalone iTunes, and an outdated iTunes often won't recognize a phone in recovery mode, so use Apple Devices.) Plug the iPhone into the computer first.

Then put the phone into recovery mode with the button sequence for your model, holding until you see the recovery screen (a picture of a cable pointing to a laptop) — not just the Apple logo. For the iPhone 8 and every model since (including all Face ID phones and the recent Touch ID SE): press and quickly release volume up, press and quickly release volume down, then press and hold the side button, keeping it held past the Apple logo until the recovery screen appears. For an iPhone 7 or 7 Plus: hold the side button and volume down together until the recovery screen. For an iPhone 6s, the first-generation SE, or older: hold the Home button and the side (or top) button together.

When the recovery screen shows, your computer will pop up a message saying there's a problem with the iPhone and offer Update or Restore. Here you have to choose Restore — unlike the won't-turn-on situation where Update saves your data, a forgotten passcode can only be cleared by erasing, so Restore is the one that works. It downloads the latest iOS, wipes the phone, and returns it to the "Hello" screen, where you set it up and restore from a backup if you have one.

The trap that locks people out a second time: your Apple ID password

Here's the part that catches people off guard and turns a bad afternoon into a worse one. After you erase the phone, it will ask — at the setup screen — for the Apple Account (Apple ID) and password that were signed in on it. This is Activation Lock, an anti-theft feature, and there is no skipping it: if you can't provide that Apple ID password, you've traded a phone you couldn't unlock for a phone you can't even set up. So the most important thing to sort out before you erase anything is: do you know your Apple Account password?

If you're not certain, reset it first — on another device or computer, go to account.apple.com or use the "Forgot password" flow at iforgot.apple.com, and get your Apple ID password working again while you still can. Make sure it's the same Apple ID that was actually on the locked phone (people with more than one account trip here). Get that nailed down, and the erase-and-restore goes smoothly; skip it, and you can end up genuinely stuck — which is one of the most common reasons a locked phone lands on our bench.

You don't need the paid "unlock without losing data" apps

Search this problem and you'll be buried in apps promising to "unlock your iPhone passcode without losing data" or "remove Security Lockout in one click," for thirty or forty dollars. Be skeptical. Because of how Apple's security works, none of them can actually bypass a passcode and keep your data — that's simply not possible from outside the phone. In the best case, they're a paid wrapper around the very same recovery-mode erase you can do for free, and you'll still lose everything that wasn't backed up; in the worse cases they want payment up front for something that won't work, or bundle software you don't want on your computer.

The "without losing data" promise is the tell. If your data isn't already in a backup, no app can conjure it back after an erase, and if it is backed up, you don't need the app — Apple's own free reset restores it. Save your money. Use the lock-screen reset or recovery mode above, restore from your backup, and you've done the genuine version for nothing.

Once you're back in: make this the last time

After you're back into your phone, two minutes of setup means you never go through this again. Set a passcode you'll genuinely remember but a stranger wouldn't guess — and if you keep forgetting numbers, you can switch to a longer alphanumeric one or just lean on Face ID / Touch ID for daily unlocking so you rarely type the code. More importantly, turn on iCloud Backup (Settings, tap your name at the top, iCloud, iCloud Backup, switch it on) or back up to a computer, so that if this ever happens again it's a 20-minute reset instead of a heartbreak.

One setting worth knowing about while you're in there: under Settings, Face ID & Passcode, there's an "Erase Data" option that, if switched on, wipes the phone automatically after 10 wrong passcode attempts in a row. Some people love it as theft protection; for a household where kids grab the phone and mash the screen, it's a fast way to accidentally erase everything — so decide deliberately whether you want it on. And keep your Apple ID password somewhere you can find it (a password manager is ideal), because as we just saw, it's the key that gets you through setup.

How we can help

A forgotten iPhone passcode is mostly a do-it-yourself fix once you know the honest version: try your old passcode within 72 hours, and if that's out, erase from the lock screen or recovery mode and restore from your backup — for free, no app required. Where people genuinely get stuck is the Apple ID side of it: an account password they can't recover, an Apple ID they don't recognize on the phone, or a phone with no backup and irreplaceable photos on it. Those are the cases worth bringing to a person.

We help folks across Southern California and the Coachella Valley get back into locked iPhones and iPads the right way — sorting out Apple ID and Activation Lock issues, recovering data where it's technically possible, and getting backups set up so it never happens twice. We don't sell phones, so we've no reason to push you toward a new one when yours just needs to be reset and restored. And we'll always tell you honestly when it's a five-minute job you can do yourself versus something worth handing over.

Keep reading

Free calculators

Service areas we cover

Want a second opinion before you buy?

We don't sell hardware or warranties — call and we'll tell you what's worth buying and upgrading.

Call (626) 655-0020

Gear we recommend

All gear →