If you're locked out of your iPhone—or considering how to regain access to one you own—you have several options depending on your situation. The right path forward depends on whether you remember your passcode, have access to your Apple ID, or need help from Apple itself.
iPhones use multiple security layers. Your passcode (typically a 4- or 6-digit PIN or custom alphanumeric code) is the everyday lock. Behind that sits Face ID or Touch ID for quick biometric access. At the account level, your Apple ID is tied to your device and recovery options. Understanding which lock you're dealing with changes which unlock method applies to you.
This is the simplest case. Enter your passcode when prompted. Your device unlocks immediately.
If you've forgotten it, you've entered it incorrectly several times, or your device is disabled, you'll need one of the methods below.
If you've made too many incorrect passcode attempts, your iPhone will offer the option to unlock using your Apple ID and password. This typically works if:
This method often restores your access without erasing data, though it depends on your specific situation and iOS version.
If you have access to another device or a computer, you can use iCloud.com or the Find My app to unlock remotely:
Important trade-off: This erases your device entirely. You can restore from a backup afterward if one exists, but this should be a last resort when you can't unlock otherwise.
If you can't use iCloud or your Apple ID isn't responding, you can connect your iPhone to a computer (Mac or Windows) and use Recovery Mode:
Critical point: This also erases all data. You'll need a backup to restore afterward.
If none of these methods work—or you're uncomfortable attempting them—visit an Apple Store or authorized service provider. Bring proof of ownership (receipt, ID matching account information, or the original purchase email). Apple can verify your identity and help unlock the device, though processing times and availability vary by location.
| Situation | Best Path | What You'll Need |
|---|---|---|
| You remember your passcode | Enter it directly | The passcode |
| You forgot your passcode but know your Apple ID | Use Apple ID recovery | Apple ID email and password |
| You don't remember either | iCloud erase or Recovery Mode | Access to another device or computer |
| Device is activation locked after reset | Contact Apple or provide proof of purchase | Proof of ownership |
Activation Lock is different from a forgotten passcode. If you erase an iPhone without signing out of iCloud first, the device requires your Apple ID credentials to set up again. This is a security feature designed to prevent theft. Only the original owner's Apple ID can unlock this, even after a factory reset.
Two-Factor Authentication adds security to your Apple ID. If enabled, you'll need to verify your identity on a trusted device when resetting your passcode or using account recovery. This slows the process but protects your account.
Know your Apple ID credentials. Keep them somewhere secure but accessible—not on a sticky note on your monitor, but perhaps in a password manager. You'll need them if you're ever locked out.
Set up a recovery email and phone number on your Apple ID account. These let Apple verify your identity if you're locked out.
Create regular backups of your iPhone through iCloud or your computer. If you do need to erase and reset, you'll have a way to restore your data.
If you're locked out right now, start with the method that matches what you remember. If you remember nothing and can't access another device, your path leads to Apple or an authorized service provider, where staff can verify you own the device and help from there.
