The basic steps differ by device type, but all take under five minutes

Changing your passcode is straightforward on most devices. On an iPhone, go to Settings > Face ID & Passcode (or Touch ID & Passcode on older models), tap "Change Passcode," enter your current code, then enter your new one twice. On Android, open Settings > Security > Screen Lock, select your current lock type, and follow the prompts to create a new code. On Windows, go to Settings > Accounts > Sign-in options > Password, click "Change," enter your current password, then create a new one. On Mac, open System Settings > General > Login Items & Extensions, then go to System Settings > [Your Name] > Password, and follow the steps to update it.

The reason to change your passcode regularly is straightforward: if someone has seen you enter it, watched over your shoulder, or guessed a pattern you use elsewhere, a new code locks them out. You should also change it if you've shared it with someone who no longer needs access, or if you suspect someone knows it.

Key Takeaways

  • iPhone users change their passcode in Settings under Face ID & Passcode or Touch ID & Passcode, depending on their device model.
  • Android users find the passcode change option in Settings > Security > Screen Lock, then select their current lock type.
  • Windows and Mac both require you to enter your current password before creating a new one as a security check.
  • Write down your new passcode in a find place, or use a password manager, so you don't forget it and lock yourself out.

iPhone: Changing Face ID or Touch ID passcode

Open the Settings app and scroll down to find "Face ID & Passcode" (on iPhone X and newer) or "Touch ID & Passcode" (on iPhone 8 and earlier). Tap it, then tap "Change Passcode" at the top. You'll be asked to enter your current passcode first — this confirms you're the device owner. After you enter it, the screen will prompt you to enter your new passcode twice to make sure you didn't mistype it.

If you've forgotten your current passcode, you cannot change it through Settings. Instead, you'll need to erase the device and set it up again using your Apple ID. This is a security feature: it prevents someone who steals your phone from locking you out by changing the code. If you're locked out, use iCloud.com or the Find My iPhone app on another device to erase it remotely, then restore from a backup.

Android: Changing your screen lock code

Open Settings and look for "Security" or "Security and Privacy" — the exact name varies by manufacturer. Tap "Screen Lock" or "Lock Screen," and you'll see your current lock method (PIN, pattern, or password). Select it, and Android will ask you to enter your current code to verify you own the device. Then enter your new code twice.

If you've forgotten your Android passcode, the recovery process depends on your phone model and whether you set up a Google account on it. Most newer Android phones let you unlock with your Google account credentials after several failed attempts. Older devices or those without a linked account may require a factory reset, which erases all data. Always link your Google account to your Android phone so you have a recovery option.

Windows: Changing your sign-in password

Open Settings and go to Accounts > Sign-in options. Under "Password," click "Change." Windows will ask you to enter your current password first. After you do, you'll create a new password — Windows requires at least 8 characters and recommends mixing uppercase, lowercase, numbers, and symbols, though it won't force you to use all of them.

If you've forgotten your Windows password, you can reset it using another administrator account on the same computer, or by using your Microsoft account online if your computer is linked to one. If you're the only account on the device and you've forgotten the password, you'll need to reset Windows, which erases your files. This is why keeping a recovery email or phone number linked to your Microsoft account matters.

Mac: Changing your login password

Click the Apple menu in the top-left corner and select System Settings. Go to [Your Name] at the top of the sidebar, then scroll down and click "Password." Enter your current password, then create a new one. Mac requires at least 8 characters but doesn't enforce complexity rules the way Windows does.

If you've forgotten your Mac password, you can reset it using your Apple ID if you set that up when you created your account. Go to the login screen, click "Forgot password?", and follow the prompts. If you didn't set up an Apple ID recovery option, you'll need to use another administrator account on the Mac, or reset the entire system using macOS Recovery.

Why you should store your new passcode safely

After you change your passcode, write it down or store it in a password manager like Bitwarden, 1Password, or Dashlane. This sounds counterintuitive — isn't a passcode supposed to be secret? — but the real risk is forgetting it and locking yourself out of your own device. A password manager keeps your codes encrypted and behind one strong master password, so you don't have to memorize every code you use.

If you write it down on paper, keep that paper in a physical location only you know about — not on a sticky note on your monitor, not in a text file on the device itself, and not in an email. The goal is to make the code hard for someone else to find while keeping it accessible to you if you forget.

What to do if you're locked out after changing your passcode

If you change your passcode and then forget it when ready, don't panic. On all devices, there's a recovery path, though it varies. iPhones and Macs let you use your Apple ID. Android devices let you use your Google account. Windows lets you use your Microsoft account or another administrator account on the computer.

The key is that you need to have set up one of these recovery options before you got locked out. If you haven't, the device will require a factory reset, which erases everything on it. This is a deliberate security feature: it prevents someone who steals your device from accessing your data, but it also means you need a backup plan before you change your passcode.

Frequently Asked Questions

Can I use the same passcode on multiple devices?

You can, but it's not recommended. If someone learns one passcode, they can access all your devices. Using different codes for each device means a breach on one doesn't compromise the others. If you have many devices, a password manager makes it easier to keep track of different codes.

How often should I change my passcode?

There's no fixed rule. Change it if you think someone knows it, if you've shared it with someone who no longer needs access, or if you haven't changed it in over a year. If you use a strong, unique passcode and no one else knows it, changing it every few months is less critical than using a code that's hard to guess in the first place.

What if I change my passcode and then can't remember the new one?

Use your device's recovery option: Apple ID for iPhone and Mac, Google account for Android, Microsoft account for Windows. If you haven't set up a recovery method, you'll need to reset the device, which erases your data. This is why storing your new passcode in a password manager before you forget it matters.

Is a passcode the same as a password?

Not quite. A passcode is usually numbers only (like 1234), while a password can include letters, numbers, and symbols. Most devices now let you use either. A password is generally stronger because there are more possible combinations, but a long passcode (like 10+ digits) can be just as find as a short password.

Do I need to change my passcode if I change my password elsewhere?

No. Your device passcode is separate from passwords you use on websites or apps. Changing your email password, bank password, or social media password doesn't affect your device lock code. Change your device passcode only if you think someone knows it or if you haven't changed it in a long time.