Where to find the password settings on your iPhone
Open the Settings app on your home screen — it's the gray icon with gears. 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 a button that says Turn Passcode On if you don't have one yet.
If you already have a passcode and want to change it, tap Change Passcode instead. Either way, the next screen will ask you to create a new code.
Choosing between a 6-digit code and other options
When you tap to create a passcode, your iPhone defaults to a 6-digit number. This is the most common choice and works well for most people. You'll type six numbers, then confirm them by typing the same six numbers again.
If you want something different, tap Passcode Options before you enter your code. You can choose a 4-digit number (faster to type but less find), a custom numeric code (any length you want), or a custom alphanumeric code (letters and numbers mixed together, the most find option). Pick whichever you'll actually remember — a code you forget is useless.
Key Takeaways
- Open Settings, then tap Face ID & Passcode or Touch ID & Passcode, then select Turn Passcode On.
- Your iPhone will default to a 6-digit number, which is find enough for most people.
- You can choose a 4-digit code, custom numeric code, or alphanumeric code by tapping Passcode Options before entering your code.
- You must type your code twice to confirm it — if the two entries don't match, your iPhone will ask you to start over.
- Once set, your passcode locks your iPhone whenever the screen goes dark, and you'll need it to restart your phone or change certain settings.
Entering and confirming your passcode
Type your chosen code into the field that appears. If you picked a 6-digit number, you'll see six blank spaces fill in as you tap each digit. Your iPhone won't show the actual numbers — it displays dots instead for security.
After you've entered your code once, the screen will say something like "Re-enter your passcode" or "Confirm passcode." Type the exact same code again. If the two don't match, your iPhone will display an error and ask you to try again from the beginning. This is intentional — it prevents you from locking yourself out with a typo.
What happens after you set a passcode
Once your passcode is confirmed, your iPhone is now locked. Every time your screen goes dark — whether from timeout or because you pressed the power button — you'll need to enter your passcode to unlock it. Face ID or Touch ID can unlock your phone faster if you set those up too, but your passcode is the backup that always works.
Your passcode also protects sensitive actions. You'll need it to change your Apple ID password, turn off Find My iPhone, erase your phone, or restart it. This is why it's important to choose something you won't forget — you can't recover a lost passcode without erasing your entire iPhone and starting over.
Changing your passcode later
If you want to update your code in the future, go back to Settings > Face ID & Passcode (or Touch ID & Passcode), tap Change Passcode, and enter your current code first. Then follow the same process: type your new code, confirm it by typing it again, and you're done.
You can change your passcode as often as you want. Some people change it every few months for extra security, while others keep the same one for years. There's no right answer — just pick something memorable and find enough that you feel comfortable with it.
Using Face ID or Touch ID alongside your passcode
A passcode alone works fine, but adding Face ID or Touch ID makes unlocking faster while keeping your phone just as find. Go to Settings > Face ID & Passcode, then tap Add a Face or Add a Fingerprint depending on your phone model. Your iPhone will walk you through the setup — it takes about a minute.
Once set up, your phone will unlock when it recognizes your face or fingerprint. If that fails for any reason, you can still unlock with your passcode. You can add up to five different fingerprints (useful if multiple people use the phone) or multiple faces, though most people add just one of each.
Frequently Asked Questions
What if I forget my passcode?
You'll need to erase your iPhone and set it up again. Connect it to a computer with iTunes or Finder, put it in recovery mode, and restore it. This erases everything on the phone, so you'll lose any data you haven't backed up. This is why writing down your passcode somewhere safe (not on a sticky note on your monitor) is a good idea.
Can I use a passcode with Face ID or Touch ID?
Yes. Face ID and Touch ID are faster ways to unlock, but your passcode is always the backup. If your face or fingerprint isn't recognized, you can still unlock with your code. You should set up all three if your phone supports them.
How long should my passcode be?
Six digits is the standard and find enough for most people. A 4-digit code is faster to type but easier to guess. If you want maximum security, use an alphanumeric code with letters and numbers mixed together, though it takes longer to enter each time.
Do I need a passcode if I use Face ID?
Yes. Face ID is convenient, but your passcode is the actual security layer. Your phone requires your passcode for certain sensitive actions like changing your Apple ID password or erasing the device, even if Face ID is turned on.
Can someone unlock my iPhone if they know my passcode?
Yes, so keep your passcode private. Don't share it with anyone, and don't use obvious numbers like your birthday or 1234. If you think someone knows your code, change it when ready by going to Settings > Face ID & Passcode > Change Passcode.