This guide walks you through the methods to unlock an iPhone when you’ve forgotten the passcode. Depending on your situation, you’ll use either a computer with Finder or iTunes, or another Apple device. The process erases the device, so you’ll need your Apple ID password to restore from a backup afterward.
What You’ll Need
- A computer with the latest version of macOS or iTunes (Windows), or another iPhone/iPad with iOS 15 or later.
- The USB cable that came with your iPhone (or a compatible one).
- Your Apple ID password and, if you use one, your device passcode for iCloud Keychain.
- If you have a backup (iCloud or computer), you’ll need it to restore your data after unlocking.
Step-by-Step
Method 1: Using a Computer (Finder or iTunes)
- On your computer, open Finder (macOS Catalina or later) or iTunes (Windows or older macOS).
- Connect your iPhone to the computer using the USB cable.
- If asked “Trust This Computer?”, tap “Trust” on your iPhone. If you can’t (because you’re locked out), proceed to the next step.
- Put your iPhone into recovery mode:
- iPhone 8 or later: Press and quickly release the Volume Up button, then the Volume Down button. Press and hold the Side button until the recovery mode screen appears.
- iPhone 7/7 Plus: Press and hold the Side (or Top) button and the Volume Down button together until the recovery mode screen appears.
- iPhone 6s and earlier: Press and hold the Home button and the Top (or Side) button together until the recovery mode screen appears.
- On your computer, a dialog will appear: “There is a problem with the iPhone that requires it to be updated or restored.” Click “Restore”.
- Confirm that you want to restore. Your computer will download the iOS software and restore your iPhone to factory settings. This removes the passcode.
- Once the restore finishes, your iPhone will restart. Set it up as new, or restore from a backup.
Method 2: Using Another Apple Device (iOS 15 or later)
- Make sure your locked iPhone is near the other Apple device (iPhone or iPad) that is signed in with your Apple ID and has Wi-Fi and Bluetooth turned on.
- On the other device, open the Settings app, tap your name, then tap “Find My”.
- Tap “Find My iPhone” (or “Find My iPad”), then tap “Erase This Device”.
- Follow the prompts to confirm. You’ll need your Apple ID password.
- The locked iPhone will be erased, removing the passcode. After it restarts, you can set it up as new or restore from a backup.
Common Mistakes
- Not putting the iPhone into recovery mode correctly: The timing matters. If you hold buttons too long or too short, the phone may just restart normally or show the connect-to-computer screen.
- Using the wrong computer: If you’ve never connected the iPhone to that computer before, you might need to trust it first, which is impossible when locked out.
- Forgetting your Apple ID password: After erasing, you’ll need it to disable Activation Lock. Without it, the iPhone becomes unusable.
- Choosing “Update” instead of “Restore”: Update keeps your data but may not remove the passcode. For a forgotten passcode, you must choose Restore.
Tips
- Before doing anything, check if your iPhone is backed up to iCloud. If you have iCloud backups enabled, your photos, contacts, and messages can be restored after the erase.
- If you have a computer backup (encrypted in iTunes/Finder), that’s even better—it includes passwords and health data.
- Use a strong but memorable passcode, and consider enabling Face ID or Touch ID so you don’t have to type it often.
- After unlocking, go to Settings > Face ID & Passcode (or Touch ID & Passcode) and change your passcode to something you’ll remember.
Troubleshooting
iPhone won’t enter recovery mode
Make sure the USB cable is firmly connected. Try a different USB port or cable. If the phone restarts during the process, repeat the button sequence quickly.
Computer says “iPhone is disabled” or “iPhone is not supported”
Update your computer’s operating system or iTunes to the latest version. Older software may not recognize newer iPhone models.
Restore gets stuck or fails
Check your internet connection. If it fails, try again. If it persists, try a different computer or USB port. If the iPhone shows the Apple logo but never finishes, force restart it and retry.
Activation Lock appears after restore
This means the iPhone is still linked to your Apple ID. Enter your Apple ID and password to proceed. If you don’t remember them, go to iforgot.apple.com to reset, but you’ll need access to the trusted phone number or email.
No computer or second Apple device available
You can’t unlock an iPhone without one of these. Borrow a friend’s computer or visit an Apple Store (they can help if you have proof of purchase).
Frequently Asked Questions
Will I lose all my data?
Yes, the restore process erases everything on the iPhone. However, if you have a recent backup (iCloud or computer), you can restore your data after setting up the phone.
Can I unlock my iPhone without a computer?
Yes, if you have another Apple device (iPhone or iPad) with iOS 15 or later, you can use the Find My app to erase the locked iPhone. This only works if Find My was enabled on the locked device.
What if I don’t know my Apple ID password?
You’ll need to reset it via iforgot.apple.com. Without it, you cannot disable Activation Lock, and the iPhone will be unusable after the restore.
Does this work for any iPhone model?
Yes, the recovery mode method works for all iPhone models. The button combination differs, but the principle is the same.
Is there a way to unlock without erasing?
No. Apple does not provide a way to bypass the passcode without erasing the device. This is a security feature to protect your data.
How long does the restore take?
It depends on your internet speed and the iPhone model. Typically, it takes 10 to 30 minutes to download the iOS software and install it.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- View Android Photos on Chromebook: Step-by-Step
- Fix Windows Could Not Prepare the Computer to Boot
- Windows 11 Security Settings: Best Config Guide
- Set a Google Play Budget & Stop Accidental Purchases
- Destiny 2 Error Code Anteater: Fixes & Causes
- Install Custom Recovery on Samsung Galaxy Trend