The fastest way back in depends on what you remember

If you are locked out of your iPhone, you have three main paths forward: use your Apple ID to reset the password through Recovery Mode, use a trusted device or phone number to verify your identity, or restore the phone to factory settings. Which one works fastest depends on whether you remember your Apple ID password, whether you have access to another Apple device, and how much data you are willing to lose.

The method that keeps your data intact requires either your Apple ID credentials or a trusted device. If you have neither, you will need to erase the phone and set it up fresh. All three paths are free and do not require visiting an Apple Store, though the process takes between 15 minutes and an hour depending on your internet speed and which method you use.

Key Takeaways

  • If you remember your Apple ID password, you can reset your iPhone password through Recovery Mode without losing any data.
  • A trusted device — any iPhone, iPad, or Mac you own and are signed into — can verify your identity and let you reset your password in minutes.
  • If you have neither your Apple ID password nor a trusted device, you must erase the phone and set it up as new, which deletes everything on it.
  • Recovery Mode requires a computer with a USB cable and takes 20 to 30 minutes, but works even if you cannot remember your Apple ID password.
  • Two-factor authentication, which most iPhones use, means you will need access to a phone number or email address tied to your Apple ID.

Using a trusted device to reset your password

If you own another iPhone, iPad, or Mac that you are already signed into with the same Apple ID, this is the fastest way in. On that 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. Your locked iPhone will receive a notification that your password has changed, and you can then unlock it with the new password.

This method works because Apple trusts devices you already use. You do not need to remember your old password, and you do not lose any data. The whole process takes about five minutes. If you do not see a notification on your locked phone within a few minutes, make sure both devices are connected to the same Wi-Fi network.

Resetting through Recovery Mode with your Apple ID

Recovery Mode is a special state your iPhone enters that lets you erase and restore it without knowing your password. You will need a computer (Mac or Windows PC), a USB cable that fits your iPhone, and your Apple ID password. This method keeps your data intact if you have a recent backup, but it takes longer than using a trusted device.

Connect your iPhone to the computer with the USB cable. On Mac, open Finder and click your iPhone in the sidebar. On Windows, open iTunes. Press and hold the top button and volume-down button at the same time until you see the power-off slider, then keep holding until the recovery screen appears. Click Restore (not Update). Your computer will read the latest iPhone software and install it, which takes 15 to 20 minutes. When it finishes, you will see the setup screen. Choose Restore from Backup and sign in with your Apple ID. If you do not have a backup, you can set up as a new iPhone, but you will lose your data.

If your iPhone has two-factor authentication turned on — which is the default for most newer phones — you will need to enter a verification code sent to a trusted phone number or email address. Have that number or email ready before you start.

What to do if you do not remember your Apple ID password

If you cannot use a trusted device and you do not remember your Apple ID password, you have two options: reset your Apple ID password through iforgot.apple.com on any computer or phone, or proceed to Recovery Mode and erase the phone entirely.

To reset your Apple ID password, go to iforgot.apple.com on any device, enter your Apple ID email address, and follow the prompts. Apple will send a verification code to your email or phone number. Once you verify your identity, you can create a new password. This usually takes 10 to 15 minutes. After you reset your Apple ID password, use the Recovery Mode steps above to unlock your iPhone.

If you do not have access to the email address or phone number tied to your Apple ID, you will need to contact Apple Support before you can reset anything. They can verify your identity through other means, but this takes longer and may require proof of purchase.

Erasing and setting up your iPhone as new

If you cannot access a trusted device, do not remember your Apple ID password, and cannot reset it through iforgot.apple.com, your only option is to erase the phone and start over. This deletes everything on it — photos, messages, apps, all data — so use this only as a last resort.

Connect your iPhone to a computer and enter Recovery Mode using the button combination described above. When you see the recovery screen, click Erase instead of Restore. Your computer will erase the phone and install fresh software. When it finishes, you will see the setup screen. You can now set up the iPhone as a new device with a new Apple ID, or sign in with an existing Apple ID if you remember the password.

If you set up with a new Apple ID, you will not have access to any of your old data, backups, or apps purchased under your previous account. This is permanent — there is no way to recover data after the erase completes.

When to contact Apple Support

Contact Apple Support if you cannot access the email address or phone number tied to your Apple ID, if you do not have a computer to use Recovery Mode, or if your iPhone shows an error message during the reset process. You can reach them through apple.com/support, through the Apple Support app on another device, or by calling 1-800-MY-APPLE. They can verify your identity and help you regain access, though this usually takes longer than the self-service methods above.

If your iPhone is under warranty and you suspect a hardware problem is preventing you from entering your password, Apple can also run diagnostics at an Apple Store. Bring your proof of purchase if you have it.

Preventing lockouts in the future

Write down your Apple ID password and store it somewhere safe — not on your phone. Turn on two-factor authentication if it is not already on, because it protects your account even if someone learns your password. Set up at least one trusted device so you always have a backup way to reset your password. If you use Face ID or Touch ID, make sure at least one family member knows your password in case you need help.

If you own multiple Apple devices, sign into all of them with the same Apple ID. This makes it much faster to reset your password if you get locked out, because you can use any of those devices to make the change.

Frequently Asked Questions

Can I reset my iPhone password without a computer?

Yes, if you have a trusted device. Use another iPhone, iPad, or Mac you own to change your Apple ID password through Settings, and your locked phone will accept the new password. If you do not have a trusted device, you need a computer to use Recovery Mode.

Will I lose my photos and messages if I reset my password?

No, not if you use a trusted device or Recovery Mode with a backup. You only lose data if you erase the phone entirely, which is the last-resort option when you cannot access your Apple ID at all.

How long does it take to reset my password through Recovery Mode?

Between 20 and 40 minutes, depending on your internet speed and which iPhone model you have. The software read and installation is the slowest part. Make sure your computer stays connected to power and internet the whole time.

What if I see an error message during Recovery Mode?

Try disconnecting and reconnecting the USB cable, restarting both your computer and iPhone, and using a different USB port. If the error persists, contact Apple Support — it may indicate a hardware problem or an issue with your computer's software.

Can someone else reset my iPhone password if they have my Apple ID?

Not without your permission, because two-factor authentication requires a code sent to your phone number or email. If someone has both your Apple ID password and access to your phone number, they could reset it, which is why protecting your phone number and email is as important as protecting your password.