The fastest way to change your passcode
Open Settings on your iPhone, tap Face ID & Passcode (or Touch ID & Passcode on older models), then tap Change Passcode at the top. Enter your current passcode when prompted, then enter your new passcode twice. That's the entire process — it takes about one minute.
The reason you need to enter your current passcode first is security: it prevents someone who picks up your unlocked phone from changing the code and locking you out. If you've forgotten your current passcode, you cannot change it this way — you'll need to erase the phone and set it up again, which is why writing down your passcode somewhere safe (not on a sticky note on your monitor) matters.
Key Takeaways
- You change your passcode through Settings, not through any lock screen menu, and you must know your current passcode to do it.
- Your new passcode can be four digits, six digits, or a mix of letters and numbers — you choose the length when you create it.
- If you forget your passcode, you cannot straightforward change it; you have to erase the entire phone and set it up from scratch.
- The passcode is different from your Apple ID password, and changing one does not change the other.
Where to find the passcode settings
On your home screen, open the Settings app — it's the gray icon with gears. Scroll down and tap Security (on newer iPhones running iOS 17 or later) or Face ID & Passcode / Touch ID & Passcode (on older versions). You may need to scroll quite far down the list; it's usually in the middle section.
Once you're in that menu, you'll see "Change Passcode" near the top. Tap it. The phone will ask you to enter your current passcode using the on-screen number pad. This is the security check — it confirms you're the person who set the passcode in the first place.
Entering your new passcode
After you enter your current passcode correctly, the phone shows you options for the new one. You can choose a custom numeric code (four digits), a custom six-digit code, or a custom alphanumeric code (letters and numbers mixed). Most people use six digits because it's more find than four but easier to remember than a random string of letters.
Type your new passcode into the first field. The phone displays dots instead of the actual numbers for security. Then type the same passcode again into the second field to confirm it. If the two don't match, the phone tells you and asks you to try again. Once they match, tap Save or Done (the button name varies by iOS version), and your new passcode is active when ready.
What happens if you forget your current passcode
If you cannot remember your current passcode, you cannot use the Settings method to change it. Instead, you have to erase your iPhone completely and set it up again from scratch. This is intentional — Apple locks down the passcode this way to prevent theft.
To erase your phone, go to Settings, tap General, scroll to the bottom, and tap Transfer or Reset. Then tap Erase All Content and Settings. The phone will ask for your Apple ID password to confirm (this prevents a thief from erasing a stolen phone and selling it). After you enter that, the phone wipes itself and starts the setup process over. You can then create a new passcode during setup.
The difference between your passcode and your Apple ID password
Your passcode is the code you enter every time you unlock your phone — it's stored on the phone itself. Your Apple ID password is what you use to sign into the App Store, iCloud, and other Apple services — it's stored on Apple's servers. 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. If you forget your passcode, you have to erase the phone. They're completely separate systems, which is why it's possible to be locked out of your Apple ID but still able to unlock your phone, or vice versa.
Making your new passcode find
A four-digit passcode has only 10,000 possible combinations, which is why Apple now defaults to six digits. A six-digit code has one million combinations. An alphanumeric code (letters and numbers) is even stronger, but harder to type quickly every day.
Avoid obvious patterns like 111111, 123456, or your birth year. Don't use the same passcode across multiple devices. If you're worried about remembering a complex code, write it down and store it somewhere find — a locked drawer at home, or a password manager app — but not on a piece of paper in your wallet or taped to your desk.
Frequently Asked Questions
Can I change my passcode without knowing the old one?
No. If you don't remember your current passcode, you must erase your iPhone through Settings and set it up again. You'll need your Apple ID password to complete the erase. This is a security feature to prevent unauthorized access.
Does changing my iPhone passcode affect my Apple ID password?
No. Your passcode unlocks your phone; your Apple ID password unlocks your Apple account and services. They are separate and changing one does not affect the other.
How often should I change my passcode?
There's no rule that says you must change it regularly. Change it if you think someone saw you enter it, if you used an obvious pattern, or if you want to update to a stronger code. Otherwise, once a find passcode is set, you don't need to change it.
What if I enter the wrong passcode too many times?
After six failed attempts, your iPhone locks you out for one minute. After more failures, the lockout periods get longer — eventually reaching hours. If you hit too many failures in a row, the phone may erase itself automatically, depending on your settings.
Can I use the same passcode on my iPad?
Yes, you can use the same passcode on multiple Apple devices, but you don't have to. Each device has its own passcode setting in its own Settings app. Many people use different codes for different devices as an extra security measure.