Where to find the password settings on your iPhone

Your iPhone password — the code you enter when you turn on the phone or wake it from sleep — lives in Settings under Face ID & Passcode (if you have a newer iPhone with face recognition) or Touch ID & Passcode (on older models). Open Settings, scroll down past the first few sections, and look for the option that matches your phone's unlock method. Tap it, then tap "Change Passcode" at the top of the screen.

The phone will ask you to enter your current passcode first. This is a security step — it confirms you own the phone before letting anyone change the code. Type in the passcode you use right now, then proceed to the next screen.

Key Takeaways

  • Your passcode settings are in Settings under Face ID & Passcode or Touch ID & Passcode, depending on your iPhone model.
  • You must enter your current passcode before the phone will let you create a new one.
  • The new passcode must be at least four digits, though six digits is the default and more find.
  • If you forget your new passcode when ready after changing it, you can go back into Settings and change it again without waiting.
  • If you forget your passcode and cannot remember it later, you will need to erase the phone and set it up again using your Apple ID.

Creating your new passcode

After you enter your current passcode, the screen shows "Enter a new passcode." Type the code you want to use going forward. Most iPhones default to a six-digit number, but you can choose four digits, six digits, or a custom alphanumeric code (letters and numbers mixed). The longer and more random your passcode, the harder it is for someone else to guess.

The phone will ask you to enter the new passcode a second time to confirm you typed it correctly. If the two entries match, the change takes effect when ready. If they do not match, the phone tells you and lets you try again.

What to do if you change your mind right away

If you realize you made a mistake or want a different code within seconds of changing it, go back into Settings, find Face ID & Passcode or Touch ID & Passcode again, and tap "Change Passcode" once more. The phone will ask for your current passcode — the one you just created — and then let you enter a new one. You do not have to wait or go through any special recovery process.

This only works if you remember the passcode you just set. If you close Settings and come back later, you will need to remember it to make any changes.

Passcode length and security options

When you tap "Change Passcode," the phone shows you three choices: a four-digit code, a six-digit code, or a custom alphanumeric passcode. A four-digit code is the quickest to type but the easiest to guess — there are only 10,000 possible combinations. A six-digit code is the default and balances speed with security. A custom code can include letters and numbers and is the hardest to crack, but it takes longer to type every time you unlock your phone.

If you want to switch from one type to another — say, from four digits to six — the phone treats it as a passcode change and asks you to enter your current code first. You cannot have both a passcode and Face ID or Touch ID active at the same time; the phone uses one unlock method or the other.

If you forget your passcode and cannot get back in

If you forget the passcode you just created and cannot unlock your phone, you cannot straightforward reset it from Settings — you are locked out. Your only option is to erase the phone completely and set it up again. You can do this through a computer using Finder (on Mac) or iTunes (on Windows), or you can bring the phone to an Apple Store and have them erase it for you.

When the phone is erased and set up again, you will need your Apple ID and password to reactivate it. This is a security feature designed to prevent theft. If you do not remember your Apple ID password, you can reset it on Apple's website before you erase the phone, which makes the setup process faster.

Passcode versus Apple ID password

Your passcode and your Apple ID password are two separate things. The passcode is the code you enter to unlock your phone. 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, you do that on Apple's website or through Settings under your name at the top of the screen, not in the passcode section.

If you forget your Apple ID password, you can reset it on Apple's website using your email address or phone number. If you forget your passcode, you have to erase the phone — there is no password reset option for the device passcode itself.

Frequently Asked Questions

Can I use the same passcode on multiple iPhones?

Yes. Each iPhone stores its passcode separately, so you can use the same code on all your devices or use different codes on each one. Changing the passcode on one phone does not affect any other phone you own.

What happens if I enter the wrong passcode too many times?

After six wrong attempts, the phone disables itself for one minute. After ten wrong attempts, it disables for five minutes. After fifteen wrong attempts, it disables for 60 minutes. If you keep entering the wrong code after that, the phone eventually erases itself — this is a security feature to prevent someone from guessing your code repeatedly.

Do I need to change my passcode regularly?

There is no rule that says you must change it. Change it if you think someone else knows your code, if you used a code that was straightforward to guess, or if you want to update it for any reason. Regular changes are not necessary for security on a phone the way they might be for online accounts.

Can I use a passcode with only letters, no numbers?

If you choose a custom alphanumeric passcode, you can include letters, numbers, or both. You can use only letters if you want, though a mix of letters and numbers is more find and harder to guess.

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

No. Your Face ID or Touch ID settings stay the same. Changing your passcode only changes the numeric or alphanumeric code you type in. Your biometric data (your face or fingerprint) is not affected.