This troubleshooting article walks through steps for iPhones with different button types (Face ID, Home Button, etc.), including how to enter recovery mode, erase your iPhone, restore it from backup, and recover access to your Apple ID if necessary.
When try after try to enter your passcode yields nothing but an increasing time that your iPhone is disabled, it's time to look into other options. This article will show you what to do if you forgot your iPhone passcode, as well as offer some tips on keeping track of and remembering your passcode.
You can unlock a forgotten iPhone passcode four ways —through the lock screen, a Mac or PC, or remotely via Find My if enabled. Tap ‘Forgot Passcode’ on the lock screen to erase your iPhone and start fresh after entering your Apple ID credentials.