Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Locked Out of iPhone: How to Reset Your Passcode

· 6 min read · Home Tech

In this article
  1. Check What You Have Before You Erase the iPhone
  2. Put the iPhone in Recovery Mode and Erase It
  3. Erase From Find My Instead, When You Have No Computer
  4. How to Tell the Reset Worked
  5. Why the Phone Locked You Out, and What Fixes Each Case
  6. Set the Next Passcode So This Does Not Repeat

If you are locked out of your iPhone and cannot remember the passcode, you cannot change it from the lock screen — you must erase the phone using a computer (or the Find My service) and then set a new passcode during setup. Your data comes back from your backup.

Time 45 min · Steps 8 · Level Medium

The most common way this goes wrong is guessing passcodes until the phone says "iPhone is disabled — connect to computer," which can lock you out for hours before you can even start. The way around that is to stop guessing and go straight to recovery mode, which lets you erase the phone and set a new passcode no matter how long the lockout timer is. Nothing about this method bypasses security: erasing is the price of resetting a forgotten passcode, and it is the same route Apple's own support pages describe.

Check What You Have Before You Erase the iPhone

Recovery mode erases everything on the phone, so the checklist below decides how much you get back afterwards. Go through it before you plug anything in.

  • A backup, ideally recent. Check whether the phone was backing up to iCloud (Settings showed "iCloud Backup" turned on) or to a computer. If the last backup is months old, photos and messages added since then are gone for good.
  • A computer with internet. A Mac with Finder, or a Windows PC with the Apple Devices app or iTunes installed. The computer needs internet to contact Apple's servers during the restore.
  • The right cable. The cable that came with the iPhone, or a known-good one, plugged directly into the computer — not into a hub or monitor port, which often fails mid-restore.
  • Your Apple ID and password. After the erase, Activation Lock asks for the Apple ID that was signed in on the phone. Without it, the phone stays locked even after erasing.
  • Wi-Fi or mobile data for the restore. Restoring an iCloud backup over a slow connection can take an hour or more; a fast one is worth finding.

One shortcut: if Find My iPhone was on and you have another device or a web browser, you can erase the phone from iCloud without a computer at all — skip to the section on that route below.

Put the iPhone in Recovery Mode and Erase It

These steps work on any recent iPhone; exact button names and on-screen wording can differ slightly by model and software version, but the sequence is the same. Menu labels on the computer side may also differ slightly between versions of Finder, iTunes and the Apple Devices app.

  1. Connect the iPhone to the computer with the cable, then open Finder on a Mac or the Apple Devices app / iTunes on Windows.
  2. Force-restart into recovery mode. On iPhones with Face ID: press and release Volume Up, press and release Volume Down, then press and hold the side button until the recovery-mode screen (a cable pointing to a computer) appears — keep holding even past the Apple logo, roughly 10-20 seconds. On iPhones with a Home button: hold the Home button and the top or side button together until the recovery screen appears.
  3. Choose Update if the computer offers it. A dialog appears saying there is a problem with the iPhone. Try Update first — in some cases it reinstalls the software without erasing your data and you keep everything. This takes about 15 minutes; if the phone exits recovery mode during the download, repeat step 2.
  4. Choose Restore if Update fails or is not offered. Restore erases the phone completely and installs fresh software. Confirm when the computer warns that everything will be deleted.
  5. Wait for the process to finish. The phone restarts and the software download plus restore typically takes 15-30 minutes depending on your internet speed. Leave the cable plugged in the whole time.
  6. Set up the phone and choose your restore source. At the setup screen, sign in with the same Apple ID, then pick "Restore from iCloud Backup" or "Restore from Mac or PC" depending on where your backup lives. Pick the most recent backup that predates the lockout.
  7. Set a new passcode during setup. When setup asks, enter a new six-digit passcode you have not used before — one you can recall without patterns you keep forgetting. You can also switch to a custom alphanumeric passcode via "Passcode Options" on that screen.
  8. Wait for apps and content to finish downloading. The phone is usable immediately, but large backups can take an hour or more to fully re-download over Wi-Fi. Keep it on power and Wi-Fi until the progress bar under Settings finishes.

Erase From Find My Instead, When You Have No Computer

If Find My iPhone was on, you can erase the phone from any browser or another Apple device and skip recovery mode entirely. Sign in to iCloud with your Apple ID, open Find My, select the locked iPhone, choose Erase, and confirm. The erase runs as soon as the phone connects to the internet — if it is truly offline, it queues and completes the next time it comes online. Afterwards, the phone goes through the same setup flow as above, including the new passcode step. This route needs your Apple ID password, which is itself a security check: someone who merely has your phone cannot use it.

How to Tell the Reset Worked

The clearest sign is the lock screen accepting the new passcode on the first try, with your photos, contacts and message history visible after the backup restore finishes. Also confirm Settings shows your Apple ID signed in at the top, and that the phone no longer displays any "disabled" or "connect to computer" message. If Activation Lock asks for the previous owner's Apple ID and it is yours, enter it — that is normal, not a failure. If the restore stalls, check the cable, try a different USB port, and start the setup again.

Why the Phone Locked You Out, and What Fixes Each Case

SymptomCauseFix
"Wrong passcode, try again in X minutes"Too many wrong attempts; the timer grows with each batchWait the full timer, or skip waiting with recovery mode and a restore
"iPhone is disabled — connect to computer"Maximum failed attempts reachedRecovery mode restore on a computer, or erase via Find My
"Security lockout, try again in X minutes" with Erase optionToo many attempts on a phone signed in to iCloud with a network connectionTap Erase on the lock screen itself, sign in with your Apple ID, then set up fresh
Computer does not see the iPhoneBad cable, hub port, or wrong timing on the button sequenceUse the original cable in a direct port; redo the force-restart holding the button longer
"Update" option fails partwayDownload interrupted or the phone left recovery modeRe-enter recovery mode and choose Restore instead
Activation Lock after the eraseNormal protection against theft — the phone wants its previous Apple IDEnter the Apple ID and password that were on the phone before it was erased

Set the Next Passcode So This Does Not Repeat

Once you are back in, spend two minutes making the next lockout survivable. Turn on iCloud Backup (Settings > your name > iCloud > iCloud Backup) so a fresh backup exists every night on Wi-Fi and power. Consider Face ID or Touch ID under Settings > Face ID & Passcode, since biometrics cut down the number of times you type the passcode at all. Write the new passcode somewhere physical and private — not in a note on the phone itself. And know that the "Erase" button on the security-lockout screen only appears when the phone is signed in to iCloud with a data connection, which is one more reason to stay signed in. If a child or someone else in the household set the forgotten passcode, change it together while you are in Settings so the new one is known to whoever manages the phone.

Official source: Apple Support