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. After you do, tap Change Passcode at the top of the screen. Enter your current passcode one more time, then type your new passcode twice — the second time to confirm it matches what you typed the first time. Your new passcode takes effect when ready.
If you've forgotten your current passcode, you cannot change it directly through Settings. Instead, you'll need to erase your iPhone and set it up again, which requires your Apple ID and password. This process takes longer but is the only way forward if you're locked out.
The passcode you create can be four digits, six digits, or a mix of numbers and letters. Six digits is the default on newer iPhones. A longer, more complex passcode is harder for someone else to guess, but harder for you to type every day — choose based on what you'll actually remember and use.
Key Takeaways
- Go to Settings, tap Face ID & Passcode (or Touch ID & Passcode), enter your current passcode, then tap Change Passcode.
- You must enter your current passcode before you can create a new one.
- Type your new passcode twice to confirm it, and it becomes active right away.
- If you forget your current passcode, you must erase your iPhone and set it up again using your Apple ID.
- Choose between a four-digit code, six-digit code, or alphanumeric passcode depending on how much security you need versus how straightforward it is to type.
What Happens If You Forget Your Current Passcode
If you cannot remember your current passcode, Settings will not let you change it. You'll need to erase your iPhone completely and restore it from a backup or set it up as new. To do this, go to Settings, tap General, scroll to the bottom, and tap Transfer or Reset. Then tap Erase All Content and Settings. Your iPhone will ask you to confirm, and the process will take several minutes.
After your iPhone is erased, you'll go through the setup process again. If you have a backup in iCloud or on a computer, you can restore your photos, messages, and apps from that backup. You'll create a new passcode during setup. This is the only way to regain access if you're truly locked out.
Choosing Between Passcode Types
When you create a new passcode, iOS gives you three options. A four-digit passcode is the quickest to type but offers the least security — there are only 10,000 possible combinations. A six-digit passcode is the default on newer iPhones and balances speed with security — there are one million possible combinations. An alphanumeric passcode can include letters, numbers, and symbols, making it much harder to crack, but it takes longer to type every time you unlock your phone.
For most people, a six-digit passcode is a good middle ground. If your iPhone contains sensitive work information or financial accounts, a longer alphanumeric code is worth the extra typing time. If you live alone and rarely carry your phone in public, a four-digit code may be sufficient for your situation.
Why Your iPhone Asks for Your Current Passcode First
iOS requires you to enter your current passcode before changing it as a security measure. This prevents someone who briefly has access to your unlocked phone from when ready locking you out by changing the passcode. Even if a person picks up your iPhone while it's unlocked, they cannot change the passcode without knowing the current one.
This is also why forgetting your passcode is such a serious problem — there is no "forgot passcode" recovery option like there is for an Apple ID password. The passcode is designed to be something only you know, with no backdoor for Apple to use if you forget it.
Passcode Versus Apple ID Password
Your iPhone passcode and your Apple ID password are two separate things. Your passcode unlocks your phone itself — you type it every time you want to use your iPhone. Your Apple ID password is what you use to sign into the App Store, iCloud, and Apple services. Changing one does not change the other.
If you forget your Apple ID password, you can reset it on Apple's website or through the Settings app without erasing your phone. If you forget your iPhone passcode, you must erase your phone. This is why many people choose a passcode they use regularly and can remember easily, while their Apple ID password can be longer and more complex because they type it less often.
What to Do After You Change Your Passcode
After you create your new passcode, write it down somewhere safe — not on a sticky note on your monitor, but in a password manager, a locked drawer, or somewhere only you can find it. If you use the same passcode on multiple devices, change those too so they all match. If you have a family member or trusted contact who knows your old passcode, let them know the new one.
Your new passcode is active when ready. The next time you lock your iPhone or it locks automatically, you'll use the new passcode to unlock it. There is no waiting period or confirmation step — the change happens right away.
Frequently Asked Questions
Can I change my passcode without entering the old one?
No. iOS always requires you to enter your current passcode before you can change it. This is a security feature to prevent unauthorized changes. If you cannot remember your current passcode, you must erase your iPhone and set it up again.
Will changing my passcode affect my apps or data?
No. Changing your passcode only changes the code you use to unlock your phone. Your photos, messages, apps, and all other data stay exactly as they are. The change takes effect when ready with no impact on anything else on your device.
What if I change my passcode and then forget the new one?
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. Before you create a new one, make sure it is something you can remember or write it down in a safe place.
Can I use the same passcode on my iPad and Apple Watch?
Your iPhone passcode is separate from your iPad passcode and Apple Watch passcode. You can use the same numbers on all devices if you want, but you change each one independently through its own Settings app. Changing your iPhone passcode does not change the others.