In the ever-evolving landscape of digital security, Apple’s iOS updates consistently introduce features designed to protect your personal data. One of the most impactful yet under-discussed security enhancements in iOS 17 is the “Expire Previous Passcode” feature. This setting fundamentally changes how your iPhone handles passcode changes, moving from a simple update to a strategic security protocol. If you’ve ever changed your iPhone passcode and wondered if the old one still works, this feature provides the definitive answer and a powerful new layer of protection. Let’s dive deep into what it is, why it matters, and how you can master it to lock down your digital life.
What Exactly Is “Expire Previous Passcode” in iOS 17?
At its core, the “Expire Previous Passcode” setting is a new administrative control found within iOS 17’s Screen Time settings. When enabled, it performs a critical function: it immediately and permanently invalidates your old numeric passcode or alphanumeric password the moment you set a new one.
Before this feature, a significant security loophole existed. When you changed your passcode, your iPhone would retain the old one for a 72-hour (3-day) grace period. During this window, either the new or the old passcode could unlock your device. Apple’s intent was user-friendly—to prevent lockouts if you forgot your new code. However, in a security context, this was a vulnerability.
The new feature severs that tie instantly. Once you tap “Change Passcode” and confirm the new one, the previous code ceases to function. There is no rollback, no grace period. This aligns with a principle known as “immediate credential revocation,” a best practice in enterprise and high-security environments that has now come to the consumer iPhone.
Where Do You Find This Setting?
Contrary to what you might expect, you won’t find “Expire Previous Passcode” in the main Settings > Face ID & Passcode menu. Apple has placed it as a parental or administrative control within Screen Time. This location is strategic, as it’s often used to manage device policies.
Path to the setting: Settings > Screen Time > Use Screen Time Passcode (if not set) > Change Screen Time Passcode > Tap "Forgot Passcode?" > Authenticate with your device passcode or Face ID/Touch ID. Here, you will see the toggle for “Expire Previous Passcode.”
Important Distinction: This setting controls the behavior of the Screen Time passcode, not your main device unlock passcode. However, its introduction signals a philosophical shift in Apple’s approach to passcode management that users have been requesting for the main passcode for years.
The Critical “Why”: Security Implications and Real-World Scenarios
Understanding why this feature was added is crucial to appreciating its value. The 72-hour grace period on the main device passcode was a well-known vector for certain types of attacks and coercive breaches.
The Security Vulnerabilities of the Old System
- The “Passcode Coercion” Risk: Imagine a scenario where someone with malicious intent forces or tricks you into revealing your current passcode. Under the old system, even if you could later change your passcode remotely via iCloud (if Find My was on), the attacker would still have 72 hours to use the old code to unlock the phone, disable Find My, and access your data.
- Post-Theft Exploitation: If your phone was stolen, a thief who had previously shoulder-surfed your passcode could use it to gain full access during that grace period, potentially changing your Apple ID password and locking you out.
- Lack of Immediate Administrative Control: In families or organizations, if a Screen Time passcode was compromised, the administrator had no way to instantly reclaim control without that 72-hour wait.
How “Expire Previous Passcode” Mitigates These Risks
By enabling this toggle for your Screen Time passcode, you adopt a “zero-trust” model for credential changes. The moment a new code is set, the old one is considered compromised and is rendered useless. This is essential for:
- Parental Controls: Ensuring children cannot regain access to restricted apps or settings using an old, discovered passcode.
- Device Management: Providing instant revocation capability.
- Setting a Precedent: This feature is a testing ground for a security model that many security experts, like those at the Electronic Frontier Foundation (EFF), advocate should be the default for all passcode changes.
Step-by-Step: How to Enable and Use the Feature
Let’s walk through the process with clear, actionable steps.
Part 1: Enabling “Expire Previous Passcode” for Screen Time
- Open the Settings app on your iPhone (iOS 17 or later).
- Tap Screen Time.
- If you haven’t set a Screen Time passcode, tap “Use Screen Time Passcode.” If you have one set, proceed to step 4.
- Tap “Change Screen Time Passcode.”
- You will be prompted to enter your existing Screen Time passcode. Instead, tap “Forgot Passcode?” at the bottom.
- Authenticate using your device’s main passcode or biometrics (Face ID/Touch ID).
- You will now see the “Expire Previous Passcode” toggle. Switch it ON (green).
- Now, set your new Screen Time passcode. From this moment forward, any time you change this passcode, the old one will expire immediately.


Part 2: The Crucial Caveat – Device Passcode vs. Screen Time Passcode
It is vital to manage expectations. As of iOS 17.5, the “Expire Previous Passcode” feature applies ONLY to the Screen Time passcode.
- Your main device unlock passcode still has the 72-hour grace period.
- This discrepancy is a point of discussion in the security community. Enabling the setting for Screen Time is excellent practice, but your primary defense—your device passcode—still operates under the old, less secure rule.
Pro-Tip: To maximize security, use a strong, alphanumeric device passcode and ensure “Erase Data” is enabled (
Settings > Face ID & Passcode > Erase Data). This will wipe your iPhone after 10 failed passcode attempts.
Beyond the Toggle: A Broader Look at iOS 17 Security
The introduction of “Expire Previous Passcode” is not an isolated event. It’s part of a larger, proactive security push in iOS 17 that includes:
- Stolen Device Protection: This is the headline security feature of iOS 17.3. When enabled in unfamiliar locations, it adds a security delay and requires biometric authentication (Face ID/Touch ID) for sensitive actions like changing your Apple ID password or device passcode, effectively neutering the risk of passcode coercion.
- Advanced Data Protection: (When enabled) End-to-end encryption for most iCloud data, including backups, Photos, and Notes.
- Lockdown Mode: An extreme, optional protection for users facing targeted digital threats.
How They Work Together: Think of “Expired Previous Passcode” as a tactical tool for specific control (Screen Time). Stolen Device Protection is the strategic, overarching defense for your main device passcode. For comprehensive security, you should enable both Stolen Device Protection and the Screen Time passcode expiry.
FAQ: Your Questions, Answered
Q1: I enabled “Expire Previous Passcode,” but I forgot my new Screen Time passcode. What happens?
A: The process is the same as before. Go to Settings > Screen Time > Change Screen Time Passcode > Forgot Passcode? You will need to authenticate with your device’s main passcode to reset it. The “expire” feature prevents the old code from working, but it doesn’t change the recovery path, which relies on your device passcode.
Q2: Why didn’t Apple just apply this to the main device passcode directly?
A: This is likely due to usability and data loss concerns. Apple balances extreme security with preventing permanent device lockouts. A user who changes their passcode and forgets it without a backup could be permanently locked out of their device and data. The 72-hour window provides a critical safety net. Features like Stolen Device Protection are Apple’s solution to secure the main passcode without removing that safety net for legitimate users.
Q3: Does this affect my Apple ID password or my phone’s backup?
A: No. This setting only governs the Screen Time passcode on that specific device. It has no connection to your Apple ID password, iCloud, or device backups.
Q4: As a regular user, should I bother with this setting?
A: Absolutely, if you use Screen Time. If you set app limits, use Downtime, or apply content restrictions, enabling this toggle is a simple, one-time action that significantly hardens those controls against bypass. It’s a best practice for any admin of a device.
The Future of iPhone Passcode Security
The “Expire Previous Passcode” feature, though currently niche, is a bellwether. It demonstrates Apple is actively developing and testing instant credential revocation models. The overwhelming feedback from security experts and users is that this should be an optional setting for the device passcode itself, perhaps with clear warnings about the risk of permanent lockout.
Future iOS updates may expand this capability, offering users a choice:
- Standard Mode: 72-hour grace period (current default).
- Enhanced Security Mode: Immediate expiry, possibly requiring biometric confirmation and two-factor authentication on a trusted device to change the passcode.
Final Recommendations & Action Plan
To leverage the full security potential of your iPhone on iOS 17:
- For Screen Time Admins (Parents, etc.): Enable “Expire Previous Passcode” today. It’s a free, instant security upgrade.
- For Everyone: Go to
Settings > Face ID & Passcodeand enable Stolen Device Protection. This is the single most important action to protect your main passcode from coercion. - Use a Strong Alphanumeric Passcode: Avoid simple 4- or 6-digit codes. Use a longer phrase with letters and numbers.
- Enable “Erase Data”: This is your last line of defense if the device is physically compromised.
- Keep iOS Updated: Security features like these are refined and expanded with every point update.
The “Expire Previous Passcode” feature, while operating in the background of Screen Time, represents a meaningful step toward a more secure and intentional approach to device access. By understanding and using it, you’re not just configuring a toggle; you’re adopting a mindset of proactive, layered security that keeps you one step ahead of potential threats.
Sources & Further Reading:
- Apple Platform Security Guide (Apple): https://support.apple.com/guide/security/welcome/web – The authoritative resource on Apple’s security architecture.
- EFF on Smartphone Security: https://ssd.eff.org/ – Essential guides for protecting your data and device.
- iOS 17 Preview – Security Features (Apple Newsroom): https://www.apple.com/newsroom/ – Official announcements detailing new security capabilities.


