Forgot my iPhone passcode, how to factory reset it

Changed my passcode last week and now can't remember it. Phone is mine and I know my Apple ID login. What's the official way to wipe and restore it without the passcode?
1

Leave A Reply

Log in to post an answer.

1 Answer

kate.pratt Oct 30, 2026
ravis
On anything recent, iOS 17 onwards, you don't need a computer. Keep entering a wrong passcode until Forgot Passcode? appears at the bottom, tap it, then Start iPhone Reset, and type your Apple ID password. It wipes the phone, reboots to setup, and you restore from your iCloud backup. On an older version it's the recovery mode route: plug into a Mac or a PC with iTunes, press volume up, press volume down, then hold the side button until the recovery screen shows, and pick Restore in Finder or iTunes. Either way it asks for the Apple ID after the wipe, that's activation lock, which is the part you said you have. Check when your last backup ran on another device first so you know what you're going back to.