The fastest way depends on which password you forgot
iPhone has three separate passwords, and the steps to reset each one are different. The Screen Time passcode is the four or six-digit code that locks your phone itself — this is what most people mean when they say they forgot their iPhone password. The Apple ID password controls your account across Apple services. The Wi-Fi password is just for that network. If you forgot your Screen Time passcode, you can reset it through your Apple ID or by erasing the phone. If you forgot your Apple ID password, you reset it on Apple's website. Each route takes a different amount of time and leaves you with different access to your data afterward.
The method you can actually use depends on whether you remember your Apple ID email and password, whether you set up recovery options like a trusted phone number, and whether you have access to a computer. If you have none of these, erasing the phone is the only option — but you can restore your data from a backup afterward if you made one.
Key Takeaways
- If you forgot your Screen Time passcode and remember your Apple ID password, you can reset it through Settings without erasing anything.
- If you don't remember your Apple ID password, you reset it on iforgot.apple.com using your email address and a trusted device or phone number.
- If you have no recovery options and can't access your Apple ID, erasing the phone through iCloud.com or a computer is the only path forward.
- After erasing, you can restore your photos, messages, and apps from an iCloud or iTunes backup if you made one before you were locked out.
- The entire process from locked-out phone to usable device takes between 15 minutes and several hours depending on which method you use and your internet speed.
Resetting your Screen Time passcode if you remember your Apple ID
This is the fastest route if you have access to another device or a computer. Go to Settings on your iPhone, tap Face ID and Passcode (or Touch ID and Passcode on older models), then tap Forgot Passcode at the bottom. You'll be asked to sign in with your Apple ID. Once you do, you can create a new Screen Time passcode right there — you don't have to erase anything.
If you can't reach Settings because your phone is completely locked, you need a different approach. On a computer or another device, go to iCloud.com, sign in with your Apple ID, and click Find My. Select your iPhone from the list, then choose Erase iPhone. This erases the phone remotely, which also removes the passcode. When the phone restarts, you can set it up fresh and restore from a backup.
Resetting your Apple ID password through Apple's website
If you forgot your Apple ID password but remember your email address, go to iforgot.apple.com on any computer or phone. Enter your Apple ID email, then choose how you want to verify your identity. Apple will send a verification code to your email address or to a trusted phone number you set up beforehand. Enter that code, and you can create a new password when ready.
This process usually takes less than five minutes. Once your Apple ID password is reset, you can use it to unlock your Screen Time passcode through Settings, or you can erase and restore your phone if you prefer a clean start. If you don't have access to your email or a trusted phone number, you'll need to contact Apple Support — they can verify your identity through security questions or other means, though this takes longer.
Erasing your phone when you have no other options
If you don't remember your Apple ID password and can't access your email or recovery phone number, erasing is the only way forward. You have two routes: through iCloud.com if you can remember your Apple ID email, or through a computer using Finder (Mac) or iTunes (Windows).
For the iCloud route, go to iCloud.com on any device, sign in with your Apple ID email (you don't need the password), click Find My, select your iPhone, and choose Erase iPhone. The phone will erase remotely over the next few hours. When it restarts, you'll see the setup screen and can create a new Apple ID or sign in with an existing one.
If you can't access iCloud.com, connect your iPhone to a computer with a USB cable. On a Mac with macOS Monterey or newer, open Finder, select your iPhone, and click Restore. On Windows or older Macs, open iTunes, select your iPhone, and click Restore. The computer will read the latest iPhone software and erase your phone, then set it up fresh. This process takes 20 to 45 minutes depending on your internet speed and which iPhone model you have.
Restoring your data after erasing
Erasing your phone removes everything, but you can get most of it back if you made a backup. During setup after erasing, you'll see an option to restore from iCloud backup or from a computer backup. If you made regular backups to iCloud (Settings > [Your Name] > iCloud > iCloud Backup), choose Restore from iCloud Backup and sign in with your Apple ID. Your photos, messages, contacts, and app data will read back to your phone over the next few hours.
If you made backups to a computer, connect your phone to that same computer and choose Restore Backup in Finder or iTunes. The backup will restore to your phone, and you'll be back to where you were before you forgot your password — except you'll have a new password you actually remember.
If you never made a backup, erasing means losing your photos, messages, and other data stored only on the phone. Apps you bought will still be there because they're tied to your Apple ID, but their saved data (like game progress or app settings) will be gone. This is why regular backups matter — they take about five minutes to set up and run automatically once a day.
What to do if you're locked out of your Apple ID entirely
Sometimes your Apple ID itself is locked for security reasons — you'll see a message saying your account is locked or disabled. This is different from forgetting your password. Go to iforgot.apple.com, enter your email, and follow the prompts. If your account is locked, Apple will walk you through unlocking it, which usually involves verifying your identity through email or a trusted device.
If you can't unlock it yourself, contact Apple Support through apple.com/support. Have your phone's serial number ready (you can find it in Settings > General > About, or on the box it came in). Apple Support can verify who you are and unlock your account, though this can take a few hours to a day. Until your account is unlocked, you can't erase your phone through iCloud or use Find My.
Preventing this from happening again
Set up recovery options in Settings > [Your Name] > Password & Security. Add a trusted phone number where Apple can send verification codes, and make sure your recovery email is current. Turn on iCloud Backup in Settings > [Your Name] > iCloud > iCloud Backup so your data backs up automatically every night when your phone is plugged in and on Wi-Fi.
Write your Apple ID email and a hint about your password somewhere safe — not on a sticky note on your monitor, but in a password manager like iCloud Keychain, 1Password, or Bitwarden. If you use Face ID or Touch ID to unlock your phone, you're less likely to forget your passcode because you use it less often, but you should still know it in case your face or fingerprint doesn't work.
Frequently Asked Questions
How long does it take to erase and restore an iPhone?
Erasing takes 5 to 15 minutes depending on how much data is on your phone. Restoring from backup takes 30 minutes to several hours depending on how much data you're restoring and your internet speed. If you're restoring 50 GB of photos and videos over a slow connection, plan for 2 to 3 hours. A smaller backup on fast Wi-Fi might take 30 minutes.
Will I lose my photos and messages if I erase my phone?
Only if you didn't back them up. If you have an iCloud backup, your photos, messages, contacts, and app data will restore when you set up your phone again. If you never turned on iCloud Backup, erasing means losing everything that was only on the phone. Check your backup status before you erase by going to Settings > [Your Name] > iCloud > iCloud Backup.
Can I reset my passcode without erasing if I don't remember my Apple ID password?
No. You need either your Apple ID password or access to your recovery email or phone number to reset your passcode without erasing. If you have none of these, erasing is the only option. This is by design — it prevents someone else from resetting your passcode if they steal your phone.
What if I forgot my Apple ID email address too?
Go to iforgot.apple.com and enter any email address you think might be connected to your account. If it's not your Apple ID email, the page will tell you. If you have a trusted device (another iPhone, iPad, or Mac you've signed into), go to Settings > [Your Name] and look at the email listed there — that's your Apple ID. If you have no devices and no way to remember your email, contact Apple Support with your phone's serial number and proof of purchase.
Do I need a computer to reset my iPhone password?
Not if you remember your Apple ID password — you can reset your Screen Time passcode through Settings on your phone. If you need to erase your phone and don't have access to a computer, you can erase it through iCloud.com on any web browser. A computer makes the process faster, but it's not required.