Where to find the password settings on your phone
The steps differ between iPhones and Android phones, but both let you set a password (called a passcode on iPhones) in the Settings app. On an iPhone, open Settings, tap Face ID & Passcode or Touch ID & Passcode, then tap Enable Passcode. On an Android phone, open Settings, find Security or Lock Screen (the exact name varies by manufacturer), and look for Screen Lock or Lock Type. Choose Passcode or PIN from the options shown.
If you have never set a password before, your phone will ask you to create one when ready. If you already have a password and want to change it, the same settings menu will have an option to update or change your passcode.
Key Takeaways
- iPhones use a six-digit passcode by default, while Android phones typically use a four-digit PIN, but both let you choose longer passwords with letters and numbers.
- You set a password in Settings under Face ID & Passcode (iPhone) or Security and Lock Screen (Android), depending on your phone type.
- Write down your password somewhere safe outside your phone, because if you forget it, recovering your phone is difficult and may require a factory reset.
- Your phone will ask you to enter the password after a certain number of failed attempts or after the screen turns off, depending on your settings.
Choosing between a PIN, pattern, and full password
Most phones offer three main password types. A PIN is a string of numbers only — usually four to six digits. A pattern (Android only) is a shape you draw by connecting dots on the screen. A full password can include letters, numbers, and symbols, making it much harder to guess but also harder to remember and slower to type every time you unlock your phone.
For everyday use, a six-digit PIN on iPhone or a six-digit PIN on Android strikes a balance: it is harder to crack than four digits, but faster to enter than a full password. If your phone holds sensitive information — banking apps, work email, medical records — a full password with mixed characters is worth the extra typing time. If you choose a pattern on Android, avoid obvious shapes like straight lines or straightforward corners; someone watching you unlock it can easily copy the motion.
What happens when you forget your password
If you enter the wrong password too many times, your phone locks you out temporarily. On iPhones, the wait time increases with each failed attempt — after five wrong tries, you wait one minute; after ten wrong tries, you wait five minutes. On Android, the lockout time depends on your phone's manufacturer, but the pattern is similar. After many failed attempts, your phone may require you to sign in with your Google account (Android) or Apple ID (iPhone) to unlock it.
If you forget your password entirely and cannot remember your Apple ID or Google account password either, you will need to factory reset your phone through your computer or take it to the manufacturer's support center. This erases everything on the phone unless you have a backup. This is why writing your password down in a physical location — a notebook in a drawer, a safe, a password manager on your computer — is essential. Do not store it in a note on the phone itself.
Setting when your phone asks for the password
You can control how long your phone waits before asking for the password again. On iPhones, go to Settings > Face ID & Passcode, scroll down to "Require Passcode," and choose an option: when ready, After 1 Minute, After 5 Minutes, After 15 Minutes, After 1 Hour, or After 4 Hours. Choosing when ready means you enter your password every time you wake the phone. Choosing After 1 Hour means the phone stays unlocked for up to an hour after you last used it, then asks for the password the next time you pick it up.
On Android, the option is usually called "Lock After" or "Auto Lock" and is found in Settings > Security > Lock Screen or Settings > Display > Lock Screen. The choices vary by phone, but typically range from 15 seconds to 30 minutes. If you use your phone in public or around others, choose a shorter time. If you use it mostly at home, a longer time is convenient without much security risk.
Using biometric locks alongside your password
Most modern phones let you unlock with your face or fingerprint and still require a password as a backup. On iPhones, you can set up Face ID or Touch ID in Settings > Face ID & Passcode or Touch ID & Passcode, then enter your passcode when prompted. Your phone will unlock with your face or fingerprint most of the time, but if Face ID or Touch ID fails five times in a row, it will ask for your passcode instead.
On Android, the process is similar: go to Settings > Security > Biometric or Settings > Security > Fingerprint, set up your fingerprint or face, and your phone will still require your PIN or password as a fallback. This means you get the speed of biometric unlock for daily use, but your phone is still protected by a password if someone steals it or your biometric fails. Never disable the password backup — it is your only way in if biometric unlock stops working.
Protecting your password from being watched
When you enter your password in public, shield the screen with your other hand so people nearby cannot see which numbers or letters you tap. This is especially important if you use a pattern on Android, because the motion is visible from the side. If you are in a place where you feel unsafe entering your password — a crowded store, a public transit station — wait until you are somewhere private.
Never tell anyone your password, including family members, friends, or customer service representatives. Your phone manufacturer and your phone company will never ask you for your password. If someone claims to be from Apple, Google, or your carrier and asks for your password, hang up or close the message — it is a scam.
Changing your password later
To change your password after you have set one, go back to the same Settings menu where you created it. On iPhone, tap Settings > Face ID & Passcode, enter your current passcode, then tap Change Passcode. On Android, go to Settings > Security > Lock Screen, tap Lock Type or Screen Lock, enter your current PIN, then choose a new one. You will be asked to enter the new password twice to confirm you typed it correctly.
Change your password if you think someone has seen it, if you have shared your phone with someone and later want to lock them out, or straightforward if you want to use a stronger one. There is no limit to how many times you can change it.
Frequently Asked Questions
Can someone unlock my phone if they know my password?
Yes, if they have your phone and know the correct password, they can unlock it. This is why you should never share your password and should change it if you think someone has seen you enter it. If your phone is stolen, contact your phone company and your Apple ID or Google account provider to lock your account remotely.
What is the difference between a passcode and a password?
Apple uses the term "passcode" for any unlock method on iPhones, whether it is numbers only or mixed characters. Android uses "PIN" for numbers and "password" for mixed characters. The security level is the same — what matters is the length and complexity of what you choose.
Will setting a password slow down my phone?
No. A password only affects how long it takes you to unlock your phone when you pick it up. It does not change how fast your phone runs apps, loads websites, or processes anything else. The only slowdown is the few seconds it takes you to enter your password each time.
Can I use the same password on my phone and my computer?
You can, but it is not recommended. If someone learns your password by watching you unlock your computer, they can also unlock your phone. Using different passwords for different devices means a breach on one does not compromise the others. A password manager on your computer can store and fill in different passwords so you do not have to remember them all.
What should I do if my phone is asking for a password I do not remember setting?
You may have set it and forgotten, or someone else with access to your phone may have set it without telling you. Try passwords you commonly use. If none work after a few attempts, your phone will lock temporarily, then offer the option to sign in with your Apple ID or Google account instead. Use that to regain access, then set a new password you will remember.