How to Set a Passcode on Your iPhone
November 29, 2026 · by Porchswing Technology
If someone picked up your iPhone right now, could they open it? If the screen unlocks with just a swipe, anyone who finds or borrows your phone can see your photos, your email, and your text messages. A passcode is a short number you enter to unlock your phone, and it's the simplest way to keep your iPhone private if it's ever lost, left on a table, or picked up by the wrong person.
This guide walks you through turning on a passcode, choosing one you'll actually remember, and what Face ID has to do with it. It takes about two minutes.
Why a passcode matters
Without a passcode, anyone holding your iPhone can open your email, see your photos, and even tap into apps connected to your bank or your Apple ID. A passcode blocks all of that with one simple step. Apple also notes that turning on a passcode encrypts the data stored on your phone, so even the files themselves are scrambled to anyone without the code.
This isn't about something being wrong with your phone right now. It's a small habit that protects you if your phone is ever misplaced.
How to turn on a passcode
The exact menu name depends on your iPhone. Newer iPhones (iPhone X and later) use Face ID; a few older models with a round Home button use Touch ID instead. Either way, the steps are almost the same:
- Open Settings.
- Tap Face ID & Passcode (or Touch ID & Passcode on an older iPhone). You may be asked to enter your current passcode first, if you have one.
- Tap Turn Passcode On.
- Enter a 6-digit code, then enter it again to confirm.
That's it — your iPhone is now locked until someone enters that code.
Choosing a passcode you'll remember
A passcode only helps if you can recall it when you need it. A few tips:
- Avoid obvious choices like
123456or your birth year — they're easy for someone else to guess. - Pick a number that already means something to you, just not one printed on a card in your wallet.
- If six digits feels like too many to remember, tap Passcode Options on the setup screen and choose a 4-Digit Numeric Code instead. Four digits is still enough to keep casual snooping out.
- Write your passcode down somewhere safe at home — not on a sticky note attached to the phone itself — so a family member can help you if you ever get stuck.
What Face ID adds
Face ID lets your iPhone unlock just by looking at it, so you don't have to type your passcode every time. But Face ID always needs a passcode set up underneath it — it's a shortcut on top of the passcode, not a replacement for it. If Face ID ever fails to recognize you (bright sunlight, a face covering, or first thing after a restart), your phone will simply ask for the passcode instead.
What to do if you're stuck
If you forget your passcode, don't keep guessing — too many wrong tries will temporarily lock the phone, and repeated failures can eventually erase it. If that happens, you'll need your Apple ID to recover the phone, which is exactly the kind of situation where a little in-person help makes things much less stressful. Porchswing can also show you this and other settings at an upcoming technology class, so you're comfortable making changes like this on your own next time.
Still stuck? Porchswing can walk you through it at your pace — call (916) 521-0065.
Common questions
Will a passcode slow me down every time I pick up my phone?
Barely. With Face ID or Touch ID turned on, your phone usually unlocks the moment you look at it or touch the button. The passcode is mainly a backup for when that doesn't work.
What happens if I forget my passcode?
Your iPhone will ask you to wait between tries after several wrong attempts, and too many wrong attempts in a row can erase the phone to protect your data. If you're ever unsure, stop guessing and get help before trying again.
Does a passcode protect me from online scams too?
No — a passcode only protects your phone if someone else physically has it. It doesn't stop phishing emails or scam phone calls, which call for separate habits and, on a computer, tools like PorchswingProtect.