The fastest way back in depends on what you have access to right now

If you've forgotten your iPhone password, you have several paths forward — but which one works depends on whether you remember your Apple ID password, whether you have a trusted device nearby, and whether you set up recovery options when you first created your account. The quickest route for most people is using a trusted iPad, Mac, or another iPhone. If you don't have one of those, your next option is answering security questions or using a recovery email address. The slowest but most reliable path is erasing the phone entirely and setting it up fresh, which you can do from any computer.

The key difference between these methods is that some let you keep your data, while others require you to erase everything and restore from a backup afterward. Before you start, gather any information you might need: your Apple ID email address, any phone numbers or email addresses you've used with Apple, and the answers to security questions if you set those up.

Key Takeaways

  • If you have another Apple device (iPad, Mac, or another iPhone), you can reset your password through that device without erasing your phone.
  • If you remember your Apple ID password but not your iPhone password, you can use Find My iPhone from iCloud.com to erase and set up the phone remotely.
  • If you don't remember your Apple ID password either, you'll need to answer security questions or use a recovery email address to reset it first.
  • Erasing your iPhone removes all data, so only use this method if you have a backup saved to iCloud or a computer.
  • Recovery mode on a computer is the most reliable method when other options don't work, but it also requires erasing the device.

Using a trusted device to reset your password without erasing

If you have an iPad, Mac, or another iPhone signed into the same Apple ID, this is your fastest option. On that device, go to Settings, tap your name at the top, then tap Password & Security. Choose Change Password and follow the prompts. Your iPhone will detect the change and ask you to enter the new password the next time you unlock it.

This method keeps all your data intact because you're only changing the password, not touching the phone's contents. The new password takes effect when ready on all your devices. If you don't have another Apple device, move to the next section.

Resetting through Find My iPhone if you remember your Apple ID password

Go to iCloud.com from any computer or another phone and sign in with your Apple ID. Click Find My iPhone (or Find My on newer systems), select your iPhone from the device list, and choose Erase iPhone. This removes all data from the phone and lets you set it up fresh. When you turn it back on, you'll be asked to sign in with your Apple ID — use the password you remember — and then you can create a new iPhone password.

This method erases everything, so it only works if you have a backup. Check whether you have iCloud backups by going to iCloud.com, signing in, and looking at your account storage. If you see recent backups listed, you can restore your data after setting up the phone. If you don't have a backup and don't remember your Apple ID password, you'll need to reset that first before you can proceed.

Resetting your Apple ID password if you don't remember that either

Go to iforgot.apple.com and enter your Apple ID email address. Apple will ask you to verify your identity using either a trusted device, a recovery email address, or security questions. If you have a trusted device (any iPhone, iPad, or Mac you've signed into before), that's the fastest route — Apple will send a verification code to that device, and you can use it to reset your password when ready.

If you don't have a trusted device, choose the recovery email option. Apple will send a link to an email address you set up during account creation. Check that email, click the link, and follow the steps to create a new Apple ID password. If you don't have access to that email address, you can answer security questions instead — these are questions you answered when you created your Apple ID, like "What was the name of your first pet?" Once you've reset your Apple ID password, you can use the Find My iPhone method described above.

Using recovery mode on a computer as a last resort

If none of the above methods work, you can use a Mac or Windows computer to reset your iPhone through recovery mode. Connect your iPhone to the computer with a USB cable, open Finder (Mac) or iTunes (Windows), and force your iPhone into recovery mode by pressing and holding specific buttons depending on your model — the steps vary, so search for your exact iPhone model and "recovery mode" to find the right button combination. When recovery mode appears on your screen, choose Restore, and the computer will erase the phone and install the latest iOS software.

After the restore finishes, your iPhone will restart and ask you to set it up. You'll need to sign in with your Apple ID to set up it. If you have an iCloud backup, you can restore your data at this point. This method erases everything, so only use it if you have a backup or if you're willing to lose your data.

What to do if you don't have a backup

If you've erased your iPhone but don't have a backup saved anywhere, your data is gone — there's no way to recover it after the phone has been wiped. Going forward, turn on iCloud backup so that your photos, messages, contacts, and settings are saved automatically. On your newly set up iPhone, go to Settings, tap your name, choose iCloud, then tap iCloud Backup and turn it on. This happens once a day when your phone is plugged in, locked, and connected to Wi-Fi.

If you use a computer, you can also plug your iPhone in and create a backup in Finder or iTunes. This backup includes everything on your phone and can be restored to any iPhone. Set a reminder to back up regularly — weekly or monthly depending on how much your phone contents change.

Preventing this from happening again

Once you're back in your iPhone, take a few minutes to set up recovery options so you never get stuck like this again. Go to Settings, tap your name, then Password & Security. Make sure you have at least one trusted phone number and a recovery email address listed. A trusted phone number is any number where you can receive a text or call — it doesn't have to be your iPhone. A recovery email is an email address you have access to and can use to verify your identity if you forget your password.

You should also set up security questions if you haven't already. These are backup verification methods that don't rely on having access to another device or email. Finally, enable two-factor authentication if it's not already on — this adds an extra security layer and is required on newer iPhones anyway. All of these settings are in the Password & Security section of your Apple ID settings.

Frequently Asked Questions

Can I reset my iPhone password without erasing it?

Yes, if you have another Apple device signed into the same Apple ID. Use that device to change your Apple ID password in Settings, and your iPhone will prompt you to enter the new password when you unlock it. If you don't have another device, you'll need to erase the iPhone to regain access.

What if I don't remember my Apple ID password or email address?

Go to iforgot.apple.com and enter any email address you think you used. If that doesn't work, try other email addresses you've used over the years. If you still can't find it, you can create a new Apple ID, but you'll need to erase your iPhone first and set it up with the new ID.

How long does it take to reset my iPhone through Find My iPhone?

The erase process itself takes a few minutes, but your iPhone needs to be connected to the internet and powered on. After erasing, setup takes another 10 to 15 minutes depending on how much data you're restoring from a backup.

Will I lose my photos and messages if I erase my iPhone?

Only if you don't have a backup. If you have iCloud backups enabled or have backed up to a computer, you can restore everything after you set up the phone. Check iCloud.com to see if you have recent backups before you erase.

What's the difference between erasing through Find My iPhone and using recovery mode?

Both erase your phone completely. Find My iPhone is faster if you remember your Apple ID password and can access iCloud.com. Recovery mode works even if you can't access iCloud, but requires a computer and is more technical.