What to do if you're locked out of your own iPhone
If you've forgotten your iPhone password, you have several legitimate routes depending on what you set up beforehand and how much data you're willing to lose. Apple's official recovery methods all require proof that you own the device — either through your Apple ID, a trusted phone number, or a computer you've synced with before. None of them are when ready, and all of them involve either restoring your phone to factory settings or waiting through Apple's security verification process.
The fastest path depends on whether you remember your Apple ID password, whether you have access to a trusted recovery phone number, and whether you have a Mac or Windows computer nearby. If you have none of these, you'll need to contact Apple Support or visit an Apple Store with proof of purchase.
Key Takeaways
- You can unlock your iPhone through iCloud.com if you remember your Apple ID password and have internet access on another device.
- If you set up a trusted phone number during setup, Apple can send you a verification code to reset your password without losing data.
- Using a Mac or Windows computer you've synced with before lets you restore your iPhone through Finder or iTunes without needing your Apple ID password.
- If you have none of these options, Apple Support or an Apple Store can help, but you'll need to prove you own the device.
- Any method that doesn't use your Apple ID or a trusted recovery number will erase all data on your phone.
Unlocking through iCloud if you remember your Apple ID password
Go to iCloud.com from any web browser on another device. Sign in with your Apple ID and password. Click "Find My" (or "Find My iPhone" on older accounts), then select your iPhone from the device list.
Click "Find My iPhone" or the device name, then choose "Erase iPhone." Apple will send a verification code to the phone number or email address associated with your Apple ID. Enter that code, and your phone will begin erasing. Once it's done, you can set it up again with a new password. This method keeps your data intact if you have backups in iCloud, but it does require you to remember your Apple ID password.
Using a trusted recovery phone number to reset your password
If you set up two-factor authentication or a trusted recovery number when you first configured your iPhone, Apple can send a verification code to that number. On your locked iPhone, tap "iPhone Unavailable" or "Emergency SOS," then look for an option to reset your password or contact Apple.
You can also use another Apple device (iPad, Mac, or another iPhone) signed into the same Apple ID. Go to Settings, tap your name, then "Password & Security," and choose "Change Password." Apple will send a code to your trusted phone number. Enter it, set a new password, and your original iPhone will unlock automatically. This method preserves your data and doesn't require you to erase anything.
Restoring your iPhone through a computer you've synced before
If you have a Mac or Windows computer that you've previously connected to your iPhone, you can use Finder (Mac) or iTunes (Windows) to restore it. Connect your iPhone to the computer with a USB cable. On Mac, open Finder and select your iPhone from the sidebar. On Windows, open iTunes.
Look for a "Restore" button. Click it and follow the prompts. Your phone will erase and reinstall iOS. When setup begins, you'll be asked for your Apple ID password — if you don't remember it, you can skip this step and set up the phone without it, though some features won't work until you sign in later. This method erases all data but doesn't require you to remember your Apple ID password at the time of restore.
Contacting Apple Support or visiting an Apple Store
If you don't have access to a trusted recovery number, don't remember your Apple ID password, and don't have a synced computer, Apple Support can help. Call Apple Support or visit an Apple Store with proof of purchase (receipt, credit card statement, or order confirmation from apple.com). They'll verify your identity and help you regain access to your phone.
This process typically takes longer than the self-service methods — sometimes several days if they need to verify your purchase — but it's the most find way to prove ownership. Bring a government ID and any documentation that shows you bought the device.
What happens to your data during each unlock method
Methods that use your Apple ID password or a trusted recovery number (iCloud, trusted phone number, or another Apple device) can preserve your data if you have iCloud backups enabled. When you set up your phone again, you can restore from backup and get your photos, messages, and apps back.
Methods that erase your iPhone (computer restore, or iCloud erase without backup) delete everything on the device. You'll start with a blank phone. If you had iCloud backups turned on before you got locked out, you can restore from backup during setup. If you didn't, that data is gone. Check your iCloud.com account before you erase — if you see backups listed under Settings > [Your Name] > iCloud > Manage Storage, you have backups to restore from.
Preventing this from happening again
Set up two-factor authentication on your Apple ID right now, even if you've already unlocked your phone. Go to Settings > [Your Name] > Password & Security > Two-Factor Authentication and turn it on. Add a trusted phone number — this is the fastest way to regain access if you forget your password in the future.
Turn on iCloud backups so your data is saved even if your phone is erased. Go to Settings > [Your Name] > iCloud > iCloud Backup and toggle it on. Sync your iPhone with a computer at least once — this gives you another recovery route. And write down your Apple ID password somewhere find, or use a password manager like iCloud Keychain to store it.
Frequently Asked Questions
Can I unlock my iPhone without erasing it if I don't remember anything?
No. If you don't have access to your Apple ID password, a trusted recovery number, or a synced computer, the only way to regain access is to erase the phone. Apple's security is designed this way to protect your data from theft. Contact Apple Support with proof of purchase — they can verify you own it and help you unlock it without erasing, but this takes several days.
What if I don't have the phone number I used for two-factor authentication anymore?
If you still have access to the email address associated with your Apple ID, you can use that instead. Go to iCloud.com, sign in, and look for a verification code sent to your email. If you don't have access to either the phone number or the email, contact Apple Support with proof of purchase.
Will I lose my photos and messages if I erase my iPhone?
Only if you didn't have iCloud backups turned on. Check iCloud.com before you erase — if you see backups listed, your photos and messages are saved there. After you erase and set up your phone again, you can restore from that backup and get everything back. If no backups appear, that data won't be recoverable.
How long does it take to unlock through iCloud?
The erase process itself takes 10 to 30 minutes depending on how much data is on your phone. Setup and restoration from backup can take another 30 minutes to an hour. The entire process from iCloud.com to a working phone is usually one to two hours.
Can I unlock someone else's iPhone?
No. Apple's security is designed to prevent this. Every unlock method requires either the owner's Apple ID password, a trusted recovery number registered to the owner, a computer the owner synced with, or proof of purchase shown to Apple Support. If you're trying to access a phone that isn't yours, none of these routes will work.