News
How to unlock our iPhone if we have forgotten the code after changing it?
A grace period after any change.

- October 15, 2023
- Updated: July 2, 2025 at 12:58 AM

In the digital age, security is essential. Our devices store very valuable and personal information, and protecting that information has become a priority. That’s why we set up a passcode on our iPhones. A passcode that we can change regularly and, after changing it, we might forget. Fortunately, the situation has a solution. Let’s see, then, how to unlock our iPhone if we have forgotten the passcode after changing it.
A grace period for the first few days with a new passcode
With the arrival of iOS 17 and iPadOS 17, Apple has introduced a truly useful feature: a grace period of 72 hours after changing the passcode. If we have recently changed the passcode of our iPhone or iPad and forget it, now we have up to three days to use the old passcode and regain access.
How? Very easy. If we enter an incorrect passcode, simply touch the “Forgot Passcode?” option at the bottom of the screen, which allows us to use the “Try Passcode Recovery” option using our old passcode to set up a new one.
Furthermore, the feature also considers the following scenario: What if we are changing the passcode to prevent someone who knew the old one from accessing the device? Apple has thought of this and offers a function called “Expire Previous Passcode Now.” With this feature, our old passcode will no longer be valid, thus ensuring an additional layer of security. Expiring the previous passcode is as easy as following these steps:
- Open the Settings app on our iPhone or iPad.
- Go to Face ID & Passcode or Touch ID & Passcode.
- Tap on “Expire Previous Passcode Now.”
- Confirm by selecting “Expire Now.”
With this, iOS 17 has made the process of regaining access to our device after a passcode change easier and more secure. Considering always choosing a secure, preferably alphanumeric passcode, changing the passcode is, pun intended, safer than ever before.
Architect | Founder of hanaringo.com | Apple Technologies Trainer | Writer at Softonic and iDoo_tech, formerly at Applesfera
Latest from David Bernal Raspall
You may also like
NewsCall of Duty developers clarify how content for the game is generated
Read more
NewsNioh 3 has a different approach to its bosses thanks to a highly acclaimed soulslike
Read more
NewsA new Horizon has been announced, although we fear you won't like it
Read more
NewsWWE 2K26 features new exciting match types
Read more
NewsThe best-selling manga of 2026 so far has sold over 100 million units in its entire history
Read more
NewsThis shooter set in World War II could have been directed by Quentin Tarantino
Read more