iPhone locks you out after six failed attempts, then adds delays
After you enter the wrong passcode six times in a row, your iPhone displays a message saying "iPhone is disabled" and stops accepting passcode attempts for one minute. This is a security feature designed to slow down anyone trying to guess your code. The waiting period gets longer each time you fail again after the timeout ends.
The exact sequence is: attempts 1 through 5 let you try again immediately. On the sixth wrong attempt, the phone locks for one minute. If you enter the wrong code again after that minute passes, it locks for five minutes. The next failure locks it for 15 minutes, then one hour, then 24 hours. After the 24-hour lockout, your only option is to erase the phone and set it up again.
Key Takeaways
- Your iPhone stops accepting passcode attempts after six wrong tries and locks for one minute.
- Each subsequent wrong attempt after a timeout triggers a longer lockout: five minutes, then 15 minutes, then one hour, then 24 hours.
- After a 24-hour lockout, you cannot unlock the phone by entering the passcode — you must erase it and set it up again.
- If you have a backup, erasing and setting up again restores your data, photos, and apps from that backup.
- Face ID and Touch ID do not have attempt limits, but they fall back to the passcode after a few failed biometric tries.
What happens during each lockout period
The first lockout lasts one minute and appears as a countdown on your screen. You can see exactly how long you have to wait. During this time, the passcode field is still visible but will not accept any input.
If you enter another wrong code after the one-minute wait ends, the phone locks for five minutes. This pattern continues: 15 minutes, then one hour, then 24 hours. Each lockout period is longer than the last, which makes it impractical for someone to keep guessing. After 24 hours, the phone will not unlock with a passcode at all, even if you enter the correct one.
How Face ID and Touch ID fit into the lockout system
If you use Face ID or Touch ID on your iPhone, these biometric methods do not count toward the six-attempt limit. You can attempt to unlock with your face or fingerprint as many times as you want without triggering a lockout.
However, after a few failed biometric attempts, your iPhone will ask you to enter your passcode instead. This is a security measure to prevent someone from repeatedly trying to use a photo of your face or a lifted fingerprint. Once the phone asks for your passcode, the six-attempt counter applies to that passcode entry, not to the biometric attempts that came before it.
What to do if you are locked out for 24 hours
Once your iPhone reaches the 24-hour lockout, entering the correct passcode will not unlock it. Your only path forward is to erase the phone and set it up again. You can do this using a computer with iTunes or Finder, or through iCloud's Find My iPhone feature.
If you have a backup stored in iCloud or on a computer, the setup process will ask whether you want to restore from that backup. Choosing to restore brings back your apps, photos, messages, and other data. If you do not have a backup, you will have a blank phone and will need to download your apps again from the App Store.
Erasing your iPhone through iCloud
Go to iCloud.com from any web browser and sign in with your Apple ID. Click Find My, then Find My iPhone. Select your locked iPhone from the list of devices. Click the information icon, then choose Erase iPhone. Confirm that you want to erase it.
The phone will begin the erase process if it is connected to the internet. Once erased, it will restart and show the setup screen. You can then sign in with your Apple ID and restore from a backup if one exists. This process takes 10 to 30 minutes depending on your internet speed and the size of your backup.
Erasing your iPhone through a computer
Connect your locked iPhone to a Mac or Windows computer using a USB cable. On a Mac with macOS Monterey or newer, open Finder and select your iPhone from the sidebar. Click Restore to erase the phone and install the latest iOS version. On older Macs or Windows computers, use iTunes instead — select your iPhone and click Restore.
Your computer will download the necessary software, which can take several minutes. Once the download finishes, the phone will erase itself and restart. You will see the setup screen when it is done. If you have a backup on that computer, you can restore from it during setup.
How to avoid getting locked out in the first place
If you are worried about forgetting your passcode, write it down and store it somewhere safe — a physical notebook in a drawer, not a note on your phone or computer. You can also use a password manager like 1Password or Bitwarden to store it securely.
If you use Face ID or Touch ID, you have a backup way to unlock your phone even if you forget the passcode temporarily. You can attempt biometric unlocking as many times as you need without triggering the lockout counter. This gives you time to remember your passcode or find where you wrote it down before the six-attempt limit becomes a problem.
Frequently Asked Questions
Can someone unlock my iPhone by guessing my passcode?
It becomes extremely difficult after six attempts. The lockout periods make it impractical to guess a four-digit code (10,000 possible combinations) or a six-digit code (1 million combinations). After 24 hours, guessing stops working entirely — the phone will not accept any passcode.
Does the attempt counter reset if I turn off my iPhone?
No. Turning off the phone or restarting it does not reset the counter. The lockout timer continues even if the phone is powered down. When you turn it back on, the remaining lockout time still applies.
What if I forgot my passcode and do not have a backup?
You will need to erase the phone through iCloud or a computer, then set it up as a new iPhone. You can download your apps again from the App Store using your Apple ID, but photos, messages, and other data stored only on the phone will be lost.
Can I unlock my iPhone if I know my Apple ID password but forgot my passcode?
Not directly through the passcode system. However, you can erase the phone using iCloud (which requires your Apple ID) and then restore from a backup. This is the standard way to regain access when you have forgotten your passcode.
Does the six-attempt limit apply to older iPhones?
Yes. This lockout system has been part of iOS for many years and applies to all iPhone models currently in use. The exact timing of lockouts may vary slightly between very old iOS versions, but the basic rule — six attempts, then escalating timeouts — has remained consistent.