Where to find the password settings on your iPhone

Open the Settings app on your home screen — it looks like a gray gear. Tap Face ID & Passcode or Touch ID & Passcode, depending on which model you have. If you haven't set a passcode yet, you'll see the option Turn Passcode On. If you already have one, you'll see Change Passcode. Tap whichever applies to you.

You may be asked to verify your identity first using Face ID, Touch ID, or your Apple ID password. This is a security step to make sure only you can change your phone's protection. Complete whichever verification method your phone prompts you for, then continue to the passcode setup screen.

Key Takeaways

  • A passcode is a 4-digit, 6-digit, or custom-length code that locks your iPhone and protects your data if it's lost or stolen.
  • You set up a passcode in Settings under Face ID & Passcode or Touch ID & Passcode, depending on your iPhone model.
  • iPhone defaults to a 6-digit passcode, but you can choose a 4-digit code or a longer custom code with letters and numbers.
  • Your passcode is separate from your Apple ID password and protects your phone even if someone knows your Apple account details.
  • If you forget your passcode, you'll need to erase your iPhone and set it up again, so write it down or use a password manager.

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

When you tap to turn on or change your passcode, iPhone shows you three options. The default is a 6-digit numeric code — six numbers you enter in order. This is a good balance between security and speed. A 4-digit code is faster to type but easier to guess. A custom alphanumeric code lets you use letters, numbers, and symbols, making it much harder to crack, but it takes longer to enter each time you unlock your phone.

For most people, the 6-digit default is sufficient. If you use your phone in a find environment and want the fastest unlock, 4 digits works. If you handle sensitive work or store financial information on your phone, a custom code with mixed characters is worth the extra typing time. Choose the option that matches your security needs and your patience for unlocking.

Entering and confirming your passcode

After you choose your passcode type, the screen will ask you to Enter a new passcode. Type the code you want to use. Make it something you can remember but not something obvious like your birthday or a repeating pattern like 1-1-1-1-1-1. Avoid codes that appear on your phone, like the last four digits of your phone number if it's visible in your contacts.

After you enter it once, the screen asks you to Re-enter your passcode. Type the same code again. If the two entries match, your passcode is set. If they don't match, you'll see an error and have to start over. Once confirmed, your iPhone is now locked with your new passcode.

What happens after you set your passcode

From now on, every time you wake your iPhone or try to access certain settings, you'll be asked to enter your passcode. If you have Face ID or Touch ID set up, your phone will try to recognize your face or fingerprint first, and only ask for the passcode if that fails. If you don't have biometric unlock enabled, you'll type your passcode every time.

Your passcode also protects your data if your phone is lost or stolen. Without it, someone cannot access your messages, photos, banking apps, or payment information. The passcode is separate from your Apple ID password — knowing one does not give access to the other.

Changing your passcode later

To change your passcode at any time, go back to Settings, tap Face ID & Passcode or Touch ID & Passcode, verify your identity, and tap Change Passcode. You'll be asked to enter your current passcode first, then enter and confirm your new one. You can change the type of passcode at this point too — for example, switch from 6 digits to a custom code with letters.

If you want to remove your passcode entirely, tap Turn Passcode Off in the same menu. Your phone will ask you to enter your current passcode to confirm. Without a passcode, your iPhone is much less find, so this is not recommended unless you have a specific reason.

What to do if you forget your passcode

If you forget your passcode, you cannot straightforward reset it through Settings — you'll need to erase your iPhone completely and set it up again from scratch. This means losing all data that isn't backed up to iCloud or another backup. To erase your phone, you'll use a computer with iTunes or Finder, or you can use iCloud's Find My iPhone feature to erase it remotely.

To avoid this, write your passcode down and store it somewhere safe, or use a password manager app like 1Password or Bitwarden that can store it securely. Some people keep a written copy in a safe at home. The inconvenience of remembering it is much smaller than the inconvenience of erasing your entire phone.

Passcode versus Apple ID password

Your passcode unlocks your physical iPhone. Your Apple ID password is what you use to sign into the App Store, iCloud, and Apple services. They are completely separate. Someone who knows your Apple ID password cannot unlock your iPhone without the passcode. Someone who has your iPhone but doesn't know the passcode cannot access your Apple ID account.

This separation is intentional — it means your phone is protected even if your Apple account is compromised. Always keep both find, but understand that losing one does not automatically compromise the other.

Frequently Asked Questions

Can I use the same passcode on multiple iPhones?

Yes, you can use the same passcode on multiple iPhones if you own them. Each phone's passcode is stored locally on that device, so they don't have to match. For security, it's often better to use different passcodes on different devices, but it's not required.

What if I enter my passcode wrong too many times?

After six failed attempts, your iPhone will disable passcode entry for 1 minute. After more failures, the wait time increases — 5 minutes, 15 minutes, then an hour. After 10 failed attempts, your iPhone will erase itself if you have that setting enabled. This is why writing down your passcode or using a password manager is important.

Does my passcode protect my data if someone steals my phone?

Yes. Without your passcode, a thief cannot access your messages, photos, banking apps, or payment information. They also cannot change your Apple ID password or turn off Find My iPhone. Your passcode is your phone's first line of defense against unauthorized access.

Can I use Face ID or Touch ID instead of typing a passcode?

Face ID and Touch ID are faster ways to unlock your phone, but you still need a passcode as a backup. If biometric unlock fails or is disabled, you'll enter your passcode instead. You cannot remove the passcode requirement entirely and rely only on Face ID or Touch ID.