If you are locked out of your iPhone, the fix usually comes down to one thing, erase the device and set it up again. That sounds dramatic, but in most cases it is the only supported way to get back in when you do not know the passcode. Whether you forgot the code, bought a secondhand iPhone, or the screen is disabled after too many wrong attempts, this guide walks you through the fastest legitimate ways to unlock it.
The good news is that Apple gives you a few recovery options. You can use a computer with Finder or iTunes, the Recovery Mode process, or Apple’s Find My feature if it was enabled before the lockout. This guide keeps things simple and step-by-step, so you can choose the method that fits your situation and get the phone working again as quickly as possible.
Quick Summary
- Best method: Put the iPhone into Recovery Mode and restore it using a Mac or Windows PC.
- If Find My was enabled: You may be able to erase the iPhone remotely from iCloud.com.
- Important: Unlocking without the passcode usually means erasing the device, then restoring from a backup if you have one.
Main Method: Unlock an iPhone Without the Passcode Using Recovery Mode
This method works for most locked iPhones, including newer models. It removes the passcode by erasing the phone, then lets you set it up again.
Step 1: Connect your iPhone to a computer
Use a Mac or Windows PC with a USB cable, then open Finder on Mac or iTunes on Windows, or the Apple Devices app if that is what your computer uses.
After you connect the iPhone, you may see a message saying the device is locked or unavailable. That is normal. The computer needs to recognize the phone before you can start Recovery Mode.
Step 2: Put the iPhone into Recovery Mode
Press the correct button sequence for your iPhone model until you see the Recovery Mode screen.
- iPhone 8 and later: Quickly press and release Volume Up, quickly press and release Volume Down, then press and hold the Side button.
- iPhone 7 and 7 Plus: Press and hold the Side button and Volume Down together.
- iPhone 6s and earlier: Press and hold the Home button and Top or Side button together.
Keep holding until the screen shows the Recovery Mode image, which looks like a cable pointing to a computer.
If you see the Apple logo first, keep holding. Do not release too early. Recovery Mode can take a little patience, but it is the key step that tells the computer to restore the phone.
Step 3: Choose Restore when prompted
On your computer, a pop-up should appear with options like Update or Restore. Select Restore.
This tells the computer to erase the iPhone and reinstall iOS. After you click it, the phone will begin the reset process. If you choose Update, the device may try to reinstall iOS without erasing data, but for a forgotten passcode, Restore is usually the option you need.
Step 4: Wait for the restore to finish
Let the process complete without unplugging the iPhone. The restore can take several minutes, depending on your internet speed and computer.
During this time, you may see a progress bar on the iPhone. On the computer, Finder or iTunes may show a status message. If the download takes too long, the iPhone may exit Recovery Mode, and you may need to repeat the button sequence.
Step 5: Set up the iPhone again
After the restore, the iPhone will restart and show the setup screen.
Follow the on-screen prompts to choose your language, connect to Wi-Fi, and sign in with your Apple ID. If you have an iCloud or computer backup, you can restore your apps, photos, and settings during setup.
Keep in mind that Activation Lock may appear if Find My iPhone was enabled. In that case, you must sign in with the same Apple ID that was previously on the device.
Alternative Methods and Edge Cases
Not every locked iPhone situation is the same. Here are the most useful alternatives and special cases.
Erase remotely with Find My iPhone
- If Find My was enabled, go to iCloud.com/find or use the Find My app on another Apple device.
- Select the iPhone, then choose Erase This Device.
- This also wipes the phone and removes the passcode, but you still need the Apple ID used on the device.
Use the iPhone Unavailable screen erase option
- On some newer iPhones, repeated failed passcode attempts trigger an Erase iPhone option on the lock screen.
- Tap it, then follow the prompts to erase the device with your Apple ID.
- This is the easiest route if the option appears and you know the Apple ID password.
Use a different computer app
- On newer Macs, use Finder.
- On Windows, use iTunes or the Apple Devices app if installed.
- The exact buttons may differ, but the restore process is the same.
If the phone is managed by work or school
- A device enrolled in MDM may need your organization’s IT team to remove management before reuse.
- Even after a reset, activation or setup restrictions may still apply.
If you only want to disable temporary lock screen issues
- You cannot bypass an unknown passcode without erasing the device.
- If your issue is just alerts or notifications, change them in Settings instead of trying to unlock the phone through reset methods.
Frequently Asked Questions
Will unlocking an iPhone without the passcode erase my data?
Usually, yes. Apple’s supported methods for removing a forgotten passcode require a full erase unless you already have a backup you can restore later.
Can I unlock an iPhone without a computer?
Sometimes. If the Erase iPhone option appears on the lock screen, you may be able to erase it directly using your Apple ID. Otherwise, a computer is usually required.
What if I forgot my Apple ID too?
You will need to recover that account first. Go to iforgot.apple.com to reset your Apple ID password or recover access.
Can Apple unlock my iPhone for me?
Apple can help you erase and restore the device, but they cannot bypass the passcode without proof of ownership and the proper Apple ID credentials.
Will I lose photos, apps, and messages?
If you do not have a backup, yes, those items are usually erased with the device. If you have an iCloud or computer backup, you can restore them during setup.
Why does my iPhone ask for the old Apple ID after a reset?
That is Activation Lock, which protects the device from theft. You must enter the Apple ID and password previously used on the iPhone.
Tips
- Backups matter. If you use iCloud Backup or regular computer backups, restoring after an erase is much easier.
- Know your Apple ID before you start. A reset can bypass the passcode, but Activation Lock still requires the correct Apple account.
- Use a trusted cable and computer. A faulty USB cable can interrupt the restore process and force you to start over.
- Keep the iPhone charged. A low battery can cause restore failures or delays.
- If you bought the phone secondhand, ask the seller to remove it from their Apple ID. Otherwise, you may hit Activation Lock during setup.
- Do not keep guessing passcodes. Too many failed attempts can increase the lockout timer or disable the device longer.
Troubleshooting
The computer does not detect the iPhone
- Try a different USB cable, port, or computer.
- Make sure Finder, iTunes, or Apple Devices is up to date.
- Restart both the iPhone and the computer, then try again.
Recovery Mode will not appear
- Recheck the button sequence for your iPhone model.
- Hold the buttons long enough, even past the Apple logo.
- If needed, connect the phone first, then try the button combo again.
The restore process fails
- Make sure your internet connection is stable, especially if the computer needs to download iOS.
- Close and reopen Finder or iTunes.
- Try a different cable or another computer.
The iPhone exits Recovery Mode before restore finishes
- This usually happens when the download takes too long.
- Put the device back into Recovery Mode and restart the restore.
- A faster internet connection can help.
I see Activation Lock after erasing the iPhone
- Enter the Apple ID and password previously used on the device.
- If it is not your Apple ID, contact the original owner and ask them to remove the device from their account.
Conclusion
Unlocking an iPhone without the passcode is possible, but Apple’s official methods almost always involve erasing the device first. That is the tradeoff for getting back in. Once the iPhone is restored, you can sign in again, recover your data from backup, and set a new passcode right away.
If you are locked out right now, the fastest way is usually to use Recovery Mode on a computer. If Find My was enabled, remote erase is another solid option. Either way, the process is straightforward once you know the steps, and now you do.

Matthew Burleigh has been writing tech tutorials since 2008. His writing has appeared on dozens of different websites and been read over 50 million times.
After receiving his Bachelor’s and Master’s degrees in Computer Science he spent several years working in IT management for small businesses. However, he now works full time writing content online and creating websites.
His main writing topics include iPhones, Microsoft Office, Google Apps, Android, and Photoshop, but he has also written about many other tech topics as well.