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

If you have forgotten your phone password, the path forward splits when ready: iPhones and Android phones use completely different recovery systems, and what you can retrieve depends on whether you remember your Apple ID, Google account, or any backup you created before you locked yourself out.

The good news is that both systems assume you will forget your password eventually. The bad news is that the recovery process takes time and requires proof that the phone is actually yours. There is no when ready unlock button, and services that claim to offer one are selling you something that does not work.

Key Takeaways

  • iPhone recovery requires your Apple ID and password, or a trusted phone number linked to your account, and takes at least a few minutes through iCloud.com or the Find My app.
  • Android recovery depends on your Google account credentials and whether you set up a recovery email or phone number before you locked yourself out.
  • If you cannot remember your Apple ID or Google password either, you will need to recover those accounts first using the email address or phone number attached to them.
  • Backup codes or recovery keys, if you saved them when you first set up two-factor authentication, can speed up the process significantly.
  • If you have no recovery method available, your phone manufacturer or carrier may be able to help, but they will ask for proof of purchase or identity.

Retrieving an iPhone password through iCloud

Go to iCloud.com from any computer or another device and sign in with your Apple ID and password. Click Find My in the menu, then select your iPhone from the list of devices. Choose Find My iPhone and then Erase iPhone. This wipes the phone and removes the password, but it also erases all data on the device unless you have a backup.

After the erase completes, your phone will ask you to sign in with your Apple ID again. This is the moment you regain access. You can then restore your data from an iCloud backup if one exists. If you do not have a backup, you will be starting with a blank phone.

This method works only if you remember your Apple ID and its password. If you have forgotten both, you will need to recover your Apple ID first by going to iforgot.apple.com and following the account recovery steps there, which usually involve confirming your identity through a trusted phone number or recovery email.

Retrieving an iPhone password using a trusted device

If you have another iPhone, iPad, or Mac that is signed into the same Apple ID, you can use the Find My app directly on that device instead of going to iCloud.com. Open Find My, tap Devices, select your locked iPhone, and choose Erase This Device. The process is the same, but it is faster if you already have another Apple device nearby.

You can also use a trusted phone number if you set one up before you locked yourself out. When you try to unlock your iPhone, you will see an option to receive a verification code on a trusted number. If you still have access to that number, Apple will send you a code that lets you reset your password without erasing the phone.

Retrieving an Android password through your Google account

On the Android lock screen, tap Forgot password? or Forgot PIN? depending on what type of lock you set. Android will ask you to enter your Google account email address and password. If you remember both, you can when ready set a new phone password and regain access.

If you do not remember your Google password, you will need to recover it first. Go to accounts.google.com/signin/recovery on any computer and follow the steps to verify your identity. Google will ask you to confirm a recovery email address or phone number that you added to your account before you locked your phone. Once you have reset your Google password, return to your phone and use the new password to unlock it.

This method keeps your data intact. You are not erasing the phone; you are straightforward resetting the lock screen password using your Google account credentials.

What to do if you do not remember your Google password or recovery details

If you cannot access your Google account, the recovery process becomes longer. Go to accounts.google.com and click Can't sign in? Google will walk you through several verification steps: confirming the last password you remember, verifying a recovery email or phone number, or answering security questions you set up when you created the account.

If you do not have access to any of those recovery methods, Google may ask you to verify your identity by providing information about your account history, such as when you created it or what devices you have used it on. This can take several days, and Google may require you to submit a photo ID or other proof.

Once you have recovered your Google account, you can then use it to reset your Android phone password as described in the previous section.

Using backup codes or recovery keys if you have them

If you set up two-factor authentication on your Apple ID or Google account and saved your backup codes or recovery key at that time, you can use them to skip some verification steps. These are usually a series of numbers or a long alphanumeric string that you were told to write down and keep safe.

When you are recovering your account and Google or Apple asks you to verify your identity, look for an option that says Can't use your phone? or Use a backup code instead. Enter one of your saved codes, and the system will let you proceed without needing access to your recovery phone number or email. This is why saving those codes in a safe place — not on your phone — matters.

What your phone carrier or manufacturer can do

If you have exhausted all account recovery options, contact your phone's manufacturer (Apple, Samsung, Google, etc.) or your mobile carrier with proof of purchase or a government ID. They can sometimes verify that you own the device and help you regain access, but the process varies by company and can take several days or weeks.

Apple and Google both have formal account recovery processes for people who have lost access to all their recovery methods. These usually require you to provide information about your account, such as the email address you used to create it, the date you created it, and recent purchases you made through the account. Be prepared to wait and to provide multiple forms of identification.

Frequently Asked Questions

Can I unlock my phone without erasing it?

On Android, yes — if you remember your Google account password, you can reset your lock screen password without losing data. On iPhone, you can avoid erasing if you have a trusted phone number set up and can receive a verification code on it. Otherwise, erasing through iCloud is the standard path.

What if I do not have access to the email or phone number linked to my account?

You will need to go through your account provider's full recovery process, which may take several days. Apple and Google both have options for people who have lost access to all their recovery methods, but they require you to verify your identity in other ways, such as with a government ID or by providing account history.

How long does it take to retrieve my password?

If you remember your Apple ID or Google password and have access to a recovery method, you can regain access in minutes. If you need to recover your account first, it can take anywhere from a few hours to several days depending on which verification method the company uses.

Will I lose my photos and messages if I reset my password?

On Android, no — resetting your password through your Google account does not erase your data. On iPhone, erasing through iCloud does delete everything unless you restore from a backup afterward. If you have an iCloud backup, your data will be restored when you sign back in.

What if someone else is trying to unlock my phone?

Both Apple and Google require proof of identity and account ownership to reset a password. If you believe someone else has access to your account, change your account password when ready from a device you control, and update your recovery phone number and email to ones only you can access.