Your iPhone locks you out after too many wrong attempts

If you enter the wrong passcode six times in a row, your iPhone displays a message saying "iPhone is disabled." On the seventh attempt, it locks for one minute. The eighth through ninth wrong attempts lock it for five minutes each. The tenth wrong attempt locks it for 60 minutes. After the fifteenth wrong attempt, your iPhone becomes permanently disabled until you restore it using a computer, iCloud, or Apple's Find My service.

This security feature exists to stop someone else from guessing your code. The longer waits between attempts make brute-force guessing impractical. However, it also means you cannot straightforward keep trying if you forget your own passcode — you will hit the permanent lock much faster than you might expect.

The moment your iPhone becomes disabled, you have three realistic paths forward: use Find My to erase and set it up again, restore it through a computer with iTunes or Finder, or take it to an Apple Store. Which one works depends on whether you remember your Apple ID password and whether you have a computer nearby.

Key Takeaways

  • After fifteen wrong passcode attempts, your iPhone becomes permanently disabled and cannot be unlocked by entering codes.
  • You can erase a disabled iPhone and set it up fresh using Find My on any web browser if you remember your Apple ID password.
  • If you have a Mac or Windows computer, you can restore your iPhone through Finder or iTunes without needing your Apple ID password.
  • An Apple Store can restore your iPhone, but you will need to prove ownership with a photo ID and your Apple ID password.
  • If your iPhone is not backed up, you will lose all photos, messages, and other data stored only on the device itself.

Using Find My to erase and restart your iPhone

Find My is Apple's remote management tool, and it works even when your iPhone is locked. Go to iCloud.com on any computer or phone, sign in with your Apple ID, and click Find My. Select your iPhone from the list of devices. Click "Erase iPhone," confirm your choice, and Apple will wipe the device and restart it to the setup screen.

This method requires you to remember your Apple ID password. It also requires that Find My was turned on before you forgot your passcode — if it was never enabled, this route will not work. After the erase completes, your iPhone will ask you to sign in with your Apple ID again during setup. You can then create a new passcode.

The erase takes a few minutes, and your iPhone must have internet access (Wi-Fi or cellular) for the command to go through. If your iPhone is offline, the erase will happen the next time it connects to the internet.

Restoring through a computer with Finder or iTunes

If you have a Mac running macOS 10.15 or newer, or a Windows computer with iTunes installed, you can connect your disabled iPhone with a USB cable and restore it without entering your passcode. On a Mac, open Finder, select your iPhone in the sidebar, and click "Restore." On Windows, open iTunes, select your iPhone, and click "Restore iPhone."

The computer will read the latest iPhone software and install it on your device, erasing everything in the process. This method does not require you to remember your Apple ID password, but you will need to sign in with it during the setup process after the restore finishes. The restore itself takes 10 to 30 minutes depending on your internet speed and which iPhone model you have.

This is often the fastest route if you have a computer available, because it does not depend on Apple's servers or your internet connection speed the way Find My does. However, you must have the computer physically present and a USB cable that works with your iPhone.

Taking your iPhone to an Apple Store

Apple Stores can restore any disabled iPhone, but the process requires proof of ownership. Bring a photo ID that matches the name on your Apple ID account. You will also need to sign in with your Apple ID password so Apple can verify that you own the device. Without both pieces of identification, Apple cannot proceed.

The in-store restore takes 15 to 30 minutes. Apple will erase your iPhone, restore the latest software, and hand it back to you at the setup screen. You can then create a new passcode and sign in with your Apple ID to restore from a backup if you have one.

This option works if you do not have a computer or do not remember your Apple ID password, but you must be able to visit a store in person. If you do not have a photo ID, Apple cannot help you — you will need to contact Apple Support by phone to explore other options.

What happens to your data after a restore

A restore erases everything on your iPhone. However, if you backed up your device to iCloud before you forgot your passcode, you can restore your photos, messages, contacts, and other data during the setup process. When your iPhone restarts after a restore, it will ask if you want to restore from a backup. Choose your most recent backup, and your data will read as you set up the device.

If you never backed up your iPhone, or if your last backup is very old, you will lose any data that was only stored on the device. This includes photos taken after your last backup, text messages, notes, and app data. Contacts and calendars synced with iCloud will still be there because they are stored on Apple's servers, not just on your phone.

Before you restore, think about whether you have a recent backup. If you do, the restore is low-risk. If you do not, you may want to contact Apple Support to discuss whether there are any other options, though in most cases a restore is the only way forward once the iPhone is permanently disabled.

Preventing this from happening again

The best protection is to write your passcode somewhere safe — not on a sticky note on your monitor, but in a password manager like iCloud Keychain, 1Password, or Bitwarden. These tools store your passcode encrypted and let you retrieve it when you need it.

You can also enable Face ID or Touch ID so you do not have to type your passcode every day. If you forget it, you can still unlock your iPhone with your face or fingerprint. You will only need the passcode if you restart your iPhone, which most people do rarely.

Make sure Find My is turned on in Settings > [Your Name] > Find My > Find My iPhone. This ensures that if you ever do forget your passcode, you can erase the device remotely without needing a computer. Also turn on iCloud backup in Settings > [Your Name] > iCloud > iCloud Backup so that your data is safe even if something goes wrong.

What to do if you cannot remember your Apple ID password either

If you forgot both your iPhone passcode and your Apple ID password, you have two options: reset your Apple ID password through Apple's account recovery page, or visit an Apple Store with a photo ID.

To reset your Apple ID password, go to iforgot.apple.com on any computer or phone. Enter your Apple ID email address, and Apple will send you a link to reset your password. You will need access to the email address associated with your Apple ID, or to a trusted phone number you registered with Apple. Once you reset your password, you can use Find My or restore through a computer as described above.

If you cannot access your email or phone number, an Apple Store can still help. Bring a photo ID, and Apple will verify your identity and help you regain access to your account. This process can take longer than a standard restore, sometimes requiring a follow-up appointment or a call to Apple Support.

Frequently Asked Questions

Can I unlock my iPhone without erasing it?

No. Once your iPhone is permanently disabled after fifteen wrong passcode attempts, the only way to use it again is to erase it. Apple's security design does not allow any backdoor to unlock a disabled iPhone without erasing the data. Even Apple cannot unlock it for you.

Will I lose my photos if I restore my iPhone?

Only if you never backed them up to iCloud. If you had iCloud backup turned on, your photos will restore when you set up your iPhone again. If you did not have backup enabled, those photos are gone. You can check whether you had backup on by going to iCloud.com and looking at your Photos — if they are there, they will come back.

How long does it take to restore an iPhone?

The restore itself takes 10 to 30 minutes depending on your internet speed and iPhone model. If you restore from a backup, adding your data back can take another 10 to 60 minutes depending on how much data you have. The fastest path is a fresh setup without restoring a backup.

Can I restore my iPhone without a computer or Apple ID password?

No. You need either a computer with Finder or iTunes, or access to your Apple ID password to use Find My. If you have neither, you will need to visit an Apple Store with a photo ID and reset your Apple ID password through iforgot.apple.com first.

What if my iPhone is not backed up and I restore it?

You will lose all data stored only on your iPhone — photos, messages, notes, and app data taken or created after your last backup. Contacts and calendars synced with iCloud will still be there. This is why turning on iCloud backup now, before you forget your passcode, is important.