iPhone Security Lockout: what it means and how to get back in

iPhoneUpdated

Security Lockout is a screen Apple shows in the process of resetting an iPhone you can't unlock with its passcode. Apple's advice is to try Passcode Reset first if you changed your passcode recently. If that won't work, reset the iPhone on the device itself, which permanently erases it, and use a computer as the last route.

Quick answer

Apple says that when you see the Security Lockout screen or a "device unavailable" message in iOS 15.2 or later, you can reset the iPhone with that device to regain access. You need Find My previously turned on, a mobile or Wi-Fi connection, and your Apple Account and password. The reset erases your data.

What does Security Lockout mean on an iPhone?

Apple doesn't define the term on its reset pages. It uses the name for a screen in the reset process. Apple's steps for iOS 17 or later start with entering the passcode from the Lock Screen until the "[Device] Unavailable" screen appears. You then tap Forgotten Passcode? and confirm on the Security Lockout screen.

Apple's pages describe the Unavailable screen as following incorrect passcode attempts. They don't list another cause. If the screen appeared and you didn't enter a passcode, our guides on how to tell if someone has been on your phone and what to do if someone knows your iPhone passcode may help.

How long does Security Lockout last?

Apple's reset page doesn't give durations. It says to tap Forgotten Passcode? "When you're able to", without saying how many minutes or hours that takes, or what "no time limit" means on a given screen.

What should I try first?

Passcode Reset, if you changed your passcode in the last 72 hours. Apple says: "When you change your passcode in iOS 17, iPadOS 17 and later, Passcode Reset gives you 72 hours during which you can still access your iPhone or iPad using your previous passcode."

  1. On the "[Device] Unavailable" screen, tap Forgot Passcode? when prompted, in the bottom corner of the screen.
  2. Tap Enter Previous Passcode.
  3. Enter your old passcode, then follow the onscreen instructions to set a new passcode.

Apple says you'll be prompted to change your passcode again immediately. This route doesn't reset the device.

How do I reset an iPhone from the Security Lockout screen?

If Passcode Reset isn't possible, Apple's next route needs no computer. You'll need:

  • iOS 15.2 or later
  • Find My previously enabled on the iPhone
  • An active mobile or Wi-Fi connection
  • Your Apple Account and password

The steps for iOS 17 or later, from Apple's page:

  1. From the Lock Screen, try to enter your passcode until the "[Device] Unavailable" screen appears.
  2. When you're able to, tap Forgotten Passcode?
  3. On the Security Lockout screen, tap Start [Device] Reset to confirm.
  4. Enter your Apple Account password to sign out of your Apple Account on the device.
  5. Tap Erase [Device] to permanently delete all of your data and settings. With an eSIM on iOS 17 or later, you can choose to keep your eSIM and erase your data, or delete your eSIM and erase your data.
  6. When the iPhone restarts, follow the onscreen instructions to set it up, restore from a backup if you have one, and set a new passcode.

On iOS 15.2 or iOS 16, Apple says an Erase [Device] option appears instead of Forgotten Passcode? If you use an eSIM on iOS 16 or earlier, Apple says to contact your network provider first and ask for a QR code to set up your eSIM again.

What will I lose?

Apple describes the reset as permanently deleting all of your data and settings. What comes back depends on your backup, because Apple's last step is to restore your data and settings "from a backup if you have one". Apple's computer steps say the same process "will erase the data currently on your iPhone."

Why is there no erase or Forgotten Passcode option?

Apple says the option appears when you're locked out, connected to a mobile or Wi-Fi network, signed in to your Apple Account and have Find My turned on. So check the connection first. If Find My was never on, or you can't get connected, this route isn't open to you and Apple points to a computer.

How do I reset a locked iPhone with a computer?

Apple lists this last, for when you can't use Passcode Reset and can't reset on the device. It lists a Mac or Windows PC, a cable that can charge your phone, an internet connection and up to 60 minutes.

  1. Turn off your iPhone.
  2. Put it in recovery mode. On an iPhone with Face ID, connect the cable to the computer, connect it to the iPhone and quickly hold the side button. Keep holding until an image of a computer and a cable appears.
  3. On a Mac, open a Finder window and select your iPhone in the sidebar under Locations, then select Restore. On a Windows PC, open the Apple Devices app, select your iPhone, then General, then Restore.
  4. When the Hello screen appears, disconnect and set up the iPhone.

Older models use different buttons, and Apple's page lists each one. Apple says that if the download takes more than 15 minutes and the iPhone leaves recovery mode, you should let the download finish, then turn the iPhone off and start recovery mode again. If you can't borrow a computer, Apple says to go to an Apple Store or Apple Authorised Service Provider.

Can an iPhone erase itself after failed attempts?

Yes, if you turned that on. Apple's Erase Data setting lets you "choose whether to erase your device automatically after 10 failed passcode attempts." Find it in Settings > Face ID & Passcode, or Touch ID & Passcode on earlier iPhone models.

More questions

How do I get out of Security Lockout without erasing my iPhone?

If you changed your passcode in the last 72 hours on iOS 17 or later, Apple's Passcode Reset lets you enter the previous passcode and set a new one without resetting the device. Apple's other two routes for a forgotten passcode both erase the iPhone.

Do I need my Apple Account password?

Yes, for the reset on the iPhone. Apple lists your Apple Account and password among what you'll need, and step four asks for the password so the device can sign out of your Apple Account. Apple's computer method doesn't list it among what you need.

Does Security Lockout mean my iPhone was hacked?

Apple's reset pages don't link the screen to hacking. They describe it in connection with forgotten passcodes and incorrect attempts. If you're worried someone else has been using your phone, our guide on whether someone can unlock your phone while you sleep goes through the checks.

Does this work on an iPad?

Yes. Apple gives near-identical steps for iPadOS 17 or later: the Security Lockout screen, Start [Device] Reset, your Apple Account password, then Erase [Device]. On iPadOS 15.2 or iPadOS 16, Apple says an Erase [Device] option appears instead.

Sources