The fastest way depends on what you remember and what you have access to

If you have forgotten your iPhone password, you have several paths forward. The method that works for you depends on whether you remember your Apple ID password, whether you have a trusted device nearby, and whether you set up recovery options like a phone number or email address. Apple's built-in recovery tools are designed to let you back in without losing your data — but they require proof that the phone is yours.

The key difference between methods is whether you keep your data or start fresh. If you use your Apple ID and recovery information, you typically keep everything. If you use a computer to restore the phone, you erase it and set it up as new. Most people can solve this in under an hour if they have their Apple ID credentials and a computer or second device.

Key Takeaways

  • If you remember your Apple ID password, you can unlock your iPhone through iCloud.com or on another Apple device without erasing anything.
  • A trusted device — iPad, Mac, or another iPhone — can reset your password and keep your data intact if you have one set up.
  • If you have neither your Apple ID password nor a trusted device, you will need to erase the phone and set it up again using a computer and iTunes or Finder.
  • Recovery options like a phone number or email address on file speed up the process because Apple can verify you own the account without waiting for support.
  • The entire process usually takes 15 minutes to an hour, depending on which method you use and how fast your internet connection is.

Using iCloud.com if you remember your Apple ID password

Go to iCloud.com on any computer or another phone and sign in with your Apple ID and password. Click "Find My" in the app grid. Select your iPhone from the device list. Click "Find My iPhone" and then choose your phone again from the map view. Select "Erase iPhone" — this removes the password but keeps your data because it erases only the lock screen settings, not the entire phone.

After erasing, your iPhone will restart and show the lock screen setup. You can now set a new password. Your photos, messages, apps, and other data remain on the phone because you used Find My rather than a full restore. This method works only if your iPhone is connected to the internet and Find My iPhone was turned on before you forgot the password.

Resetting your password on a trusted device

If you have an iPad, Mac, or another iPhone that you use with the same Apple ID, you can reset your password from that device without touching the locked phone. On your trusted device, open Settings (or System Settings on Mac), tap your name at the top, then tap "Password & Security." Select "Change Password" and follow the prompts. Once you have set a new password, go back to your locked iPhone and try signing in with the new one.

This method works because Apple recognizes the trusted device as proof that you own the account. You do not need to erase anything or use a computer. If you do not have another Apple device, you can skip this step and use iCloud.com instead, which accomplishes the same thing.

Using a computer if you do not remember your Apple ID password

Connect your iPhone to a Mac using a USB cable, or to a Windows PC using iTunes (read it from apple.com if you do not have it). On a Mac, open Finder and select your iPhone from the sidebar. On Windows, open iTunes and select your iPhone from the device list. Click "Restore" — this erases the phone completely and installs a fresh copy of iOS.

After the restore finishes, your iPhone will restart and show the setup screen. You can now set a new password and sign in with your Apple ID. Your data will not be on the phone unless you restore from a backup, which you can do during setup if you have one saved to iCloud or your computer. This method works even if Find My iPhone is turned off, but it means starting fresh.

Recovering your Apple ID password if you are locked out of that too

Go to iforgot.apple.com on any computer. Enter your Apple ID email address. Apple will ask you to verify your identity using a recovery email address, a phone number on file, or security questions you set up when you created the account. Answer the verification prompt, and Apple will send you a link to reset your password.

If you do not have access to your recovery email or phone number, you can answer your security questions instead. If you cannot answer those either, you will need to contact Apple Support — they can verify you own the account by asking for information like the device serial number or the last four digits of a payment method on file. This step usually takes 10 to 15 minutes if you have your recovery information ready.

What to do if your iPhone is disabled or shows "iPhone is locked"

If you entered the wrong password too many times, your iPhone will show "iPhone is locked" or "iPhone is disabled" and tell you to try again in a certain number of minutes. Wait the amount of time shown on the screen — it starts at one minute and increases with each failed attempt. You do not need to do anything else; just wait and try again.

If your iPhone shows "iPhone is unavailable" and you have waited the maximum time, use one of the methods above (iCloud.com, a trusted device, or a computer) to reset your password or erase the phone. The lock-out timer does not prevent you from using these recovery options — it only prevents you from guessing the password on the phone itself.

Preventing this from happening again

Turn on two-factor authentication for your Apple ID. Go to Settings, tap your name, then "Password & Security," and enable two-factor authentication if it is not already on. This adds a layer of protection and makes it easier to recover your account if you forget your password, because Apple can send a verification code to your trusted devices.

Write down or store your Apple ID password in a password manager like 1Password or Bitwarden. Set up a recovery email address and phone number in your Apple ID settings — go to Settings, tap your name, then "Password & Security" and add both. If you set up a trusted device (another iPhone, iPad, or Mac), you can reset your password from that device without needing a computer. The more recovery options you have, the faster you can get back in.

Frequently Asked Questions

Will I lose my photos and messages if I unlock my iPhone this way?

Not if you use iCloud.com or a trusted device — both methods reset your password without erasing your data. You will lose everything only if you use a computer to restore the phone and do not restore from a backup afterward. If you have iCloud backup turned on, your data is safe in the cloud and you can restore it during setup.

How long does it take to unlock an iPhone without the password?

Using iCloud.com or a trusted device takes 5 to 15 minutes. Using a computer to restore takes 20 to 45 minutes depending on your internet speed and which iOS version you are installing. Recovering your Apple ID password adds another 10 to 15 minutes if you need to do that first.

Can I unlock my iPhone without a computer or another device?

Yes, if you remember your Apple ID password. Go to iCloud.com on any web browser, use Find My to erase your iPhone, and set a new password when it restarts. You do not need to own a computer or have another Apple device.

What if I do not remember my Apple ID email address?

Your Apple ID email is usually the one you use to sign into your iPhone. Check your email inbox for messages from Apple or look at your phone bill if you set up iCloud backup. If you still cannot find it, contact Apple Support with proof of purchase — they can look it up for you using your device serial number or payment method.

Does erasing my iPhone through Find My delete everything permanently?

When you use Find My to erase your iPhone, it removes the password and lock screen settings but keeps your data on the phone. If you restore the phone using a computer, it erases everything and you start fresh — but you can restore your data from an iCloud or computer backup during setup.