iPhone Passcode Not Working? Fix It Now
In this article
If your iPhone says your passcode is wrong even though you're sure it's right, the most common causes are a stuck keyboard, a software glitch, or a recent iOS update that changed how the passcode is entered. In many cases, a simple restart or a forced restart will fix it. If that doesn't work, you may need to update iOS, reset your iPhone's settings, or in the worst case, restore your iPhone from a backup. Below are the exact steps to try, in order.
What You'll Need
- Your iPhone (any model)
- Your Apple ID password (for signing back in after a restore)
- A computer with the latest version of iTunes (Windows) or Finder (macOS Catalina or later) if you need to restore
- A recent backup (iCloud or computer) so you don't lose data if a restore is needed
Step-by-Step
- Restart your iPhone. Press and hold the side button and either volume button until the power off slider appears. Drag the slider, wait 30 seconds, then press and hold the side button until the Apple logo appears. This clears minor software glitches that can cause the passcode screen to misbehave.
- Try a forced restart. If a normal restart doesn't help, do a forced restart: 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 Apple logo appears. This does not erase data; it only forces the iPhone to reboot.
- Check for stuck keys or screen issues. Sometimes a dirty or damaged screen can register phantom taps or miss your touches. Clean the screen with a soft, dry cloth. If you have a screen protector, try removing it. If the screen is cracked or unresponsive, you may need service.
- Update iOS. If your iPhone is running an older iOS version, a bug might be causing the issue. Go to Settings > General > Software Update. If an update is available, tap Download and Install. Make sure you have a backup before updating.
- Reset All Settings. This does not erase your data, but it resets system settings like Wi-Fi passwords, wallpaper, and accessibility options. Go to Settings > General > Transfer or Reset iPhone > Reset > Reset All Settings. Enter your passcode when prompted (if it still works). After the reset, try entering your passcode again.
- Restore from backup. If none of the above work, you'll need to restore your iPhone. Connect it to a computer, open Finder (macOS Catalina or later) or iTunes (Windows or older macOS), and select your device. Choose “Restore” and follow the on-screen instructions. This will erase your iPhone and install the latest iOS. After the restore, you can set it up as new or restore from a backup. Note: If you have Find My iPhone enabled, you'll need to enter your Apple ID password.
Common Mistakes
- Typing too quickly. The passcode field may not register every digit if you type very fast. Slow down and watch the dots appear.
- Wrong keyboard layout. If you have multiple languages enabled, the keyboard might be showing a different layout. Check the globe icon on the keyboard.
- Forgetting a recent passcode change. If you changed your passcode recently and then restored from an old backup, the old passcode might be required. Try any passcodes you've used recently.
- Using the wrong Apple ID password. After a restore, the iPhone asks for the Apple ID password, not the passcode. These are different.
- Assuming a restart will fix a hardware issue. If the screen is physically damaged, no software fix will help.
Tips
- Always keep a recent backup (iCloud or computer) so you can restore without losing data.
- Write down your passcode somewhere safe, or use a password manager to store it.
- If you have Face ID or Touch ID, you can still use it to unlock the phone even if the passcode fails, as long as the phone hasn't restarted.
- If you're traveling and the passcode fails, try restarting the phone first—sometimes a network or time-zone change can confuse the passcode entry.
Troubleshooting
If the steps above didn't solve the problem, here's what to try next:
- If the forced restart didn't help: Try a different charging cable and power source. A low battery can cause odd behavior. Let it charge for at least 30 minutes, then try again.
- If Reset All Settings didn't work: You may need to erase all content and settings. Go to Settings > General > Transfer or Reset iPhone > Erase All Content and Settings. This will erase everything, so only do this if you have a backup. After the erase, you can restore from your backup.
- If the restore fails: Make sure your computer has the latest version of iTunes or Finder. Try a different USB cable and port. If the restore still fails, put your iPhone into recovery mode: connect to computer, then force restart (as in Step 2) while holding the side button until you see the recovery mode screen. Then choose “Restore” on the computer.
- If you see “iPhone is disabled” or “Security Lockout”: This means too many wrong attempts. Wait for the timer to expire, or if it says “Connect to iTunes/Finder,” you'll need to restore the iPhone, which erases it.
- If the passcode works occasionally but not always: The issue might be the screen's touch sensitivity. Try removing any screen protector and cleaning the screen. If it persists, contact Apple Support for hardware diagnostics.
Frequently Asked Questions
Will I lose my data if I reset all settings?
No, Reset All Settings does not delete your personal data like photos, contacts, or apps. It only resets system settings like Wi-Fi passwords, wallpaper, and accessibility options.
What should I do if I forgot my passcode entirely?
You'll need to erase your iPhone and set it up as new or restore from a backup. Use a computer with Finder or iTunes to put the iPhone in recovery mode and restore it. This will remove the passcode.
Can a recent iOS update cause passcode issues?
Yes, sometimes a software update can introduce bugs. If the issue started right after an update, try restarting your iPhone, then check for another update. If the problem persists, you may need to restore from a backup made before the update.
Why does my iPhone say “Passcode required” after restart even though I use Face ID?
For security, iOS requires your passcode after a restart, after the phone hasn't been unlocked for more than 48 hours, or after a failed Face ID attempt. This is normal.
Is there a way to bypass the passcode without erasing?
No official way exists. If you don't know the passcode, the only option is to erase the iPhone via recovery mode and restore from a backup. There are no legitimate shortcuts.
What if my iPhone is disabled and says “Connect to iTunes”?
That means too many failed attempts. You'll need to connect to a computer and restore the iPhone. This will erase the device and remove the passcode, but you'll lose any data that isn't backed up.