Forgetting your iPhone passcode is stressful, but Apple provides several legitimate ways to regain access to your device. The path forward depends on what security features you've set up beforehand and what information you can access now.
When you're locked out of your iPhone, Apple doesn't store your passcode where it can simply be retrieved and sent to you. Instead, recovery works by verifying your identity through information only you should know. This protects your privacy and security—but it also means your options depend on what you prepared ahead of time.
The main recovery routes fall into these categories:
If you've linked an Apple ID to your iPhone, you can reset your passcode through that account. On the lock screen, you'll typically see an option to enter your Apple ID credentials after several incorrect passcode attempts. This process authenticates you as the account owner and allows you to set a new passcode.
What you need: Your Apple ID email address and password.
Important note: If you've enabled two-factor authentication on your Apple ID (a security best practice), you'll also need access to a trusted device or phone number associated with that account to verify your identity.
If you have access to another computer, you can connect your locked iPhone via USB and use Finder (on Mac) or iTunes (on Windows) to restore the device. During restoration, you'll be prompted to authenticate with your Apple ID.
This option works best if you remember your Apple ID credentials and still have a trusted device handy.
From any web browser, you can visit iCloud.com, sign in with your Apple ID, and use the "Find My iPhone" feature to erase your device remotely. After erasing, you can set up your iPhone again and create a new passcode.
Requirement: You must know your Apple ID password and be able to verify your identity through two-factor authentication if it's enabled.
If you have another iPhone, iPad, or Mac signed into the same Apple ID, you may be able to reset your passcode through those devices. Similarly, if you've set up a legacy contact or recovery contact through Apple's account settings, that person may be able to help verify your identity in some situations.
Availability varies: This depends on whether you set these features up before being locked out, and Apple's specific requirements at the time.
If you can't remember your Apple ID password, don't have access to a trusted device, and haven't set up recovery contacts, the process becomes more complex. Apple's security design prioritizes your privacy—which means even Apple employees cannot bypass your passcode. You'll need to:
Several factors determine which recovery method will work for you:
| Factor | Impact on Recovery |
|---|---|
| Apple ID access | Unlocks most automated recovery routes |
| Two-factor authentication | Adds verification step; requires trusted device or recovery phone number |
| Recovery contacts set up | Provides alternative verification method if you lose other access |
| Access to another Apple device | Enables account recovery through trusted device |
| How long ago you locked out | Older devices may have different recovery pathways available |
Once you regain access, consider these steps to avoid being locked out again:
Your situation is unique, and the fastest path to recovery depends on what information and devices you have available right now. Apple Support can assess your specific circumstances and walk you through the appropriate next steps.
