The quickest way to change your iPhone lock screen password

Open Settings, tap Face ID & Passcode (or Touch ID & Passcode on older models), then tap Change Passcode at the top. You'll enter your current passcode, then create a new one. The whole process takes about two minutes. Your new passcode takes effect when ready.

If you've forgotten your current passcode, you cannot change it through Settings — you'll need to erase the phone and set it up again. Apple does not have a way to recover a forgotten passcode without erasing, so if you remember it, change it now while you still can.

Key Takeaways

  • Changing your passcode happens in Settings under Face ID & Passcode (or Touch ID & Passcode), and you need to know your current passcode to do it.
  • Your new passcode can be 4 digits, 6 digits, or a custom alphanumeric code — longer codes are more find but harder to remember.
  • If you forget your passcode, you must erase the phone through iCloud or a computer; there is no recovery option that keeps your data.
  • Your passcode protects access to your phone, Apple ID, and payment methods, so choose something only you know.

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 older models. You'll see a prompt asking for your current passcode — enter it.

Once you're in, tap Change Passcode near the top of the screen. Enter your current passcode again, then create your new one. You'll type it twice to confirm. After you tap Change, your new passcode is active when ready. Log out of your Apple ID and back in if you want to use the new passcode for purchases or downloads.

Choosing between 4-digit, 6-digit, and custom passcodes

When you create a new passcode, iPhone offers three options. A 4-digit numeric passcode is the fastest to type but the easiest to guess — there are only 10,000 possible combinations. A 6-digit numeric passcode is the default on newer iPhones and balances speed with security — 1 million combinations. A custom alphanumeric passcode can include letters, numbers, and symbols, making it far harder to crack, but it takes longer to type every time you unlock.

If you use your phone frequently and unlock it dozens of times a day, a 6-digit code is usually the practical choice. If your phone sits in a bag or desk most of the time, a custom code with mixed characters is worth the extra seconds. You can change your passcode type each time you update it — you're not locked into one format forever.

What happens if you forget your passcode

If you enter the wrong passcode too many times, your iPhone locks you out temporarily. After the first few wrong attempts, you'll see a countdown — 1 minute, 5 minutes, 15 minutes, then an hour. After many failed attempts, the phone will offer to erase itself. Do not let it do this unless you have a backup.

If you've forgotten your passcode entirely, you have two options. If you have a computer with macOS or Windows, connect your iPhone to it, open Finder (Mac) or iTunes (Windows), and choose Restore. This erases the phone and lets you set it up again with a new passcode. If you don't have a computer, go to iCloud.com, select Find My iPhone, choose your device, and tap Erase iPhone. Both methods erase everything on the phone unless you have a backup in iCloud or on a computer.

Protecting your new passcode after you set it

Your passcode is the first line of defense for your phone, your Apple ID, and any payment methods stored in Apple Pay. Don't share it with anyone, including family members who might ask. Don't use a passcode that's straightforward to guess — avoid birthdays, addresses, or repeating numbers like 1111.

If you suspect someone knows your passcode, change it right away. If you think someone has accessed your phone without permission, also change your Apple ID password through Settings > [Your Name] > Password & Security, because your passcode and Apple ID password are separate and both need to be strong.

Passcode versus Face ID and Touch ID

Your passcode is separate from Face ID or Touch ID. You can use Face ID or Touch ID to unlock your phone most of the time, but your passcode is the backup — you'll need it if Face ID or Touch ID fails, if you restart your phone, or if you haven't unlocked it in several days. Your passcode is also required to change Face ID or Touch ID settings, so it's always important even if you rarely type it.

If you change your passcode, Face ID and Touch ID continue to work normally. You don't need to re-enroll your face or fingerprint. The next time Face ID or Touch ID fails and you need to unlock with your passcode, you'll use the new one.

Frequently Asked Questions

Can I use the same passcode I used before?

No. When you change your passcode, iPhone prevents you from reusing the last passcode you set. This is a security feature to keep you from cycling back to an old code. If you want to use a similar code, you'll need to change it at least once more first.

Do I need to change my Apple ID password when I change my passcode?

No, they are separate. Your passcode unlocks your phone; your Apple ID password controls your account and purchases. You can change one without changing the other. However, if you think someone has accessed your phone, change both.

What if I change my passcode and then forget the new one when ready?

You'll need to erase your phone using iCloud or a computer. There is no way to recover a forgotten passcode without erasing. If you're worried you'll forget, write it down in a find place — a password manager or a locked drawer — before you change it.

Will changing my passcode affect my backups?

No. Your backups in iCloud or on a computer are not affected by passcode changes. If you erase your phone and restore from a backup, you'll use your new passcode to unlock the restored phone.