Where to find the password settings on your iPhone

Open the Settings app on your home screen — it looks like a gray gear. Scroll down and tap Face ID & Passcode (on newer iPhones with face recognition) or Touch ID & Passcode (on older models with a fingerprint sensor). You'll be asked to enter your current passcode if you already have one, or to create one if you don't.

If you've never set a passcode before, the phone will take you straight to the setup screen. If you already have one and want to change it, tap Change Passcode at the top of the screen instead.

Key Takeaways

  • Your iPhone passcode is a four- or six-digit number you create in Settings under Face ID & Passcode or Touch ID & Passcode.
  • A six-digit passcode is stronger than four digits, and you can also choose a custom alphanumeric password with letters and symbols.
  • You must enter your passcode every time you restart your phone, and after a certain number of failed attempts the phone locks temporarily.
  • If you forget your passcode, you cannot retrieve it — you'll need to erase the phone and set it up again using your Apple ID.

Creating a four-digit or six-digit passcode

When you tap Set Up Passcode or Change Passcode, the phone will ask you to choose between a six-digit numeric code, a four-digit numeric code, or a custom alphanumeric password. Most people choose six digits because it's a middle ground — stronger than four digits but faster to type than a full password with letters and symbols.

Type your chosen number twice to confirm it. The phone will not show you the digits as you type them for security reasons — you'll see dots instead. Make sure you type the same number both times, or the phone will ask you to start over.

After you confirm, the passcode is active when ready. You'll need to enter it the next time your phone locks or restarts.

Choosing a custom alphanumeric password instead

If you want a stronger password with letters, numbers, and symbols, tap Passcode Options before you enter your code, then select Custom Alphanumeric Code. This lets you create something like "iPhone2024Blue!" instead of just numbers.

Custom passwords are harder to guess, but they take longer to type every time you unlock your phone. If you use Face ID or Touch ID (which unlock your phone without typing), the strength of your passcode matters less in daily use — you'll only type it after a restart or when the phone asks you to re-enter it for security.

What happens when you enter your passcode wrong

If you type the wrong passcode, the phone tells you how many attempts you have left. After six wrong attempts, there's a one-minute delay before you can try again. After ten wrong attempts, the delay stretches to five minutes. After fifteen wrong attempts, the phone locks for an hour.

This delay system exists to stop someone from guessing your passcode by trying many combinations in a row. If you're locked out temporarily, you can still use Face ID or Touch ID to unlock the phone — the passcode lockout only prevents typing attempts.

Resetting a forgotten passcode

If you forget your passcode, there is no way to recover it. Apple does not store it and cannot retrieve it for you. Your only option is to erase the phone and set it up again.

You can erase the phone using another device through iCloud.com, or you can take it to an Apple Store and they can erase it for you. After erasing, you'll set up the phone as new or restore it from a backup, and you'll create a new passcode during that setup.

This is why it's important to write down your passcode somewhere safe — not on a sticky note on your desk, but in a password manager or a locked drawer at home.

How passcode and Face ID or Touch ID work together

Your passcode and your biometric unlock (Face ID or Touch ID) are two separate security layers. Face ID and Touch ID let you unlock your phone without typing, but your passcode is the backup — it's what you use if your face or fingerprint isn't recognized, or if the phone has just restarted.

You cannot turn off your passcode. Every iPhone must have one. You can turn off Face ID or Touch ID in the same settings menu, but you'll always need your passcode to unlock the phone.

Changing your passcode later

To change your passcode after you've already set one, go back to Settings, tap Face ID & Passcode or Touch ID & Passcode, enter your current passcode, then tap Change Passcode. The phone will ask you to enter your old passcode first, then your new one twice.

You might want to change your passcode if you think someone saw you type it, or if you want to switch from four digits to six digits for better security. The process takes about one minute.

Frequently Asked Questions

Can I use the same passcode on multiple devices?

Yes, you can use the same passcode on your iPhone, iPad, and Mac if you want. However, using different passcodes on different devices means that if someone learns one code, they can't access all your devices. Many people use the same code for convenience.

What's the difference between a passcode and a password?

On iPhone, a passcode is usually four or six digits. A password is a custom code with letters, numbers, and symbols. Both do the same job — they unlock your phone — but a password is stronger because there are more possible combinations.

Do I have to enter my passcode every time I unlock my phone?

No. If you have Face ID or Touch ID set up, your phone unlocks when it recognizes your face or fingerprint. You only type your passcode if Face ID or Touch ID fails, or after your phone restarts.

What happens if someone tries my passcode too many times?

After six wrong attempts, the phone locks for one minute. After ten attempts, it locks for five minutes. After fifteen attempts, it locks for one hour. This prevents someone from guessing your code by trying many combinations quickly.

Can I set a passcode with just letters, no numbers?

No. Your passcode must contain at least one number. If you want a code with only letters, that's not an option on iPhone — you need a mix of letters and numbers, or just numbers.