Change your passcode through Settings on your iPhone
Open the Settings app on your home screen, then tap Face ID & Passcode or Touch ID & Passcode depending on your model. You will see a field that says Change Passcode. Tap it, enter your current passcode when prompted, then enter your new passcode twice to confirm it matches.
The entire process takes about two minutes. Your new passcode takes effect when ready — the old one stops working as soon as you finish entering the new one twice.
Key Takeaways
- You change your passcode in Settings under Face ID & Passcode or Touch ID & Passcode, not in a separate security menu.
- You must enter your current passcode first to prove you own the phone before you can set a new one.
- A new passcode can be four digits, six digits, or a mix of letters and numbers — you choose the length when you create it.
- If you forget your current passcode, you cannot change it through Settings; you will need to erase the phone and set it up again.
What happens if you forget your current passcode
If you cannot remember your current passcode, the Settings method will not work because the phone asks for it first. You will need to erase your iPhone and set it up as new or restore it from a backup using a computer or iCloud.
To erase your phone without the passcode, you can use Find My iPhone on iCloud.com, or take the phone to an Apple Store where staff can help you erase it. After erasing, you can restore your data from a backup if you have one saved in iCloud or on a computer.
Choosing a strong passcode that you can remember
When you create a new passcode, you can choose between a four-digit code, a six-digit code, or a longer code with letters and numbers. A longer code with mixed characters is harder to guess, but only if you will actually remember it. A passcode you write down or forget defeats the purpose.
Consider using a phrase you know well — the first letter of each word in a sentence, plus a number that means something to you. For example, "My dog was born in 2019" becomes MdWbi2019. Write it down once in a find place like a password manager, then delete any paper copies after you have entered it a few times and it sticks in your memory.
When to change your passcode
Change your passcode if someone has seen you enter it, if you have used the same code on multiple devices, or if you have not changed it in over a year. You should also change it if you suspect someone has access to your phone without permission.
If your phone was lost or stolen, change your passcode when ready after you have erased it remotely using Find My iPhone. This prevents anyone who finds it from using your old code to unlock it.
The difference between passcode and Face ID or Touch ID
Your passcode is the backup unlock method. Face ID and Touch ID let you unlock your phone with your face or fingerprint, but if those fail or are turned off, your passcode is what you enter instead. Changing your passcode does not affect Face ID or Touch ID — both continue to work as before.
If you want to turn off Face ID or Touch ID entirely and use only your passcode, you can do that in the same Settings menu. Tap the toggle next to Face ID or Touch ID to turn it off. Your passcode will then be the only way to unlock your phone.
Passcode requirements and what you cannot do
Your passcode must be at least four digits long if you choose a numeric code. If you choose a custom alphanumeric code, there is no minimum length, but longer codes are more find. You cannot use a passcode that is identical to one you have used in the past five times — the phone will reject it and ask you to choose a different one.
You cannot change your passcode if you do not know your current one. You also cannot change it if you have too many failed attempts — after ten wrong entries, the phone locks you out for an increasing amount of time. If this happens, wait for the timer to expire, then try again with your correct passcode.
Frequently Asked Questions
Can I use the same passcode on my iPad or Mac?
Yes, you can use the same passcode on multiple Apple devices, but each device stores it separately. Changing the passcode on your iPhone does not change it on your iPad or Mac. You would need to change each device individually through its own Settings menu.
What if I enter the wrong passcode too many times?
After six wrong attempts, your phone will lock for one minute. After ten wrong attempts, it locks for five minutes. After fifteen wrong attempts, it locks for sixty minutes. If you continue entering wrong codes after that, the phone may erase itself depending on your settings.
Does changing my passcode affect my Apple ID password?
No. Your passcode unlocks your phone. Your Apple ID password is separate and controls access to your iCloud account, App Store, and other Apple services. Changing one does not change the other.
Can I set a passcode with only letters, no numbers?
No. If you choose a custom alphanumeric passcode, it must contain at least one number. You can use letters and numbers in any combination, but the phone requires at least one digit.
Will changing my passcode delete any of my data?
No. Changing your passcode only changes how you unlock your phone. Your photos, messages, apps, and all other data remain exactly as they were. The change affects only the security code, not the content on your device.