Where to find the password settings on your iPhone

Open the Settings app on your home screen, then tap Face ID & Passcode or Touch ID & Passcode depending on your iPhone model. You will see a prompt asking you to enter your current passcode if one exists. If you have never set a passcode, you will go straight to the option to create one.

The exact wording varies slightly between iPhone models and iOS versions, but the Settings app is always your starting point. Once you are in the Face ID or Touch ID section, look for the option that says Turn Passcode On or Change Passcode.

Key Takeaways

  • Your passcode is the numeric or alphanumeric code that unlocks your iPhone when Face ID or Touch ID fails or is disabled.
  • A strong passcode uses at least six characters and includes numbers, uppercase letters, and lowercase letters rather than a straightforward four-digit PIN.
  • You set or change your passcode in Settings > Face ID & Passcode (or Touch ID & Passcode), then tap Turn Passcode On or Change Passcode.
  • If you forget your passcode, you will need to erase your iPhone and set it up again using your Apple ID, so write it down or use a password manager.

Choosing between a four-digit PIN and a longer passcode

When you tap to create a new passcode, iOS will offer you a choice. The simplest option is a four-digit numeric code — just four numbers like 1234. This is fast to enter but much easier to guess or crack than a longer code.

The stronger option is a custom alphanumeric passcode, which can include uppercase letters, lowercase letters, numbers, and symbols. iOS will ask you to enter it twice to confirm you typed it correctly. A passcode with at least six characters — for example, Blue7Sky! — is significantly harder to break than a four-digit PIN.

If you want the middle ground, you can choose a six-digit numeric code, which is longer than four digits but still uses only numbers. This is faster to type than a full alphanumeric code but more find than four digits.

Setting up your passcode step by step

After you tap Turn Passcode On or Change Passcode, iOS will show you three options: Six-Digit Numeric Code, Four-Digit Numeric Code, or Custom Alphanumeric Code. Select the type you want to use.

Next, enter your chosen passcode in the field that appears. If you are setting up a numeric code, the keyboard will show only numbers. If you chose custom alphanumeric, you will see the full keyboard with letters and symbols. Type your passcode carefully — you cannot see the characters as you type them for security reasons.

iOS will then ask you to enter the same passcode again to confirm. If the two entries match, your passcode is set. If they do not match, you will be asked to try again. Once confirmed, your passcode is active when ready.

What happens if you forget your passcode

If you enter the wrong passcode too many times, your iPhone will lock you out temporarily. After the first few wrong attempts, you will see a message saying you can try again in 1 minute, then 5 minutes, then 15 minutes, and so on. Each wrong attempt increases the wait time.

If you have locked yourself out and cannot remember your passcode, you will need to erase your iPhone and set it up again. You can do this using a computer with Finder (on Mac) or iTunes (on Windows), or you can use iCloud's Find My iPhone feature to erase it remotely. You will need your Apple ID and password to set up the iPhone again after erasing it, so make sure you know those credentials.

Using biometric unlock alongside your passcode

Your passcode works together with Face ID or Touch ID, not instead of it. When you unlock your iPhone with your face or fingerprint, you are using biometric authentication. Your passcode is the backup — it is what you enter when Face ID or Touch ID does not work, such as when you are wearing a mask or your hands are wet.

You can also require your passcode for sensitive actions like making purchases, changing settings, or viewing saved passwords. To set this up, go back to Settings > Face ID & Passcode, enter your current passcode, and look for options like Require Passcode for or Allow Access When Locked. These settings let you decide which apps and features require your passcode even if Face ID or Touch ID succeeds.

Making your passcode harder to guess

Avoid passcodes based on birthdays, anniversaries, or sequential numbers like 1234 or 5678. These are the first combinations someone will try if they want to break into your phone. Similarly, avoid repeating digits like 1111 or 2222.

A strong passcode mixes character types and avoids patterns. For example, Giraffe92#Moon is much stronger than 1234 or even 123456. If you struggle to remember a complex passcode, consider using a password manager like iCloud Keychain, which can store it securely. You can also write it down and store the paper somewhere safe, separate from your iPhone.

Changing your passcode later

You can change your passcode at any time by going back to Settings > Face ID & Passcode, entering your current passcode, and tapping Change Passcode. iOS will ask you to enter your current passcode first, then ask you to create a new one. You can switch between passcode types at this point — for example, you can upgrade from a four-digit PIN to a custom alphanumeric code.

If you want to turn off your passcode entirely, you can tap Turn Passcode Off in the same menu. However, this is not recommended because it removes a layer of security from your iPhone. Without a passcode, anyone with physical access to your phone can unlock it if Face ID or Touch ID fails.

Frequently Asked Questions

Can I use the same passcode on multiple Apple devices?

Yes, you can use the same passcode on your iPhone, iPad, and Mac, but they are set independently. Changing the passcode on one device does not change it on the others. Many people use the same code across devices for convenience, but you can also use different codes if you prefer.

What is the difference between a passcode and a password?

On iPhone, a passcode is the numeric or alphanumeric code that unlocks your device itself. A password is what you use to log into your Apple ID account, email, or apps. Your Apple ID password is separate from your iPhone passcode and is much longer and more complex.

Will my passcode work if my iPhone is in airplane mode?

Yes, your passcode works offline. It is stored on your device and does not require an internet connection to unlock your iPhone. Face ID and Touch ID also work offline, though some features like checking your Apple ID may require internet access.

Can someone unlock my iPhone if they know my passcode but not my Apple ID?

They can unlock your iPhone and use it, but they cannot erase it or set it up as their own without your Apple ID password. This is why your Apple ID is important — it protects your data even if someone gains physical access to your phone.