For years the iPhone passcode was a casual thing - Four digits to keep a nosy sibling out. That era is over. Reporting by the Wall Street Journal in 2023 documented a thriving crime pattern: thieves in bars watched victims type their passcode, snatched the phone, then used that code to change the Apple ID password, disable Find My, and drain linked financial apps - Because the passcode, it turned out, could rekey almost everything. Apple responded with Stolen Device Protection, but the fundamentals stand: your passcode deserves the same seriousness as a banking password. If yours is four digits, a birthday, or known to an ex, change it now.

Change Your Passcode in Settings

  1. Open Settings.
  2. Tap Face ID & Passcode (on home-button models, Touch ID & Passcode).
  3. Enter your current passcode.
  4. Scroll down and tap Change Passcode.
  5. Enter the old passcode again, then the new one twice.

The important move is hidden in step 5: when asked for the new code, tap Passcode Options. That reveals the formats - 4-digit numeric, 6-digit numeric (the default), custom numeric of any length, and custom alphanumeric. Here's how they stack up:

Format Combinations Time for a thief to shoulder-surf Verdict
4-digit numeric 10,000 One glance Avoid
6-digit numeric 1,000,000 One careful glance Minimum acceptable
Custom numeric (10+ digits) 10 billion+ Hard to follow Good
Custom alphanumeric Effectively unbounded Very hard Best

Brute-force isn't the real fear - IOS throttles attempts and can erase after ten failures. Observation is. A long code is simply harder to steal with eyes. If you stay numeric, generate random digits with the PIN generator instead of using a date; the broader trade-offs between code types are in password vs PIN vs passphrase.

With Face ID doing the daily unlocking, you'll physically type the passcode only a few times a week - Which means a longer code costs you almost nothing.

Change the Passcode Behavior, Not Just the Code

Two settings on the same screen matter as much as the code itself:

  1. Require Passcode: Immediately - No grace period after locking.
  2. Review the Allow Access When Locked list and disable anything you don't need on the lock screen (Control Center, Wallet, USB accessories, Siri) - Every enabled item is functionality available to whoever holds the phone.

And in Settings → Face ID & Passcode, turn on Stolen Device Protection. It requires biometrics - With no passcode fallback - Plus a one-hour delay for sensitive actions like changing the Apple Account password when you're away from familiar locations. It's the direct counter to the observed-passcode attack; pair it with a hardened Apple Account per our Apple ID password guide.

If You've Forgotten Your Passcode

There's no secret side door - That's the security working. Your options:

  1. Recent iOS grace period. If you changed the passcode within roughly the last 72 hours, current iOS versions offer Forgot Passcode → Enter Previous Passcode to reset with the old one.
  2. Erase and restore. Otherwise the phone must be erased: after repeated wrong attempts you can tap the erase option on the lock screen if it appears, or connect to a computer and use recovery mode to restore. Then set up from your iCloud or computer backup.
  3. Erase remotely. Signed-in devices can also be wiped from icloud.com via Find My, after which you restore from backup.

The bill for a forgotten passcode is therefore measured in backup freshness: with a current iCloud backup you lose minutes, without one you lose everything since your last backup. Check Settings → your name → iCloud → iCloud Backup today, not the day you need it.

Ten wrong guesses can wipe an iPhone, but one glance over your shoulder defeats any passcode you type in public. Length and shielding the screen matter more than any other setting.

After You Change It

  1. Re-enter the passcode on paired devices where prompted - An Apple Watch may re-ask, and some banking apps that key to the device lock will confirm you.
  2. Tell no one - Literally. iOS uses the passcode as proof-of-owner for powerful actions, including changing the Apple Account password from Settings. Sharing your passcode shares all of that; the risks of casual observation are covered in shoulder surfing prevention.
  3. Store it as a secure note in your password manager or the encrypted Password Wallet if there's any chance of forgetting - With Face ID handling daily unlocks, a rarely typed code is exactly the kind that slips away.
  4. Audit the rest of the lock chain. A strong passcode on a phone whose SIM has a default PIN, or whose email password is weak, is a strong lock on one of four doors - The password hygiene checklist closes the others in one sitting.

FAQ

Is a 6-digit passcode secure enough?

Against remote guessing, yes - IOS rate-limits attempts brutally. Against a thief who watches you type it, no format is "secure," but six digits are captured in a single glance far more easily than a long alphanumeric code. If your phone unlocks payment apps and email, the upgrade to a custom code is worth the tiny friction.

Will changing my passcode affect Face ID or my Apple ID password?

Face ID keeps working - It's an alternative unlock for the same lock, and the passcode remains the fallback after restarts or repeated failed scans. Your Apple ID password is a separate credential; note, though, that the passcode can authorize changing it on-device, which is precisely why the passcode must be protected like a top-tier password.

Can Apple unlock my iPhone if I forget the passcode?

No. Apple designed the system so device encryption keys derive from your passcode; there is no master key to hand over. The only path back is erasing the device and restoring a backup - Or the 72-hour previous-passcode fallback on recent iOS if you changed the code very recently.

Should my iPad and iPhone use the same passcode?

Preferably not. A shared code means one observation compromises both devices - And whoever unlocks either can reach much of your Apple Account. Give each device its own code; your muscle memory adapts within a week, and a password manager can hold both as secure notes.