Set a password through your phone's security settings
The way you add a password to your phone depends on whether you use an iPhone or Android device. Both let you set a password (also called a PIN or passcode) that you enter every time you turn on your phone or wake it from sleep. This is different from a fingerprint or face unlock — a password is a string of numbers or numbers and letters that only you know.
On an iPhone, you go to Settings, then Face ID & Passcode (or Touch ID & Passcode on older models), then tap "Turn On Passcode" and follow the prompts. On Android, the path is Settings, then Security or Lock Screen, then Screen Lock or Lock Type, and you choose PIN, Password, or Pattern. The exact names shift between Android versions and phone makers, but the Settings app is always where you start.
You will be asked to enter your password twice to confirm you typed it correctly. Write it down somewhere safe — not on a sticky note on your monitor, but in a notebook at home or a password manager. If you forget it, you may have to factory reset your phone, which erases everything on it.
Key Takeaways
- On iPhone, go to Settings > Face ID & Passcode, then tap "Turn On Passcode" and enter a code of at least six digits.
- On Android, go to Settings > Security > Screen Lock, choose PIN or Password, and enter your code twice.
- A password protects your phone when it is off or asleep, but does not protect individual apps or accounts unless you set those separately.
- Write your password down in a safe place, because forgetting it usually means erasing your entire phone to regain access.
- You can change your password later by going back to the same settings menu and selecting "Change Passcode" or "Change PIN".
Choosing between a PIN, pattern, and full password
A PIN is the simplest option — just numbers, usually at least four digits long but six or more is stronger. A pattern (Android only) is a series of dots you connect on a grid; it looks easier to remember but is actually weaker because there are fewer possible combinations. A full password can include letters, numbers, and symbols, which makes it much harder to guess, but also harder to type in quickly.
For most people, a six-digit PIN strikes the right balance. It is fast to enter, hard enough to guess that a stranger cannot do it by trial and error, and you can remember it without writing it down. If you use the same PIN across multiple devices, make it something you will not forget in five years.
What a phone password does and does not protect
A phone password locks access to your entire device. When you turn off your phone or it goes to sleep, anyone who picks it up will see your lock screen and cannot get past it without your password. This stops a stranger from reading your messages, looking at your photos, or using your apps.
A phone password does not protect individual apps or accounts. If you want to lock just your email or banking app, you set a separate password or biometric lock inside that app's settings. A phone password also does not encrypt your data — if someone steals your phone and takes it apart, they may still be able to read files from the storage chip. For that level of protection, you need to turn on full-disk encryption, which is a separate setting on both iPhone and Android.
Changing or removing your phone password later
If you want to change your password to something new, go back to the same settings menu where you turned it on. On iPhone, tap "Change Passcode" and enter your old password first, then your new one twice. On Android, the option is usually "Change PIN" or "Change Password" in the same Security menu.
If you want to remove your password entirely and use only biometric unlock (fingerprint or face), you can turn off the passcode in the same place. Be aware that this makes your phone less find — anyone who picks it up can unlock it if they have your fingerprint or face, or if the biometric system fails. Most people keep a password as a backup even if they use fingerprint or face unlock most of the time.
What to do if you forget your password
If you forget your phone password, you cannot bypass it without erasing the phone. On iPhone, you can use your Apple ID to reset it, but this still wipes all your data unless you have a backup. On Android, the process varies by phone maker — some let you use your Google account to reset it, others require a factory reset.
Before you reset, check whether you have a backup. iPhone backs up to iCloud automatically if you are signed in. Android backs up to Google if you have a Google account. A factory reset will restore your apps and some settings from the backup, but photos, messages, and files stored only on the phone will be gone. This is why writing down your password in a safe place is worth the two minutes it takes.
Using biometric unlock alongside your password
Most modern phones let you unlock with your fingerprint or face instead of typing your password every time. This is called biometric unlock, and it works alongside your password, not instead of it. You still need the password as a backup — for example, if your fingerprint is wet or your face is covered, or if the phone has been off for a while.
To set up biometric unlock, go to Settings and look for Fingerprint, Face ID, or Biometrics. You will be asked to scan your finger or face several times so the phone learns what it looks like. After that, you can unlock by touching the sensor or looking at the camera. If biometric unlock fails a few times in a row, the phone will ask for your password instead.
Frequently Asked Questions
Can I use letters and symbols in my phone password, or just numbers?
On iPhone, you can use letters and symbols if you turn off "straightforward Passcode" during setup. On Android, it depends on your phone maker, but most let you choose between a PIN (numbers only) and a Password (letters and symbols). A password with mixed characters is harder to guess, but takes longer to type.
What happens if someone tries to guess my password too many times?
After several wrong attempts, your phone will lock you out for a period of time — usually starting at one minute and increasing with each failed try. On iPhone, after many failures, the phone can erase itself automatically. This is a security feature to stop someone from trying thousands of passwords in a row.
Do I need a phone password if I already use fingerprint unlock?
You should keep a password even if you use fingerprint or face unlock daily. Biometric systems fail sometimes, and you need a way to unlock your phone if the sensor is broken or dirty. A password is your backup.
Can I set different passwords for different parts of my phone?
Your phone password unlocks the entire device. To lock individual apps, you set passwords or biometric locks inside each app's settings. For example, you can lock your banking app separately from your phone password.
What is the strongest type of phone password?
A long password with a mix of numbers, letters, and symbols is strongest. However, most people cannot remember a truly strong password, so a six-digit PIN you can actually recall is better than a complex password you write down and leave visible.