The fastest way back in depends on what you remember

If you have forgotten your iPhone password, you have three main routes: use your Apple ID to reset it remotely, use a computer you have already signed in on, or restore the phone through recovery mode. Which one works fastest depends on whether you remember your Apple ID password, whether you have access to a trusted device or computer, and how much data you are willing to lose in the process.

The key difference between these routes is data loss. Using your Apple ID or a trusted computer can preserve your photos, messages, and apps. Recovery mode erases everything on the phone and reinstalls iOS from scratch. Start with the method that matches what you have access to right now.

Key Takeaways

  • If you remember your Apple ID password, you can reset your iPhone password from any web browser by visiting iCloud.com, even if you do not have the phone in your hands.
  • If you have a Mac or another iPhone signed into the same Apple ID, you can use the Find My app to reset the password without losing your data.
  • Recovery mode through a computer erases the entire phone but works when you have no other option and no way to remember your Apple ID password.
  • Two-factor authentication protects your Apple ID but means you will need access to a trusted phone number or device to reset your password remotely.

Resetting your password through iCloud.com if you remember your Apple ID

Go to iCloud.com on any computer or another phone and sign in with your Apple ID email address. Click your name in the top right corner, then select Account Settings. Under Security, choose Change Password. You will be asked to verify your identity — this usually means entering a code sent to a recovery email address or a trusted phone number.

Once you have changed your Apple ID password, you can use that new password to unlock your iPhone. Go to Settings > Face ID & Passcode (or Touch ID & Passcode on older models), tap Change Passcode, and enter your Apple ID password when prompted. This method does not erase any data on your phone.

If you have two-factor authentication turned on — which is the default for most newer Apple IDs — you will need access to a trusted device or phone number to complete the password reset. Check your email or text messages for the verification code Apple sends.

Using Find My on a Mac or another iPhone to reset without losing data

If you have a Mac, iPad, or another iPhone signed into the same Apple ID, you can use the Find My app to reset your forgotten passcode. On the trusted device, open Find My and select Devices at the top. Find your locked iPhone in the list and tap it. Select Erase This Device, then Erase iPhone.

This erases your passcode but restores your data from iCloud backup automatically when the phone restarts. You will be asked to sign in with your Apple ID during setup. This method works only if Find My was turned on before you forgot your passcode — you can check by going to Settings > [Your Name] > Find My on any of your other devices.

The entire process takes 10 to 15 minutes, and your phone will restart during the erase. You will lose any data created after your last iCloud backup, but photos, messages, and installed apps usually restore within an hour.

Recovery mode through a computer when you cannot remember your Apple ID password

If you do not remember your Apple ID password and do not have access to a trusted device, you will need to use recovery mode. Plug your iPhone into a Mac or Windows computer with a USB cable. On a Mac, open Finder and select your iPhone in the sidebar. On Windows, open iTunes (or the Devices app on Windows 11) and select your iPhone.

Click Restore when prompted. This erases the entire phone and reinstalls iOS. When the phone restarts, you will be taken through setup and asked to sign in with your Apple ID. If you cannot remember your Apple ID password at this point, you can skip it and set up the phone without it, though some features like iCloud backup will not work.

Recovery mode is the slowest option — the read and reinstall can take 30 minutes to an hour depending on your internet speed and the size of the iOS version. You will lose all data on the phone unless you have a backup from before you forgot your passcode.

What to do if you cannot remember your Apple ID password either

If you have forgotten both your iPhone passcode and your Apple ID password, you will need to reset your Apple ID password first. Go to iforgot.apple.com on any computer and enter your Apple ID email address. Apple will send you a password reset link to your recovery email address or ask you to answer security questions you set up when you created the account.

Once you have reset your Apple ID password, follow the recovery mode steps above. You will be able to sign in with your new Apple ID password during setup. This process takes longer because you have to complete two separate password resets, but it works even if you have no other devices or computers available.

Preventing this from happening again

Write down your Apple ID password and store it somewhere safe — a physical notebook in a drawer, a password manager like 1Password or Bitwarden, or a locked notes app. Your Apple ID password is the master key to your entire iPhone, so losing it creates far more problems than a forgotten passcode.

Turn on two-factor authentication if it is not already on. Go to Settings > [Your Name] > Password & Security and check the status. Two-factor authentication means someone cannot reset your password without access to one of your trusted devices, which makes your account much harder to break into.

Set up iCloud backup so that if you ever need to erase your phone, your data restores automatically. Go to Settings > [Your Name] > iCloud > iCloud Backup and turn it on. Make sure you are signed in to iCloud with your Apple ID.

Frequently Asked Questions

Can I reset my iPhone password without a computer?

Yes, if you remember your Apple ID password. Go to iCloud.com on any phone or computer, sign in, and reset your Apple ID password through Account Settings. Then use that new password to unlock your iPhone. You do not need the phone itself or a computer you have already signed in on.

Will resetting my password erase my photos and messages?

Not if you use iCloud or Find My to reset it. Both methods preserve your data. Recovery mode does erase everything, but your data restores from iCloud backup when the phone restarts — as long as iCloud backup was turned on before you forgot your passcode.

What if I do not have access to my recovery email address or phone number?

You can answer your security questions instead at iforgot.apple.com. If you cannot remember those either, you will need to contact Apple Support with proof of purchase. They can verify your identity and help you regain access to your account, though this process takes several days.

How long does recovery mode take?

The read and reinstall usually takes 30 minutes to an hour, depending on your internet speed and which iOS version your phone needs. The phone will restart several times during the process. Set aside time and keep the phone plugged in until it finishes.

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

Not easily, because two-factor authentication requires access to one of your trusted devices or phone numbers. If two-factor authentication is off, they would need your Apple ID password. This is why keeping your Apple ID password private and turning on two-factor authentication matters.