If your iPhone is disabled because of a forgotten passcode or too many failed attempts, the only way to regain access is to erase the device and restore it from a backup (or set it up as new). This guide walks you through the exact steps to restore a locked or disabled iPhone and reset the passcode using a computer, covering both Finder (macOS) and iTunes (Windows). Before you start, you’ll need a computer with the latest version of macOS or iTunes, a compatible USB cable, and, if you want to keep your data, a recent backup stored on iCloud or the computer.
What You’ll Need
- A computer (Mac with macOS Catalina or later, or a PC with iTunes installed)
- A USB-to-Lightning or USB-C cable that works with your iPhone
- Your Apple ID password (if Find My iPhone is enabled, you’ll need it after the restore)
- Optional but recommended: a recent backup of your iPhone (iCloud or computer) so you can restore your data after the reset
Step-by-Step
- Update your computer software. On a Mac, go to System Settings > General > Software Update. On a PC, open iTunes and go to Help > Check for Updates. Make sure you have the latest version of macOS or iTunes to avoid compatibility issues.
- Connect your iPhone to the computer. Use the cable to plug your iPhone into the computer. If your iPhone is disabled, it may not show up normally, but the computer should still detect it in recovery mode.
- Put your iPhone into recovery mode. The exact button combination depends on your iPhone model:
– iPhone 8 or later (including SE 2nd gen and later): Press and quickly release the Volume Up button, then press and quickly release the Volume Down button. Then press and hold the Side button until the recovery mode screen appears (a computer icon and a cable).
– iPhone 7, 7 Plus, and iPod touch 7th 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, and iPod touch 6th gen: Press and hold the Home button and the Top (or Side) button together until the recovery mode screen appears. - When you see the recovery mode screen, a pop-up should appear on your computer: “There is a problem with the iPhone that requires it to be updated or restored.” Click Restore (not Update). If you don’t see the pop-up, open Finder (on Mac) or iTunes (on PC) and select your iPhone from the sidebar.
- Confirm the restore. A warning will tell you that restoring will erase all data and install the latest iOS. Click Restore again to confirm. The computer will download the iOS software (this can take a while) and then erase and reinstall iOS on your iPhone.
- Wait for the restore to finish. Do not unplug the iPhone during this process. The iPhone will restart, and you’ll see the Apple logo and a progress bar. When it’s done, the iPhone will show the “Hello” screen.
- Set up your iPhone. Follow the on-screen instructions. When you reach the “Apps & Data” screen, choose to restore from an iCloud backup, restore from a computer backup, or set up as new. If you choose a backup, you’ll need your Apple ID and password. If you set up as new, you’ll be prompted to create a new passcode.
- If you have Find My iPhone enabled, you’ll be asked to enter your Apple ID password to activate the iPhone. This is a security measure to prevent others from using your device.
Common Mistakes
- Choosing “Update” instead of “Restore” – Update attempts to keep your data, but it often fails on a disabled iPhone and can leave it stuck. Always choose Restore.
- Not putting the iPhone into recovery mode properly – If you don’t hold the buttons long enough or in the right sequence, the iPhone won’t enter recovery mode and the computer won’t recognize it.
- Unplugging the iPhone during the restore – This can interrupt the process and cause a software error, leaving the iPhone in a worse state.
- Forgetting your Apple ID password – If Find My iPhone is on, you’ll be locked out after the restore without it. Make sure you know it or reset it beforehand.
- Using an outdated computer or iTunes – Older software may not support the latest iOS and can cause errors during the restore.
Tips
- Use a wired connection – Avoid using a USB hub or a low-quality cable; use the cable that came with your iPhone or a certified one.
- Back up regularly – If you have a recent iCloud or computer backup, you won’t lose your photos, messages, and app data after the restore.
- Try recovery mode before DFU mode – Recovery mode is sufficient for most cases. DFU (Device Firmware Update) mode is a deeper restore and should only be used if recovery mode fails.
- Keep your computer plugged in – If you’re using a laptop, keep it connected to power to avoid it going to sleep during the download/restore.
- If you have an Apple Watch paired – After restoring, you’ll need to unpair and re-pair it, so make sure you have its passcode.
Troubleshooting
- Computer doesn’t recognize the iPhone: Try a different USB port, a different cable, or restart your computer. Also, make sure your iPhone is in recovery mode (showing the computer icon).
- Restore gets stuck or fails with error 4013, 4014, or 9: These errors often indicate a connection issue. Try a different cable, a different USB port, or restart both devices. If it persists, try putting the iPhone into DFU mode (see below) and restore again.
- iPhone doesn’t enter recovery mode: Double-check the button sequence for your model. If it still doesn’t work, try DFU mode: connect to computer, then for iPhone 8+, press Volume Up, Volume Down, then hold Side button for 10 seconds, then keep holding Side and press Volume Down for 5 seconds, then release Side but keep holding Volume Down for 10 more seconds. The screen stays black – that’s DFU. Then Finder/iTunes will detect it.
- iTunes says “The iPhone could not be restored. An unknown error occurred.” This is usually a software issue. Restart the computer, update iTunes, and try again. If it continues, try a different computer.
- After restore, iPhone asks for the previous owner’s Apple ID: This is Activation Lock. You must enter the Apple ID and password that was used on the device. If you don’t have it, you’ll need to contact Apple Support with proof of purchase.
Frequently Asked Questions
Will I lose all my data if I restore a disabled iPhone?
Yes, restoring erases everything on the iPhone. However, if you have a backup (iCloud or computer), you can restore your data after the reset. Without a backup, your data is gone.
Can I unlock a disabled iPhone without a computer?
No, you need a computer with Finder (macOS) or iTunes (Windows) to restore a disabled iPhone. There is no way to reset the passcode directly on the device itself.
How long does the restore take?
It depends on your internet speed and the iOS download size. Typically, it takes 10 to 30 minutes, but it can be longer if the download is slow.
What is the difference between recovery mode and DFU mode?
Recovery mode reinstalls iOS while keeping the bootloader intact. DFU mode allows a deeper restore and can fix more serious software issues, but it’s riskier and should be used only if recovery mode fails.
Will I need my Apple ID password after the restore?
Yes, if Find My iPhone (Activation Lock) was enabled, you’ll need the Apple ID and password that was used on the device. This is a security feature to prevent unauthorized use.
Can I use iCloud to erase a disabled iPhone?
If Find My iPhone is enabled and the iPhone is connected to the internet, you can use iCloud.com to erase it remotely. Go to iCloud.com, sign in, select Find iPhone, choose the device, and click Erase. This will remove the passcode, but you’ll still need the Apple ID password to activate 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
- How to Turn Off Shutter Sound on iPhone
- VPN Setup on iPhone SE: Step-by-Step Guide
- Fix Internet Not Working on Windows 11
- Fix Right Click Not Working in Firefox
- Compare Two Columns with Comma Separated Values in Excel
- How to Limit Ad Tracking on iPhone Apps