Table of Contents
If you forgot your iPhone's screen passcode, first check whether you changed it within the last 72 hours. On supported software, the previous passcode may let you regain access without erasing the phone. If that option is unavailable, Apple's reset methods generally erase the device's current data.
The screen passcode and Apple Account password are different. Resetting a device does not bypass Activation Lock, and you may still need the associated Apple Account afterward. Check whether you have a usable backup before choosing an erase option; these methods do not promise recovery of unbacked-up local data.
1. Try a recently replaced passcode
With iOS 17 or later, Apple's Passcode Reset feature can allow the previous passcode for 72 hours after a change, unless it was expired early. On the unavailable screen, use Forgot Passcode?, then the previous-passcode option if offered, and follow the prompts to set a new one.
This applies to a recent passcode change, not any passcode you used in the past. See Apple's 72-hour passcode instructions for the requirements.
2. Reset from the lockout screen

On supported iOS versions, the phone can offer an on-device erase and reset flow. This requires the necessary network connection, Find My already enabled and your Apple Account credentials. Older supported versions may show Erase iPhone instead of Forgot Passcode.
Read the erase warning before confirming. On versions that offer an eSIM choice, keeping the eSIM is separate from keeping your personal data: the reset still erases the data. If you remove the eSIM, carrier help may be needed to restore service.

Follow Apple's on-device reset guide rather than guessing at a missing button.
3. Use recovery mode with a Mac or Windows PC
If on-device reset is unavailable, use a compatible computer, internet connection and suitable cable. Recovery-mode button steps differ by iPhone model. Apple's computer recovery instructions show the appropriate sequence.
- Mac: locate the recovery-mode iPhone in Finder on supported macOS versions. Older systems may use iTunes.
- Windows: use Apple Devices where supported, or the applicable iTunes workflow on older setups.
- Choose Restore when the recovery prompt offers Restore or Update. Restoring erases the phone.


If the software download outlasts the recovery-mode session, allow it to finish and follow Apple's instructions to re-enter recovery mode. If buttons do not work, seek authorized service rather than using an unknown “unlock” utility.
4. Remote erase through Find My

If Find My was already enabled, its remote-erase function is another route to erase a device you own. Select the correct iPhone in your Apple Account and read the confirmation carefully. An offline device may not erase until it reconnects.
Remote erase is not a data-preserving passcode recovery method. It also does not remove ownership requirements associated with Activation Lock.
After the erase
Set up the iPhone again and restore from an existing backup if available. Data synchronized through iCloud or other services may return separately after sign-in. An encrypted computer backup also requires its backup password.
Once access is restored, use this iPhone backup guide to establish and verify a recovery copy. A new backup cannot be assumed possible merely because a locked phone is connected to a computer.
Reader Comments 0
Sign in with email or Google to join the discussion.