The fastest way depends on what phone you have and what you remember

If you've forgotten your phone password, the path forward depends on whether you have an Android or iPhone, and whether you can answer security questions or access a backup email account. Most phones let you reset the password without losing your data, but the exact steps differ. Start by identifying your phone type — look at the back or check the settings app — because the recovery process is completely different between them.

The key thing to know upfront: you'll need to prove you own the phone. That proof usually comes from a recovery email address, a phone number linked to your account, or security questions you set up before you locked yourself out. If you set none of those up, the process becomes much harder and may require a factory reset, which erases everything on the device.

Key Takeaways

  • iPhone users can reset a forgotten password through iCloud.com using their Apple ID, without needing the phone itself.
  • Android users can reset through Google Account Recovery on a computer, which requires access to the email address linked to the phone.
  • Both methods work best if you remember your backup email address or phone number — without either, you'll need to factory reset the phone.
  • A factory reset erases all data on the phone, so this should be your last option after other recovery methods fail.
  • If the phone belongs to someone else or you cannot prove ownership, the phone manufacturer will not unlock it for security reasons.

Resetting an iPhone password through iCloud

Go to iCloud.com on any computer or another device and sign in with your Apple ID — the email address you used to set up the iPhone. If you don't remember your Apple ID password, click "Forgot Apple ID or password" on that same page and follow the prompts to reset it using your recovery email or phone number.

Once you're signed into iCloud.com, click "Find My" in the menu. Select "Find My iPhone" and choose your phone from the list of devices. Click "Erase iPhone" — this removes the password but also erases all data on the phone unless you have a backup. After the erase completes, you can set up the phone again and restore from a backup if one exists in your iCloud account.

If you don't have access to another device or computer, you can also use any Apple Store. Bring a photo ID that matches the name on the Apple ID, and staff can help you reset the password. This usually takes 15 to 30 minutes.

Resetting an Android password through Google Account Recovery

On a computer, go to accounts.google.com and click "Sign in" at the top right. Enter the email address linked to your Android phone. If you don't remember the password, click "Forgot password?" and Google will ask you to verify your identity — usually by entering a recovery email address, a phone number, or answering security questions you set up before.

Once you've verified your identity and reset your Google password, go back to your Android phone. On the lock screen, tap "Forgot password?" or "Forgot PIN?" (the exact wording varies by phone model). Enter the email address and new password you just created. The phone will unlock and let you set a new password right away.

If your Android phone doesn't show a "Forgot password?" option on the lock screen, or if you can't remember the email address linked to the phone, you'll need to factory reset it instead. This erases everything, so use this only after the Google Account Recovery method fails.

Factory reset as a last resort

A factory reset erases all photos, messages, apps, and files on the phone and returns it to the state it was in when it left the factory. You should only do this if you cannot reset through iCloud or Google Account Recovery, and you understand that the data cannot be recovered afterward.

On an iPhone, you can factory reset through iCloud.com (as described above) or by connecting the phone to a computer with iTunes or Finder and choosing "Restore." On Android, the process varies by manufacturer. Most Android phones let you factory reset by holding the power button and volume down button together until the recovery menu appears, then selecting "Wipe data / factory reset." Some phones require you to hold these buttons for 10 to 15 seconds before the menu appears.

After a factory reset, the phone will ask you to set it up again from scratch. You'll need to sign in with your Google Account (Android) or Apple ID (iPhone) to restore apps and data from a backup, if one exists.

What to do if you don't have a backup email or recovery phone number

If you never set up a recovery email address or phone number on your account, and you can't answer the security questions, you've reached the limit of what remote recovery can do. At this point, your only option is a factory reset, which will erase everything on the phone.

Before you factory reset, contact the phone manufacturer's support line — Apple at 1-800-MY-APPLE or Google at support.google.com/accounts — and explain the situation. They may be able to verify your identity through other means, such as the original purchase receipt or the serial number of the phone. This process can take several days, but it's worth trying before you erase the device.

Preventing this from happening again

Once you regain access to your phone, set up a recovery email address and phone number on your account right away. On iPhone, go to Settings > [Your Name] > Password & Security and add a recovery email and phone number. On Android, go to myaccount.google.com, click "Security" on the left, and add a recovery email and phone number under "How we can reach you."

You should also turn on automatic backups. iPhone backs up to iCloud automatically if you're signed in and connected to Wi-Fi. Android backs up to Google Drive automatically if you're signed into a Google Account. These backups mean that even if you have to factory reset, you can restore your photos, contacts, and app data afterward.

Frequently Asked Questions

Can I unlock my phone without knowing my Apple ID or Google Account password?

Not easily. Both Apple and Google require you to prove you own the account before they'll let you reset the phone password. If you don't know either password, start by resetting the account password itself — Apple at iforgot.apple.com and Google at accounts.google.com/signin/recovery. You'll need access to a recovery email address or phone number you set up before.

What if I bought the phone used and don't have the original owner's information?

The phone is locked to the original owner's account for security reasons, and neither Apple nor Google will unlock it without proof of ownership. Contact the person you bought it from and ask them to remove it from their account, or ask them to help you reset the password. If you can't reach them, the phone cannot be unlocked.

Will factory reset delete my photos and messages?

Yes, a factory reset erases everything on the phone — photos, messages, apps, and files. The only way to recover them is if you have a backup in iCloud (iPhone) or Google Drive (Android). Before you factory reset, check whether a backup exists by signing into your account on a computer.

How long does it take to reset a phone password?

Resetting through iCloud or Google Account Recovery usually takes 5 to 15 minutes on a computer. A factory reset takes 10 to 30 minutes depending on how much data is on the phone. After a factory reset, restoring from a backup can take an additional 30 minutes to several hours depending on the backup size.

Can I unlock my phone at a carrier store like Verizon or AT&T?

Carrier stores can help with some Android phones, but they cannot unlock an iPhone — you must use iCloud or an Apple Store. For Android, call your carrier first to ask whether they can help, because the process varies by phone model and carrier policy.