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
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:
Keep trying from the Lock Screen until the iPhone Unavailable screen appears.2
Tap Forgot Passcode?.2
On the Security Lockout screen, tap Start iPhone Reset.2
Enter your Apple Account password to sign out.2
Tap Erase iPhone. If you use an eSIM, you can choose to keep it or delete it along with your data.2
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
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
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
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
On a Mac, open Finder and select the iPhone under Locations. On Windows, open Apple Devices, select the iPhone, then select General.3
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.
