iPhone Unavailable? How to Get Back Into Your iPhone

Too many wrong passcodes lock an iPhone behind an “iPhone Unavailable” or Security Lockout screen. Here is what each option does, starting with the ones that keep your data.

Short answer

If the screen shows a countdown, wait for it to finish and enter the right passcode carefully. If you changed your passcode in the last 72 hours on iOS 17 or later, tap Forgot Passcode? and then Enter Previous Passcode to use the old one. If you have truly forgotten it, the only way back in is to erase the iPhone, from the Lock Screen or with a computer, and restore from a backup. Keep your Apple Account password to hand before you start.

In this article 8 sections
  1. What “iPhone Unavailable” means
  2. Option 1: Wait for the timer, then type carefully
  3. Option 2: Use your old passcode (changed in the last 72 hours)
  4. Option 3: Erase the iPhone from the Lock Screen
  5. Option 4: Reset with a computer (recovery mode)
  6. Option 5: Erase it from another device
  7. When to get help
  8. Common questions
An iPhone Lock Screen showing the time and date
The Lock Screen is where the “iPhone Unavailable” message appears after too many wrong passcodes. Image: 茅野ふたば / Wikimedia Commons, Public domain

What “iPhone Unavailable” means

An iPhone shows the “iPhone Unavailable” screen after five wrong passcode attempts on the Lock Screen.1 At first it is only a timer. Digital Trends reports that the wait starts at one minute and grows with each further wrong attempt, up to an hour at a time.5 After ten wrong attempts the phone moves to a full Security Lockout, and if the Erase Data setting is switched on in the passcode settings, the iPhone erases itself instead.5

There is no shortcut around the passcode. Apple cannot unlock the phone for you, and without the passcode the only way back in is to erase the iPhone and set it up again.5 So work through the options below in order: the first two keep your data, the rest do not.

Option 1: Wait for the timer, then type carefully

If you do know the passcode and the wrong attempts came from a child, a pocket or a guess, let the countdown on screen finish before you try again.5 Every extra wrong attempt makes the next wait longer, so take your time and make sure you are typing the current passcode.5

Option 2: Use your old passcode (changed in the last 72 hours)

If you changed your passcode recently and can't remember the new one, iOS 17 and later give you a 72-hour window in which the previous passcode still works.1

  1. After five wrong attempts, the iPhone Unavailable screen appears. Tap Forgot Passcode? in the bottom corner.1

  2. Tap Enter Previous Passcode.1

  3. Type your old passcode, then follow the instructions to set a new one straight away.1

The Forgot Passcode? button only appears if the iPhone is connected to mobile data or Wi-Fi, you are signed in to your Apple Account, and Find My is turned on.1

Option 3: Erase the iPhone from the Lock Screen

If you have forgotten the passcode completely, you can reset the iPhone without a computer on iOS 15.2 or later. You need Find My to have been turned on before you were locked out, a mobile or Wi-Fi connection, and your Apple Account email and password.2

This erases everything on the iPhone

Resetting permanently deletes all of your data and settings. You can only get your photos, messages and apps back if you have a backup.2,3 See how to back up your phone so you are covered next time.

On iOS 17 or later:

  1. Keep trying from the Lock Screen until the iPhone Unavailable screen appears.2

  2. Tap Forgot Passcode?.2

  3. On the Security Lockout screen, tap Start iPhone Reset.2

  4. Enter your Apple Account password to sign out.2

  5. Tap Erase iPhone. If you use an eSIM, you can choose to keep it or delete it along with your data.2

  6. When the iPhone restarts, set it up again, restore from a backup if you have one, and choose a new passcode.2

On iOS 15.2 to iOS 16, an Erase iPhone button appears on the lockout screen instead of Forgot Passcode?.2 If you use an eSIM on these versions, Apple suggests contacting your carrier first, as you may need a new QR code to reinstall it.2,4 Our guide to eSIM problems explains the reinstall process.

Don't restart the iPhone while it is locked out. Digital Trends notes that it won't reconnect to Wi-Fi until it is unlocked, which can hide the erase option.5

Option 4: Reset with a computer (recovery mode)

If the erase option doesn't appear, use a Mac or a Windows PC. You need a cable that can charge the iPhone, an internet connection and up to an hour.3 On Windows, the computer needs Apple's Apple Devices app.3,4

  1. Turn the iPhone off. On models with Face ID, hold the side button and the volume down button until the power-off slider appears, then drag it.3

  2. Put the iPhone into recovery mode: connect the cable to the computer, then hold the right button while you plug in the iPhone, and keep holding until you see a computer and cable on screen.3

  3. The button depends on the model: the side button for Face ID models and for iPhone 8, iPhone 8 Plus and iPhone SE (2nd and 3rd generation); volume down for iPhone 7 and 7 Plus; the Home button for iPhone 6s and earlier and the first iPhone SE.3

  4. On a Mac, open Finder and select the iPhone under Locations. On Windows, open Apple Devices, select the iPhone, then select General.3

  5. When offered Restore or Update, choose Restore.3

The download can take more than 15 minutes. If the iPhone leaves recovery mode before it finishes, turn it off and start again from step 2.3

Option 5: Erase it from another device

You can also erase the iPhone remotely: sign in at icloud.com/find, choose All Devices, select the iPhone and choose Erase iPhone.5 This does not remove Activation Lock, so you will still need your Apple Account details to set the phone up again.5 The same tools help if the phone is missing; see what to do if your phone is lost or stolen.

When to get help

If the iPhone's buttons don't respond, Apple says it may need service. If you don't have a computer, an Apple Store or an Apple Authorised Service Provider can help.3 If you also can't remember your Apple Account password, you will not be able to finish the reset from the Lock Screen, because that step asks for it.2

If the message is about your Apple Account rather than your iPhone passcode, see our guide to a locked or disabled Apple Account.

Common questions

Will I lose my photos?

Yes, unless they are in a backup. Every reset option erases the iPhone, and you get your data back by restoring from a backup during setup.2,4 Engadget points out that you can only restore from a backup that already exists, so a backup can't be made after the lockout.4

Can Apple unlock my iPhone without erasing it?

No. Apple can't unlock a locked iPhone, so without the passcode the phone must be erased.5

How do I stop this happening again?

Set up Face ID or Touch ID so you type the passcode less often, and consider turning off Raise to Wake so the screen doesn't wake in a pocket or bag.5 Choose a passcode you will remember; our tips on creating a strong password apply here too. If you are passing a phone on, follow our checklist before you sell or recycle an old phone.

Sources and further reading

  1. If you forget your new passcode, use your old passcode to unlock your iPhone or iPad within 72 hours — Apple Support2026-08-11
  2. If you forgot your iPhone, iPad, or Apple Vision Pro passcode, reset your device without a computer — Apple Support2026-08-11
  3. Use a computer to reset your iPhone and your passcode — Apple Support2026-12-02
  4. Getting an 'iPhone Unavailable' message? Here's how to fix it — Engadget2026-08-30
  5. How to fix the 'iPhone Unavailable' error on any iPhone — Digital Trends2024-03-25

Was this article helpful?

Tell us where you got stuck

Didn’t work? Tell us which step went wrong. We read every note and use them to fix and improve this guide.

Private. This goes only to the ByteExplained editors with the guide’s title. It isn’t published on the site.

Please don’t include passwords, QR or activation codes, or identifiers such as your phone number, EID or IMEI.

Comments

No comments yet. Questions and tips from readers are welcome.