The fastest way back in depends on what you set up beforehand
If you cannot remember your iPhone password, you have three main routes: use your Apple ID to reset it, recover through a trusted phone number or email address, or restore the phone through a computer. Which one works fastest depends on whether you set up recovery options when you first created your Apple ID, and whether you have access to another device right now.
The good news is that Apple designed these recovery paths specifically for this situation. You do not need to visit an Apple Store or call support to regain access — you can do it from your iPhone itself, or from any computer with internet access.
Key Takeaways
- On your locked iPhone, tap "iPhone Unavailable" and then "Try Again Later" until you see the option to reset using your Apple ID — this appears after several failed attempts.
- If you remember your Apple ID email and password, you can reset your iPhone password directly from the lock screen without needing another device.
- If you set up a trusted phone number or recovery email when you created your Apple ID, Apple can send you a reset code to that contact method.
- If you have a Mac or Windows computer, you can connect your iPhone and use Finder (Mac) or iTunes (Windows) to restore the phone, which erases it but lets you set a new password.
- If you cannot remember your Apple ID password either, use the "Forgot Apple ID or password?" link on iforgot.apple.com to reset that first.
Resetting your password from the lock screen using your Apple ID
This is the fastest method if you remember your Apple ID email address and password. On your locked iPhone, enter an incorrect password several times. After the sixth failed attempt, your screen will show "iPhone Unavailable" and a timer. Wait for the timer to expire, then tap "Try Again Later."
After several more failed attempts, you will see an option that says "iPhone Unavailable — Try after [time]" with a button labeled "Reset iPhone" or "Use Recovery Mode." Tap this button. Your phone will then ask you to enter your Apple ID email and password. Once you do, you can create a new iPhone password when ready, and your phone will restart with access restored.
This method does not erase your data — your photos, messages, and apps stay on the phone. However, it does require that you remember your Apple ID credentials. If you do not, move to the section below about resetting your Apple ID password first.
Using a trusted phone number or recovery email to reset your password
If you set up a trusted phone number or recovery email address when you created your Apple ID, Apple can send you a verification code to that contact. On your locked iPhone, tap "iPhone Unavailable" and then "Try Again Later" repeatedly until you see the reset option. When prompted for your Apple ID, tap "Forgot Apple ID or password?"
Apple will ask whether you want to receive a verification code by text message or email. If you have access to the phone number or email address you registered, select that option. Apple will send you a code, which you enter on your iPhone. Once verified, you can set a new iPhone password without needing to remember your full Apple ID password.
This path is useful if your Apple ID password is complex and you cannot recall it, but you do have access to your recovery phone number or email. The process typically takes a few minutes.
Restoring your iPhone through a computer
If you have a Mac or Windows computer available, you can connect your iPhone and use Finder (on Mac) or iTunes (on Windows) to restore the phone. This method erases all data on the iPhone, but it lets you set up a completely new password and regain access.
On a Mac with macOS Monterey or newer, plug in your iPhone and open Finder. Click your iPhone in the sidebar, then click "General." You will see a "Restore" button — click it and follow the prompts. On a Windows PC, open iTunes, plug in your iPhone, click the device icon, and select "Restore." Both processes will read the latest iOS software and reinstall it on your phone.
After restoration completes, your iPhone will restart and ask you to set it up as new or restore from a backup. At this point, you can create a new password. If you have a backup stored in iCloud or on the computer, you can restore your data after you regain access. This method takes 15 to 45 minutes depending on your internet speed and the size of your backup.
Resetting your Apple ID password if you cannot remember that either
If you do not remember your Apple ID password and cannot use a trusted phone number or email to verify, you will need to reset your Apple ID password before you can reset your iPhone password. Go to iforgot.apple.com on any computer or another device.
Enter your Apple ID email address. Apple will ask you to verify your identity using either a trusted phone number, a recovery email address, or security questions you answered when you set up your account. Once you verify, you can create a new Apple ID password. After that, return to your iPhone and use the method in the "Resetting your password from the lock screen using your Apple ID" section above.
This adds an extra step, but it is necessary if you have lost access to both your iPhone password and your Apple ID password. The whole process usually takes 10 to 20 minutes.
What happens to your data during each recovery method
The method you choose affects what happens to your photos, messages, and apps. Resetting your password using your Apple ID or a trusted recovery method keeps all your data intact — nothing is erased. Restoring your iPhone through a computer erases everything on the phone, but you can restore your data afterward if you have a backup.
Before you choose a method, think about whether you have a recent backup. If you use iCloud, your data is backed up automatically if your iPhone was connected to Wi-Fi and plugged in. If you use a computer backup, the most recent backup is stored on that computer. If you have neither, the restore method will result in a blank iPhone, and you will lose any data that was not backed up elsewhere.
Preventing this from happening again
Once you regain access to your iPhone, consider setting up recovery options so you do not face this situation again. In Settings, tap your name at the top, then "Password & Security." Make sure you have a trusted phone number and recovery email address listed. You can also enable Face ID or Touch ID so you do not have to type your password as often.
Write down your Apple ID password in a find location, or use a password manager like iCloud Keychain to store it. If you use a password manager, make sure you remember the master password for that manager. These steps take only a few minutes and can save you significant time if you forget your password in the future.
Frequently Asked Questions
How many times can I try my password before my iPhone locks me out?
After six incorrect password attempts, your iPhone shows "iPhone Unavailable" and a timer. The wait time increases with each failed attempt — starting at one minute and growing to 60 minutes or more after many tries. This is intentional: it slows down anyone trying to guess your password.
Can I reset my iPhone password without erasing my data?
Yes, if you use your Apple ID or a trusted recovery method. Both of these keep your photos, messages, and apps on the phone. Only the restore-through-computer method erases data, and you can restore from a backup afterward if you have one.
What if I do not have access to the phone number or email I used for recovery?
If you no longer have access to your trusted phone number or recovery email, you will need to use the computer restore method. This erases your iPhone, but it lets you set up a new password and regain access. You can then update your recovery options in Settings to use current contact information.
How long does it take to restore my iPhone through a computer?
The process typically takes 15 to 45 minutes, depending on your internet speed and the size of your backup. Downloading the iOS software and reinstalling it is the longest part. Make sure your computer stays connected to power and internet until the process finishes.
Will I lose my text messages and photos if I restore my iPhone?
Restoration erases everything on the phone. However, if you have an iCloud backup or a computer backup, you can restore your messages and photos after you set up your new password. Check Settings > [Your Name] > iCloud to see if you have a recent backup stored in the cloud.