Locked Out of iPad, iPhone, or iPod Touch? Here's What to Do
In this article
If you're locked out of your iPhone, iPad, or iPod touch because you forgot the passcode, the only official way back in is to erase the device and restore it from a backup or set it up as new. There is no backdoor to unlock it without the passcode. This guide walks you through the recovery steps for all current iOS/iPadOS versions, using either a computer or iCloud, depending on what you have available.
What You'll Need
- A computer (Mac or Windows PC) with the latest version of iTunes, or the Finder app if you're on macOS Catalina or later.
- The USB cable that came with your device (or a compatible one).
- Your Apple ID password, if you plan to use iCloud or if Find My is enabled.
- If you have a backup (iCloud or computer), you'll need that to restore your data. If not, you'll lose everything on the device.
Step-by-Step
These steps work for iPhone, iPad, and iPod touch running iOS 15 or later, iPadOS 15 or later, and earlier versions. The exact menu names may differ slightly by version and device, but the process is the same.
Method 1: Use a Computer (Works for All Devices)
- Turn off your device. Press and hold the side button (or top button on older models) and drag the power slider to off. If the device is already off, skip this.
- Put your device into recovery mode. The button combination depends on your model:
- iPhone 8 or later, iPad with Face ID, iPod touch (7th gen): Press and quickly release the Volume Up button, then press and quickly release the Volume Down button. Then press and hold the Side button (or Top button on iPod touch) until the recovery mode screen appears (a computer icon and a cable).
- iPhone 7, iPhone 7 Plus, iPod touch (6th gen): Press and hold the Side (or Top) button and the Volume Down button together until the recovery mode screen appears.
- iPhone 6s and earlier, iPad with Home button, iPod touch (5th gen): Press and hold the Home button and the Side (or Top) button together until the recovery mode screen appears.
- Connect your device to your computer. Use the USB cable. Open Finder (on macOS Catalina or later) or iTunes (on Windows or older macOS). If you see a message asking to trust this computer, tap "Trust" on your device (if you can't, that's fine, the recovery mode bypasses that).
- When your device appears in Finder or iTunes, you'll see a prompt offering two options: "Update" or "Restore." Choose Restore. This will erase your device and install the latest iOS/iPadOS. If you see a "Restore and Update" option, choose that.
- Wait for the process to finish. Your device will restart, and you'll see the "Hello" screen. If you have a backup, you can restore it during setup. If not, set up as new.
Method 2: Use iCloud (Only If Find My Is Enabled)
- Go to iCloud.com/find on any computer or another device, and sign in with your Apple ID.
- Click "All Devices" at the top, then select your locked device.
- Click "Erase iPhone" (or iPad/iPod touch). This will remotely erase the device and remove the passcode.
- After the erase completes, you can set up the device as new or restore from a backup. If you have a backup, you'll be asked for your Apple ID password when restoring, which is a security measure.
If you don't have a computer or iCloud access, you cannot unlock the device yourself. You'll need to contact Apple Support, but they will likely ask you to provide proof of purchase before they can help you erase it.
Common Mistakes
- Choosing "Update" instead of "Restore" – Update tries to reinstall the system without erasing, but it won't remove the passcode. You must restore.
- Not putting the device into recovery mode properly – If you don't see the recovery mode screen, the device will boot normally, and you'll be stuck. Double-check the button sequence for your model.
- Using a non-Apple cable – Some third-party cables don't support data transfer, so the computer won't recognize the device. Use the original cable or a certified one.
- Forgetting your Apple ID password – If you have Find My enabled, you'll need your Apple ID password to erase via iCloud. If you forgot it, go to iforgot.apple.com to reset it first.
- Assuming a backup will restore everything – If your backup is old, you'll lose recent photos, messages, and app data. Also, if you never backed up, you'll lose everything.
Tips
- Keep your device backed up regularly This is the only way to get your data back after a lockout.
- Write down your passcode – Store it in a secure password manager, not on a sticky note.
- Use Face ID or Touch ID – They don't prevent lockout, but they reduce the chance of forgetting your passcode because you use it less often.
- If you have an Apple Watch – It can unlock your iPhone, but only if the iPhone has Face ID and the watch is on your wrist. This doesn't help if the iPhone is already locked.
- After restoring, set a new passcode – Choose something you'll remember, but not something obvious like 1234.
Troubleshooting
If the restore fails or your device doesn't appear in Finder/iTunes, try these in order:
- Restart your computer – This often fixes connection issues.
- Try a different USB port – Use a port directly on the computer, not a hub.
- Check your cable – Try a different Apple cable if possible.
- Update iTunes or macOS – On Windows, download the latest iTunes from Apple's website. On Mac, update macOS via System Settings > General > Software Update.
- Force restart your device – While in recovery mode, if it gets stuck, force restart by pressing and releasing Volume Up, then Volume Down, then holding the Side button until you see the Apple logo. Then put it back into recovery mode and try again.
- If the device is disabled for a long time – The device may show "Security Lockout" or "iPhone is disabled, connect to iTunes." That's fine; recovery mode still works.
- If you get an error 4013 or 9 – This usually means a hardware issue or a bad cable. Try a different cable and port, and restart your computer. If it persists, contact Apple Support.
Frequently Asked Questions
Can I unlock my iPhone without erasing it?
No. Apple does not provide any way to remove a passcode without erasing the device. This is a security feature to protect your data.
What if I never backed up? Can I still get my photos back?
No. If you didn't back up to iCloud or a computer, the data is gone after the restore. There is no third-party tool that can recover data from a locked device without the passcode, and using such tools is risky and often a scam.
Will the restore work if I don't have a computer?
If you have Find My enabled, you can erase via iCloud.com/find. If not, you'll need to borrow a computer or go to an Apple Store. Apple Stores can help, but they'll require proof of purchase.
How long does the restore take?
It usually takes 5–15 minutes, depending on your internet speed and the device model. The device will restart once or twice.
Will I lose my Apple Pay cards and Face ID after restore?
Yes. After restoring, you'll need to re-add your credit/debit cards to Apple Pay and set up Face ID or Touch ID again. This is normal.
Can I use a third-party tool to unlock it?
We strongly advise against it. These tools are not officially supported, may contain malware, and often don't work. The only safe method is the one described above.