Yes—an iPhone can require a passcode change if an employer, school, or other organization applies a device-management or supported Exchange policy. On a personal iPhone without such a policy, iOS does not ordinarily require routine passcode changes. If you see an expiration alert, check whether the iPhone is managed before changing settings.
When an iPhone can require a passcode change
An organization can use mobile device management (MDM) to set passcode rules for a work or school iPhone. Depending on the policy and management service, those rules may specify the passcode’s length or complexity, prevent reuse of recent passcodes, or set a maximum passcode age.
If a maximum-age rule is in place, you may have to change your passcode when the organization’s set interval expires. A newly installed passcode configuration can also prompt you to create a passcode that meets its requirements. Apple says users have 60 minutes to enter a qualifying passcode after the configuration is installed; after that, the configuration forces passcode entry.
A supported Exchange passcode policy may also apply. If both MDM and Exchange policies are active, Apple says their requirements are merged and the stricter settings are enforced. Which Exchange requirements apply depends on the organization’s setup.
Stolen Device Protection does not expire your passcode
Stolen Device Protection, available on iPhones running iOS 17.3 or later, does not set a passcode-expiration schedule. Instead, it can add safeguards when you try to change your passcode.
By default, those safeguards apply when your iPhone is away from familiar locations. Changing the passcode in those circumstances may require Face ID or Touch ID, a one-hour Security Delay, and biometric authentication again afterward. At a familiar location, the default setting does not require these extra steps. The delay may also end early if the iPhone detects that it has arrived at a familiar location.
To require the added safeguards everywhere, go to Settings > Face ID & Passcode or Settings > Touch ID & Passcode, tap Stolen Device Protection, then choose Require Security Delay > Always. A delay when changing your passcode is a security measure, not a sign that iOS is requiring routine passcode rotation.
Check whether your iPhone is managed
- Open Settings > General > VPN & Device Management.
- Look for an installed profile under Mobile Device Management.
- Tap the profile, then tap More Details.
- Tap Mobile Device Management and review the listed device rights for passcode requirements.
- If the iPhone belongs to an employer or school, or you find a passcode policy, ask the organization’s IT administrator what requirement is prompting the change.
Change your iPhone passcode
- Open Settings.
- Tap Face ID & Passcode or Touch ID & Passcode, depending on your iPhone.
- Enter your current passcode.
- Tap Change Passcode.
- Enter the new passcode, then enter it again to confirm.
- If available, tap Passcode Options to choose a different format.
Available formats include a four-digit numeric code, a six-digit numeric code, a custom numeric code, or a custom alphanumeric code. A work or school policy may limit which formats are accepted.
What common passcode alerts and problems mean
- “Your iPhone unlock passcode has expired”: This may indicate an MDM requirement. Check Settings > General > VPN & Device Management and contact the organization if a policy is listed.
- Your new passcode is rejected: On a managed iPhone, it may not meet the organization’s length, complexity, or passcode-reuse rules. Ask the administrator what the policy requires.
- You don’t know the current passcode: The normal passcode-change flow requires it. That is different from recovering access after forgetting a passcode; follow Apple’s forgotten-passcode process instead.
- Your iPhone is unavailable after incorrect entries: A lockout after failed attempts is not the same as a passcode-expiration requirement. If you recently changed your passcode and use iOS 17 or later, Passcode Reset may let you use the previous passcode once within 72 hours to regain access and set a new one.
Know what changes when you update your passcode
Your iPhone device passcode is different from your Apple Account password. Changing one does not, by itself, change the other.
On iOS 17 or later, your previous passcode can be used once within 72 hours after a change to access the iPhone and reset the new passcode. If you’re concerned someone else knows the old code, you can remove that recovery option sooner, if available: open Settings > Face ID & Passcode or Settings > Touch ID & Passcode, authenticate, then tap Expire Previous Passcode Now.