Where to find the password settings on your iPhone
Open the Settings app — the gray icon with gears that sits on your home screen. Scroll down until you see Face ID & Passcode or Touch ID & Passcode, depending on your iPhone model. Tap it. You will be asked to enter your current passcode if you already have one, or to create one if you do not.
If you do not see either option, your iPhone is older and uses a different name. Look for Passcode instead. The steps that follow are the same.
Key Takeaways
- A passcode is a four- or six-digit number (or longer custom code) that unlocks your iPhone and protects your data.
- You set or change your passcode in Settings under Face ID & Passcode or Touch ID & Passcode, depending on your model.
- iPhone defaults to a six-digit passcode, but you can choose four digits or create a custom alphanumeric code if you prefer.
- If you forget your passcode, you cannot retrieve it — you will need to erase the iPhone and set it up again.
- Your passcode is separate from your Apple ID password and protects your phone even if someone knows your Apple account details.
Setting a new passcode for the first time
If you have never set a passcode, tap Turn Passcode On. The phone will ask you to choose between a six-digit code, a four-digit code, or a custom alphanumeric passcode. Most people choose six digits because it balances security and speed.
Enter your chosen code twice — once to set it, once to confirm. Make sure you remember it. Write it down somewhere safe if you need to, but do not store it in your phone's notes or anywhere obvious. After you confirm, your passcode is active when ready.
Changing a passcode you already have
If you already have a passcode and want to change it, open Settings, go to Face ID & Passcode (or Touch ID & Passcode), and tap Change Passcode. You will be asked to enter your current passcode first. This is a security step to make sure you are the owner of the phone.
After you enter the old code, you will see the same options as a new user: six digits, four digits, or custom. Choose your format, then enter your new code twice to confirm. The old passcode stops working when ready.
Choosing between four digits, six digits, and custom codes
A four-digit passcode is faster to type but easier to guess. A six-digit passcode is the iPhone default and offers better security without being too slow. A custom alphanumeric passcode can include letters, numbers, and symbols, making it much harder to crack — but it is also slower to type every time you unlock your phone.
For most people, six digits is the right choice. Use four digits only if you unlock your phone dozens of times a day and do not store sensitive information on it. Use a custom code only if you are protecting something high-value and do not mind the extra time at unlock.
What happens if you forget your passcode
There is no way to recover a forgotten passcode. Apple cannot retrieve it, and there is no backup copy. If you forget it, you will need to erase your iPhone completely and set it up again from scratch or from a backup.
To erase a locked iPhone, you will need to use a computer with iTunes or Finder, or use iCloud's Find My iPhone feature. Both methods wipe the phone and let you start over. This is why writing down your passcode somewhere safe — separate from your phone — is worth doing.
How your passcode differs from your Apple ID password
Your passcode unlocks your physical iPhone. Your Apple ID password unlocks your Apple account and lets you read apps, access iCloud, and manage your subscriptions. They are completely separate.
Someone who knows your Apple ID password cannot unlock your iPhone without the passcode. Someone who steals your iPhone cannot access your Apple account without the password. This separation is intentional — it means you have two layers of protection instead of one.
Frequently Asked Questions
Can I use the same passcode on multiple iPhones?
Yes. Each iPhone stores its own passcode separately, so you can use the same code on all your devices or different codes on each one. There is no rule either way — it is your choice.
What if I enter my passcode wrong too many times?
After six wrong attempts, your iPhone will lock you out for one minute. After ten wrong attempts, it locks for five minutes. After fifteen wrong attempts, it locks for 60 minutes or longer. This is a security feature to slow down someone trying to guess your code.
Does my passcode protect my data if my iPhone is stolen?
Your passcode prevents someone from using your phone or accessing most of your data. However, it does not protect data stored in iCloud — for that, your Apple ID password is the barrier. Use a strong, unique Apple ID password as well.
Can I set a passcode that is just my birthday or a repeating number?
iPhone will let you set any combination of digits you want, even weak ones like 1111 or 1234. It will warn you that the code is straightforward to guess, but it will not stop you. For security, choose something harder to predict.
What if I want to turn off my passcode?
Open Settings, go to Face ID & Passcode, enter your current passcode, and tap Turn Passcode Off. Your iPhone will ask you to confirm because removing your passcode leaves your phone unprotected. You can turn it back on anytime.