Jordan let a friend borrow their iPhone for a quick call and read out the passcode to do it. Now Jordan wants a new one, and fast. If that sounds like you, the fix takes about a minute: open Settings > Face ID & Passcode (or Touch ID & Passcode on iPhone Duo or iPhone SE), enter your current passcode, tap Change Passcode, and type the new one twice. If you changed it because you think someone got in, how to check if your iPhone is hacked covers the other checks to do. Once you’ve picked a new password, saving passwords on iPhone explains how to store it for AutoFill. A new password helps after a leak, and protecting your iPhone from hackers covers the other protections that keep hackers out. Turning the code off entirely is a different choice, and the guide on how to remove a passcode covers what you give up.
“Password” on an iPhone can mean two different things, so this page covers both separately. The passcode is the code you type on the Lock Screen to unlock the phone. Your Apple Account password is the password for your Apple account (formerly called Apple ID), used for iCloud, the App Store, and Find My. Changing one does not change the other. Everything below is written for iOS 27.
Which one do you need to change?
- Someone has seen you unlock your phone, or you want a stronger code: change the passcode (first method).
- You got a sign-in alert you don’t recognize, or someone knows the password you use for iCloud: change the Apple Account password (second method).
- A partner, ex, or roommate knew both: change both, starting with the passcode, because the passcode can be used on your iPhone to approve an Apple Account password change.
Passwords you saved for websites and apps are a third thing again. Those live in the Passwords app, and you can learn how to view and edit saved passwords on iPhone separately.
Before you start
- Know your current passcode. You need it to open the passcode settings. If you have forgotten it, skip to the section on forgotten codes below, because these steps will not work.
- Plan the new code before you tap. Pick something you will remember tomorrow morning. Avoid 123456, repeated digits, and birthdays.
- Stolen Device Protection may add a wait. This is an iPhone security feature that adds extra checks when your phone is away from familiar places like home or work. If it is on and you are somewhere unfamiliar, iPhone asks for Face ID or Touch ID, then starts a Security Delay of about one hour, then asks for Face ID or Touch ID again before it lets you change the passcode or Apple Account password. At a familiar location these extra steps are not required. It is set at Settings > Face ID & Passcode (or Touch ID & Passcode) > Stolen Device Protection, and Apple explains the details in its Stolen Device Protection overview.
Method 1: Change your iPhone passcode
Use this method for the Lock Screen code. The menu name depends on how your iPhone unlocks: iPhone models with Face ID show Face ID & Passcode, while iPhone Duo and iPhone SE show Touch ID & Passcode.
- Open the Settings app.
- Scroll down and tap Face ID & Passcode or Touch ID & Passcode.
- Enter your current passcode. The screen opens with options such as Turn Passcode Off and Change Passcode.
- Tap Change Passcode. If you are asked for your current passcode again, enter it.
- On the new-passcode screen, either type a new 6-digit code, or tap Passcode Options first to pick a different type (see the table below).
- Enter the new passcode a second time to confirm it. You return to the passcode settings screen, and the new code is active straight away.
Lock your iPhone with the side button, then unlock it using the new code. If it works, you are done. Face ID and Touch ID keep working as before; you don’t need to set them up again.
Choosing a passcode type
Tapping Passcode Options on the new-passcode screen lets you swap the standard 6-digit code for another format.
| Option | What you type | Good for |
|---|---|---|
| 6-digit code (default) | Six numbers | Most people; quick to type |
| Custom Numeric Code | Numbers only, any length you choose | A longer code that still uses the number pad |
| Custom Alphanumeric Code | Letters, numbers, and symbols | The strongest protection, with a full keyboard |
Apple says Custom Alphanumeric Code and Custom Numeric Code are the most secure choices. On some versions the menu may also list 4-Digit Numeric Code, which is the weakest option and best avoided. Setting any passcode also turns on data protection, which encrypts the data stored on your iPhone, so a longer code makes that protection harder to break. Apple’s Set a passcode page in the iPhone User Guide lists every option on this screen.
Lock out the old passcode right away
After a change, your previous passcode keeps working for 72 hours as a safety net, in case you forget the new one. That is helpful for you, but not if the person who saw your old code still has access to your phone. To end that window early:
- Go to Settings > Face ID & Passcode (or Touch ID & Passcode) and enter your new passcode.
- Tap Expire Previous Passcode Now, and confirm if iPhone asks you to.
Do this only once you are sure you remember the new code, because the old one can no longer rescue you. Apple describes the option in its note on expiring your previous passcode.
Method 2: Change your Apple Account password
Choose this method if your account password, not the Lock Screen code, may be known to someone else. You need to be signed in to your Apple Account on the iPhone.
- Open Settings and tap your name at the top.
- Tap Sign-In & Security.
- Tap Change Password.
- If asked, enter your iPhone passcode. If Stolen Device Protection starts a Security Delay, come back when the timer ends.
- Type your new password, then type it again to verify it, following the requirements shown on screen.
- Tap Change, or follow any remaining prompts.
- If other devices are signed in with your account, choose Remove Other Devices or Keep All Devices Signed In. Pick Remove Other Devices if you think someone else has your password; your own Mac or iPad may then ask you to sign in again with the new password.
You may see the change take effect on your other devices as sign-in prompts. That is expected. Apple’s page on changing your Apple Account password also covers doing it from a Mac (System Settings > your name > Sign-In & Security > Change Password) or from the web if you don’t have a trusted device nearby.
Managing a child’s account through Family Sharing? A parent can reset it from Settings > Family > the child’s name > Change [name]’s Password. If the child’s account has Screen Time turned on, you may need to tap Personal Information first.
If the new password won’t take
- iPhone asks for Face ID instead of your passcode, then won’t let you continue: Stolen Device Protection is active and you are away from a familiar location. Complete the Face ID or Touch ID check, wait for the Security Delay to finish, then authenticate again. The delay can end early if you arrive at a familiar location.
- A Security Delay appeared and you are at home: iPhone learns familiar places through Significant Locations, which Stolen Device Protection relies on, and Apple notes it can take a while to recognize familiar locations on a new or restored iPhone. Also check whether Require Security Delay is set to Always in the Stolen Device Protection settings, because then the delay applies everywhere. Wait out the hour, then try again.
- The passcode settings won’t open with your code: make sure you are typing the current code. If you changed it recently and the new one is not working, see the 72-hour tip below.
- The two entries “don’t match”: type slowly. If you switched to an alphanumeric code, check that Caps Lock is not on.
- The Apple Account password change fails: check your internet connection, then try again. If the screen still freezes, restart your iPhone (here’s how to restart any iPhone model) and repeat the steps.
- You forgot the new passcode within 72 hours: on the Lock Screen, keep entering codes until you see Forgot Passcode?, tap it, then choose Enter Previous Passcode and set a fresh code.
- You forgot it after 72 hours: the only fix is erasing the iPhone, with Forgot Passcode? > Start iPhone Reset or with a computer, then restoring a backup. The full walkthrough is in this page on how to get into an iPhone when you forgot the passcode.
- You forgot your Apple Account password: on your iPhone, use the Forgot password? link where you are asked to sign in, or reset it from another trusted device. Apple’s account recovery can take several days if you can’t verify your identity, so try the trusted-device route first.
Passcode and password basics
Does changing my passcode change my Apple Account password?
No. They are completely separate. Your passcode stays on the device, while your Apple Account password is checked by Apple’s servers. If you want both changed, do both methods.
Can I use only Face ID or Touch ID and skip the passcode?
No. Face ID and Touch ID need a passcode underneath. iPhone always asks for the passcode after it restarts, when it hasn’t been unlocked for 48 hours, after five failed Face ID or Touch ID attempts, and after you use Emergency SOS or Medical ID, among other cases.
Should I turn the passcode off instead?
The same screen has Turn Passcode Off, but it also turns off data protection and leaves anything on the phone open to whoever picks it up. Changing to a new code is almost always the better choice.
Does a new passcode change how fast my iPhone locks?
No. How quickly the screen locks is a separate setting at Settings > Display & Brightness > Auto-Lock.
How often should I change my passcode?
Apple doesn’t set a schedule. Change it whenever you think someone has seen or guessed it, like Jordan after the borrowed-phone call. A strong code you keep private does more than frequent changes.
What is the Erase Data switch at the bottom of the screen?
When Erase Data is on, iPhone erases itself after 10 failed passcode attempts. It protects a lost phone, but only turn it on if you have a recent backup.
Once your new code works, take a minute to check that iCloud Backup is on, so that a forgotten passcode never means losing your photos and messages.
Matt has been working with WordPress and creating content using this powerful content management system for years. While he has written about many other tech topics, WordPress is one of his favorites.
You can read his full bio here.