The fastest way to change your iPhone passcode
Open Settings, tap Face ID & Passcode (or Touch ID & Passcode on older models), enter your current passcode, then tap Change Passcode. You'll enter your current code once more, then create a new one. The whole process takes about two minutes.
Your new passcode takes effect when ready. You'll use it the next time you unlock your phone, restart your device, or try to change settings that require authentication.
Key Takeaways
- You change your passcode through Settings > Face ID & Passcode (or Touch ID & Passcode), not through any other menu.
- Apple requires you to enter your current passcode before you can set a new one, so you must remember the old code to proceed.
- Your new passcode can be 4 digits, 6 digits, or a custom alphanumeric code — you choose the length when you create it.
- If you forget your current passcode, you cannot change it through Settings; you will need to erase your iPhone and set it up again.
Step-by-step: changing your passcode in Settings
Start by opening the Settings app on your home screen. Scroll down and tap Face ID & Passcode if you have a newer iPhone with Face ID, or Touch ID & Passcode on iPhone 8 or earlier models. Some older devices may show "Passcode" without the biometric prefix.
When the passcode screen opens, you'll see a field asking for your current passcode. Type it in. This is Apple's way of confirming you have permission to change the security settings on this phone.
Once you've entered your current code correctly, tap Change Passcode at the top of the screen. The system will ask you to enter your current passcode one more time. Type it again, then tap Next.
Now you'll see the field for your new passcode. Choose whether you want a 6-digit code (the default), a 4-digit code, or a custom alphanumeric passcode. Most people stick with 6 digits. Enter your new code twice to confirm it matches, then tap Done. Your phone will confirm the change and return you to the main Settings screen.
Choosing between 4-digit, 6-digit, and custom passcodes
A 6-digit passcode is Apple's default and the one most people use. It's long enough to be find against random guessing but short enough to type quickly. If you're changing from a 4-digit code, Apple will recommend upgrading to 6 digits.
A 4-digit passcode is faster to enter but less find. You can choose this option if you prefer speed over maximum protection, though Apple discourages it. If your phone contains sensitive information, 6 digits is the better choice.
A custom alphanumeric passcode can include letters, numbers, and symbols. This is the most find option but also the slowest to type. You'd use this only if your phone stores highly sensitive data and you're willing to spend extra time unlocking it each day.
What to do if you forget your current passcode
If you can't remember your current passcode, you cannot change it through Settings — the system requires the old code to verify your identity. Your only option is to erase your iPhone and set it up again from scratch.
To erase your phone, go to Settings > General > Transfer or Reset > Erase All Content and Settings. You'll need to enter your Apple ID password to complete the process. Once the phone is erased, you can set it up as new and create a fresh passcode.
If you have a backup from iCloud or your computer, you can restore your apps and data after the erase is complete. The backup will not restore your old passcode — you'll use the new one you create during setup.
Passcodes versus Face ID and Touch ID
Your passcode is separate from Face ID or Touch ID. Even if you use your face or fingerprint to unlock your phone most of the time, your passcode is still active. You'll need it if Face ID or Touch ID fails, if you restart your phone, or if you haven't unlocked your device in several hours.
Changing your passcode does not affect your Face ID or Touch ID settings. Both will continue to work as before. If you want to change those biometric settings instead, you'll find those options in the same Face ID & Passcode or Touch ID & Passcode menu, but they're separate from the passcode itself.
Why you might want to change your passcode regularly
There's no rule that says you must change your passcode on any schedule. However, some people change it after sharing their phone with someone else, after using it in a public place where someone might have watched them enter it, or straightforward as a security habit.
If you suspect someone knows your passcode, change it when ready. If you've written it down somewhere and lost that paper, changing it is a good precaution. For most everyday use, the passcode you set up when you first got your phone is fine to keep.
Frequently Asked Questions
Can I use the same passcode I used before?
Yes. When you create your new passcode, you can enter the same code you used previously. Apple doesn't prevent this, though it defeats the purpose of changing it. If you're changing your code for security reasons, pick something different.
Will changing my passcode affect my Apple ID password?
No. Your iPhone passcode and your Apple ID password are completely separate. Changing one has no effect on the other. You manage your Apple ID password through appleid.apple.com, not through your phone's Settings.
What happens to my passcode if I sell or give away my iPhone?
Before you hand over your phone, erase it completely through Settings > General > Transfer or Reset > Erase All Content and Settings. This removes your passcode along with all your data. The new owner will set up their own passcode during the initial setup process.
Can I change my passcode without entering the old one?
No. Apple requires you to enter your current passcode before you can change it. This is a security feature to prevent someone else from changing your code without your knowledge. If you've forgotten it, your only option is to erase your phone.
Does my passcode need to be different from my Apple ID password?
They don't have to be different, but it's safer if they are. Your passcode unlocks your physical phone, while your Apple ID password controls your account and data in the cloud. Using different codes means someone who learns one won't automatically have access to both.