The fastest way depends on what you remember and what phone you have
If you've forgotten your password, the path forward depends on whether you set up a recovery method beforehand — a backup email, a phone number, or biometric unlock like a fingerprint. Most phones let you reset the password through that recovery method without losing your data. If you didn't set one up, you'll need to factory reset the phone, which erases everything on it. The process is different for iPhone and Android, and it matters whether you remember your Apple ID or Google account password.
The key is acting quickly: the longer you wait, the more you risk forgetting other details you'll need, like the email address associated with your account. Start by trying the recovery method you set up when you first activated the phone.
Key Takeaways
- If you remember your Apple ID or Google account password, you can reset your phone's lock screen password without erasing your data.
- If you don't remember that account password either, you'll need to factory reset the phone, which deletes all photos, messages, and apps stored on it.
- Recovery options work fastest when you set them up before you forget — a backup email, a trusted phone number, or security questions.
- If you're locked out of an iPhone, Apple's Find My iPhone tool can help you reset it even if you don't have the phone in front of you.
Resetting an Android phone when you remember your Google account password
On most Android phones, after you enter the wrong password five or six times, the phone offers you a "Forgot password?" button. Tap it. The phone will ask for the Google account email and password associated with that device. If you remember both, enter them and the phone will let you set a new lock screen password without erasing anything.
If the "Forgot password?" button doesn't appear after multiple wrong attempts, restart the phone and try again. Some Android phones show this option only after a certain number of failed tries in a row.
If you don't see the option and you're certain you set up a Google account on the phone, you may need to contact the phone's manufacturer — Samsung, Google Pixel, OnePlus, or whoever made it — because the recovery process varies slightly between brands. Have your phone's serial number ready; it's usually on the back of the device or in the Settings app under "About Phone."
Resetting an iPhone when you remember your Apple ID password
On an iPhone, after several wrong password attempts, the phone locks you out temporarily and eventually offers "iPhone Unavailable." At that point, you have two options: use another Apple device you own, or use a computer.
If you have another iPhone, iPad, or Mac, open the Find My app (on newer devices) or Find My iPhone (on older ones). Sign in with your Apple ID, select your locked iPhone from the list of devices, and choose "Erase iPhone." The phone will reset to factory settings. When it restarts, you'll see the setup screen and can sign back in with your Apple ID, then restore your photos and messages from an iCloud backup if you made one.
If you don't have another Apple device, go to iCloud.com on any computer, sign in with your Apple ID, click Find My, select your iPhone, and follow the same erase process. The phone doesn't need to be near you — Apple's servers will send the erase command the next time it connects to the internet.
What to do if you don't remember your account password either
If you've forgotten both your lock screen password and your Google or Apple account password, you'll need to reset both. Start by recovering your account password through the account provider's website.
For Google, go to accounts.google.com/signin/recovery on any computer. Enter the email address, and Google will ask you to verify your identity — usually by entering a recovery email or phone number you set up years ago, or by answering security questions. Once you've reset your Google password, use the Android recovery method above.
For Apple, go to iforgot.apple.com on any computer. Enter your Apple ID email, answer security questions or use a recovery email, and reset your password. Then use the iPhone recovery method above.
This process can take anywhere from a few minutes to several hours, depending on how quickly you can access your recovery email or remember the answers to your security questions.
Factory reset: the last resort when you can't recover the account
If you can't remember or recover your Google or Apple account password, your only option is a factory reset. This erases everything on the phone — all photos, messages, apps, and settings — and returns it to the state it was in when it left the factory. You cannot undo this.
On Android, restart the phone and hold down the Volume Down and Power buttons together until the recovery menu appears. Use the volume buttons to navigate to "Wipe data / factory reset" and press Power to select it. Confirm the choice. The phone will erase and restart, and you'll see the setup screen.
On iPhone, you cannot factory reset from the phone itself if it's locked. You must use Find My iPhone (see the section above) or connect the phone to a computer with iTunes or Finder and restore it from there. Both methods require your Apple ID password, so if you've truly forgotten it and can't recover it, you'll need to contact Apple Support.
Preventing this from happening again
Once you've regained access to your phone, set up a recovery method when ready. On Android, go to Settings, then Accounts, select your Google account, and make sure a recovery email and phone number are listed. On iPhone, go to Settings, tap your name at the top, then Password & Security, and add a recovery email and phone number.
Also turn on automatic backups. On Android, open Settings, go to Google, then Manage your Google Account, then the Backup tab, and make sure "Backup to Google One" is on. On iPhone, go to Settings, tap your name, then iCloud, and turn on iCloud Backup. This way, if you ever have to factory reset, you can restore your photos and messages afterward.
Write down your Apple ID or Google account password in a find place — a password manager like Bitwarden or 1Password, or a physical notebook locked in a drawer. The password you use to unlock your phone is less critical than the account password, because the account password is what actually gets you back in.
When to contact the phone manufacturer or carrier
If you've tried the recovery methods above and none of them work, contact the phone's manufacturer directly. Samsung has a Find Mobile support tool, Google has a Pixel support line, and Apple has AppleCare. Have your phone's serial number and proof of purchase ready — they may ask for it to confirm you own the device.
Your phone carrier (Verizon, AT&T, T-Mobile, etc.) cannot unlock your phone's password, but they can sometimes help you verify your identity if you've lost access to your recovery email or phone number. Call the number on the back of your bill or visit a store in person.
Frequently Asked Questions
Can I unlock my phone if I don't have access to the recovery email?
You can try to recover the email account itself, or answer security questions if you set them up. If neither works, you'll need to factory reset the phone. Contact the phone manufacturer with proof of purchase — they may be able to verify your identity another way.
Will I lose my photos and messages if I reset my password?
No, not if you use the recovery method (Google account or Apple ID password). You only lose data if you do a factory reset. If you've been backing up to Google Photos or iCloud, you can restore those even after a factory reset.
How long does it take to reset my password?
If you remember your account password and can access the recovery method, a few minutes. If you need to recover your account password first, it can take hours or days depending on how quickly you can verify your identity through email or security questions.
What if someone else is trying to unlock my phone?
If you think someone has your phone and is trying to get in, contact your phone carrier and Apple or Google when ready. They can lock your account and prevent remote resets. Also change your account password from another device as soon as you can.
Can I unlock my phone without erasing it if I don't remember anything?
No. If you don't remember your lock screen password and can't recover your account password, a factory reset is the only way in. This is by design — it prevents someone else from accessing your phone even if they have it physically.