You can change your iPhone lock screen passcode at any time in the Settings app. You will need to know your current passcode before you can set a new one.
Steps
Follow these steps to replace your current passcode with a new one.
Change your iPhone passcode
0 of 8 done
Step 1 of 2: Settings screen
Settings
- (tap here)Face ID & Passcode
Choosing a strong passcode
When you tap Passcode Options above the keypad, your iPhone gives you four choices1:
6-Digit Numeric Code: Six numbers. This is the standard setting and a good choice for everyday use.
4-Digit Numeric Code: Four numbers. This is shorter to type, though it is easier for someone else to guess.
Custom Numeric Code: A number as long as you want.
Custom Alphanumeric Code: A mix of letters, numbers, and symbols. This is the hardest kind for a stranger to guess.
Write your new passcode down on a piece of paper and keep it in a safe place at home, away from your phone. That way, you can check it if you ever forget.
What stays the same after you change it
Your lock screen passcode only unlocks this iPhone. Changing it does not change your Apple Account password, which is the password you use for iCloud and the App Store.
Your saved website and app passwords stay safe on your phone and keep working as usual. Face ID or Touch ID will also keep working without any new setup.
What to do if you cannot change it
If you forgot your current passcode, you cannot change it in Settings. To use the phone again, you have to erase the iPhone using a computer or iCloud and set it up fresh3.
If you are changing your code because you are getting rid of your phone, do not just change the passcode. Follow the steps to erase your iPhone before selling or giving it away so none of your personal information is left behind.
If your iPhone is missing right now, you cannot change the passcode from afar, but you can lock your lost phone from another device so nobody can open it. You can also explore more ways to look after your phones and computers in our main guide.
Common questions
Why can’t I find Change Passcode in Settings?
It is further down the screen than many people expect. After you open Settings and tap Face ID & Passcode (or Touch ID & Passcode), you have to scroll down past the top list of green switches to see Change Passcode.
Do I have to enter my old passcode to make a new one?
Yes. Your iPhone asks for your current passcode twice during the process. This stops someone who picks up your unlocked phone from locking you out.
Will changing my passcode delete my photos or saved passwords?
No. Changing your passcode does not erase anything on your phone. Your photos, messages, apps, and saved website passwords all stay right where they are.
Is my iPhone passcode the same as my Apple Account password?
No. Your iPhone passcode is the code (usually four or six numbers) you type on the glass screen to unlock the phone. Your Apple Account password is a longer password made of letters and numbers that protects your iCloud account and purchases.