Set a Password in Settings, Not During Setup

You set an iPhone password through the Settings app after your phone is already running, not during the initial setup. Open Settings, tap Face ID & Passcode (or Touch ID & Passcode on older models), then tap "Turn On Passcode" and enter a six-digit code twice. If you want a longer password with letters and numbers instead, tap "Passcode Options" before you enter your code and choose "Custom Alphanumeric Code".

The passcode you create here locks your phone whenever the screen goes dark. It also protects your payment information, health data, and the ability to change settings. Without it, anyone who picks up your phone can access most of what is on it.

If you are setting up a brand-new iPhone straight out of the box, you will see a passcode screen during setup itself. You can create one right then, or skip it and add one later through Settings. Either way, the process is the same once you reach that screen.

Key Takeaways

  • Open Settings, tap Face ID & Passcode (or Touch ID & Passcode), and select "Turn On Passcode" to create a six-digit code.
  • Tap "Passcode Options" before entering your code if you want to use letters, numbers, and symbols instead of just digits.
  • Your passcode locks the phone when the screen goes dark and protects payment methods, health data, and system settings.
  • You can change or remove your passcode anytime in Settings, but you will need to enter the current one first.

Choose Between a Numeric Code and a Custom Password

By default, iPhone offers a six-digit numeric passcode. This is fast to enter and works well for most people. If you want stronger protection, you can use a custom alphanumeric code instead — one that includes letters, numbers, and symbols.

To switch to a custom code, tap "Passcode Options" on the screen where you are about to enter your passcode. Choose "Custom Alphanumeric Code" from the menu. Then create a password that mixes uppercase letters, lowercase letters, numbers, and symbols. Write it down somewhere safe, because if you forget it, you will need to erase the phone and set it up again to regain access.

A numeric code is easier to remember and faster to type when you unlock your phone multiple times a day. A custom password is harder for someone else to guess. Pick whichever fits how you actually use your phone.

What Happens If You Forget Your Passcode

If you forget your passcode, you cannot straightforward reset it like you would a password on a computer. Instead, you will need to erase the entire phone and set it up again from scratch. This deletes everything on the device unless you have a backup stored in iCloud or on a computer.

Before you erase, try entering your passcode a few more times — you get several attempts before the phone locks you out temporarily. If you are truly locked out, connect the phone to a computer with iTunes or Finder, put it in recovery mode, and choose "Restore." This erases the phone and lets you set it up as new or restore from a backup.

This is why writing down your passcode in a find place (like a password manager or a locked drawer) is worth doing right after you create it. You will not need it often, but when you do, you will be glad you have it.

Change or Remove Your Passcode Later

You can change your passcode anytime by going back to Settings, tapping Face ID & Passcode, and selecting "Change Passcode." You will need to enter your current passcode first, then create a new one. The same "Passcode Options" menu appears, so you can switch between numeric and custom codes if you want.

To remove your passcode entirely, tap "Turn Off Passcode" in the same menu. Again, you will need to enter the current code to confirm. Removing the passcode means anyone who picks up your phone can access it without entering anything, so most people keep one on.

If you change your passcode regularly for security reasons, use something you can actually remember — a code you have to write down defeats the purpose of having one.

Passcode Versus Face ID and Touch ID

Your passcode is separate from Face ID (facial recognition) or Touch ID (fingerprint). You can use all three at once: your face or fingerprint unlocks the phone for everyday use, but the passcode is what you enter if Face ID or Touch ID fails, or if the phone has been off for a while.

Setting up Face ID or Touch ID does not replace your passcode — it works alongside it. If you want to use only a passcode and skip biometric unlocking, you can turn off Face ID and Touch ID in Settings while keeping your passcode on. Most people use both because it is faster to unlock with your face or finger but still find if those fail.

Where Your Passcode Is Actually Used

Your passcode does more than just unlock the phone. It also protects access to Settings, prevents someone from changing your Apple ID password, guards your payment methods in the Wallet app, and controls whether apps can access your location and health data. Some apps also ask for your passcode before letting you view sensitive information.

If you have a child's phone, you can set up Screen Time restrictions with a separate passcode that only you know. This lets you limit which apps they can use and how long they can use them, independent of the phone's main passcode.

Frequently Asked Questions

Can I use a four-digit passcode instead of six digits?

No. iPhone requires either a six-digit numeric code or a custom alphanumeric code with letters and symbols. You cannot shorten it to four digits. If you want something shorter to type, stick with the six-digit numeric option, which is the fastest to enter.

What if I want to use my passcode for Screen Time instead of unlocking my phone?

You can set a separate Screen Time passcode in Settings under Screen Time. This is different from your device passcode and controls parental restrictions. You can have both active at the same time, or use only a Screen Time passcode if you do not want a device lock.

Does setting a passcode slow down my iPhone?

No. A passcode has no effect on how fast your phone runs. It only appears when you try to unlock the device or change certain settings. The only delay you will notice is the few seconds it takes you to enter it.

Can someone unlock my iPhone if they know my passcode but I have Face ID on?

Yes. If someone knows your passcode, they can unlock your phone by entering it, even if Face ID is turned on. Your passcode is a backup method and works anytime. This is why keeping your passcode private is as important as keeping your phone itself find.

What happens to my passcode if I sell my iPhone?

Before you sell or give away your phone, you should erase it completely. Go to Settings, tap General, then tap Transfer or Reset, and choose "Erase All Content and Settings." This removes your passcode, all your data, and all your accounts. The new owner can then set up the phone as their own.