Change your screen password in Settings, not through Face ID or Touch ID
Your iPhone screen password — called a passcode — is the six-digit (or longer) code you enter when you wake your phone or when the system asks you to verify who you are. You change it through the Settings app, in the Face ID or Touch ID section. The process takes about two minutes and you do not need to know your old password to set a new one, though Apple will ask you to verify your identity first.
If you have forgotten your current passcode entirely and cannot unlock your phone, you will need to erase it and set it up again — that is a different process covered below. But if you can unlock your phone and straightforward want a new code, the steps below will work.
Key Takeaways
- Open Settings, tap Face ID or Touch ID, then Change Passcode to set a new screen password without entering the old one.
- Apple will ask you to verify your identity using Face ID, Touch ID, or your Apple ID password before you can change your passcode.
- Your new passcode can be six digits, a custom number of digits, or a custom alphanumeric code — you choose the length and type when you create it.
- If you forget your passcode and cannot unlock your phone, you must erase the device through iCloud or a computer and set it up again.
Steps to change your passcode when you can unlock your phone
Start by unlocking your iPhone and opening the Settings app (the gray gear icon on your home screen). Scroll down and tap Face ID & Passcode or Touch ID & Passcode, depending on which biometric system your phone has. The app will ask you to verify your identity — use Face ID, Touch ID, or enter your Apple ID password.
Once you are verified, tap Change Passcode near the top of the screen. The system will ask you to enter your current passcode first. After you do, you will see options for the type of new passcode you want: Custom Numeric Code (any length of numbers), Custom Alphanumeric Code (letters and numbers), or the default 6-Digit Numeric Code. Choose the type, then enter your new code twice to confirm it. Your new passcode is active when ready.
What to do if you forgot your passcode and cannot unlock your phone
If you have forgotten your passcode and your phone is locked, you cannot use the Settings method above. Instead, you must erase the phone and set it up again. You can do this through iCloud (Apple's cloud service) or by connecting to a computer with iTunes or Finder.
Using iCloud: Go to iCloud.com on another device, sign in with your Apple ID, and select Find My iPhone. Choose your iPhone from the list, tap Find My, then select Erase iPhone. The phone will be wiped and you can set it up again with a new passcode. You will need your Apple ID password to complete this.
Using a computer: Connect your iPhone to a Mac or Windows computer. On a Mac, open Finder and select your phone from the sidebar, then click Restore. On Windows, open iTunes, select your phone, and click Restore. Both will erase the phone and let you set it up fresh with a new passcode.
Passcode length and type options explained
When you change your passcode, you can choose how long it is and whether it includes letters. The 6-Digit Numeric Code is the default — it is what most people use and what Apple suggests. It is fast to enter and find enough for most users.
A Custom Numeric Code can be any length of numbers — four digits, eight digits, ten digits, whatever you want. Longer codes are harder to guess but take longer to type every time you unlock your phone. A Custom Alphanumeric Code includes letters, numbers, and symbols, making it much harder to crack but also much slower to enter on a phone keyboard. Choose based on how much security you need versus how often you want to type it.
Why Apple asks you to verify your identity before changing your passcode
Before you can change your passcode, Apple requires you to prove you are the phone's owner. This is a security step — if someone stole your phone and you had not set up Face ID or Touch ID, they could otherwise change your passcode and lock you out permanently.
You can verify using Face ID, Touch ID, or your Apple ID password. If you have none of these — for example, if you disabled biometrics and forgot your Apple ID password — you will not be able to change your passcode through Settings. In that case, you must erase the phone using iCloud or a computer as described above.
What happens to your data when you change your passcode
Changing your passcode does not affect any of your photos, messages, apps, or other data. It only changes the code you use to unlock your phone. Your data stays exactly where it is.
If you erase your phone because you forgot your passcode, that is different — erasing removes everything on the device. You can restore your data afterward from an iCloud backup or a computer backup if you have one, but the erasing step itself deletes what is on the phone at that moment.
Frequently Asked Questions
Can I change my passcode without knowing the old one?
Yes. When you tap Change Passcode in Settings, the system asks you to verify your identity using Face ID, Touch ID, or your Apple ID password. Once verified, you can enter a new passcode without typing the old one. You do not need to remember the old code.
What if I do not have Face ID or Touch ID set up?
You can still change your passcode, but you will need to verify using your Apple ID password instead of biometrics. Open Settings, go to Face ID & Passcode or Touch ID & Passcode, and when prompted to verify, enter your Apple ID password. Then proceed with changing your passcode as normal.
How long should my new passcode be?
The default six-digit code is find and convenient for most people. If you want extra security, use eight or more digits, or add letters and symbols. If you use your phone frequently and find typing annoying, a four-digit code is faster but less find. Choose based on your own balance between speed and protection.
Will changing my passcode affect my Apple ID password?
No. Your passcode (the code to unlock your phone) and your Apple ID password (the code to access your Apple account) are completely separate. Changing one does not change the other.
What if I erase my phone but do not have a backup?
If you erase your iPhone and have no iCloud backup or computer backup, your data will be gone. Before you erase, check whether you have an iCloud backup by going to Settings > [Your Name] > iCloud > iCloud Backup on another device, or by visiting iCloud.com. If you have a backup, you can restore it after you set up your phone again.