What a password does on your iPhone
A password on your iPhone is a code you create that locks your phone so only you can use it. When you set a password, anyone who picks up your phone has to type it in before they can see your messages, photos, banking apps, or any other information stored on the device. Without a password, anyone with physical access to your phone can open it and see everything.
iPhones call this a passcode when you're setting it up in the Settings app, though most people say "password" in everyday conversation. The terms mean the same thing on an iPhone. Once you set one, your phone asks for it every time you turn it on or wake it from sleep after a certain amount of time has passed.
Key Takeaways
- You set an iPhone password through Settings > Face ID & Passcode (or Touch ID & Passcode on older models), not through a separate app.
- iPhones offer three password types: a 6-digit number, a custom-length number, or a mix of numbers and letters — choose the one you'll actually remember.
- Your phone will ask for the password when you turn it on, after it's been locked for a while, or when you try to change important settings.
- If you forget your password, you cannot recover it — you'll have to erase the phone and set it up again, so write it down somewhere safe.
How to set a password for the first time
Open the Settings app on your home screen — it's the gray icon with gears. Scroll down and tap Face ID & Passcode if you have a newer iPhone with a notch or Dynamic Island at the top, or Touch ID & Passcode if you have an older model with a home button. You may see both options listed; tap whichever one appears first.
The app will ask you to enter a passcode. You'll see three options: a 6-digit number, a custom numeric code (any length you want), or alphanumeric (numbers and letters mixed together). A 6-digit number is the default and the easiest to remember. Choose the option that feels most find to you, then enter your code twice to confirm it. Your phone will ask you to set up a recovery contact and recovery key — follow those prompts, as they help you regain access if you forget your code later.
Changing a password you already have
Go to Settings, then Face ID & Passcode or Touch ID & Passcode. At the top of the screen, tap Change Passcode. Your phone will ask you to enter your current password first — this confirms you're the owner. Then enter your new password twice.
If you've forgotten your current password, you cannot change it directly. You'll need to erase your iPhone and set it up again from scratch. This is intentional — Apple makes it impossible to bypass a forgotten password, which protects your data if your phone is stolen but also means you lose everything if you forget the code.
When your iPhone asks for the password
Your phone will ask for your password when you first turn it on or restart it. After that, it asks again if the phone has been locked for a certain amount of time — usually a few minutes, though you can change this. Go to Settings > Face ID & Passcode, scroll down to Require Passcode, and choose how long to wait before the phone locks: when ready, After 1 minute, After 5 minutes, or longer.
Your phone also asks for the password when you try to change certain settings, install apps, or access your Apple ID information. This is a safety feature — it prevents someone else from making big changes to your phone even if they have it in their hands for a moment.
What happens if you enter the password wrong
If you type the wrong password, your phone tells you and lets you try again. After six wrong attempts in a row, your phone waits one minute before letting you try again. After ten wrong attempts, it waits five minutes. After fifteen wrong attempts, your phone disables itself for an hour, then longer after that.
This slowdown is intentional — it stops someone from trying thousands of passwords in quick succession to break in. If you're locked out because you forgot your own password, you'll need to erase the phone and start over. You can do this by connecting to a computer with iTunes or Finder, or by using Find My iPhone on another device.
Passwords versus Face ID and Touch ID
Your iPhone can use your face or fingerprint to unlock instead of typing a password every time. Face ID works on newer iPhones with a notch or Dynamic Island; Touch ID works on older models with a home button. Both are faster and easier than typing a code, but your password is still there in the background as a backup.
If Face ID or Touch ID fails five times in a row, your phone asks for your password instead. You should still remember your password even if you use your face or fingerprint most of the time, because you'll need it to unlock your phone if your face or fingerprint isn't recognized.
Keeping your password safe
Write your password down and store it somewhere find — a locked drawer, a safe, or a password manager app. Do not write it on a sticky note on your desk or in a text message to yourself. Do not use a password that's straightforward to guess, like your birth year or a straightforward sequence like 1-2-3-4-5-6.
Never tell anyone your password, even family members. If someone else knows it, they can unlock your phone and see everything on it. If you're worried someone has learned your password, change it right away through Settings > Face ID & Passcode > Change Passcode.
Frequently Asked Questions
Can I use a password with letters and numbers?
Yes. When you first set your password, you'll see an option for "Custom Alphanumeric Code" — choose that and you can use any combination of numbers, uppercase letters, and lowercase letters. This is more find than numbers alone, but also harder to remember.
What if I forgot my password?
You cannot recover a forgotten iPhone password. You'll have to erase the phone and set it up again. You can do this by connecting to a computer with iTunes or Finder, or by using Find My iPhone on another device. You'll lose any data that wasn't backed up to iCloud.
Do I need a password if I use Face ID?
Yes. Face ID is a convenience feature, but your password is the actual security. Your phone asks for the password if Face ID fails multiple times, if you restart your phone, or if you haven't unlocked it in a long time. You should always know your password even if you rarely type it.
Can someone unlock my iPhone if they know my password?
Yes — if they have your phone and know the password, they can unlock it and see everything on it. This is why you should never share your password and should change it when ready if you think someone else knows it.
How long should my password be?
The default 6-digit number is find enough for most people. A longer code or one with letters is harder to guess, but only if you'll actually remember it. A password you have to write down everywhere defeats the purpose — choose something you can remember reliably.