Being locked out of your iPhone can happen to anyone — a forgotten passcode, too many wrong attempts, or buying a second-hand device with security still active. This guide covers every method to regain access, from official Apple procedures to third-party tools.
- iOS disables your iPhone permanently after 10 consecutive wrong passcode attempts, requiring Recovery Mode, iCloud, or the on-screen Erase option to regain access.
- Recovery Mode is the most universally compatible unlock method and works on all iPhone models without needing a prior iCloud backup.
- iPhones running iOS 15.2 or later show an “Erase iPhone” option directly on the lock screen after enough failed attempts, eliminating the need for a computer.
- All standard unlock methods erase the device, so having a recent iCloud or iTunes backup before a lockout occurs is critical for data recovery.
- Find My iPhone at iCloud.com can remotely erase and unlock a device as long as it was signed into an Apple ID with Find My enabled beforehand.
#How iPhone Lockouts Work
When you enter the wrong passcode repeatedly, iOS disables the device on an escalating timeline:

| Failed Attempts | Result |
|---|---|
| 6 | Disabled for 1 minute |
| 7 | Disabled for 5 minutes |
| 8 | Disabled for 15 minutes |
| 9 | Disabled for 60 minutes |
| 10 | Disabled permanently — “Connect to iTunes” or auto-erase if enabled |
After 10 failed attempts, you must use one of the methods below to regain access. All methods (except the external keyboard trick) erase the device, so having a backup is critical.
#Method 1: Recovery Mode (All iPhones)
Recovery Mode is Apple’s built-in restore mechanism. It works on every iPhone model, even when the device is completely disabled.

#Step 1: Enter Recovery Mode
The button combination depends on your model:
- iPhone 8, SE (2nd+), X, and later: Press and quickly release Volume Up, then Volume Down, then hold the Side button until the recovery screen appears
- iPhone 7 and 7 Plus: Hold the Side and Volume Down buttons simultaneously until the recovery screen appears
- iPhone 6s and earlier: Hold the Home and Top/Side buttons simultaneously until the recovery screen appears
#Step 2: Restore
- Connect the iPhone to a computer with iTunes (Windows/older Mac) or Finder (macOS Catalina+)
- When prompted, click Restore
- Wait for the download and restore to complete
- Set up as new or restore from a backup
If your iPhone gets stuck on the restore screen, see our guide on fixing an iPhone stuck on the restore screen.
Pros: Official Apple method, free, no third-party software Cons: Erases all data, requires a computer
#Method 2: DFU Mode (When Recovery Mode Fails)
Device Firmware Update (DFU) Mode is a deeper restore that reinstalls both firmware and software. Use it when Recovery Mode doesn’t work or when the device won’t boot normally.
#How to Enter DFU Mode
iPhone 8 and later:
- Connect to computer, open iTunes/Finder
- Press and quickly release Volume Up, then Volume Down
- Hold the Side button for 10 seconds
- While holding Side, also hold Volume Down for 5 seconds
- Release the Side button but keep holding Volume Down for 10 seconds
- The screen stays black (if you see the Apple logo, start over)
iPhone 7/7 Plus: Hold Side + Volume Down for 10 seconds, then release Side only
iPhone 6s and earlier: Hold Home + Top/Side for 10 seconds, then release Top/Side only
Once in DFU Mode, iTunes/Finder will detect the device and prompt you to restore.
#Method 3: Erase iPhone (iOS 15.2+ — No Computer Needed)
Starting with iOS 15.2, Apple added an Erase iPhone button directly on the lock screen after too many failed attempts:
- After the device shows “iPhone Unavailable” or “Security Lockout”
- Tap Erase iPhone in the bottom-right corner
- Tap Erase iPhone again to confirm
- Enter your Apple ID password to sign out
- The device erases and restarts to the setup screen
Requirements: The iPhone must be connected to Wi-Fi or cellular, and you must know the Apple ID password linked to the device.
#Method 4: Find My iPhone (Remote — No Computer Needed)
If Find My iPhone is enabled, you can erase and unlock remotely:

#Via iCloud.com:
- Go to iCloud.com/find on any browser
- Sign in with your Apple ID
- Click All Devices → select your locked iPhone
- Click Erase iPhone → confirm
#Via Find My App (on another Apple device):
- Open the Find My app on another iPhone, iPad, or Mac
- Tap Devices → select your locked iPhone
- Tap Erase This Device → confirm
Pros: No computer needed, works remotely Cons: Erases all data, requires Find My to be enabled and the device online
#Method 5: Third-Party Unlock Tools
When official methods aren’t accessible, these tools provide guided unlock processes:
- dr.fone — Screen Unlock: Supports all iPhone models and iOS versions. Simple interface.
- iToolab UnlockGo: Multiple unlock modes for different scenarios.
- Tenorshare 4uKey: High success rate, frequent updates, guided Recovery/DFU mode entry.
#How to use:
- Download and install on your computer
- Connect the locked iPhone via USB
- Follow the software’s prompts to enter Recovery/DFU Mode
- The tool downloads firmware and restores the device
These tools can also help when your iPhone screen is broken and you can’t interact with the display.
Pros: User-friendly, guided process, works when you don’t know the Apple ID Cons: Paid software, may void warranty
#Backing Up Before You Unlock
If possible, back up your data before erasing:
- iTunes/Finder: If the computer was previously trusted by the iPhone, connect via USB and click Back Up Now — no passcode needed
- iCloud auto-backup: If the iPhone was connected to Wi-Fi and charging, iCloud may have a recent automatic backup
- Third-party tools: Apps like iMyFone iTransor can selectively extract data from locked devices in some cases
Check your iCloud backup status at iCloud.com → Account Settings → Manage Storage.
#Preventing Future Lockouts
- Use Face ID or Touch ID — biometric unlock reduces passcode reliance
- Use a memorable passcode — or store it in a password manager
- Enable Find My iPhone — gives you the remote erase option
- Back up regularly — iCloud automatic backup or weekly iTunes/Finder backup
- Write down your Apple ID password — store it securely separate from the device
- Check carrier lock status — if buying used, verify the device is unlocked in Settings → General → About → Carrier Lock
#FAQs
-
Will unlocking erase my data? Yes — Recovery Mode, DFU Mode, iCloud erase, and the iOS 15.2 Erase option all wipe the device. Only a prior backup can restore your data.
-
Can Apple unlock my iPhone? Apple cannot bypass the passcode. They can guide you through Recovery Mode or, with proof of purchase, remove Activation Lock.
-
How many attempts before my iPhone locks permanently? After 10 failed attempts, the device either disables permanently or auto-erases (if that setting is enabled).
-
Can I unlock an iCloud-locked iPhone? If you’re the original owner, sign in at iCloud.com to remove it. For second-hand devices, contact the previous owner or see our iCloud Activation Lock guide.
-
Is it legal to unlock a locked iPhone? Unlocking your own device is legal. Unlocking a device you don’t own may be illegal.
-
Can I recover data after erasing? Only if you have a backup (iCloud or iTunes/Finder). Without a backup, data is permanently lost after erase.
-
What if I don’t have a computer? Use the iOS 15.2+ Erase iPhone option or Find My iPhone from another device. Both work without a computer.