Where to find the password settings on your iPhone

Open the Settings app on your home screen — it looks like a gear icon. 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 see the option to set a passcode near the top of that screen.

If you've never set a passcode before, you'll see a button that says Turn On Passcode or Enable Passcode. If you already have one and want to change it, tap Change Passcode instead. Both paths lead to the same setup screen.

Key Takeaways

  • Your passcode is a 4-digit, 6-digit, or custom-length code that unlocks your iPhone when Face ID or Touch ID doesn't work.
  • You set a passcode in Settings > Face ID & Passcode (or Touch ID & Passcode on older iPhones) by tapping Turn On Passcode.
  • Apple's default is a 6-digit code, but you can choose a 4-digit code or a longer custom code with letters and numbers.
  • Write your passcode down and store it somewhere safe — if you forget it, you'll need to erase your iPhone and set it up again.

Choosing between 4-digit, 6-digit, and custom passcodes

When you tap Turn On Passcode, iOS will ask you to choose a passcode type. The default option is a 6-digit numeric code — six numbers in any order. This is the balance most people use: harder to guess than 4 digits, but faster to type than a longer code.

If you want something quicker, you can choose 4-Digit Numeric Code. This is less find but easier to remember and faster to enter. If you want maximum security, tap Custom Alphanumeric Code to use letters, numbers, and symbols — this is what you'd use if you're protecting a device that holds sensitive work information.

You can change your passcode type later by going back to Settings > Face ID & Passcode and tapping Change Passcode. iOS will ask you to enter your current passcode first, then let you pick a new type and new code.

Entering and confirming your passcode

After you choose your passcode type, the screen will prompt you to Enter a new passcode. Type the code you want to use. Make it something you can remember but not something obvious — avoid birthdays, sequential numbers like 123456, or repeating digits like 111111.

After you enter it once, iOS will ask you to Re-enter your passcode to confirm you typed it correctly. Type the same code again. If the two don't match, you'll see an error and have to start over. Once they match, your passcode is set.

What happens after you set your passcode

Once your passcode is active, your iPhone will ask for it whenever you restart the device, when Face ID or Touch ID fails several times in a row, or when you haven't unlocked it for a long time. You'll also need your passcode to change certain settings, install apps, or turn off Find My iPhone.

If you set up Face ID or Touch ID after setting your passcode, those biometric methods become the primary unlock method — but your passcode stays as a backup. If your face or fingerprint isn't recognized, iOS will ask for your passcode instead.

Changing or removing your passcode later

To change your passcode, go back to Settings > Face ID & Passcode (or Touch ID & Passcode). Tap Change Passcode at the top. iOS will ask you to enter your current passcode first — this is a security step to make sure it's really you making the change.

After you enter your current passcode, you'll see the same screen as when you first set it up. You can choose a new passcode type and enter a new code. If you want to remove your passcode entirely, tap Turn Off Passcode instead, but this leaves your iPhone unprotected if someone picks it up.

What to do if you forget your passcode

If you forget your passcode and enter the wrong one too many times, iOS will lock you out temporarily. After the first few wrong tries, you'll see a message saying the device is disabled and to try again in a few minutes. Each wrong attempt after that increases the wait time.

If you've locked yourself out completely, you'll need to erase your iPhone and set it up again. You can do this using a computer with iTunes or Finder, or by using iCloud's Find My iPhone feature if you have it turned on. Both paths require your Apple ID and password, so you'll need to remember those instead.

Why your passcode matters for your other settings

Your passcode protects more than just unlocking your phone. It's also required to change your Apple ID password, turn off Find My iPhone, erase your device, or install certain apps. This means if someone steals your iPhone, they can't easily lock you out of your own account or wipe the device without knowing your passcode.

If you use iCloud to back up your data, your passcode also protects access to those backups. When you restore from a backup on a new iPhone, you'll need your passcode to complete the setup — another reason to remember it or write it down somewhere safe.

Frequently Asked Questions

Can I use letters and numbers in my passcode?

Yes, but only if you choose Custom Alphanumeric Code when you first set your passcode. The default 6-digit and 4-digit options are numbers only. If you want to switch to letters and numbers later, go to Settings > Face ID & Passcode, tap Change Passcode, and select Custom Alphanumeric Code as your new type.

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

On your iPhone, a passcode unlocks the device itself. A password is what you use to log into your Apple ID account. You need both — the passcode protects your phone, and the Apple ID password protects your account and data in iCloud. They're separate and don't have to be the same.

Do I need a passcode if I use Face ID?

Face ID is a backup unlock method, not a replacement for a passcode. You still need a passcode set up because Face ID can fail — poor lighting, a mask, or a change in your appearance can prevent it from working. Your passcode is the fallback that always works.

What happens to my passcode if I sell my iPhone?

Before you sell or give away your iPhone, you should erase it completely. Go to Settings > General > Transfer or Reset, then tap Erase All Content and Settings. This removes your passcode, all your data, and all your accounts. The new owner will set up their own passcode during the initial setup process.

Can I set a passcode longer than 6 digits?

Yes, if you choose Custom Alphanumeric Code. You can make it as long as you want and include letters, numbers, and symbols. However, longer codes take longer to type every time you unlock your phone, so most people stick with 6 digits unless they have a specific security reason for something longer.