iPhone Won't Accept Passcode? Fix It Now
In this article
If your iPhone won't accept your passcode, the most common cause is a simple mismatch between what you're typing and what the phone expects, or a temporary software glitch. Start by making sure you're entering the correct passcode on the correct screen, then force a restart. If that fails, you can use your Apple ID to reset the passcode, or restore the iPhone if you have a backup. This guide walks through each step safely, with warnings where data could be lost.
What You'll Need
- Your iPhone and its charging cable (or a way to keep it powered on).
- Your Apple ID and password (for the erase-and-reset method).
- A computer with iTunes or Finder (for recovery mode), if you have one.
- A recent backup (iCloud or computer) if you want to keep your data.
Step-by-Step
- Check the basics first. Make sure you're on the lock screen and not on a different passcode prompt (for example, after too many attempts the iPhone may ask for your Apple ID password instead). Also confirm the passcode hasn't been changed by someone else, and that you're not mistyping due to a screen protector or dirty screen. Clean the screen and try again slowly.
- Force restart your iPhone. A restart clears minor software glitches that can block passcode entry. The button combination depends on your model: on iPhone 8 and later (including all Face ID models), quickly press and release the Volume Up button, then the Volume Down button, then press and hold the Side button until the Apple logo appears. On iPhone 7, press and hold the Volume Down and Side buttons together. On iPhone 6s and earlier, press and hold the Home and Side (or Top) buttons. Labels and button positions can differ slightly by model and iOS version.
- Try entering the passcode again. After the restart, wait for the lock screen and enter your passcode carefully. If the iPhone still says it's incorrect, double-check that you're using the current passcode, not an old one. If you recently changed it, use the new one.
- Use your Apple ID to erase the iPhone (if you see the option). After several failed attempts, some iOS versions show an "Erase iPhone" option on the lock screen (available on iOS 15.2 and later, and only if the iPhone has a cellular or Wi-Fi connection). Tap it, enter your Apple ID password, and confirm. This erases all data and settings, then lets you set up the iPhone again and restore from a backup. Warning: this deletes everything on the iPhone, so only do it if you have a backup or can accept the loss.
- Reset the passcode with iCloud (if you have Find My enabled). On another device or a computer, go to iCloud.com and sign in with your Apple ID. Open Find iPhone, select your iPhone from the list, and choose "Erase iPhone." This remotely wipes the device. After it erases, you can set it up again and restore your data from an iCloud or computer backup. Again, this erases all data on the iPhone.
- Use Recovery Mode if you can't erase remotely. Connect your iPhone to a computer with a USB cable. On a Mac with macOS Catalina or later, open Finder; on a Windows PC or older Mac, open iTunes. Put your iPhone into recovery mode: the button sequence is the same as for a force restart, but keep holding the buttons until you see the recovery mode screen (a cable pointing to a computer). Your computer will detect the iPhone and offer to Update or Restore. Choose Restore to erase the iPhone and reinstall iOS. Warning: this erases all data; you'll need a backup to get your data back.
- Set up the iPhone and restore your backup. After the erase or restore, follow the on-screen setup steps. When asked, choose to restore from an iCloud backup or from a computer backup. If you don't have a backup, you'll need to set up the iPhone as new and re-download your apps and data manually.
Common Mistakes
- Entering the wrong passcode repeatedly. This can trigger a security lockout. If you see a timer, wait it out; do not keep trying, as it can increase the wait time.
- Confusing the passcode with the Apple ID password. The iPhone may ask for your Apple ID password after many failed passcode attempts. Enter the Apple ID password, not the device passcode.
- Erasing without a backup. The erase and restore methods delete all data. Always confirm you have a recent backup before proceeding.
- Using the wrong button combination for force restart. Check your iPhone model; the steps differ between models with a Home button and those without.
- Ignoring a software update. Sometimes a bug causes passcode issues; updating to the latest iOS version can help, but you'll need to unlock the phone first.
Tips
- Keep your iPhone charged during any reset or restore process.
- Regularly back up your iPhone to iCloud or a computer so you can recover your data if you ever need to erase it.
- Remember your Apple ID and password; they are essential for erasing and restoring.
- If you use a screen protector, make sure it's clean and not interfering with touch sensitivity.
- After setting up again, consider enabling Face ID or Touch ID to reduce reliance on the passcode.
Troubleshooting
If the steps above don't work, try these checks:
- iPhone is disabled and shows a timer: Wait for the timer to end, then try again. If the timer is very long, you may need to erase the iPhone using the methods above.
- No "Erase iPhone" option on the lock screen: This option appears only under certain conditions (iOS version, internet connection, Find My enabled). Use iCloud.com or recovery mode instead.
- Computer doesn't recognize the iPhone in recovery mode: Try a different USB cable or port, restart the computer, or update iTunes/Finder. Make sure the iPhone is in recovery mode (the screen shows a cable and computer icon).
- Forgot Apple ID password: Use the Apple ID account recovery page (iforgot.apple.com) to reset it. You'll need access to your trusted phone number or email.
- iPhone won't turn on or is stuck: Charge it for at least 15 minutes, then try a force restart again. If it still doesn't respond, seek help from Apple Support.
Frequently Asked Questions
Why does my iPhone say the passcode is incorrect when I know it's right?
This can happen due to a temporary software glitch, a dirty screen, or because the passcode was changed. Try a force restart and clean the screen. If it persists, you may need to erase the iPhone.
Can I unlock my iPhone without the passcode?
No, there is no official way to bypass the passcode without erasing the device. You must use your Apple ID to erase it, or use recovery mode.
Will I lose all my data if I erase the iPhone?
Yes, erasing removes all data and settings. However, if you have a backup (iCloud or computer), you can restore your data after setting up the iPhone again.
How many attempts before the iPhone locks me out?
After several failed attempts, the iPhone will introduce a delay and eventually disable itself. The exact number varies by iOS version. If disabled, you must erase the device.
What if I don't have a backup?
You'll lose your data if you erase the iPhone. You can set it up as new and re-download apps, but photos, messages, and other data not synced to iCloud will be gone.
Does Face ID or Touch ID still work if the passcode fails?
After a restart or multiple failed passcode attempts, Face ID and Touch ID are disabled and require the passcode. You cannot use biometrics to unlock in that state.