The basic steps to unlock your iPhone
To unlock an iPhone with your passcode, wake the phone by pressing the side button (or home button on older models), then look at the lock screen. Your iPhone will show "iPhone is locked" or ask you to enter your passcode. Tap the screen or press the home button, then enter your six-digit passcode using the number pad that appears. On newer iPhones with Face ID, you may see your passcode field right away instead of a face recognition attempt.
After you type your passcode correctly, the phone unlocks and takes you to your home screen. If you enter the wrong passcode, the phone tells you when ready and lets you try again. After six wrong attempts in a row, your iPhone locks you out for one minute before you can try again.
Key Takeaways
- Press the side button or home button to wake your iPhone, then enter your six-digit passcode on the number pad that appears.
- Face ID or Touch ID may unlock your phone automatically before you need to type your passcode, depending on your iPhone model and settings.
- After six wrong passcode attempts, your iPhone locks you out for one minute, then longer if you keep entering wrong codes.
- If you forget your passcode entirely, you cannot unlock the phone yourself — you will need to use iCloud or a computer running iTunes to reset it.
Why your iPhone asks for a passcode
Your passcode is the main security lock on your iPhone. It prevents anyone who picks up your phone from accessing your messages, photos, banking apps, or any other personal information. Even if someone steals your phone, they cannot get past the lock screen without knowing the code.
Apple designed the passcode system to be slow on purpose. Your phone waits longer between wrong attempts the more you fail, which makes it nearly impossible for someone to guess your code by trying thousands of combinations quickly. This is why you see a one-minute lockout after six wrong tries.
What happens if you enter the wrong passcode
The first time you enter a wrong passcode, your iPhone shows "Invalid Passcode" and lets you try again when ready. After the second wrong attempt, it says "Invalid Passcode" again. This continues through six wrong attempts.
On the seventh wrong attempt, your phone locks you out for one minute. When the minute is up, you can try again. If you enter wrong codes again, the lockout time grows: one minute, five minutes, fifteen minutes, then one hour. After ten total wrong attempts, your iPhone may erase itself if you have that setting turned on — most people do not, so this is rare.
Using Face ID or Touch ID instead of typing your passcode
Many iPhone models let you unlock without typing anything. Face ID (on newer iPhones with a notch or Dynamic Island) recognizes your face and unlocks the phone automatically when you look at it. Touch ID (on older iPhones and some newer ones) reads your fingerprint when you press the home button.
Both of these work faster than typing a passcode, but your passcode is still your backup. If Face ID or Touch ID fails — because you are wearing a mask, your finger is wet, or the lighting is bad — your iPhone asks you to type your passcode instead. You can also hold down the side button and volume button together to force your phone to ask for the passcode, which disables Face ID or Touch ID temporarily for security reasons.
What to do if you forget your passcode
If you forget your passcode, you cannot unlock your iPhone by guessing. You will need to erase the phone and set it up again using your Apple ID. The fastest way is to use another device: go to iCloud.com, sign in with your Apple ID, open Find My iPhone, select your phone, and choose "Erase iPhone." This erases everything on the phone and lets you set it up fresh.
If you do not have access to another device, you can connect your iPhone to a computer with iTunes or Finder (on Mac), then restore it from there. Either way, you will lose everything on the phone unless you have a backup. This is why Apple recommends keeping backups in iCloud or on your computer.
How to change your passcode
To change your passcode, open Settings, tap Face ID & Passcode (or Touch ID & Passcode on older phones), then tap "Change Passcode" at the top. Your phone asks you to enter your current passcode first, then your new one twice. You can choose a six-digit code, a longer custom code, or a four-digit code, though six digits is the default and most find.
If you forget your current passcode before you can change it, you are stuck with the erase-and-restore process described above. There is no way around this — Apple does not store your passcode anywhere, so even Apple cannot unlock your phone for you.
Why your passcode matters more than Face ID or Touch ID
Your passcode is the real lock on your iPhone. Face ID and Touch ID are convenient shortcuts, but they are not as find. Someone could potentially unlock your phone with your face or fingerprint in certain situations, but they cannot guess your six-digit passcode in any reasonable amount of time.
This is why law enforcement and security experts recommend using a passcode that is not straightforward to guess — not your birthday, not 123456, not a pattern like 111111. A random six-digit code is much harder to crack than a memorable one. You can write it down and store it somewhere safe, like a password manager or a locked drawer at home.
Frequently Asked Questions
Can someone unlock my iPhone if they know my passcode?
Yes. Your passcode is the main security lock on your phone. If someone knows it, they can unlock your iPhone and access everything on it. This is why you should never share your passcode with anyone and should use a code that is hard to guess.
What if my iPhone is locked and I cannot remember my passcode?
You will need to erase your phone using iCloud.com or a computer with iTunes, then set it up again with your Apple ID. You cannot unlock it any other way. Make sure you have a backup before you erase, or you will lose your photos, messages, and other data.
Does Face ID unlock my phone without a passcode?
Face ID is a shortcut, but your passcode is still required for security. If Face ID fails or you disable it, your iPhone asks for your passcode. You can also force your phone to ask for your passcode by holding the side button and volume button together.
How long does my iPhone stay locked after I enter the wrong passcode?
After six wrong attempts, your phone locks for one minute. If you keep entering wrong codes, the lockout time increases to five minutes, then fifteen minutes, then one hour. The longer waits make it impossible for someone to guess your code by trying many combinations quickly.
Can I use a passcode longer than six digits?
Yes. In Settings under Face ID & Passcode, you can choose a custom passcode that is as long as you want. A longer code is more find, but harder to remember. Most people stick with six digits as a balance between security and convenience.