iPhone Stuck on Enter Passcode? Fix It Step by Step
In this article
If your iPhone is stuck on the “Enter Passcode” screen, the fix depends on why it is stuck. In most cases, a forced restart clears the frozen lock screen without losing data. If the phone is disabled and asking you to connect to a computer, or if the passcode screen keeps returning after a restart, you will need to update or restore the iPhone with a computer, which erases it. Try the restart first, then work through the steps below in order.
What You'll Need
- Your iPhone and its charging cable.
- A computer with Finder (macOS Catalina or later) or iTunes (Windows or older macOS), if the restart does not work.
- Your Apple ID and password, in case you need to erase and set up the iPhone again.
- A recent backup, if you have one, because the restore steps erase all data on the phone.
Step-by-Step
Menu labels and button combinations can differ slightly by iPhone model and iOS version, so if a label does not match exactly, look for the closest equivalent.
- Check that the screen is really frozen. Tap the screen and press the side button once. If the display does not respond at all, treat it as a frozen lock screen and continue. If the phone responds but rejects your passcode, make sure you are entering the correct passcode and that the keyboard is not stuck on a different language or layout.
- Force restart the iPhone. The button combination depends on the model:
- iPhone 8 and later (including all Face ID models): press and quickly release the volume up button, press and quickly release the volume down button, then press and hold the side button until the Apple logo appears.
- iPhone 7 and iPhone 7 Plus: press and hold the volume down button and the side button at the same time until the Apple logo appears.
- iPhone 6s and earlier, and iPhone SE (1st generation): press and hold the Home button and the top or side button at the same time until the Apple logo appears.
- Let the phone start up and try the passcode again. After the restart, the lock screen should respond normally. Enter your passcode carefully. If the phone accepts it, the problem is solved.
- If the screen says “iPhone is Disabled” or “Connect to Computer”, stop trying passcodes. Repeated wrong attempts lock the phone further. Connect the iPhone to your computer with a cable and open Finder (Mac) or iTunes (Windows).
- Put the iPhone into recovery mode. With the phone connected, force restart it again using the button combination for your model from step 2, but keep holding the buttons past the Apple logo until you see the recovery mode screen on the iPhone (a cable icon pointing to a computer). On newer iPhones this can take 15 seconds or more.
- Choose Update first, then Restore if needed. In Finder or iTunes, a message appears saying there is a problem with the iPhone. Click Update to reinstall iOS without erasing your data. If the update fails or the phone remains disabled, click Restore instead. Restore erases the iPhone and installs a fresh copy of iOS.
- Set up the iPhone again. After a restore, the phone restarts to the setup screen. Sign in with your Apple ID and choose to restore from an iCloud or computer backup if you have one. If you do not have a backup, you will need to set it up as a new iPhone and sign in to your accounts again.
Common Mistakes
- Releasing the buttons too early during a force restart. Many people let go when the power-off slider appears. Keep holding until the Apple logo appears, or the restart will not complete.
- Entering more passcodes on a disabled iPhone. Each wrong attempt adds to the lockout time. Once the phone says it is disabled, use the computer method instead.
- Choosing Restore when Update would have worked. Update keeps your data; Restore erases it. Always try Update first if you want to keep your photos and messages.
- Using a charging-only cable or a USB hub. Recovery mode needs a data connection. Use the cable that came with the phone and plug it directly into the computer.
- Forgetting the Apple ID password. After a restore, Activation Lock requires the Apple ID that was signed in before. If you do not know it, use Apple's official account recovery process before erasing.
Tips
- Make sure the iPhone has some charge before starting. A phone that dies during a restore can end up in a worse state.
- Update Finder or iTunes to the latest version before connecting, so the software recognises the current iOS version.
- If you have a backup in iCloud, check that it was made recently before you restore.
- Write your passcode down somewhere safe, or use a passcode you will remember, to avoid repeat lockouts.
- Keep the iPhone plugged in during the whole recovery process. Do not unplug it until Finder or iTunes says the process is complete.
Troubleshooting
The force restart does not work. Check that you are using the right button combination for your model. On Face ID phones, the volume buttons are quick presses, not holds. If the buttons feel stuck, clean around them gently and try again.
The computer does not detect the iPhone in recovery mode. Try a different USB port, a different cable, and restart the computer. On Windows, make sure iTunes is installed from Apple's website, not a third-party download site. On a Mac, open Finder and look for the iPhone in the sidebar.
The Update option fails. Free up disk space on the computer, then try again. If it fails repeatedly, use Restore instead, accepting that data will be erased.
The iPhone is stuck on the Apple logo after a restore. Repeat the recovery mode steps and restore again. If it still fails, contact Apple Support or visit an Apple Store; there may be a hardware problem.
You see “Security Lockout” instead of a passcode screen. This means too many wrong attempts were made. The only official fix is to erase the iPhone with a computer as described above, then restore from a backup.
Frequently Asked Questions
Will a force restart delete anything on my iPhone?
No. A force restart only reboots the phone. Your photos, apps and messages stay in place.
Can I unlock an iPhone without the passcode?
No. There is no official way to bypass the passcode. If you do not know it, the only option is to erase the iPhone with a computer and set it up again, which requires your Apple ID and password.
Why does my iPhone keep returning to the Enter Passcode screen?
This usually means the phone is disabled after repeated wrong attempts, or iOS is corrupted. A force restart may help temporarily, but a restore with a computer is the reliable fix.
Does restoring from a backup bring back the passcode?
No. The passcode is not stored in a backup. After a restore, you set a new passcode during setup.
What if I do not have a computer?
You can use a friend's or family member's computer with Finder or iTunes. There is no way to erase a disabled iPhone using only the phone itself.
Will I lose my data if I choose Update instead of Restore?
No. Update reinstalls iOS and keeps your data. Restore erases the phone, so use it only when Update does not solve the problem.