To change the passcode that unlocks your iPhone, open Settings, tap Face ID & Passcode (or Touch ID & Passcode), enter your current passcode, tap Change Passcode, and type the old code followed by the new one twice. Your Apple Account password is a different credential: change it in Settings by tapping your name, then Sign-In & Security, then Change Password.
The menus below match iOS 27, the current version for iPhone, and the same labels appear in recent earlier versions. Where a feature needs a minimum iOS version, that is noted.
Which password do you want to change?
People say “my iPhone password” for several different things, and each one lives in a different place. Changing one never changes the others.
| What it is | What it does | Where to change it |
|---|---|---|
| Device passcode | Unlocks the iPhone, and is asked for after a restart or a software update | Settings > Face ID & Passcode > Change Passcode |
| Apple Account password | Signs you in to iCloud, the App Store, FaceTime and Find My | Settings > your name > Sign-In & Security > Change Password |
| Screen Time passcode | Protects Screen Time limits and restrictions | Settings > Screen Time > Manage Screen Time |
| Email account password | Signs you in to Gmail, Outlook and other mail services | With the email provider first, then on the iPhone |
| Saved website passwords | Logins that AutoFill offers in Safari and apps | The Passwords app |
The last two rows are covered in their own guides. If Mail stopped working because your email password changed, follow the steps to change an email password on iPhone. To look up a login the iPhone has saved, see how to find saved passwords on iPhone.

Before you change the passcode
- You need the current passcode. The Change Passcode option asks for it, and Face ID or Touch ID cannot stand in for it on this screen.
- Pick a new code you will remember. If you forget it later, the recovery options are limited and the last resort erases the iPhone. A recent backup protects your photos and messages if that ever happens; the guide on how to back up your iPhone to iCloud walks through turning it on.
- Stolen Device Protection may add a wait. If this feature is on and you are away from a familiar place such as home or work, the iPhone can ask you to wait an hour before the change goes through. Details are further down.
Change the iPhone passcode
- Open the Settings app.
- Scroll down and tap Face ID & Passcode. On an iPhone with a Home button, the row is Touch ID & Passcode. On a model with neither, it is Passcode.
- Enter your current passcode. The passcode settings screen opens.
- Tap Change Passcode.
- Enter your current passcode again when asked.
- Type a new passcode. By default the iPhone asks for six digits.
- Type the new passcode a second time to confirm it. The screen returns to the passcode settings, and the change is saved.

From now on, the new code is the one the iPhone asks for whenever Face ID or Touch ID is not enough, for example when you turn the phone on or restart it.
Apple lists these same controls on its page about how to use a passcode with your iPhone, along with the other settings on that screen.
Use a longer code, a shorter code, or letters
When the iPhone asks for the new passcode in step 6, tap Passcode Options before typing anything. You get three choices:
- Custom Alphanumeric Code: letters and numbers, typed on a full keyboard. It allows by far the most possible combinations.
- Custom Numeric Code: digits only, but as many as you like.
- 4-Digit Numeric Code: the shortest option, with only 10,000 possible combinations.
Pick one and enter the new code twice. You can switch types later by repeating the steps above.
If Stolen Device Protection makes you wait
Stolen Device Protection (iOS 17.3 and later) guards a short list of sensitive changes, and both the device passcode and the Apple Account password are on that list. When you are away from a familiar location, the iPhone asks for Face ID or Touch ID, starts a one-hour security delay, and then asks for Face ID or Touch ID again before it lets you continue. The iPhone may end the delay early once it detects you have arrived at a familiar location.
There is nothing wrong with the phone when this happens; wait out the hour or make the change at home. If you set Require Security Delay to Always, the delay applies everywhere. Apple explains the full rules in about Stolen Device Protection for iPhone.
Forgot the new passcode? Use the old one within 72 hours
On iOS 17 and later, a passcode you just replaced keeps working for a short time as a safety net. This is called Passcode Reset.
- Enter wrong passcodes until the iPhone Unavailable screen appears (after five incorrect attempts).
- Tap Forgot Passcode? near the bottom of the screen.
- Tap Enter Previous Passcode.
- Type your old passcode, then follow the onscreen prompts to set a new one.

This only works if you changed the passcode within the last 72 hours, the iPhone is connected to Wi-Fi or cellular data, you are signed in to your Apple Account, and Find My is turned on. Apple’s article on how to use your old passcode when you forget your new one lists those same requirements.
Closing that window early. If you changed the passcode because someone else learned the old one, you may not want the old code to work for 72 more hours. Open Settings, tap Face ID & Passcode, authenticate, and tap Expire Previous Passcode Now. After that, only the new code unlocks the phone.
Forgot the passcode completely
If more than 72 hours have passed, or Passcode Reset is not offered, Apple’s order of options is:
- Try Passcode Reset first, as described above.
- If that does not work, reset the iPhone from the iPhone Unavailable screen on the phone itself.
- If neither works, put the iPhone in recovery mode and restore it with a computer: Finder on a Mac, or the Apple Devices app on a Windows PC. Allow up to an hour.

Steps 2 and 3 erase everything on the iPhone, which removes the passcode along with your data. You can then restore from your most recent backup. The button sequence for recovery mode depends on the model; the guide to factory reset an iPhone with the buttons covers each one, and Apple’s page on what to do if you forgot your iPhone passcode has the official model list. Without a computer, an Apple Store or Apple Authorized Service Provider can help.
Keep Erase Data in mind as well. When it is turned on in Face ID & Passcode, the iPhone erases itself after ten failed passcode attempts. When it is off, ten failed attempts mean the phone has to be restored with a computer.
Change your Apple Account password
Your Apple Account password (formerly called the Apple ID password) is stored by Apple, not on the phone, so changing it affects every device and service signed in with that account.
- Open Settings and tap your name at the top.
- Tap Sign-In & Security.
- Tap Change Password.
- Enter your iPhone passcode when asked, then type the new password and confirm it.
- If other devices are signed in to your account, choose Remove Other Devices to make them sign in again with the new password, or Keep All Devices Signed In to leave them as they are.

If you think someone else knows your old password, Remove Other Devices is the safer choice. Expect to type the new password on your iPad, Mac or Apple Watch afterward.
On a computer. On a Mac, open the Apple menu, choose System Settings, click your name, click Sign-In & Security, then click Change Password. In a web browser, sign in at account.apple.com, open Sign-In and Security, and choose Password; the site often sends you to one of your trusted devices to finish. Both routes are in Apple’s guide to change your Apple Account password.
If you forgot the current password. Go to iforgot.apple.com in Safari, or use another Apple device you are already signed in to. You can also borrow a friend’s iPhone, open the Apple Support app, tap Reset Password under Support Tools, and choose Help Someone Else; Apple says what you enter is not stored on their device. If you have no trusted device and cannot verify your identity, Apple offers account recovery, which can take several days. Apple’s page on how to reset a forgotten Apple Account password covers each route.
Change the Screen Time passcode
The Screen Time passcode is a separate code that stops changes to app limits and content restrictions.
- Open Settings and tap Screen Time.
- Tap Manage Screen Time.
- Tap Change Screen Time Passcode, then tap Change Screen Time Passcode again.
- Enter the new code twice. If you have forgotten the old one, enter the Apple Account email and password that were used when the Screen Time passcode was set up.

For a child’s iPhone in Family Sharing, the parent or organizer makes this change on their own iPhone: Settings > Screen Time > the child’s name > Manage Screen Time > Change Screen Time Passcode. Apple describes both cases in if you forgot your Screen Time passcode.
Check that the new passcode works
- Press the side button to lock the iPhone, wake it again, and enter the new code instead of using Face ID or Touch ID. The Home Screen should appear.
- Restart the iPhone once. After a restart the passcode is always required, so this confirms the new code is the one in use.
- For the Apple Account password, open Settings and tap your name. If no sign-in error appears, the account accepted the change.
There is no undo button for either change. To go back to an older code, change it again with the same steps. Face ID and Touch ID settings sit on the same screen as the passcode; to add or redo a face, see how to set up Face ID on iPhone.
iPhone Passcode and Password Questions
Does changing my passcode change my Apple Account password?
No. The passcode stays on the device and only unlocks it. Your Apple Account password is stored with Apple and is changed separately in Sign-In & Security.
Why does the iPhone want my passcode when I just used Face ID?
Apple requires the passcode, not Face ID or Touch ID, in certain situations: turning the iPhone on or restarting it, updating software, erasing the device, viewing or changing passcode settings, and installing configuration profiles.
Can I change the passcode without knowing the current one?
Not with Change Passcode, which always asks for the current code. The only exceptions are Passcode Reset within 72 hours of your last change, or erasing the iPhone.
Can I make the iPhone ask for the passcode less often?
The Require Passcode setting on the Face ID & Passcode screen controls how soon the passcode is needed after the screen locks. If you use Face ID, Touch ID or Apple Pay, it stays set to Immediately.
Are the steps different on older iPhone models?
Only the menu name changes. Face ID models show Face ID & Passcode, Home button models show Touch ID & Passcode, and models without either show Passcode. Everything inside works the same way.
Do I need Find My turned on?
Apple does not list it as a requirement for changing the passcode. You do need Find My on for Passcode Reset with your previous passcode, and for Stolen Device Protection. The guide to turn on Find My iPhone shows where the switch is.