If the iPhone password is forgotten, the key ways to regain access are:
- For iOS 15.2 and later: After entering wrong passcodes multiple times, tap "Forgot Passcode?" on the lock screen. Then follow prompts to "Start iPhone Reset," enter your Apple ID password, and erase the iPhone. This requires internet access, Find My enabled, and knowledge of your Apple ID credentials.
- Use Recovery Mode and a computer with iTunes or Finder to restore the iPhone. This erases the device and reinstalls iOS. Steps depend on the iPhone model to enter recovery mode. This also requires erasing the device.
- Use a third-party unlocking tool like Dr.Fone or TunesKit iPhone Unlocker, which guides through connecting the iPhone, entering recovery/DFU mode, downloading firmware, and unlocking the phone. This method erases data but helps regain access.
- On iOS 17 and later, if the passcode was changed within 72 hours, there is an option to unlock using the previous passcode by tapping "Forgot Passcode?" and selecting "Enter Previous Passcode."
Before erasing, if possible, back up your iPhone to iCloud or via computer to avoid permanent data loss. If you cannot remember your Apple ID password, first try resetting it using another Apple device or Apple's account recovery options. In all cases, erasing the iPhone will remove data unless there is a recent backup to restore from after unlocking.
Let me know if you want detailed step-by-step instructions for any specific method.