Use your old passcode, within 72 hours
-
Enter a wrong passcode five times until the iPhone shows the Unavailable screen.
-
Tap Forgot Passcode? in the lower corner.
-
Tap Enter Previous Passcode and type the old one.
-
Set a new passcode when asked. Nothing is erased.
Erase it from the Lock Screen
-
On the Unavailable screen, tap Forgot Passcode?. The iPhone needs Wi-Fi or cellular and Find My turned on.
-
Tap Start iPhone Reset and enter your Apple Account password.
-
Tap Erase iPhone. This permanently deletes all your data and settings.
-
When it restarts, set it up and restore from your iCloud or computer backup.
Use recovery mode with a computer
-
Turn the iPhone off. On a Face ID model, hold the side button and volume down until the slider appears.
-
Connect it to a Mac or Windows PC with a cable while holding the side button. Keep holding until the computer and cable screen appears.
-
On a Mac, open Finder. On Windows, open the Apple Devices app. Select the iPhone and choose Restore.
-
If it takes more than 15 minutes and the iPhone leaves recovery mode, start the steps again.
If it still does not work
There is no way to recover a forgotten passcode without erasing the iPhone. Without a backup, the photos, messages and files on the phone are gone after the erase. If you have no computer, an Apple Store or Apple Authorised Service Provider can help.


