← Back to search

Accounts & PasswordsPhones & Tablets

How do I unlock an iPhone after forgetting the passcode?

Answer

If you forgot an iPhone passcode and the device keeps timing out, the usual recovery path is to erase the iPhone with a computer or official Apple recovery process, then set it up again. Anything not backed up to iCloud or a computer will be lost.

Before you start: stop right away if…

  • Erasing an iPhone deletes apps, photos, and messages that are not already backed up.

Follow these steps

  1. Confirm the phone is passcode-locked

    Try unlocking once and note whether the screen says iPhone is disabled, try again later, or simply rejects the passcode.

    You should see: You confirm this is a forgotten-passcode lockout rather than a different Apple ID or network issue.

  2. Check for a backup before erasing

    If possible, check iCloud.com or your computer for a recent iPhone backup so you know what can be restored after erase.

    You should see: You know whether a usable backup exists.

  3. Erase the iPhone with a computer

    Connect the iPhone to a trusted computer, put it into recovery mode using Apple’s steps for your model, then choose restore or erase and reinstall in Finder or Apple Devices / iTunes.

    You should see: The computer begins erasing and reinstalling iOS on the iPhone.

  4. Wait for erase and set up again

    Leave the phone connected until the erase and reinstall finish, then set it up again and restore from backup if available, or continue as new.

    You should see: The iPhone reaches the setup screen and can be unlocked with a new passcode.

  5. Sign in past Activation Lock if prompted

    If asked for the previous Apple ID, sign in with that account to finish activation, then create a new passcode you will remember.

    You should see: The phone activates and is usable again with a new passcode.

Not sure this is the right page? Check here

0 of 5 checked

Extra tips

What to look for: A disabled iPhone screen, timed-out unlock message, or passcode entry that keeps failing.

Before you change anything: Check whether you have an iCloud or computer backup before erasing. Have a trusted computer and cable ready if recovery mode is needed. Know the Apple ID email used on the iPhone, because Activation Lock may ask for it after erase. Do not share Apple ID codes with unexpected callers.

Have a different problem?