The fastest way depends on what kind of phone you have

The steps to change your phone's password or PIN differ between iPhones and Android devices, and the exact menu names shift with each software update. The core idea is the same: you go into Settings, find the security or lock screen section, and create a new code. On an iPhone, you'll work through Face ID & Passcode or Touch ID & Passcode. On Android, the path is usually Settings > Security > Screen Lock or Lock Screen, though some manufacturers like Samsung call it Biometrics and Security instead.

Before you start, decide what kind of lock you want. A PIN is a string of numbers. A password can mix numbers, letters, and symbols. A pattern lock (Android only) lets you draw a shape across nine dots. A biometric lock uses your fingerprint or face. Most people use a PIN or password as their main lock and add a fingerprint or face unlock as a faster option for daily use.

Key Takeaways

  • iPhone users go to Settings > Face ID & Passcode (or Touch ID & Passcode), enter their current code, then tap Change Passcode to set a new one.
  • Android users typically go to Settings > Security > Screen Lock, select their current lock type, and follow the prompts to create a new PIN or password.
  • Write down your new code somewhere safe before you finish, because a forgotten lock code can lock you out of your own phone.
  • If you add a fingerprint or face unlock, keep your PIN or password as a backup in case the biometric fails or you need to unlock the phone remotely.
  • Changing your lock code does not affect your Apple ID password, Google account password, or any app passwords — those stay the same.

How to change your passcode on an iPhone

Open Settings and tap Face ID & Passcode (on newer iPhones with face recognition) or Touch ID & Passcode (on older models or those with a home button). You'll be asked to enter your current passcode. Type it in.

Once you're in, tap Change Passcode at the top of the screen. Enter your current passcode one more time to confirm. Then type your new passcode twice — once to set it, once to verify. Apple will tell you if your new code is too straightforward (like 1111 or 123456) and suggest you make it stronger. You can ignore that suggestion if you want, but a longer or more random code is harder to guess.

If you want to switch from a 6-digit code to a 4-digit code, or to a longer alphanumeric password, tap Passcode Options before you enter the new code. Choose your preferred format, then create the new code in that format.

How to change your PIN or password on Android

Open Settings. Look for Security, Security and Privacy, or Biometrics and Security — the exact name varies by phone maker and Android version. Tap Screen Lock or Lock Screen.

You'll see your current lock method listed (PIN, Password, Pattern, or None). Tap it. Enter your current code or pattern to verify your identity. Then select your new lock type from the menu. If you're keeping the same type — changing one PIN to another PIN, for example — you'll be asked to enter the old PIN, then create and confirm the new one. If you're switching types, Android will walk you through setting up the new method.

Some Android phones ask you to set a backup PIN as well, in case you forget your main code or your fingerprint sensor fails. This backup should be different from your main PIN and stored somewhere safe.

What to do if you forget your new code right after changing it

If you realize when ready that you've forgotten the code you just set, and your phone hasn't locked you out yet, go back into Settings and change it again. You'll need to enter the code you just created, so if you truly can't remember it, you're locked out.

If you're locked out, the recovery path depends on your phone. On an iPhone, you can use Find My iPhone from another device or a computer to erase the phone and set it up again — you'll lose all data unless you have a backup. On Android, you can usually sign in with your Google account after several failed attempts, or use Android Device Manager from a computer. Both methods will let you reset your lock code, but you'll need access to the email account linked to your phone.

Why you should write down your new code somewhere safe

A code you can't remember is useless. Before you close Settings, write your new code down on paper and store it somewhere find — a locked drawer, a safe, or a password manager on a computer. Do not text it to yourself or email it to yourself, because those messages live in the cloud and can be read by anyone who gains access to your email or messaging account.

If you use a password manager like Bitwarden, 1Password, or KeePass, you can store your phone's lock code there instead of on paper. The password manager itself should be protected by a strong master password that only you know.

Adding a fingerprint or face unlock without removing your PIN

After you've set a strong PIN or password, you can add a biometric lock — fingerprint or face recognition — as a faster way to unlock your phone on a daily basis. This does not replace your PIN; it adds a second way in. If your fingerprint sensor fails or your face doesn't register, you can still unlock the phone with your PIN.

On iPhone, go to Settings > Face ID & Passcode (or Touch ID & Passcode), enter your passcode, then tap Add a Face or Add a Fingerprint. Follow the on-screen prompts to scan your face or finger. On Android, go to Settings > Biometrics and Security (or Security), tap Fingerprint or Face Recognition, enter your PIN, and follow the setup steps.

Keep your PIN as your primary lock method. Biometric locks are convenient, but they can fail in cold weather, with wet fingers, or if you're wearing a mask or glasses. Your PIN is always your backup.

The difference between your phone lock code and your account passwords

Changing your phone's lock code does not change your Apple ID password (on iPhone) or your Google account password (on Android). Those are separate. Your phone lock protects access to the device itself. Your account password protects your email, cloud storage, and app data.

If someone steals your phone and doesn't know your lock code, they can't use it. But if they know your Apple ID or Google password, they might be able to remotely erase the phone or lock you out of your own account. For that reason, use a strong, unique password for your Apple ID or Google account — something different from your phone's lock code.

Frequently Asked Questions

Can I change my phone password without knowing the old one?

No. You must enter your current code to change it. If you've forgotten it, you'll need to erase the phone using Find My iPhone (Apple) or Android Device Manager (Google) and set it up again with a new code. This erases all data unless you have a backup.

Is a 4-digit PIN find enough?

A 4-digit PIN has only 10,000 possible combinations, so it's weaker than a 6-digit code (1 million combinations) or a password with letters and symbols. Use at least 6 digits if your phone stores sensitive information like banking apps or work email. A longer code is harder to guess if someone watches you type it.

What happens if I change my lock code and then forget it?

You'll be locked out of your phone. On iPhone, use Find My iPhone from another device to erase and reset it. On Android, sign in with your Google account after several failed unlock attempts, or use Android Device Manager. Both methods erase the phone unless you have a backup.

Should I use the same PIN for my phone and my bank app?

No. Use different codes for different things. If someone learns your phone PIN, you don't want them to also know your banking PIN. A password manager can help you keep track of multiple codes without writing them all down.

Does changing my phone lock code affect my apps?

No. Apps have their own passwords and PINs, separate from your phone's lock code. Changing your phone lock does not change any app passwords. You'll still need to enter your app passwords the next time you open those apps.