The fastest way depends on which password you forgot
There are three different passwords on an iPhone, and each one resets differently. The most common is your Apple ID password, which unlocks the App Store and iCloud. The second is your screen lock code (the 4 or 6-digit number or Face ID), which you enter every time you pick up the phone. The third is your Wi-Fi password, which only matters if you're trying to connect to a specific network.
If you're locked out of the phone itself and can't get past the home screen, you need to reset your screen lock code. If you can use the phone but can't read apps or access iCloud, you need to reset your Apple ID password. The steps are completely different, so knowing which one you need matters.
Key Takeaways
- Resetting your Apple ID password takes five minutes on any computer or another device, and you can do it right now even if you're locked out of your iPhone.
- Resetting your screen lock code requires either your Apple ID password, your recovery key, or access to a computer with your iPhone plugged in.
- If you don't remember your Apple ID password and don't have a recovery key, you will need to verify your identity through your phone number or email address before you can reset anything.
- Erasing your iPhone and setting it up fresh is the last resort, and it only works if you can prove you own the device through your Apple ID or recovery key.
Resetting your Apple ID password from any device
Go to iforgot.apple.com on any computer, tablet, or phone that is not your locked iPhone. Enter the email address or phone number tied to your Apple ID. Apple will send you a link to reset your password, usually within a few seconds.
Click the link in the email or text message. You'll be asked to verify your identity — Apple typically sends a code to a trusted phone number or email address you set up earlier. Enter that code, then create a new password. The new password takes effect when ready.
Once your Apple ID password is reset, you can use it to unlock your iPhone if you're stuck on the lock screen. You can also use it to sign into the App Store and iCloud from your phone.
Resetting your screen lock code when you know your Apple ID password
If you can reach another Apple device (a Mac, iPad, or another iPhone), open Find My and sign in with your Apple ID. Select your locked iPhone from the device list. Tap "Erase iPhone," then "Erase" again to confirm. This will wipe your phone and remove the lock code.
When the phone restarts, you'll see the setup screen. You can sign back in with your Apple ID and restore your data from a backup if you have one saved to iCloud. This process takes 10 to 30 minutes depending on how much data you have.
If you don't have another Apple device handy, you can also use a computer. Plug your locked iPhone into a Mac or Windows PC with a USB cable. Open Finder (Mac) or iTunes (Windows), select your iPhone, and choose "Restore." This does the same thing as Find My but requires the cable connection.
Resetting your screen lock code without your Apple ID password
If you don't remember your Apple ID password and can't reset it through iforgot.apple.com, you have two other options: use a recovery key or verify your identity through your phone number and email.
A recovery key is a 28-character code that Apple gives you when you turn on two-factor authentication. If you saved it somewhere safe (a password manager, a note in your email, a printed copy), you can use it to reset your screen lock code without knowing your Apple ID password. Go to iforgot.apple.com, select "I don't have my Apple ID," and choose "I have a recovery key." Enter the key and follow the prompts to create a new password.
If you don't have a recovery key, you can verify your identity using your phone number and email address instead. At iforgot.apple.com, answer security questions you set up when you created your Apple ID, or wait for Apple to send a verification code to your phone number or email. Once you've verified your identity, you can reset your Apple ID password and then use it to unlock your iPhone.
What to do if you can't verify your identity
If you don't remember the answers to your security questions and can't access the phone number or email tied to your account, Apple has a process called account recovery. Go to iforgot.apple.com and select "I can't access my account." Apple will ask you to provide information about your account and device, such as when you created it and what devices you've used.
Apple reviews this information and usually responds within a few days. They may ask you to provide a receipt from a purchase you made with that Apple ID, or to answer additional questions about your account history. Once they confirm you own the account, they'll unlock it so you can reset your password.
This process can take anywhere from a few days to a few weeks depending on how much information you can provide. If you have any receipts or documentation from Apple purchases, have them ready before you start.
Resetting a Wi-Fi password stored on your iPhone
If you're trying to reconnect to a Wi-Fi network and your iPhone says the password is wrong, the easiest fix is to forget the network and reconnect. Go to Settings, tap Wi-Fi, find the network name, tap the info icon next to it, and select "Forget This Network." Then select the network again and enter the password.
If you don't remember the Wi-Fi password, you'll need to reset it on the router itself or contact the person who set up the network. The Wi-Fi password is not the same as your Apple ID password — it's set by whoever owns the router, usually your internet provider or your home network administrator.
Preventing lockouts in the future
Write down your Apple ID password or store it in a password manager like iCloud Keychain, 1Password, or Bitwarden. If you use two-factor authentication (which you should), save your recovery key somewhere you can find it — print it out, email it to yourself, or store it in a password manager.
Set up a trusted phone number and email address in your Apple ID settings. These are the backup ways Apple will contact you if you get locked out. You can add these in Settings > [Your Name] > Password & Security on your iPhone, or at appleid.apple.com on any computer.
If you use a screen lock code, consider using Face ID or Touch ID instead — they're harder to forget and just as find. You can set these up in Settings > Face ID & Passcode or Settings > Touch ID & Passcode.
Frequently Asked Questions
Can I reset my iPhone password without a computer?
Yes, if you know your Apple ID password. Go to iforgot.apple.com on any other device, reset your Apple ID password, then use it to unlock your iPhone. If you don't know your Apple ID password, you'll need either a recovery key or access to a computer with a USB cable to erase and set up your phone again.
How long does it take to reset my iPhone?
Resetting your Apple ID password takes five minutes. Erasing your iPhone and setting it up fresh takes 10 to 30 minutes. Account recovery through Apple can take a few days to a few weeks depending on how much information you can provide.
Will I lose my photos and messages if I reset my iPhone?
Only if you erase the phone. Resetting just your Apple ID password or screen lock code doesn't delete anything. If you do erase your iPhone, you can restore your photos and messages from an iCloud backup when you set it up again — as long as you have one saved.
What's the difference between my Apple ID password and my screen lock code?
Your Apple ID password is for signing into Apple services like the App Store and iCloud. Your screen lock code is the number or Face ID you use to unlock your phone. They're separate, and forgetting one doesn't mean you forgot the other.
Can Apple help me reset my password over the phone?
Apple Support can walk you through the reset process, but they can't reset your password for you — you have to do it yourself for security reasons. You can reach Apple Support at 1-800-MY-APPLE or through the Support app on your iPhone.