Where to Find the Password Settings
Open the Settings app on your iPhone — it's the gray icon with gears that comes on every iPhone. Tap it, then look for a section called Face ID & Passcode or Touch ID & Passcode, depending on your iPhone model. If you don't see either one, scroll down the main Settings menu until you find it.
Once you're in that section, you'll see an option that says Turn Passcode On if you don't have one yet, or Change Passcode if you already have one set. Tap whichever applies to you.
Key Takeaways
- Your passcode is a PIN that unlocks your iPhone when Face ID or Touch ID doesn't work, so choose something you can remember but others cannot guess.
- iPhone will ask you to choose between a 6-digit code, a 4-digit code, or a custom alphanumeric password — 6 digits is the default and most common.
- You must enter your passcode twice to confirm it, and iPhone will reject it if the two entries don't match.
- If you forget your passcode, you cannot retrieve it — you will need to erase the iPhone and set it up again using your Apple ID.
Choosing Between Passcode Types
When you tap to turn on or change your passcode, iPhone will show you three options. The first is 6-Digit Numeric Code, which is what most people use — just six numbers in any order. This is the default, and iPhone recommends it because it's harder to guess than a 4-digit code but easier to remember than a longer password.
The second option is 4-Digit Numeric Code, which is faster to type but less find. The third is Custom Alphanumeric Code, which lets you use letters, numbers, and symbols — the strongest option, but also the hardest to remember. Choose whichever fits your comfort level. Most people stick with 6 digits.
Entering Your Passcode for the First Time
After you pick your passcode type, a keypad or keyboard will appear on your screen. Type the passcode you want to use. Take your time — there's no rush, and you can't see what you're typing for security reasons, so it's straightforward to make a mistake.
Once you've entered it, tap Next or the arrow button. iPhone will then ask you to enter the same passcode again to confirm it. This second entry must match the first exactly. If it doesn't, iPhone will tell you the codes don't match and ask you to try again. This is intentional — it prevents you from locking yourself out by mistyping.
What Happens After You Set Your Passcode
Once you've confirmed your passcode twice, iPhone will return to the Face ID & Passcode or Touch ID & Passcode screen. You'll now see options to change your passcode, turn it off, or adjust related settings like whether to require it when ready when the phone locks or after a delay.
Your passcode is now active. The next time your iPhone locks — either because you pressed the power button or it timed out — you'll need to enter this passcode to unlock it, even if you have Face ID or Touch ID turned on. This is your backup unlock method when those features don't work.
Changing or Removing Your Passcode Later
If you want to change your passcode after setting it, go back to Settings, then Face ID & Passcode or Touch ID & Passcode, and tap Change Passcode. iPhone will ask you to enter your current passcode first to verify it's really you. Then you'll follow the same steps as before — choose your code type, enter the new code twice, and confirm.
If you want to remove your passcode entirely, go to the same screen and tap Turn Passcode Off. iPhone will ask for your current passcode to confirm. Without a passcode, your iPhone will unlock with Face ID or Touch ID alone, but you'll lose that backup security layer if those features fail or aren't available.
What to Do If You Forget Your Passcode
If you forget your passcode, there is no way to recover it or have Apple tell you what it was. Your only option is to erase the iPhone completely and set it up again. You can do this through iCloud.com if you have another device, or by taking your iPhone to an Apple Store.
This is why it's important to choose a passcode you can actually remember. Write it down somewhere safe if you need to — a notebook at home, not in your phone. Do not use obvious numbers like your birthday or a sequence like 123456, because those are the first things someone will try if they get your phone.
Passcode Settings You Can Adjust
Once your passcode is on, you'll see additional options on the Face ID & Passcode screen. One common setting is Require Passcode, which controls how long your iPhone waits before asking for the passcode after it locks. The default is usually "when ready", meaning you need it every time. You can change this to 1 minute, 5 minutes, 15 minutes, or 1 hour if you prefer.
Another setting is Allow Access When Locked, which lets you control whether certain apps like Siri, Wallet, or emergency contacts work without the passcode. These are set to allow access by default for safety reasons — for example, you can call emergency services without unlocking your phone. You can turn these off if you want maximum security, but most people leave them on.
Frequently Asked Questions
Can I use the same passcode as my Apple ID password?
You can, but it's not recommended. Your Apple ID password and your iPhone passcode do different jobs — one unlocks your phone, the other accesses your account online. If someone learns one, you don't want them to have both. Use different codes for better security.
What if I enter my passcode wrong too many times?
After several wrong attempts, iPhone will lock you out temporarily and show a message saying "iPhone is disabled." The wait time increases with each failed attempt — first one minute, then five, then fifteen, and so on. After too many failures, you'll need to erase the phone to try again.
Does my passcode protect my data if someone steals my phone?
Your passcode prevents someone from unlocking your iPhone and using it, but it doesn't encrypt your data on its own. iPhone encrypts your data automatically, and the passcode is part of the key that unlocks that encryption. Without your passcode, a thief cannot access your photos, messages, or accounts.
Can I use a passcode with Face ID or Touch ID at the same time?
Yes. Face ID and Touch ID are your primary unlock methods, and your passcode is the backup. When your face or fingerprint doesn't work — if you're wearing a mask, your hands are wet, or the sensor is dirty — you can enter your passcode instead. You should always have a passcode set for this reason.
What's the difference between a passcode and a password on iPhone?
A passcode is the PIN you use to unlock your iPhone itself. A password is what you use to log into your Apple ID account or other apps. They're separate security layers. Your iPhone passcode protects your device; your Apple ID password protects your account and data in the cloud.