You can regain access through your Apple ID, recovery mode, or Find My iPhone
If you've forgotten your iPhone password, you have three main paths back in: using your Apple ID on the lock screen, putting the phone in recovery mode through a computer, or using Find My iPhone from another device. Which one works depends on whether you remember your Apple ID password, whether you have a computer nearby, and how much data you want to keep. None of these methods require you to call Apple support or visit a store, though the process does take time and some steps are irreversible.
The fastest route is the Apple ID unlock if you remember that password — it takes a few minutes and doesn't erase anything. If you don't remember your Apple ID password or that method doesn't work, recovery mode and Find My iPhone both erase your phone completely but work without needing to remember anything except how to access a computer or another device.
Key Takeaways
- If you remember your Apple ID password, you can unlock your iPhone directly from the lock screen by tapping "iPhone Unavailable" and entering your Apple ID credentials.
- Recovery mode erases your iPhone completely but works even if you don't remember your Apple ID, and requires a Mac or Windows computer with iTunes or Finder.
- Find My iPhone lets you erase and reset your phone remotely from another device, useful if you don't have a computer available.
- After any reset, you'll need to set up your iPhone again and restore from a backup if you have one saved to iCloud or a computer.
- If you've forgotten both your iPhone password and your Apple ID password, you'll need to reset your Apple ID through Apple's website before you can unlock the phone.
Using your Apple ID to unlock from the lock screen
This is the fastest method if you remember your Apple ID email and password. On your iPhone lock screen, after several failed password attempts, you'll see a message saying "iPhone Unavailable" with a button that says "Try after [time]" or "Emergency SOS." Tap the home button or the screen to bring up the passcode entry field again, then look for text that says "iPhone Unavailable" — tap that.
You'll be prompted to enter your Apple ID email and password. Once you do, your iPhone will ask you to create a new passcode. You can set any six-digit code you want (or longer, if you prefer). After you create the new passcode, your iPhone unlocks and you're back in. Your data stays intact — nothing is erased.
This method only works if you have an internet connection and if your Apple ID two-factor authentication is set up. If you see a message saying you need to wait before trying again, that's normal — Apple throttles attempts to prevent someone else from guessing your password. Wait the time shown and try again.
Recovery mode: erasing your iPhone to reset the password
If you don't remember your Apple ID password, or if the Apple ID unlock method doesn't work, recovery mode is your next option. This method completely erases your iPhone, so you lose everything that isn't backed up to iCloud or a computer. You'll need a Mac or Windows computer with either Finder (Mac) or iTunes (Windows) installed.
Connect your iPhone to the computer with a USB cable. On a Mac running macOS Monterey or newer, open Finder and click your iPhone in the sidebar. On Windows or older Mac, open iTunes. While the phone is connected, force restart it: on iPhone X and newer, quickly press and release the Volume Up button, then Volume Down, then press and hold the Side button until you see the recovery mode screen (it shows a cable and computer icon). On iPhone 8 and earlier, hold the Top (or Side) button and Home button together until the recovery screen appears.
Your computer will show a message saying the iPhone needs to be restored. Click "Restore" (Mac) or "Restore iPhone" (Windows). The computer downloads the current iOS version and installs it, erasing everything on the phone. This takes 10 to 20 minutes depending on your internet speed. When it finishes, your iPhone restarts and shows the setup screen. You can then set a new passcode and sign back into your Apple ID.
Find My iPhone: resetting remotely from another device
If you don't have a computer available, you can erase and reset your iPhone using Find My iPhone from another Apple device or through iCloud.com. Go to iCloud.com on any web browser, sign in with your Apple ID, and click "Find My." Select your iPhone from the list of devices.
Click your iPhone's name, then click "Erase This Device." Confirm that you want to erase it. Your iPhone will be wiped remotely, and you'll receive a notification when it's done. The phone then restarts and shows the setup screen, where you can create a new passcode.
This method works anywhere you have internet access and works even if your iPhone is offline — the erase command queues up and runs the next time the phone connects to the internet. Like recovery mode, this erases everything, so you'll need a backup to restore your data afterward.
Restoring your data after a reset
After you've reset your iPhone and created a new passcode, the setup screen will ask if you want to restore from a backup. If you have an iCloud backup, you can sign into your Apple ID during setup and choose which backup to restore. This brings back your apps, photos, messages, and settings.
If you have a backup on a computer, connect your iPhone to that computer after setup is complete. Open Finder (Mac) or iTunes (Windows), select your iPhone, and click "Restore Backup." Choose the backup you want and wait for it to finish restoring. If you don't have a backup, you'll set up your iPhone as new. You can still sign into your Apple ID to restore apps and photos from the App Store and iCloud, but messages and some settings won't come back.
What to do if you've forgotten both your iPhone password and Apple ID password
If you don't remember either password, you need to reset your Apple ID first. Go to iforgot.apple.com on any computer or phone, enter your Apple ID email, and follow the steps to verify your identity. Apple will ask you to answer security questions, receive a code by email, or use a trusted device to confirm it's really you.
Once you've reset your Apple ID password, use that new password to unlock your iPhone from the lock screen (the first method above). If that doesn't work, proceed to recovery mode or Find My iPhone using your newly reset Apple ID password.
Why your iPhone locked you out and how to avoid it again
Your iPhone locks after six failed passcode attempts to protect your data from someone trying to guess your password. After the sixth attempt, you see "iPhone Unavailable" and have to wait before trying again. Each failed attempt after that increases the wait time — eventually to hours. This is intentional security, not a malfunction.
To avoid this situation, write your passcode somewhere find (not on a sticky note on your monitor). Use a passcode you actually remember, or use Face ID or Touch ID so you don't have to type it often. If you use a complex passcode, test it occasionally to make sure you remember it correctly. Consider turning on iCloud backup so that if you ever do need to reset, your data is safe.
Frequently Asked Questions
How long does it take to reset my iPhone?
Using your Apple ID from the lock screen takes a few minutes. Recovery mode takes 10 to 20 minutes depending on your internet speed. Find My iPhone can take anywhere from a few minutes to several hours if your phone is offline, since it waits for the phone to connect to the internet before erasing.
Will I lose my photos and messages?
Only if you use recovery mode or Find My iPhone, both of which erase everything. If you use your Apple ID to unlock from the lock screen, nothing is erased. After a reset, you can restore photos and messages from an iCloud or computer backup.
Can I unlock my iPhone without a computer or another Apple device?
Yes, if you remember your Apple ID password. Use the "iPhone Unavailable" unlock method on your lock screen. If you don't remember your Apple ID password, you need either a computer (for recovery mode) or another Apple device or web browser (for Find My iPhone).
What if my iPhone says "iPhone Unavailable" and won't let me try again?
Wait the time shown on the screen. Apple increases the wait time after each failed attempt to prevent someone from guessing your password. After 15 minutes, an hour, or longer, you'll be able to try again or use the Apple ID unlock method.
Do I need to pay Apple to unlock my iPhone?
No. All of these methods are free. Apple doesn't charge to unlock your own device. If someone claims they can unlock your iPhone for a fee, they're not legitimate.