← Back to search

Accounts & PasswordsPhones & Tablets

How do I reset a forgotten iPhone passcode?

Answer

Apple does not let you view a forgotten passcode. You reset the iPhone with a computer or through Erase iPhone on the passcode screen if shown, then restore from backup and set a new passcode.

Before you start: stop right away if…

  • Erasing an iPhone deletes data that is not in a backup.
  • Third-party passcode unlock tools are often scams or unsafe.

Follow these steps

  1. Try Erase iPhone on the passcode screen

    If the screen offers Erase iPhone after failed attempts, tap it and sign in with the Apple ID to wipe the device.

    You should see: The iPhone erases and returns to the setup assistant.

  2. Erase with a computer if needed

    If that option is not available, connect the iPhone to a Mac or PC, put it into recovery mode using Apple’s button sequence for your model, then choose Restore in Finder or Apple Devices/iTunes.

    You should see: The computer restores iOS and the passcode is cleared.

  3. Sign in and set a new passcode

    During setup, sign in with the Apple ID, restore a backup if available, then create a new passcode you will remember or store in a password manager.

    You should see: The iPhone is usable again with a new passcode.

  4. Re-enable Find My and app downloads

    Finish setup, confirm Find My is on, then sign into the App Store and test downloading an app.

    You should see: Apps install normally with the new passcode in place.

Not sure this is the right page? Check here

0 of 6 checked

Extra tips

What to look for: Forgot passcode behavior, disabled iPhone messages, or an Erase iPhone option on the passcode screen

Before you change anything: Confirm you know the Apple ID password for Activation Lock after erase. Backups made before the lockout are the only way to restore app data. Erasing removes data not already backed up to iCloud or a computer. Use only Apple’s official erase/recovery steps.

Have a different problem?