You have three main ways to regain access to your iPhone

If you have forgotten your iPhone password, you can recover access through iCloud, a computer with iTunes or Finder, or by erasing the device and starting over. Which path works depends on whether you remember your Apple ID password, whether you have a trusted device nearby, and how much data you are willing to lose. None of these routes are when ready — some take minutes, others take days — but all of them work without calling Apple Support.

The fastest option is usually iCloud if you remember your Apple ID password and have access to another device like an iPad or Mac. The slowest but most reliable option is using a computer with Finder or iTunes, which works even if you have forgotten your Apple ID password. Erasing the device is the nuclear option: it wipes everything, but it gets you back in when ready.

Key Takeaways

  • If you remember your Apple ID password, use iCloud.com from any browser to lock your iPhone remotely and set a new password in minutes.
  • If you have a Mac or Windows computer, connect your iPhone to it with Finder or iTunes to reset your password without knowing your Apple ID credentials.
  • If you have a trusted device (iPad, Mac, or another iPhone), you can use that device to reset your password through Settings without a computer.
  • Erasing your iPhone removes all data but lets you set a new password when ready; you can restore from a backup afterward if you have one.
  • Two-factor authentication slows down password recovery but also prevents someone else from resetting your password without your permission.

Using iCloud if you remember your Apple ID password

Go to iCloud.com from any browser on any device — a computer, tablet, or even someone else's phone. Sign in with your Apple ID and password. Click "Find My" (or "Find My iPhone" on older accounts), then select your iPhone from the list of devices.

Click "Find My iPhone" and then tap "Erase iPhone" to wipe the device remotely. This removes your forgotten password. After the erase completes, your iPhone will restart and show the setup screen. You can then set a new password and restore your data from an iCloud backup if you have one.

This method works anywhere and takes about five to ten minutes. The catch: if you have two-factor authentication turned on (which Apple recommends), you may be asked to verify your identity on a trusted device before the erase goes through. If you do not have access to a trusted device, you will need to wait 15 minutes and try again, or use a different recovery method.

Using a computer with Finder or iTunes

Connect your iPhone to a Mac or Windows computer with a USB cable. On a Mac running Catalina or newer, open Finder and click your iPhone in the sidebar. On Windows or older Mac, open iTunes instead. Your computer will recognize the device.

Click "Restore" (in iTunes) or "Restore iPhone" (in Finder). Your computer will read the latest iPhone software and install it on your device, erasing your password in the process. This takes 10 to 30 minutes depending on your internet speed and which iPhone model you have. When it finishes, your iPhone will restart and show the setup screen.

You do not need to remember your Apple ID password for this method — your computer handles the reset. However, you will need to sign back into your Apple ID during setup. If you forget that password too, you can reset it at iforgot.apple.com before you start. This method works even if your iPhone is disabled or locked after too many wrong password attempts.

Using a trusted device if you have one

If you have another Apple device signed into the same Apple ID — an iPad, Mac, or another iPhone — you can use it to reset your iPhone password without a computer. On your trusted device, open Settings and tap your name at the top. Scroll down and tap "Password & Security," then "Change Password."

Follow the prompts to create a new password. This new password will work on your locked iPhone as soon as you enter it. You do not need to erase anything or restore from backup. This is the fastest method if you have a second device available.

If you have two-factor authentication on, your trusted device will receive a verification code. You will need to approve the password change on that device before it takes effect on your iPhone. This extra step protects you if someone else has your iPhone, but it means you cannot reset your password if you lose access to all your trusted devices.

What happens if you erase your iPhone

Erasing your iPhone removes your password, all your apps, photos, messages, and any other data stored on the device itself. It does not affect data stored in iCloud — your photos, contacts, calendar, and notes stay in the cloud. After the erase, your iPhone will restart and ask you to set up as if it were brand new.

During setup, you can sign into your Apple ID and restore from an iCloud backup. This brings back your apps, photos, messages, and other data that was backed up. The restore takes 15 minutes to an hour depending on how much data you have and your internet speed. You will lose any data created after your last backup, but most people back up daily without thinking about it.

If you do not have an iCloud backup, you will lose everything on the device. This is why erasing should be your last resort, not your first choice. However, if you cannot remember your Apple ID password and do not have access to a computer or trusted device, erasing is your only option.

Two-factor authentication and password recovery

Two-factor authentication is a security feature that requires you to verify your identity on a trusted device before you can change your password or reset your iPhone. It slows down password recovery but it also prevents someone who steals your iPhone from locking you out of your own account.

If you have two-factor authentication on and you forget your password, you will need access to at least one trusted device to complete the recovery. A trusted device is any iPhone, iPad, or Mac that you have previously signed into with your Apple ID. If you have lost access to all your trusted devices, you will need to wait 15 minutes and try the iCloud method again, or use a computer with Finder or iTunes instead.

You can check whether two-factor authentication is on by going to Settings > [Your Name] > Password & Security. If it says "Two-Factor Authentication" with a toggle, you have it turned on. You cannot turn it off without knowing your password, so if you have forgotten your password, you are stuck with the extra verification step until you recover access.

How long each method takes

Using iCloud takes 5 to 10 minutes if you remember your Apple ID password and do not have two-factor authentication, or 15 to 20 minutes if you do. Using a computer with Finder or iTunes takes 10 to 30 minutes depending on your internet speed. Using a trusted device takes 2 to 5 minutes. Erasing your iPhone and restoring from backup takes 30 minutes to an hour total.

The actual time also depends on your internet speed, how much data you have, and whether Apple's servers are busy. During peak hours, iCloud operations can take longer. If you are restoring from a large backup, the restore itself can take an hour or more. Plan for the longest estimate and you will not be surprised.

Frequently Asked Questions

Can I recover my password without erasing my iPhone?

Yes, if you remember your Apple ID password or have access to a trusted device or computer. Only the erase method removes your data. The iCloud, trusted device, and computer methods all reset your password while keeping your data intact, as long as you restore from backup afterward.

What if I forgot both my iPhone password and my Apple ID password?

Use a computer with Finder or iTunes to reset your iPhone. You do not need to know your Apple ID password for this method. During setup, go to iforgot.apple.com to reset your Apple ID password before you sign back in. This takes longer but it works without any passwords.

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

Not if you restore from an iCloud backup. Photos, messages, contacts, and most other data are backed up to iCloud automatically. After you reset your password and set up your iPhone again, sign into your Apple ID and restore from backup to get everything back. You will only lose data created after your last backup.

Can someone else reset my iPhone password if they have it?

Not easily if you have two-factor authentication on. They would need access to a trusted device signed into your Apple ID. Without two-factor authentication, they can erase your iPhone using a computer, but they cannot sign into your Apple ID without your password. Turn on two-factor authentication in Settings to prevent this.

How do I make sure I can recover my password in the future?

Write your Apple ID password somewhere safe, turn on two-factor authentication, and keep at least one trusted device (iPad or Mac) signed into your Apple ID. Set up iCloud backups so your data is always backed up. If you lose your iPhone, you will be able to recover it quickly through any of these methods.