What to Do If You Forgot Your iPhone Passcode
If you forget your iPhone passcode and get locked out, you have options to regain access — but most involve erasing the device. Here is what to try first and what to do if you must erase.
Try Face ID or Touch ID first
~19sTry your old passcodes
~27sWarning
Do NOT keep guessing if you are close to 10 attempts. If your iPhone shows "Security Lockout" with a countdown, wait for it to reset — do not keep trying wrong codes.
Use iPhone Recovery Mode to erase and restore
~31sQuick Tip
If you use a Mac with macOS Catalina or later, use Finder instead of iTunes. Open Finder and click your iPhone in the sidebar.
Restore from an iCloud backup
~28sQuick Tip
Quick Tip: After restoring, go to SettingsFace ID & Passcode and set a new passcode you will remember. Write it down somewhere safe at home.
Prevent lockouts in the future
~22sYou Did It!
You've completed: What to Do If You Forgot Your iPhone Passcode
Need more help? Get Expert Help from a TekSure Tech
Getting locked out of your iPhone because you forgot your passcode is more common than you might think. Maybe you set up a device for the first time, tried an unfamiliar passcode too many times, or forgot a PIN you set months ago.
Here is what happens when you enter the wrong passcode repeatedly: - After 5 wrong attempts: iPhone is disabled for 1 minute - After 6 wrong attempts: disabled for 5 minutes - After 7 wrong attempts: disabled for 15 minutes - After 10 wrong attempts: iPhone is permanently disabled (or erased if that setting is on)
If your iPhone is showing "iPhone is unavailable" or a timer, stop trying passcodes.
Every wrong attempt makes it worse.
Important:
Apple designed iPhone security so that even Apple cannot unlock your phone without the passcode. This is intentional for your protection. The only way to regain access to a locked iPhone without the passcode is to erase it and restore from a backup.
If you have iCloud backup on (most people do) and recently backed up, you can restore your iPhone, set a new passcode, and get all your content back from the backup.
The key question is: do you have a backup? If yes, recovery is straightforward. If no, erasing means starting fresh (but the phone will work again).
Was this guide helpful?
Your feedback helps us make TekSure better for everyone.
Want to rate with stars?
Still have questions?
Ask TekBrain a follow-up question about this guide. It’s free, no sign-up needed, and the answer will be in plain English.
Official Resources
Sources used to create and verify this guide. View all sources →
← Previous
How to Use Google Translate Without an Internet Connection
Next →
How to Use Files by Google to Free Up Storage on Android
Still stuck? Let a pro handle it.
Our verified technicians can fix this issue for you — remotely or in person.
Related Guides
More from Phone & Tablet
How to Set Up a New iPhone
Got a new iPhone? This guide walks you through every step from turning it on to signing in with your Apple ID.
2 min read
How to Set Up a New Android Phone
A beginner-friendly walkthrough for setting up a new Android phone from scratch — including your Google account.
2 min read
How to Move Your Contacts to a New Phone
Don't lose your contacts when switching phones. Here's how to transfer them to iPhone or Android in minutes.
2 min read