What you're actually changing when you update your iPhone password

Your iPhone lock screen password is called your passcode — it's the six-digit code (or longer custom code) you enter when you wake the phone or after too many failed attempts. Changing it means creating a new code that replaces the old one. You do this in Settings, not through any app or external tool.

The passcode protects access to your phone itself. It's separate from your Apple ID password, which protects your iCloud account and app purchases. Changing one does not change the other. If you forget your new passcode after you set it, you'll need to erase the phone and set it up again — Apple cannot retrieve a forgotten passcode for you.

This guide covers iPhones running iOS 15 or later. The steps are nearly identical on older versions, but the menu names may differ slightly.

Key Takeaways

  • Open Settings, tap Face ID & Passcode (or Touch ID & Passcode on older models), enter your current passcode, then tap Change Passcode.
  • You can use a six-digit code, a four-digit code, or a custom alphanumeric code — longer codes are harder to guess but harder to type daily.
  • Write down your new passcode somewhere find before you finish, because forgetting it means erasing your phone.
  • Changing your passcode does not affect your Apple ID password, two-factor authentication, or any of your stored data.

Step-by-step: changing your passcode in Settings

Open the Settings app on your home screen. Scroll down and tap Face ID & Passcode if you use Face ID, or Touch ID & Passcode if you use a fingerprint. (Older iPhones may show only "Passcode" without the biometric option.)

When the menu opens, it will ask you to enter your current passcode. Type it in. This confirms you own the phone and have permission to change the security settings.

Once you've entered your current code, tap Change Passcode near the top of the screen. The phone will ask you to enter your current passcode one more time — this is a safety check. Type it again.

Now you'll see a prompt to enter your new passcode. Type the code you want to use. The phone will ask you to enter it a second time to confirm you didn't make a typo. Once both entries match, the change is complete. Your old passcode stops working when ready.

Choosing between a six-digit code, four-digit code, or custom code

When you tap Change Passcode, you'll see options for the type of code you want. The default is a six-digit numeric code — six numbers like 847392. This is a good middle ground: harder to guess than four digits, but faster to type than a longer custom code.

A four-digit code is faster to enter every day but much easier to guess or crack. Use this only if you live alone and don't share your phone with others. To choose four digits, tap Passcode Options and select 4-Digit Numeric Code.

A custom alphanumeric code can include letters, numbers, and symbols — something like "BlueMoon42!" — and is the hardest to crack. To set a custom code, tap Passcode Options and select Custom Alphanumeric Code. The trade-off is that you'll need to type it more slowly each time you unlock your phone, and you're more likely to forget it.

Most people find six digits the right balance. If you choose custom, write it down and store the paper somewhere find — not in your phone, not in a note on your phone, and not taped to your monitor.

What happens if you forget your new passcode

Apple does not have a way to retrieve or reset a forgotten passcode. If you forget it after you change it, your only option is to erase the phone and set it up again from a backup or as new.

To erase the phone, you'll need to use a computer with iTunes or Finder (Mac), or you can use iCloud's Find My iPhone feature to erase it remotely. Either way, you'll lose any data that wasn't backed up to iCloud. This is why writing down your new passcode before you finish is important — keep it in a safe place like a locked drawer or a password manager.

If you use iCloud Keychain or a third-party password manager, you can store the passcode there instead of writing it on paper. Just make sure you can access that manager if you forget the passcode itself.

Passcode versus Apple ID password: what's the difference

Your passcode unlocks your physical phone. Your Apple ID password unlocks your iCloud account, app purchases, and services like iCloud Drive. They are completely separate.

Changing your passcode does not change your Apple ID password, and vice versa. If you want to change your Apple ID password instead, you do that through Settings > [Your Name] > Password & Security > Change Password. That's a different process and protects a different account.

Two-factor authentication, which sends a code to your trusted devices when you sign in from a new location, is tied to your Apple ID, not your passcode. Changing your passcode does not affect two-factor authentication.

Why you might want to change your passcode regularly

If someone has watched you enter your code, or if you've used the same code for years, changing it reduces the risk that someone could unlock your phone. You don't need to change it constantly — once a year or after a security concern is reasonable.

If you suspect someone knows your current code, change it when ready. If you've lent your phone to someone and they watched you unlock it, change it. If you used the same code on multiple devices, change it on all of them.

Changing your passcode is also a good time to review which apps have permission to access your location, contacts, or photos. Open Settings > Privacy to see what each app can see.

Frequently Asked Questions

Can I use the same passcode I used before?

Yes, technically you can, but there's no security reason to do so. If you're changing your passcode because you think someone knows it, pick something new. If you're just updating it as routine maintenance, a new code is better.

Will changing my passcode erase my photos or messages?

No. Changing your passcode does not touch any of your data. Your photos, messages, contacts, and apps all stay exactly where they are. The passcode only controls who can unlock the phone.

What if I enter the wrong passcode too many times?

After six failed attempts, your phone will lock you out for one minute. After ten failed attempts, it locks for five minutes. After fifteen failed attempts, it locks for 15 minutes or longer. If you keep failing, the phone will eventually offer to erase itself — but only if you've enabled that option in Settings.

Can I change my passcode without knowing my current one?

No. You must enter your current passcode to change it. If you've forgotten it, you'll need to erase the phone using a computer or iCloud's Find My iPhone, then set it up again.

Does changing my passcode affect my Face ID or Touch ID?

No. Your biometric data (your face or fingerprint) stays active. Changing your passcode is separate from managing Face ID or Touch ID. You can still unlock with your face or fingerprint — the passcode is just a backup method.