What you can do depends on which password you forgot
An iPhone has three separate passwords, and the steps to reset each one are completely different. The Screen Time passcode (the four or six digits that unlock your phone) uses one recovery path. Your Apple ID password (what you use to sign into the App Store and iCloud) uses another. Your Wi-Fi password is a third thing entirely. Most people mean the Screen Time passcode when they say they forgot their iPhone password, so that is where to start — but if you are locked out of your Apple ID instead, the process is faster and does not require a computer.
The method also depends on whether you set up a recovery email, whether you have access to another Apple device, and whether you remember your Apple ID at all. If you set up recovery options when you created your account, you can reset your password in minutes. If you did not, the process takes longer and may require proof of purchase.
Key Takeaways
- If you forgot your Screen Time passcode (the code that unlocks your phone), you will need a computer and your Apple ID password to reset it through your Mac or a Windows PC.
- If you forgot your Apple ID password, you can reset it on your iPhone itself by going to Settings > [Your Name] > Password & Security > Change Password, or through iforgot.apple.com on any web browser.
- Recovery email addresses and trusted phone numbers make password resets much faster — if you set them up when you created your account, you can reset in minutes instead of hours.
- If you do not remember your Apple ID, your recovery email, or your security questions, Apple will ask for proof of purchase or other identity verification, which can take several days.
Resetting your Screen Time passcode on a Mac
If you forgot the four or six digit code that locks your iPhone screen, you will need a Mac computer and your Apple ID password. Connect your iPhone to the Mac with a USB cable. Open Finder (on newer Macs) or iTunes (on older ones), and click your iPhone when it appears in the sidebar. Look for a button labeled "Restore" — this will erase your iPhone and reinstall the operating system, which also removes the forgotten passcode.
Before you click Restore, make sure you have a backup. If you backed up to iCloud before you forgot the passcode, your photos, messages, and app data will restore automatically after the reset. If you do not have a backup, you will lose everything on the phone. After the restore finishes, the iPhone will ask you to sign in with your Apple ID — use the password you know — and then you can set a new Screen Time passcode.
The whole process takes 15 to 30 minutes depending on your internet speed and how much data is on the phone. Do not unplug the iPhone or close Finder while it is restoring.
Resetting your Screen Time passcode on Windows
The process on a Windows PC is nearly identical to Mac, but you will use iTunes instead of Finder. read iTunes from apple.com if you do not have it already. Connect your iPhone with a USB cable, open iTunes, and click the iPhone icon when it appears. You should see a button labeled "Restore iPhone" — click it, and iTunes will erase the phone and remove the passcode.
Again, make sure you have a backup before you start. If your iPhone was backing up to iCloud, your data will restore after the reset. If not, everything on the phone will be gone. After the restore finishes, sign in with your Apple ID password and create a new Screen Time passcode.
Resetting your Apple ID password without a computer
If you forgot the password you use to sign into the App Store and iCloud (not the Screen Time passcode), you can reset it directly on your iPhone. Go to Settings, tap your name at the top, then tap "Password & Security," and select "Change Password." Your iPhone will ask you to authenticate with Face ID or Touch ID, then show you a screen to enter your new password. This takes about two minutes and does not require a computer.
You can also reset your Apple ID password on any web browser by going to iforgot.apple.com. Enter your Apple ID (usually your email address), and Apple will send a reset link to your recovery email address or text a code to your recovery phone number. Click the link or enter the code, and you can create a new password when ready.
What to do if you do not have a recovery email or phone number
If you set up your Apple ID years ago and did not add a recovery email or trusted phone number, resetting your password takes longer. Go to iforgot.apple.com, enter your Apple ID, and when Apple asks how you want to verify your identity, select "I don't have access to these options." Apple will then ask you to answer your security questions — the ones you chose when you created your account, like "What was the name of your first pet?"
If you cannot remember the answers to your security questions, Apple will ask for proof of purchase. This can be a receipt, a credit card statement showing a purchase from Apple, or a photo of your device's serial number. You will upload this through your browser, and Apple's support team will review it. This verification step usually takes 24 to 48 hours, though it can take longer during busy periods.
Resetting a Wi-Fi password on your iPhone
If you forgot the password to your home Wi-Fi network (not your iPhone password), you do not need to reset anything on your iPhone. Instead, you need to reset your Wi-Fi router. Most home routers have a small reset button on the back or bottom — hold it down for 10 to 15 seconds with a paperclip or pen until the lights blink. This erases all settings on the router, including the Wi-Fi password, and returns it to factory defaults.
After the reset, your router will broadcast a default network name (usually something like "NETGEAR-1234" or "TP-Link-5G") with a default password printed on a sticker on the back of the router. Connect your iPhone to this network, then log into your router's admin page (usually 192.168.1.1 or 192.168.0.1 in a web browser) and create a new Wi-Fi password. If you do not know your router's default password, check the sticker on the back or the manual that came with it.
Preventing lockouts in the future
The easiest way to avoid being locked out is to write down your passwords in a physical notebook kept somewhere safe, or use a password manager like 1Password, Bitwarden, or the built-in Keychain on your Mac. Password managers store your passwords encrypted and fill them in automatically, so you do not have to remember them — but you do need to remember the master password for the manager itself.
For your Apple ID specifically, add a recovery email address and a trusted phone number to your account right now, even if you think you will never forget your password. Go to Settings > [Your Name] > Password & Security > Edit, and add both. If you ever do forget your password, these two pieces of information will let you reset it in minutes instead of hours or days.
Frequently Asked Questions
Will resetting my iPhone password erase all my photos and messages?
Only if you do not have a backup. If your iPhone was backing up to iCloud before you forgot the passcode, your photos, messages, contacts, and app data will restore automatically after the reset. If you never turned on iCloud backup, everything on the phone will be erased. Check your iCloud backup status in Settings > [Your Name] > iCloud > iCloud Backup before you start the reset process.
Can I reset my iPhone password without a computer?
Not if you forgot your Screen Time passcode — you will need a Mac or Windows PC to erase and restore the phone. If you forgot your Apple ID password instead, you can reset it on your iPhone itself through Settings, or on any web browser through iforgot.apple.com. These two passwords are different things, so make sure you know which one you forgot.
How long does it take to reset my iPhone password?
Resetting your Apple ID password through Settings or iforgot.apple.com takes 2 to 5 minutes. Resetting your Screen Time passcode with a computer takes 15 to 30 minutes for the restore process itself, plus setup time. If you do not have a recovery email or phone number and Apple needs to verify your identity, add 24 to 48 hours for their support team to review your proof of purchase.
What if I forgot both my Screen Time passcode and my Apple ID password?
Reset your Apple ID password first through iforgot.apple.com on any computer or another device. Once you have access to your Apple ID again, connect your iPhone to a computer, use Finder or iTunes to restore it, and sign in with your newly reset Apple ID password. Then create a new Screen Time passcode during setup.
Do I need the original receipt to prove I own my iPhone?
A receipt helps, but it is not the only proof Apple accepts. A credit card or bank statement showing a purchase from Apple, a photo of your device's serial number (found in Settings > General > About), or other documentation of purchase can work. Apple's support team will review whatever you submit and let you know if they need anything else.