Change your passcode through Settings

Open Settings on your home screen, then tap Face ID & Passcode (or Touch ID & Passcode on older iPhones). You'll be asked to enter your current passcode first — this confirms you own the device. After you enter it, tap Change Passcode at the top of the screen.

You'll see a prompt asking for your current passcode one more time. Enter it. Then create your new passcode by typing six digits (or tap Passcode Options if you want a different length or a mix of letters and numbers). Type your new passcode again to confirm it, and you're done — the change takes effect immediately.

If you can't remember your current passcode, you cannot change it through Settings. You'll need to erase the device and set it up again, which requires your Apple ID password. This is intentional — it prevents someone else from locking you out of your own phone.

Key Takeaways

  • You must enter your current passcode before you can create a new one, even if you remember it perfectly.
  • The default is a six-digit numeric code, but you can choose a four-digit code, a longer code, or a mix of letters and numbers.
  • If you forget your passcode, the only way forward is to erase the device through iCloud or a computer, then set it up again with your Apple ID.
  • The new passcode works immediately after you confirm it — there is no waiting period or restart required.

Choosing between numeric and alphanumeric passcodes

When you tap Passcode Options during setup, you can pick Custom Alphanumeric Code (letters and numbers mixed), Custom Numeric Code (numbers only, any length), or 4-Digit Numeric Code (the shortest option). A longer or mixed passcode is harder to guess, but you have to type it every time you unlock your phone, so choose based on what you'll actually remember and use.

Most people stick with the default six-digit number because it balances security and speed. If you use Face ID or Touch ID most of the time, you rarely type the passcode anyway — it only matters when those features fail or when you restart the phone. In that case, a longer or more complex code is worth the extra typing.

What happens if you forget your new passcode

If you change your passcode and then forget it, you cannot recover it. Apple does not store your passcode and cannot retrieve it for you. Your only option is to erase the iPhone completely and set it up again.

To erase it, go to Settings > General > Transfer or Reset > Erase All Content and Settings. You'll need your Apple ID password to complete the erase. After the phone restarts, you'll go through the setup process again and can create a new passcode. This takes 10 to 20 minutes depending on your internet speed.

Changing your passcode on a family member's iPhone

If you're helping someone else change their passcode, they must be present and enter their current passcode themselves. You cannot change someone else's passcode without it, even if you know their Apple ID password. This is a security feature to prevent unauthorized access.

If the person has forgotten their own passcode and you need to help them, they'll need to erase the device and set it up again using their own Apple ID. If they don't remember that password either, they'll need to recover their Apple ID through Apple's account recovery process before the phone can be set up.

Why your passcode matters more than you think

Your passcode is the last line of defense if Face ID or Touch ID stops working. It's also required after you restart your phone, when you haven't unlocked it in 48 hours, or if you've failed biometric unlock attempts five times in a row. A strong passcode — one that's long, random, and not a birthday or sequence — makes it much harder for someone to guess their way in if they get your phone.

Write your new passcode down somewhere safe and separate from your phone, like a notebook at home or a password manager. Do not text it to yourself or email it, because those messages could be intercepted. If you lose your phone and cannot remember the passcode, you'll be grateful you wrote it down somewhere secure.

Passcode vs. Apple ID password: which one protects what

Your passcode unlocks your phone itself. Your Apple ID password unlocks your account, which controls your backups, your payment method, and your ability to download apps. They are separate, and you need both to fully secure your device. Changing one does not change the other.

If someone steals your phone but does not know your passcode, they cannot use it. If they somehow guess your passcode but do not know your Apple ID password, they can use the phone but cannot change your account settings or restore a backup. If they know both, they have full control. This is why both should be strong and different from each other.

Frequently Asked Questions

Can I use the same passcode I used before?

Yes. There is no rule against reusing an old passcode. However, if someone saw you enter it in the past, they might remember it. Choosing something new is more secure, especially if you think someone may have watched you unlock your phone.

Do I need to restart my iPhone after changing the passcode?

No. The new passcode takes effect immediately. You can lock and unlock your phone right away with the new code. A restart is not necessary and will not speed anything up.

What if I change my passcode but still use Face ID?

Face ID and your passcode work independently. Changing your passcode does not affect Face ID at all. You'll still use your face to unlock the phone in most situations, and your new passcode only comes into play when Face ID fails or after a restart.

Can I change my passcode from another device?

No. You must change your passcode directly on the iPhone itself through Settings. You cannot do it from a computer, iPad, or another phone, even if you know your Apple ID password.

Is a longer passcode always better?

A longer passcode is harder to guess, but only if it's random. A 10-digit passcode that is your birthday plus your address is weaker than a 6-digit code that is completely random. Choose length based on what you'll remember, then make sure the numbers or letters do not follow a pattern anyone could guess.