Change your iPhone PIN through Settings on your device

To change your iPhone PIN, open Settings, tap "Face ID & Passcode" or "Touch ID & Passcode" (depending on your model), enter your current PIN when prompted, then tap "Change Passcode" and follow the on-screen steps to create a new one. The entire process takes about two minutes and requires no computer or external tools.

Your PIN is the numeric code that unlocks your iPhone when Face ID or Touch ID fails. It is separate from your Apple ID password and your carrier PIN. Changing it regularly is a security practice that limits the window someone could use a stolen or lost device.

If you have forgotten your current PIN, you cannot change it through Settings — you will need to erase the device and set it up again, which means restoring from a backup or starting fresh. This is why writing down your PIN somewhere secure (not on the device itself) is worth doing.

Key Takeaways

  • Open Settings, find Face ID & Passcode or Touch ID & Passcode, and select "Change Passcode" to create a new PIN without erasing your phone.
  • You must enter your current PIN correctly before the system will let you set a new one.
  • Your new PIN can be numeric only, alphanumeric, or a custom numeric code — the length and format depend on your security preferences.
  • If you forget your current PIN, you cannot change it; you must erase the device and restore from backup or set it up as new.

Step-by-step process to change your passcode

Start by opening the Settings app on your home screen. Scroll down and tap "Face ID & Passcode" if you have an iPhone with Face ID (iPhone X and newer), or "Touch ID & Passcode" if you have an older model with Touch ID. If your iPhone has neither, look for "Passcode" in Settings.

When you tap the option, the system will ask you to enter your current PIN. Type it in correctly — if you enter it wrong three times, you will be locked out for a minute, then longer if you keep trying. After you enter the correct PIN, the menu expands to show passcode options.

Tap "Change Passcode" at the top of the menu. The system will ask you to enter your current PIN one more time to confirm you are the device owner. Then it will prompt you to enter your new PIN twice — once to set it, and once to confirm it matches. Make sure both entries are identical, or the system will reject the change and ask you to try again.

Choosing between numeric and alphanumeric PINs

When you set a new passcode, iOS offers three options: a six-digit numeric PIN (the default), a four-digit numeric PIN, or a custom alphanumeric code that can include letters and numbers. The longer and more complex your PIN, the harder it is to guess, but the longer it takes to type each time you unlock your phone.

Most people use the default six-digit numeric PIN because it balances security and speed. A four-digit PIN is faster to enter but offers less protection. An alphanumeric code is the most secure but requires you to type letters and numbers, which is slower on the iPhone keyboard.

To choose a different format, look for "Passcode Options" or a similar link in the Change Passcode menu. Tap it to see the three choices, select the one you want, then create your new PIN in that format. The system will not let you proceed until your new PIN meets the format requirements you chose.

What to do if you cannot remember your current PIN

If you have forgotten your current PIN, you cannot change it through Settings — the system requires you to enter the old PIN before it will let you create a new one. Your only option is to erase the device and set it up again.

To erase your iPhone, go to Settings, tap "General," scroll to the bottom, and tap "Reset." Choose "Erase All Content and Settings" and confirm. The phone will wipe completely and restart as if it were new. You can then restore your data from an iCloud backup if you have one, or set the phone up from scratch.

This process takes 15 to 30 minutes depending on how much data you have and your internet speed. If you do not have a backup, you will lose any data stored only on the device. This is why keeping a recent backup in iCloud or on a computer is important — it protects you if you forget your PIN or your phone is damaged.

Keeping your new PIN secure

Once you have set a new PIN, do not share it with anyone except people you trust completely. Do not write it on a sticky note attached to your phone or computer. Do not use a PIN that is easy to guess, like your birth year or a sequence like 1234.

If someone knows your PIN, they can unlock your phone and access your messages, photos, financial apps, and other sensitive information. If you think someone has learned your PIN, change it immediately using the steps above.

If your phone is lost or stolen, contact your carrier and Apple as soon as possible. Your carrier can disable the SIM card so the phone cannot make calls or use cellular data. Apple can help you lock the device remotely through Find My iPhone if you have that feature turned on.

Difference between your iPhone PIN and your Apple ID password

Your iPhone PIN (or passcode) unlocks the physical device. Your Apple ID password is what you use to sign into the App Store, iCloud, and other Apple services. They are completely separate, and changing one does not affect the other.

If you forget your Apple ID password, you can reset it through the Apple ID website or through Settings on another device. If you forget your iPhone PIN, you must erase the device. This is why your iPhone PIN is considered more critical to protect — losing it means losing access to the entire phone.

Frequently Asked Questions

Can I change my iPhone PIN without entering the old one?

No. The system requires you to enter your current PIN correctly before it will let you change it. This is a security feature to prevent someone else from changing your PIN if they gain temporary access to your phone. If you have forgotten your current PIN, you must erase the device and set it up again.

How often should I change my iPhone PIN?

There is no set rule, but changing it every few months is a reasonable practice if you are concerned about security. If you think someone may have seen your PIN or if your phone has been in someone else's hands, change it right away. For most people, changing it once or twice a year is sufficient.

What happens if I enter my PIN wrong too many times?

After three wrong attempts, your iPhone will lock for one minute. After more wrong attempts, the lockout period increases — five minutes, then 15 minutes, then one hour. After many failed attempts, the phone may disable itself entirely and require you to connect to a computer or use Find My iPhone to restore it.

Is a six-digit PIN more secure than a four-digit PIN?

Yes. A six-digit PIN has one million possible combinations, while a four-digit PIN has only 10,000. The longer PIN makes it much harder for someone to guess your code. However, both are vulnerable if someone watches you type or if your phone is stolen and taken apart by someone with technical skills.

Can I use the same PIN for my iPhone and my SIM card?

No. Your iPhone PIN and your SIM PIN (carrier PIN) are separate codes managed by different systems. Your iPhone PIN unlocks the device; your SIM PIN protects your SIM card from being used in another phone. You can change them independently through different menus in Settings.