What happens when you forget your iPhone password

When you forget your iPhone password — the six-digit or longer code you enter on the lock screen — your phone stops responding to any code you type in. After six incorrect attempts, the phone locks you out for one minute. After ten attempts, it locks for five minutes. After fifteen attempts, the phone disables itself entirely and shows "iPhone is disabled" on the screen.

At that point, you cannot guess your way in. You need to use one of three paths: recover your password through your Apple ID account, erase the phone and set it up fresh, or take it to an Apple Store. Which path works depends on whether you remember your Apple ID password and whether you set up Find My iPhone before you forgot your code.

The fastest route for most people is using your Apple ID on iCloud.com, because it works from any computer and takes about fifteen minutes. The other routes take longer but work even if you do not remember your Apple ID password.

Key Takeaways

  • If you remember your Apple ID password, you can unlock your iPhone from any computer by going to iCloud.com, signing in, and using Find My to erase and reset the phone.
  • If you do not remember your Apple ID password, you can reset it using your recovery email or phone number before you unlock the iPhone.
  • If you set up two-factor authentication on your Apple ID, you will need a trusted device or recovery code to reset your password.
  • Taking your iPhone to an Apple Store requires proof of purchase or proof of identity and takes one to three business days.
  • Once your iPhone is unlocked, you can set a new password when ready and turn on password hints so you do not forget it again.

Unlocking your iPhone using iCloud.com if you remember your Apple ID password

Go to iCloud.com on any computer and sign in with your Apple ID and password. If you do not see a sign-in screen, you are already signed in — look for your name in the top right corner and click it, then click "Sign Out" first.

Once you are signed in, click "Find My" (it may say "Find My iPhone" on older accounts). Click "Find My iPhone" in the menu that appears. You will see a map with your devices listed on the left side. Click the name of your iPhone.

A panel will open on the right showing your phone's location and three options. Click "Erase iPhone." Confirm by clicking "Erase" again. The phone will begin erasing — this takes a few minutes and removes everything on it, including the forgotten password. Once erasing is complete, your iPhone will restart and show the setup screen, just as if it were brand new.

Follow the on-screen steps to set up your iPhone again. When you reach the "Passcode" screen, create a new password. Write it down or store it somewhere safe before you continue. You can also turn on "Passcode Options" and add a hint that will help you remember it next time.

Resetting your Apple ID password if you forgot that too

If you do not remember your Apple ID password, you cannot sign into iCloud.com. You will need to reset it first. Go to iforgot.apple.com on any computer.

Enter your Apple ID (usually your email address) and click "Continue." Apple will ask you to verify your identity. You can choose to receive a verification code by email or by phone, depending on what you set up when you created your account. Choose whichever one you can access right now.

If you choose email, check the inbox of the recovery email address you set up with Apple. You will receive a message with a six-digit code. Enter that code on the iforgot.apple.com page. If you choose phone, Apple will send a code to the phone number on file — this can be a different phone, not the locked iPhone.

Once you have verified your identity, you will be asked to create a new Apple ID password. Make it something you can remember, or write it down. Then return to iCloud.com, sign in with your new password, and follow the steps in the section above to erase and unlock your iPhone.

What to do if you set up two-factor authentication

Two-factor authentication is a security feature that requires a second proof of identity beyond your password. If you turned it on, resetting your Apple ID password becomes more complicated because Apple needs to confirm you own the account.

When you go to iforgot.apple.com and enter your Apple ID, you will be asked to verify using a trusted device — a phone, tablet, or computer that you have already signed into with that Apple ID. If you have another Apple device (an iPad, Mac, or another iPhone), sign into it with your Apple ID and look for a verification prompt. Approve it, and you will be able to reset your password.

If you do not have access to a trusted device, you can use a recovery code instead. These are ten-digit codes that Apple gives you when you turn on two-factor authentication. If you saved yours, enter it on the iforgot.apple.com page when asked. If you did not save it, you will need to contact Apple Support or visit an Apple Store to verify your identity in person.

Erasing your iPhone without iCloud if you cannot access your Apple ID

If you cannot remember your Apple ID password and cannot reset it (because you do not have access to your recovery email or phone), you can still erase your iPhone using a computer and iTunes or Finder. This method works on any computer, not just your own.

Connect your locked iPhone to a computer using a USB cable. On a Mac running Catalina or newer, open Finder. On a Mac running Mojave or older, or on any Windows computer, open iTunes. Your iPhone will appear in the sidebar or in the device list.

Click your iPhone's name. You will see a panel with information about the phone. Look for a button that says "Restore" (on iTunes) or "Restore iPhone" (on Finder). Click it. The computer will read the latest iPhone software and erase your phone, removing the forgotten password. Once this is done, your iPhone will restart and show the setup screen.

Follow the on-screen steps to set up your iPhone. You will be asked to sign in with an Apple ID — you can use the same one you forgot the password for, or create a new one. If you use the same Apple ID, you will need to enter the password (or reset it again using iforgot.apple.com). If you create a new one, you can set it up right there on the phone.

Taking your iPhone to an Apple Store

If none of the above methods work for you, or if you prefer not to erase your phone yourself, you can take your iPhone to an Apple Store. Apple will verify that you own the phone and then erase and unlock it for you.

Bring one of these forms of identification: your original receipt or proof of purchase, a credit card that matches the name on the Apple ID account, or a government-issued ID. If you do not have proof of purchase, a government ID alone may work, but call your local Apple Store first to confirm what they need.

The process takes one to three business days. Apple will contact you when your phone is ready. You can then pick it up and set it up with a new password. There is no charge for this service if your phone is under warranty or if you have AppleCare+. If your phone is out of warranty, Apple may charge a fee — ask when you drop it off.

Setting up a password hint so you do not forget again

Once your iPhone is unlocked and set up, you can add a password hint that will appear on the lock screen if you enter the wrong code. This is not a replacement for remembering your password, but it can jog your memory.

Go to Settings, then tap "Face ID & Passcode" (or "Touch ID & Passcode" on older phones). Enter your current passcode. Scroll down and tap "Passcode Options." Turn on "Show Passcode Hint." The next time you enter the wrong code, your hint will appear on the screen.

You can also store your password in a password manager like iCloud Keychain, which is built into every iPhone. When you set up a new passcode, iCloud Keychain will offer to save it. If you approve, you can retrieve it later by going to Settings, tapping your name at the top, then tapping "Password & Security," then "Saved Passwords," and searching for "iPhone Passcode."

Frequently Asked Questions

Will erasing my iPhone delete my photos and other data?

Yes. Erasing your iPhone removes everything on it — photos, messages, apps, and settings. However, if you have iCloud backup turned on, your data is saved in the cloud and you can restore it after you set up your iPhone again. When you reach the setup screen after erasing, you will be asked if you want to restore from a backup. Choose yes, and your photos and data will return.

Can I unlock my iPhone if I do not have a computer?

If you have access to another person's iPhone, iPad, or Mac, you can use their device to go to iCloud.com or use Find My to erase your phone. You do not need your own computer. If you have no access to any Apple device, you will need to visit an Apple Store or contact Apple Support by phone.

What if I forgot my password and my Apple ID password and do not have my recovery email?

You can still erase your iPhone using any computer and iTunes or Finder, as described above. You will not need your Apple ID password for this method. After erasing, you can create a new Apple ID or sign in with a different one during setup.

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

Apple typically takes one to three business days. Some stores may be faster if they are not busy. Call your local Apple Store to ask how long the wait is before you go in. You will need to leave your phone with them and pick it up when they call you.

Can I use Find My on my Apple Watch to unlock my iPhone?

No. Find My on an Apple Watch can locate your iPhone, but it cannot unlock it or erase it. You need to use iCloud.com on a computer, or use iTunes or Finder on a computer, to erase your phone remotely.