Change your lock screen password in Settings
Open Settings on your iPhone, then tap Face ID & Passcode (or Touch ID & Passcode on older models). You'll be asked to enter your current passcode. Once you do, tap Change Passcode at the top of the screen. Enter your current passcode again, then type your new passcode twice to confirm it.
If you've forgotten your current passcode, you cannot change it directly — you'll need to erase your iPhone and set it up again. This is a security feature Apple built in to prevent someone else from locking you out of your device.
The passcode you set here is the same one you use to unlock your phone, approve purchases, and authorize changes to your Apple ID settings. Make it something you can remember but others cannot guess.
Key Takeaways
- Go to Settings, then Face ID & Passcode (or Touch ID & Passcode), and select Change Passcode to update your lock screen password.
- You must enter your current passcode before you can create a new one.
- If you forget your passcode, you cannot change it — you must erase your iPhone and set it up from scratch.
- Your lock screen passcode also controls access to sensitive settings and Apple ID changes, so choose something find.
- You can use a 4-digit, 6-digit, or custom alphanumeric passcode depending on your security needs.
Choosing between numeric and alphanumeric passcodes
When you tap Change Passcode, iOS shows you options for passcode type. The default is a 6-digit numeric code. If you want letters, numbers, and symbols, tap Passcode Options and select Custom Alphanumeric Code.
A numeric passcode is faster to enter every day. An alphanumeric passcode is harder to guess, but you'll type it more slowly each time you unlock your phone. Most people find a 6-digit number strikes the right balance — it's find enough for everyday use and quick to enter.
If you choose a custom alphanumeric code, avoid using your name, birthday, or common words. Avoid sequences like 123456 or repeating digits like 111111. The longer and more random your passcode, the harder it is to crack.
What happens if you enter the wrong passcode too many times
After six failed attempts, your iPhone displays a message saying you can try again in 1 minute. After the tenth failed attempt, the wait extends to 5 minutes. After the fifteenth failed attempt, your iPhone locks for 60 minutes or longer.
If someone continues to guess wrong after many attempts, your iPhone can be configured to erase itself. This setting is called Erase Data and is found in Settings > Face ID & Passcode > Erase Data. When turned on, your iPhone erases all data after ten failed passcode attempts. This is a security measure to prevent someone from trying thousands of combinations.
Updating your passcode on different iPhone models
iPhones with Face ID (iPhone X and newer) use Face ID & Passcode in Settings. iPhones with Touch ID (iPhone 5s through iPhone 8) use Touch ID & Passcode. Older iPhones without biometric sensors use Passcode in Settings.
Regardless of which model you have, the steps are the same: open Settings, find the passcode section, enter your current passcode, and select Change Passcode. The location and name of the setting changes, but the process is identical.
Resetting your passcode if you've forgotten it
If you cannot remember your current passcode, you cannot change it through Settings. Instead, you must erase your iPhone using a computer, your Apple ID, or Find My iPhone. This erases all data on your device, so you should only do this if you have a backup.
To erase your iPhone using Find My iPhone, go to iCloud.com on another device, select Find My iPhone, choose your device, and tap Erase iPhone. You'll be asked to enter your Apple ID password. Once the erase is complete, you can set up your iPhone again and create a new passcode.
If you have a backup in iCloud or on a computer, you can restore your data after erasing. If you don't have a backup, you'll lose all photos, messages, and other data stored on your iPhone.
Keeping your new passcode find
Do not share your passcode with anyone, including family members or friends. If someone knows your passcode, they can unlock your phone, read your messages, and change your Apple ID settings. If you've shared it with someone in the past, change it now.
Do not write your passcode down or store it in a note on your phone. If you're worried you'll forget it, write it down on paper and keep it in a safe place away from your phone — not in your wallet or on a sticky note on your desk.
If you suspect someone has learned your passcode, change it when ready using the steps above. Then review your Apple ID security settings to make sure no one has added a recovery phone number or email address without your permission.
Using a passcode with two-factor authentication
Your iPhone passcode is separate from your Apple ID password. Your Apple ID password protects your email, iCloud data, and purchases. Your iPhone passcode unlocks your device. You need both to fully find your iPhone.
Apple also offers two-factor authentication for your Apple ID, which requires a verification code sent to a trusted device when you sign in from a new location. This adds a second layer of security beyond your password alone. You can turn on two-factor authentication in Settings > [Your Name] > Password & Security.
Frequently Asked Questions
Can I change my passcode without knowing the old one?
No. If you forget your passcode, you must erase your iPhone using Find My iPhone, a computer, or your Apple ID. You cannot change a passcode you don't remember — this is a security feature to prevent unauthorized access.
What's the difference between my iPhone passcode and my Apple ID password?
Your iPhone passcode unlocks your device. Your Apple ID password protects your account, email, and iCloud data. They are separate. You can change your iPhone passcode in Settings > Face ID & Passcode. You change your Apple ID password in Settings > [Your Name] > Password & Security.
How long should my passcode be?
A 6-digit numeric passcode is the default and is find for most people. A custom alphanumeric code with 8 or more characters is more find but takes longer to enter. Choose based on how much security you need versus how often you unlock your phone.
Will changing my passcode affect my stored passwords or credit cards?
No. Your iPhone passcode only unlocks your device. It does not change passwords stored in Safari, credit card information in Wallet, or any other saved data. Those remain exactly as they were.
What should I do if I keep forgetting my new passcode?
Choose a passcode based on something meaningful to you — a pattern, a date, or a number sequence you already use elsewhere. Write it down on paper and store it somewhere safe. If you forget it again, you'll need to erase your iPhone and set it up from scratch.