← Back to search

Accounts & PasswordsPhones & Tablets

How do I unlock an iPhone after a newly set passcode stops working?

Answer

iPhones do not keep a second default unlock passcode after you create one. If the new passcode is not accepted, wait through any lockout timer, carefully retry the exact code you set, and if it still fails use Apple’s official forgotten-passcode erase and restore path with your Apple ID.

Before you start: stop right away if…

  • Erasing an iPhone deletes data that is not already backed up.

Follow these steps

  1. Retry carefully after any lockout wait

    If the screen says to try again later, wait for the timer to finish. Enter the exact passcode you created, watching for Caps Lock or wrong digit length (4-digit vs 6-digit).

    You should see: The iPhone unlocks, or the passcode is still rejected after careful retries.

  2. Try Face ID or Touch ID if still enrolled

    If biometric unlock still works, open the phone that way, go to Settings > Face ID & Passcode or Touch ID & Passcode, and reset the passcode to one you can reliably remember.

    You should see: You change the passcode successfully while still signed into the device.

  3. Use Apple’s forgotten-passcode recovery

    If you cannot unlock at all, follow Apple’s official forgotten-passcode steps for your iPhone model to erase the device with a computer or on-device recovery, then set it up as new or from a backup.

    You should see: The iPhone erases and reaches the setup screen where you can restore access.

  4. Sign in with the Apple ID after erase

    During setup, sign in with the Apple ID previously used on the phone when Activation Lock asks for it, then restore a backup if you have one.

    You should see: Activation Lock clears and the iPhone 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 passcode entry screen, “iPhone is disabled” or try-again later messaging, and whether Face ID or Touch ID still works as a temporary unlock option.

Before you change anything: Confirm this is your iPhone and you know the Apple ID email used on the device. Check whether you have a recent iCloud or computer backup before erasing. Do not guess endlessly through lockout screens if the device may wipe after too many tries. Never share Apple ID passwords or one-time codes with unexpected callers.

Have a different problem?