You cannot override an iPhone password without Apple's help or your own recovery credentials
If you have forgotten your iPhone password, Apple's security design means there is no backdoor or override method that bypasses it. This is intentional — the same system that locks you out also protects your data from theft. Your path forward depends on whether you have a recovery email, a trusted phone number, or access to a computer where you previously signed in.
The fastest route is usually to use your Apple ID and a recovery method you set up before you were locked out. If you do not have those, you will need to erase the phone and set it up as new, which means losing all data unless you have a backup. There is no way around this without one of those three things.
Key Takeaways
- Apple ID recovery through email or a trusted phone number is the fastest way back in if you set them up before you forgot your password.
- If you have no recovery method and no backup, you must erase the iPhone completely, which deletes all photos, messages, and apps.
- A computer where you previously signed into iCloud can sometimes unlock the phone without erasing it, but only if you have not changed your Apple ID password since.
- Recovery mode erases the phone but does not require you to know your password — it is the last-resort method when nothing else works.
Using your Apple ID to unlock the iPhone
If you remember your Apple ID email and password, you can use them to regain access without erasing the phone. On the lock screen, tap the option that says "iPhone Unavailable" or "Try After [time]" — you should see text that says "Use your Apple ID instead" or similar. Tap it, then enter your Apple ID email and password.
Apple will send a verification code to the email address or phone number associated with your Apple ID. Check that email or phone for the code, enter it on the iPhone, and then create a new iPhone password. You keep all your data and apps. This works only if you have not changed your Apple ID password since you last signed in on this phone.
Unlocking through a trusted phone number or email
When you set up your iPhone, Apple asks you to add a recovery phone number and recovery email. If you locked yourself out, you can use these to reset your password without the phone itself. Go to iforgot.apple.com on any computer or another phone, enter your Apple ID email, and follow the prompts.
Apple will send a code to your recovery email or text your recovery phone number. Enter that code, create a new Apple ID password, and then go back to your locked iPhone. Use the new password to unlock it. If you do not remember which recovery email or phone you used, try the ones you think are most likely — Apple will tell you if they are not on file.
Erasing the iPhone and starting over
If you have no Apple ID recovery method and no way to remember your password, you must erase the phone. This deletes everything on it — all photos, messages, apps, and settings. You can only restore your data if you have a backup stored in iCloud or on a computer.
To erase the phone, go to iCloud.com on any computer, sign in with your Apple ID, and select "Find My iPhone." Choose your locked iPhone from the list, then select "Erase iPhone." The phone will wipe itself and restart. You can then set it up as a new phone or restore from a backup if you have one.
If you do not have access to iCloud.com or another computer, you can use Recovery Mode instead. Plug the iPhone into a computer with iTunes or Finder, force the phone to restart (the button combination varies by model), and choose "Restore" when prompted. This also erases the phone but does not require you to know your Apple ID password.
Using a computer where you previously signed in
If you have a Mac or Windows computer where you previously signed into iCloud with this Apple ID, you may be able to unlock the iPhone without erasing it. Plug the iPhone into that computer, open Finder (Mac) or iTunes (Windows), and look for an option to unlock or restore the device.
This method works only if you have not changed your Apple ID password since you last used that computer. If you have changed your password, the computer will not have the right credentials and you will need to erase the phone instead. This is a less common path but worth trying if you have an older computer you used to sync with.
What to do if you have a backup but cannot unlock the phone
If you have an iCloud backup or a backup on a computer, you can erase the phone and restore from that backup once you regain access. Your photos, messages, contacts, and most apps will come back. The backup will not restore your password — you will create a new one during setup — but it will restore nearly everything else.
Before you erase, check whether your backup is recent enough to matter. Go to iCloud.com, sign in, and look at the backup date under "Device Settings." If your backup is weeks or months old, you will lose recent data even after restoring. In that case, erasing and starting fresh may be simpler than restoring an outdated backup.
Preventing this from happening again
Once you regain access, write down your Apple ID password or store it in a password manager like iCloud Keychain, 1Password, or Bitwarden. Add a recovery email and recovery phone number to your Apple ID account at appleid.apple.com. Turn on two-factor authentication so that even if someone learns your password, they cannot sign in without a code sent to your phone or email.
If you use Face ID or Touch ID, keep them turned on — they are faster than typing a password and you are less likely to forget them. If you do forget your password in the future, you will have multiple ways to prove you own the account and regain access without erasing the phone.
Frequently Asked Questions
Can someone else unlock my iPhone if I forget the password?
No. Apple does not have a master password or override method, and neither does your carrier or phone company. Only you, using your Apple ID recovery methods, can unlock it. If you have no recovery method and no backup, the phone must be erased.
Will I lose my photos and messages if I erase the phone?
Yes, unless you have a backup. If you have iCloud backup turned on, your data is stored in iCloud and you can restore it after erasing. Check iCloud.com to see when your last backup was. If you have no backup, erasing means losing everything on the phone.
How long does it take to unlock an iPhone through Apple ID recovery?
Usually a few minutes. You enter your Apple ID, receive a code by email or text, enter the code, create a new password, and unlock the phone. The slowest part is waiting for the email or text to arrive. Erasing through iCloud or Recovery Mode takes 10 to 30 minutes depending on the phone model.
What if I do not remember my Apple ID email address?
Try the email addresses you use most often at iforgot.apple.com. If none of them work, you may have used a different email when you created your Apple ID. Check old receipts from Apple purchases or look at the email address on any Apple devices you own. If you still cannot find it, you will need to erase the phone and create a new Apple ID during setup.
Can I unlock my iPhone without a computer?
Yes, if you have your Apple ID recovery email or phone number. Go to iforgot.apple.com on any device with internet, reset your Apple ID password, and then use the new password on your locked iPhone. You do not need a computer. If you have no recovery method, you will need a computer to erase the phone through iCloud.com or Recovery Mode.