← Back to search

Accounts & PasswordsPhones & Tablets

How do I fix an iPhone passcode that is not working or shows Unavailable?

Answer

If the screen says iPhone Unavailable with a wait time, stop guessing the passcode and wait for the timer to end. Afterward, try the passcode carefully; if it still fails, the supported recovery path is erasing the iPhone and restoring from a backup with your Apple ID—avoid third-party unlock services.

Before you start: stop right away if…

  • Erasing an iPhone deletes data that is not in a backup.
  • Third-party unlock services and unexpected callers asking for your Apple ID are common scams.
  • Keep guessing during an Unavailable timer can lengthen the lockout.

Follow these steps

  1. Wait out the unavailable timer

    If the lock screen shows iPhone Unavailable with a time such as 1 hour, leave the phone alone and do not keep trying codes until that timer expires.

    You should see: The passcode keypad returns when the wait period ends.

  2. Retry the passcode carefully

    When the keypad returns, enter the passcode slowly and confirm Caps Lock or an alternate code you may have set. Avoid rapid repeated guesses.

    You should see: The phone unlocks, or it warns that another wrong attempt will extend the lockout.

  3. Check for accidental Screen Time or restrictions

    If you can unlock with the correct passcode but settings feel blocked afterward, review Screen Time passcode and Stolen Device Protection settings once inside the phone.

    You should see: Either normal use resumes, or you identify a separate Screen Time code issue.

  4. Use official erase and restore if the passcode is forgotten

    Follow Apple’s official forgotten-passcode steps for your iPhone model: erase the device with a computer or iCloud’s Find My erase option, then restore from backup and sign in with your Apple ID on apple.com recovery or the setup screens.

    You should see: The iPhone erases and can be set up again, or Apple’s process asks for Apple ID credentials to remove Activation Lock.

  5. Avoid unofficial unlock tools

    Ignore websites or callers that promise passcode removal without erase. Those commonly steal Apple ID details or charge for software that does not work.

    You should see: You stay on Apple’s supported recovery path only.

Not sure this is the right page? Check here

0 of 5 checked

Extra tips

What to look for: Whether the screen shows iPhone Unavailable with a countdown (for example 1 hour), how many attempts you have left, and whether you still remember the correct passcode.

Before you change anything: Stop entering passcodes while a wait timer is shown. Confirm whether you have a recent iCloud or computer backup. Have the Apple ID email and password ready only for official erase/restore screens. Never pay a stranger who claims they can unlock the phone remotely.

Have a different problem?