What happens when you forget your iPhone passcode

When you enter the wrong passcode too many times, your iPhone locks you out temporarily — first for one minute, then five minutes, then 15 minutes, then one hour. After the sixth wrong attempt, the phone says "iPhone is disabled." At that point, you cannot guess your way in. You need to either restore the phone using a computer, use your Apple ID to unlock it, or take it to Apple.

The path forward depends on whether you remember your Apple ID password, whether you have a computer nearby, and whether the phone is still showing the lock screen or is fully disabled. None of these routes are when ready, but they all work.

Key Takeaways

  • If your iPhone is still responsive, you can unlock it through iCloud.com using your Apple ID, even without the passcode.
  • If you have a Mac or Windows computer, you can restore the iPhone through Finder (Mac) or iTunes (Windows) and set a new passcode.
  • If you do not remember your Apple ID password either, you will need to reset it through Apple's website before you can unlock the phone.
  • Taking the phone to an Apple Store requires proof of purchase or identity, and the process takes at least a few hours.

Using iCloud to unlock through Find My iPhone

If you remember your Apple ID and password, this is the fastest route. Go to iCloud.com on any computer or another phone, sign in with your Apple ID, and click Find My. Select your iPhone from the list of devices.

Click the device name, then click "Erase iPhone." This will wipe the phone and remove the passcode. You will then set up the phone as new or restore it from a backup. This works even if the phone is locked, as long as it is connected to the internet — either Wi-Fi or cellular data.

One important note: if you have Find My iPhone turned on and your Apple ID has two-factor authentication enabled (which it should), you will be asked to confirm the erase from a trusted device. If you do not have access to a trusted device, you cannot complete this step remotely.

Restoring the iPhone on a computer

If you have a Mac or Windows computer, you can connect your iPhone and restore it without needing iCloud. On a Mac with macOS Monterey or newer, open Finder, plug in the iPhone, and click the device name in the sidebar. Click "Restore" and follow the prompts. On older Macs or Windows computers, use iTunes instead — plug in the phone, click the device icon, and select "Restore iPhone."

The restore process will erase everything on the phone and install a fresh copy of iOS. You will then set up the phone as new or restore from a backup if you have one. This takes 15 to 30 minutes depending on your internet speed and the size of any backup you are restoring.

You will need to sign in with your Apple ID during setup. If you do not remember your Apple ID password, you will need to reset it before you can complete the setup process.

Resetting your Apple ID password if you forgot that too

Go to iforgot.apple.com on any computer. Enter your Apple ID (usually your email address), and Apple will send you a link to reset your password. Check your email, click the link, and create a new password. The new password takes effect when ready.

If you do not have access to the email address associated with your Apple ID, or if that email account is also locked, the process is longer. You will need to answer security questions or use a recovery key if you set one up. If you have none of these, you can contact Apple Support, but you will need to verify your identity with proof of purchase or other documentation.

Going to an Apple Store if you are stuck

If you do not remember your Apple ID password, do not have a computer, and cannot access iCloud, you can take the phone to an Apple Store. Bring a photo ID and proof of purchase (receipt, credit card statement, or order confirmation email). An Apple Genius can unlock the phone, but they will need to verify that you own it.

The process usually takes a few hours because the store needs to contact Apple's backend systems to confirm ownership. You will leave with an unlocked phone that you can set up with a new passcode and Apple ID.

Why you should set up recovery options now

Once you have access to your phone again, add a recovery email address and recovery phone number to your Apple ID. Go to Settings > [Your Name] > Password & Security > Recovery Email or Recovery Phone Number. If you ever forget your passcode again, these will let you reset your Apple ID password much faster.

You should also turn on two-factor authentication if it is not already on. This protects your account from someone else resetting your password, even if they have your email address. Go to Settings > [Your Name] > Password & Security > Two-Factor Authentication and toggle it on.

Frequently Asked Questions

Can I unlock my iPhone without my Apple ID password?

Yes, if you can access iCloud.com from another device and remember your Apple ID email and password. You can erase the phone remotely through Find My iPhone. If you do not remember your Apple ID password, you will need to reset it first at iforgot.apple.com.

Will I lose my photos and messages when I unlock my iPhone?

Yes, restoring the phone erases everything. However, if you have a backup in iCloud or on a computer, you can restore from that backup after you set up the phone again. The backup will restore your photos, messages, apps, and settings.

How long does it take to unlock an iPhone at an Apple Store?

Usually a few hours. The store needs to verify you own the phone and contact Apple's systems to confirm. Bring a photo ID and proof of purchase. You can call ahead to check wait times.

What if I forgot my Apple ID email address too?

If you remember the phone number associated with your Apple ID, you can go to iforgot.apple.com and enter that phone number instead of the email. Apple will send a reset link to that phone number. If you do not remember either, contact Apple Support with proof of identity.

Can someone else unlock my iPhone if they know my Apple ID?

Not easily. If you have two-factor authentication on, they would need access to a trusted device to confirm the unlock. If two-factor authentication is off, they could unlock it remotely through iCloud, which is why turning it on matters.