Petersaint › Guides › Change your iPhone passcode

How to change your iPhone passcode, and make the new one count

By Jon Hurdle, Johannson Limited · Updated 20 November 2026

Quick answer

Open Settings › Face ID & Passcode (or Touch ID & Passcode), enter your current passcode and tap Change Passcode, then type the new code and confirm it. Tap Passcode Options for a longer custom code. For 72 hours the old passcode still works as a fallback; tap Expire Previous Passcode Now to end that early.

Why change your passcode

Your passcode is the key to almost everything on the phone. Apple lists what it guards: turning the phone on or restarting it, unlocking it, installing updates, erasing it, and changing the passcode settings themselves. It also opens the apps and albums that use Face ID, such as the Photos Hidden album, because Face ID falls back to the passcode.

Good reasons to change it:

How to change your iPhone passcode

  1. Open Settings and tap Face ID & Passcode. On an iPhone with a Home button it is Touch ID & Passcode.
  2. Enter your current passcode.
  3. Tap Change Passcode. If asked, confirm your current passcode.
  4. Type a new six-digit passcode, or tap Passcode Options first to pick another type (see below).
  5. Enter the new passcode a second time to confirm it.

If the screen asks you to wait an hour instead, Stolen Device Protection is on and you are away from a familiar place. That is covered further down.

Choose a stronger type of passcode

When the iPhone asks for the new code, Passcode Options offers three alternatives to the standard six digits. A longer code has more possible combinations so it takes longer to guess.

Passcode typeWhat you typeTrade-off
Four-digit numeric code4 numbersQuickest to type, quickest to guess
Six-digit code (the standard prompt)6 numbersA sensible minimum for most people
Custom numeric codeAny number of digitsLonger is stronger; keypad stays simple
Custom alphanumeric codeLetters, numbers and symbolsStrongest choice; slower to type

Face ID or Touch ID means you rarely type the passcode, so a longer one costs less than it sounds. You will still need it after a restart and for some settings, so pick something you can remember without writing it on the phone case.

Retire the old passcode straight away

On iOS 17 and later, changing your passcode doesn't kill the old one at once. Apple's Passcode Reset gives you 72 hours in which the previous passcode can still unlock the phone, in case you forget the new one. If you use it, the iPhone makes you set a new passcode immediately.

That is a useful safety net, but if you changed the code because someone else knows the old one, close the window now:

  1. Open Settings and tap Face ID & Passcode (or Touch ID & Passcode).
  2. Use Face ID or enter your current passcode.
  3. Tap Expire Previous Passcode Now.

If you forget the new passcode

Within the 72 hours, you can get back in with the old one:

  1. Enter the wrong passcode five times until the iPhone shows its Unavailable screen.
  2. Tap Forgot Passcode?, then Enter Previous Passcode.
  3. Enter your old passcode and follow the steps to set a new one.

Apple says Forgot Passcode? appears only when the phone is connected to mobile data or Wi-Fi, signed in to your Apple Account, and has Find My turned on. After the 72 hours, or if you expired the old code, the old passcode is no use. Apple's fallback then is to reset the phone, with or without a computer, which is why a recent backup matters.

Why the iPhone sometimes makes you wait an hour

Stolen Device Protection, available from iOS 17.3, adds a Security Delay to a few sensitive changes, and changing the passcode is one of them. Away from familiar places, which Apple describes as typically your home, work and other places you use the phone regularly, the iPhone asks for Face ID or Touch ID, makes you wait an hour, then asks for Face ID or Touch ID again.

The point is that a thief who has watched you type your passcode can't lock you out by changing it on the spot. At home or work you can change it straight away. If you'd rather have the delay everywhere, go to Settings › Face ID & Passcode › Stolen Device Protection and choose Always under Require Security Delay.

Settings worth checking while you're there

The same Face ID & Passcode screen holds a few related controls:

Your passcode is also tied to the iPhone's built-in encryption. Our guide to iPhone encryption explains how, and what that protects.

What a new passcode doesn't fix

A new passcode protects you from people who knew the old one. It does nothing once you unlock the phone and hand it to someone, and it is still one code for the whole phone, including the Photos app and the Hidden album. Our guide on how to lock photos on iPhone covers the built-in options for photos.

If there are photos or files you want behind a second, separate lock, that is what an encrypted vault app is for. Petersaint opens with a pattern drawn on a grid, separate from your phone passcode, and it has no Face ID unlock, so knowing the phone's passcode doesn't open it. Each file is encrypted with AES-256-GCM using its own key, and those keys are protected by a vault key held in the iPhone's Secure Enclave. Wrong patterns bring increasing waits, up to an hour between attempts. More on how that works in our guide to encrypted photo vaults.

Honest limits. Unlike your iPhone passcode, Petersaint can't reset a forgotten pattern and has no 72-hour fallback: without an encrypted backup you exported, and its 12-word phrase, the files are gone. Wrong patterns never erase the vault unless you turn on self-destruct, which destroys the files after 3, 5 or 10 wrong patterns in a row. The vault is left out of iCloud and computer backups, so files kept only there exist only on that phone unless you export an encrypted backup. It's iPhone only, iOS 16.4 or later.

Petersaint: an encrypted vault for your iPhone's photos and files, with its own pattern separate from your passcode. No account, no cloud, no data collected.

Download on the App Store

Questions

How do I change my iPhone passcode?

Open Settings and tap Face ID & Passcode (Touch ID & Passcode on an iPhone with a Home button). Enter your current passcode, tap Change Passcode, then type the new passcode and enter it again to confirm.

How do I change my passcode from 6 digits to 4, or to letters?

When the iPhone asks for the new passcode, tap Passcode Options. You can choose a four-digit numeric code, a custom numeric code or a custom alphanumeric code. A longer code takes longer to guess, so four digits is the weakest choice.

Can I still use my old passcode after changing it?

For 72 hours, yes, if you forget the new one. On iOS 17 and later, Passcode Reset lets you unlock with the previous passcode during that window and then asks you to set a new one. You can end the window early with Expire Previous Passcode Now in Face ID & Passcode.

Why does my iPhone make me wait an hour to change the passcode?

That is Stolen Device Protection. Away from familiar places such as home or work, changing the passcode needs Face ID or Touch ID, an hour's Security Delay, and Face ID or Touch ID again. At a familiar location the delay doesn't apply, unless you set it to Always.

What happens if I forget my new iPhone passcode after 72 hours?

The old passcode no longer works. After too many wrong attempts the iPhone shows an Unavailable screen, and Apple's fallback is to reset the phone, so a recent backup matters.

Does changing my passcode change my Apple Account password?

No. The passcode unlocks the phone itself. Your Apple Account password is separate, and Apple handles changing it on a different support page.

Sources: Apple Support: Use a passcode with your iPhone, iPad, or iPod touch, Apple Support: Expire an old passcode sooner when you change passcodes on your iPhone or iPad, Apple Support: If you forget your new passcode, use your old passcode to unlock your iPhone or iPad within 72 hours, Apple Support: About Stolen Device Protection for iPhone.