What you can do if you're locked out of your own iPhone
If you've forgotten your iPhone password, you have several legitimate ways back in. Apple built these recovery methods into every iPhone specifically so you wouldn't be permanently locked out of your own device. The path you take depends on what information you still have access to — your Apple ID, a trusted phone number, a computer, or a backup.
None of these methods will work on someone else's iPhone. Apple's security is designed to prevent that. But if this is your device and you set it up with your own Apple ID, at least one of these routes will work for you.
Key Takeaways
- If you remember your Apple ID password, you can reset your iPhone password through iCloud.com or the Find My iPhone app on another device.
- If you have a trusted phone number or email on file with Apple, you can use two-factor authentication to verify your identity and regain access.
- If you have a computer where you previously synced this iPhone, you can connect it and restore the device through iTunes or Finder.
- If none of those work, Apple's account recovery process can verify your identity through security questions or a recovery key you may have saved.
- Recovery typically takes a few hours to a few days depending on which method you use and how quickly you can provide proof of ownership.
Using iCloud to reset your password remotely
This is the fastest method if you remember your Apple ID and password. Go to iCloud.com on any computer or phone, sign in with your Apple ID, and select Find My iPhone. Locate your device in the list, select it, and choose Erase iPhone. This wipes the device and lets you set a new password when it restarts.
The catch: erasing through iCloud removes everything on the phone unless you have a backup. If you backed up to iCloud before you got locked out, you can restore from that backup after the erase completes. If you backed up to a computer instead, you'll need that computer later to restore your data.
If you don't have iCloud.com handy, the Find My app on any other Apple device (iPad, Mac, another iPhone) does the same thing. Select your locked iPhone, tap Erase This Device, and follow the prompts.
Using two-factor authentication if you don't remember your Apple ID password
If you can't remember your Apple ID password but you have access to a trusted phone number or email address associated with your account, two-factor authentication can get you in. On the locked iPhone, tap the question mark or "?" on the password screen, then select "Forgot passcode?" Follow the prompts to verify your identity using a trusted device or phone number.
Apple will send a verification code to your trusted phone number or email. Enter that code on your locked iPhone, and you'll be able to create a new password without erasing the device. This preserves all your data.
This method only works if you set up two-factor authentication before you got locked out. If you didn't, you'll need to use one of the other methods.
Restoring through a computer if you have one
If you previously synced your iPhone with a Mac or Windows computer, you can connect it and restore the device. Plug the iPhone into the computer with a USB cable. On a Mac with macOS Monterey or newer, open Finder and select your iPhone in the sidebar. On Windows or older Mac, open iTunes.
Select Restore, and the computer will erase the iPhone and install the latest iOS. When the phone restarts, you'll see the setup screen. If you have an iCloud backup from before you got locked out, you can restore from it at this point and get your data back. If you don't have a backup, you'll start with a blank phone.
This method requires that you actually synced with that specific computer before. If you've never plugged this iPhone into a computer, this won't work.
Apple's account recovery process for older or complex situations
If you don't remember your Apple ID password, don't have a trusted phone number or email on file, and don't have access to a computer you previously synced with, Apple has an account recovery process. Go to iforgot.apple.com and enter your Apple ID email address. Apple will walk you through verifying your identity using security questions you answered when you created the account, or a recovery key if you saved one.
This process can take several hours or up to three days depending on the verification method and how quickly you respond. Apple may ask you to confirm your identity through multiple channels to prevent someone else from taking over your account.
Once you've verified your identity and reset your Apple ID password, you can use that new password to unlock your iPhone through iCloud or two-factor authentication.
What happens if you can't verify your identity
If you can't answer your security questions and you don't have a recovery key, Apple can still help, but the process is slower. You'll need to provide proof that you own the device and the Apple ID — typically a receipt, proof of payment, or information about when and where you purchased the iPhone.
Contact Apple Support directly through apple.com/support or by calling 1-800-MY-APPLE. Have your device serial number ready (you can find it in Settings > General > About if you can get that far, or on the original box). Apple will verify your ownership and walk you through the next steps, which may include waiting for a security review.
Preventing this from happening again
Once you're back in, set up two-factor authentication if you haven't already. Go to Settings > [Your Name] > Password & Security > Two-Factor Authentication and turn it on. This adds a second layer of verification that makes account recovery much faster if you get locked out again.
Save your recovery key in a safe place — not on your phone. You can find it in Settings > [Your Name] > Password & Security > Account Recovery. Write it down or store it in a password manager. This key bypasses security questions entirely if you need to recover your account.
Consider using a password manager like 1Password, Bitwarden, or the built-in Keychain to store your Apple ID password. These tools make it less likely you'll forget it in the first place.
Frequently Asked Questions
Can I unlock my iPhone without my Apple ID?
Not through the standard methods. Your Apple ID is the security anchor for your device. If you don't have access to your Apple ID password, a trusted phone number, or a computer you previously synced with, you'll need to go through Apple's account recovery process, which verifies your identity before letting you reset anything.
Will I lose my photos and messages if I reset my password?
Not if you use two-factor authentication or account recovery — those methods let you reset your password without erasing the device. If you use the iCloud erase method, you'll lose everything unless you restore from a backup afterward. Always check whether you have a backup before you erase.
How long does it take to regain access?
Two-factor authentication is when ready if you have a trusted phone number or email. Erasing through iCloud takes a few minutes. Account recovery through iforgot.apple.com can take hours to three days depending on the verification method. Apple Support can sometimes speed this up if you provide proof of ownership.
What if I never set up an Apple ID on this iPhone?
If the phone has no Apple ID attached, you can erase it by connecting to a computer and using Finder or iTunes to restore. You'll lose all data, but the phone will be usable again. This is rare — most iPhones are set up with an Apple ID during initial setup.
Can I unlock someone else's iPhone using these methods?
No. Every method requires either the Apple ID password, a trusted phone number or email associated with that account, or proof of ownership. Apple's security is specifically designed to prevent unauthorized access even if someone has physical possession of the device.