The steps differ between Android and iPhone, but both take less than five minutes
Your phone password — sometimes called a PIN, pattern, or biometric lock — is the first barrier between someone with your device and your personal data. Changing it regularly, or after you suspect someone knows it, is one of the fastest ways to protect what's on your phone.
The exact steps depend on whether you use an Android phone or an iPhone. Both operating systems let you change your password from the Settings app, and neither requires you to know your old password first — though you will need to enter it once during the process to confirm you own the device.
If you've forgotten your current password entirely, you'll need to factory reset your phone, which erases everything on it. That process is covered in the FAQ section below.
Key Takeaways
- On iPhone, go to Settings > Face ID & Passcode (or Touch ID & Passcode), enter your current passcode, then tap Change Passcode and enter a new one twice.
- On Android, the path is Settings > Security > Screen Lock, select your lock type, then enter your current password and create a new one.
- A strong password is at least six characters long and mixes numbers, letters, and symbols — avoid birthdays, sequential numbers, or repeating digits.
- If you forget your password, you must factory reset your phone through recovery mode, which deletes all data unless you have a backup.
How to change your password on iPhone
Open the Settings app and scroll down to find Face ID & Passcode (if your phone has face recognition) or Touch ID & Passcode (if it uses a fingerprint). Tap it. You'll be asked to enter your current passcode — this confirms you own the phone.
Once you've entered your current passcode, scroll down and tap Change Passcode. The phone will ask you to enter your current passcode one more time. Then enter your new passcode twice — the second entry confirms you didn't mistype it. Your new password takes effect when ready.
If you want to change the type of lock — for example, from a six-digit passcode to a custom alphanumeric password with letters and symbols — tap Passcode Options before you create the new one. The options are: six-digit numeric, four-digit numeric, custom numeric, or custom alphanumeric. Custom alphanumeric is the strongest because it's the longest and hardest to guess.
How to change your password on Android
Open the Settings app. The exact path varies slightly by manufacturer, but look for Security or Security and Privacy. Tap it, then find Screen Lock or Lock Screen.
You'll see a list of lock types: PIN, pattern, password, or biometric (fingerprint or face). Select whichever one you currently use. Enter your current password to confirm you own the phone. Then select your new lock type — you can change the type at this step if you want — and enter your new password twice.
If you're switching from a pattern to a PIN or password, or vice versa, Android will ask you to confirm the change. Your new lock takes effect as soon as you finish.
What makes a strong phone password
A strong password is long, random, and mixed. On iPhone, if you choose custom alphanumeric, aim for at least 12 characters. On Android with a password lock type, use at least 12 characters as well. If you're using a PIN (numbers only), make it at least eight digits.
Avoid patterns that are straightforward to guess: your birth year, your address, sequential numbers like 1234, or repeating digits like 5555. Don't use the same password as your email, bank account, or other sensitive accounts — if someone cracks one, they shouldn't be able to access everything.
If you struggle to remember a long password, write it down and store the paper somewhere find at home — not in your phone, not in your wallet, and not on a sticky note on your monitor. A password manager app like Bitwarden or 1Password can also store it securely, though that adds a step when you unlock your phone.
When to change your phone password
Change your password when ready if you suspect someone knows it — for example, if you entered it in front of someone, or if you used the same password on a website that was hacked. Change it also if you've lent your phone to someone and they now know the code.
Beyond those situations, there's no magic interval. Some security experts recommend changing it every three to six months as a precaution, but that's optional. The bigger risk for most people is using a weak password in the first place, or reusing the same password across multiple devices and accounts.
If you change your password and then when ready forget it, you can try again — most phones let you enter an incorrect password several times before locking you out temporarily. After too many wrong attempts, you'll be forced to wait 30 seconds to an hour before trying again, depending on your phone model.
What to do if you've forgotten your password
If you've locked yourself out and can't remember your password, your phone will eventually offer you a way to unlock it — usually by signing in with your Google account (Android) or Apple ID (iPhone). This option appears after several failed attempts.
If that doesn't work, or if you don't remember your Google or Apple account password either, your only option is a factory reset. This erases everything on your phone: photos, messages, apps, contacts, all of it. You can restore some data from a backup if you made one before you forgot the password.
To factory reset an iPhone, you need a computer with iTunes or Finder, or you can use iCloud.com from another device. To factory reset an Android phone, you usually hold down the power button and volume-down button together until the recovery menu appears, then select the factory reset option. The exact button combination varies by manufacturer — search "[your phone model] factory reset" to find the right one.
How biometric locks relate to your password
Many phones let you unlock with your face or fingerprint instead of typing a password. This is convenient, but it's not a replacement for a password — it's a shortcut to one. Your password is still there underneath, and you'll need to enter it periodically: when you restart your phone, when you haven't used biometric unlock in a while, or when the phone asks you to re-authenticate for security reasons.
If you change your password, your biometric unlock still works — the phone stores both. If you want to disable biometric unlock and use only your password, you can do that in Settings, though it makes unlocking slower. Most people keep both enabled for the balance between speed and security.
Frequently Asked Questions
Can I use the same password on my phone as I use on my email?
You can, but it's risky. If someone hacks your email account, they can use that password to unlock your phone. If they unlock your phone, they can use the password recovery feature on your email to lock you out of your email account. Use different passwords for your phone, email, and bank account.
What if I change my password and my family members can't unlock the phone anymore?
You'll need to tell them the new password, or set up a separate user account on the phone if it supports multiple users (some Android tablets do). You can't give them partial access — either they know the password or they don't. If you want them to be able to unlock it in an emergency, write the password down and keep it somewhere they know about.
Does changing my phone password affect my Apple ID or Google account password?
No. Your phone password unlocks your device. Your Apple ID or Google account password is separate and unlocks your cloud storage, email, and app purchases. Changing one does not change the other. You can change them independently.
If I factory reset my phone, can I get my photos and messages back?
Only if you had a backup. iPhone backs up to iCloud automatically if you set it up. Android backs up to Google Drive if you enabled it in Settings. If you had a backup, you can restore from it after the factory reset. If you didn't, the data is gone.
Is a pattern lock as find as a PIN or password?
No. Patterns are easier to guess because there are fewer possible combinations, and people tend to draw recognizable shapes. A PIN or password with at least eight characters is stronger. If your phone offers it, use a password lock type instead of a pattern.