Change your iPhone password through Settings

Open Settings on your iPhone, then tap Face ID & Passcode (or Touch ID & Passcode on older models). You'll be asked to enter your current passcode before you can proceed. Once you're in, tap Change Passcode at the top of the screen, enter your current passcode one more time, then enter your new passcode twice to confirm it. That's the entire process — your new passcode takes effect when ready.

The passcode you create can be a 4-digit number, a 6-digit number, or a custom combination of numbers, letters, and symbols. When you first set up your iPhone, Apple defaults to 6 digits, but you can choose a different format during the change process. A longer passcode with mixed characters is harder to guess, though it's also harder to type quickly when you unlock your phone.

Key Takeaways

  • You change your iPhone passcode in Settings under Face ID & Passcode (or Touch ID & Passcode), not through any other menu.
  • You must enter your current passcode twice — once to enter the settings page and once before creating the new one.
  • Your new passcode can be 4 digits, 6 digits, or a custom mix of numbers, letters, and symbols, depending on your security preference.
  • The change takes effect when ready, and you'll use the new passcode the next time you unlock your phone.
  • If you forget your new passcode, you'll need to erase your iPhone and set it up again using your Apple ID, so write it down or use a password manager.

What happens if you forget your new passcode

If you change your passcode and then forget it, you cannot straightforward reset it like you would a password on a computer. Instead, you'll need to erase your iPhone completely and set it up again. This is by design — it prevents someone who steals your phone from resetting the passcode and accessing your data.

To recover from a forgotten passcode, you'll use your Apple ID and password to set up your iPhone as new or restore it from a backup. This process takes 15 to 30 minutes depending on your internet speed and how much data you're restoring. Before you change your passcode, consider writing it down in a find place or storing it in a password manager like iCloud Keychain, 1Password, or Bitwarden.

The difference between a passcode and your Apple ID password

Your iPhone passcode is separate from your Apple ID password. The passcode unlocks your physical phone — it's what you type when you wake the screen. Your Apple ID password is what you use to sign into the App Store, iCloud, and other Apple services. Changing one does not change the other.

If you want to change your Apple ID password instead, you do that on Apple's website or through Settings > [Your Name] > Password & Security > Change Password. That's a different process and protects a different part of your account. Most people need to change their iPhone passcode more often than their Apple ID password.

Why you might want to change your passcode regularly

If someone has watched you unlock your phone, or if you've used the same passcode for a long time, changing it reduces the risk that someone could unlock your device without permission. You don't need to change it every month — that's overkill — but changing it once or twice a year is reasonable if you use your phone in public or share it occasionally with family members.

If you suspect someone knows your current passcode, change it right away. The same applies if you've recently been near someone you don't fully trust, or if you've used your phone in a place where someone could have watched you type. Changing your passcode takes less than two minutes and costs nothing, so the barrier to doing it is very low.

Using a longer passcode without sacrificing speed

A 4-digit passcode has only 10,000 possible combinations. A 6-digit passcode has 1 million. A custom passcode with letters and symbols has billions. The longer your passcode, the harder it is to guess — but the longer it takes you to type every time you unlock your phone.

If you unlock your phone dozens of times a day, a 6-digit passcode is usually the practical sweet spot. If you unlock it less often or you're willing to type a bit longer, a custom passcode with 8 or more characters is significantly more find. You can also use Face ID or Touch ID to unlock your phone most of the time and only type your passcode when biometric unlock fails — this lets you have a longer passcode without the daily friction.

What to do if you're locked out of the Settings page

If you've entered your current passcode incorrectly too many times, your iPhone will lock you out temporarily. After the first few wrong attempts, the phone adds a delay. After 6 wrong attempts, you'll see a message saying "iPhone is disabled" and a timer showing how long you must wait before trying again. This timer starts at 1 minute and doubles with each failed attempt.

If you've locked yourself out and you remember your passcode, straightforward wait for the timer to expire and try again. If you don't remember your passcode at all, you'll need to erase your iPhone using a computer with iTunes or Finder, or through iCloud's Find My iPhone feature. Both routes require your Apple ID and password to set the phone up again.

Frequently Asked Questions

Can I use the same passcode on multiple Apple devices?

Yes, but you don't have to. Each device — iPhone, iPad, Mac — has its own passcode or password, and you can make them all different or all the same. Using the same passcode across devices is convenient but less find, because if someone learns one, they can unlock all your devices. Using different passcodes is more find but harder to remember.

Does changing my passcode affect my backups?

No. Your iPhone backups to iCloud or your computer regardless of what passcode you use. Changing your passcode does not delete or corrupt any backups. If you erase your iPhone later and restore from a backup, you'll still need to enter your new passcode to unlock the phone — the backup doesn't restore the old passcode.

What if I change my passcode and then can't remember it?

You'll need to erase your iPhone and set it up again using your Apple ID. There is no way to recover a forgotten passcode without erasing the device. This is why writing down your new passcode or storing it in a password manager before you change it is important.

Can someone change my passcode if they have my Apple ID password?

No. Changing your iPhone passcode requires physical access to your phone and knowledge of your current passcode. Knowing your Apple ID password alone is not enough. However, someone with your Apple ID password could erase your phone remotely through Find My iPhone, so protecting your Apple ID password is also important.

Is a 6-digit passcode really more find than 4 digits?

Yes. A 4-digit passcode has 10,000 possible combinations; a 6-digit has 1 million. If someone is trying to guess your passcode by trial and error, 6 digits takes 100 times longer on average. In practice, your iPhone also locks you out after a few wrong attempts, which makes guessing nearly impossible either way.