What to do if you've locked yourself out

If you've forgotten your phone password, your first move depends on what kind of phone you have and whether you can access a computer. For most people, the fastest route is to use your phone manufacturer's account recovery system — Google Account for Android phones, Apple ID for iPhones — because these systems are built specifically to let you back in without losing your data.

The recovery process usually takes 15 minutes to an hour, though some methods require you to wait a day or two for security reasons. You will need access to a recovery email address or phone number that you set up when you created your account. If you don't remember those details, the process gets longer but is still possible.

Key Takeaways

  • Google Account recovery (for Android) and Apple ID recovery (for iPhone) are the official paths designed to unlock your phone without erasing it.
  • You will need access to a recovery email address or phone number associated with your account to prove you own the phone.
  • If you can't access your recovery email or phone number, you can still unlock the phone, but the process takes longer and may require proof of purchase.
  • Factory reset is the last resort — it erases everything on the phone, so use it only when other methods have failed.
  • Setting up a recovery email and backup phone number now prevents this problem in the future.

Unlocking an iPhone with your Apple ID

Go to iforgot.apple.com from any computer or another device. Enter the email address or phone number associated with your Apple ID. Apple will send a verification code to that email or phone number — check both your inbox and spam folder.

Enter the code, then create a new password. Once you've done this, go back to your locked iPhone, tap "iPhone Unavailable," then tap "Try Again" after the timer counts down. Enter your new Apple ID password. Your phone will unlock and you'll keep all your data.

If you don't have access to the email address or phone number on your account, you can still recover it, but the process takes longer. Apple will ask you to answer security questions you set up when you created your account, or to provide proof of purchase. This can take several days.

Unlocking an Android phone with your Google Account

On your locked phone, tap "Forgot password?" or "Forgot PIN?" — the exact wording varies by phone model. Google will ask you to enter the email address associated with your Google Account. If you don't remember it, you can look it up at accounts.google.com/signin/recovery from another device.

Google will send a verification code to your recovery email address. Enter it, then create a new password. Go back to your phone and enter the new password to unlock it. Your data stays on the phone.

If you can't access your recovery email, you can answer security questions instead. Google will ask for details like the date you created the account or the last password you remember. If you still can't verify your identity, Google may ask for a photo of your ID or proof of purchase, which can take a few days to process.

Using a computer to unlock your phone

If your phone is an iPhone, you can use a Mac or Windows computer running iTunes or Finder. Connect your phone to the computer with a USB cable. On a Mac, open Finder and select your phone. On Windows, open iTunes. Look for a "Restore" button — clicking it will erase the phone and let you set it up again with a new password.

This method erases all data on the phone, so it should be your last choice if you have important information stored there. However, if you back up your phone regularly to iCloud, you can restore your data after you unlock it.

For Android phones, the computer method is less straightforward because it depends on your phone model and manufacturer. Some phones let you unlock through Samsung Find Mobile or similar manufacturer tools if you're signed into your account on a computer. Check your phone's manufacturer website for the specific steps.

Factory reset as a last resort

A factory reset erases everything on your phone and returns it to its original state. You should only do this if you've tried account recovery and it didn't work, or if you've decided the data on the phone is not worth keeping.

The steps vary by phone. For most Android phones, hold the Power button and Volume Down button together for 10 to 20 seconds until the recovery menu appears. Use the volume buttons to navigate to "Wipe data/factory reset" and press Power to select it. For iPhones, you need a computer — see the section above.

After the reset, your phone will ask you to set up a new password and sign into your account. You'll have a blank phone, but you can restore data from a backup if you have one stored in Google Drive or iCloud.

Preventing this from happening again

Add a recovery email address and phone number to your account right now, before you forget your password. For iPhone, go to Settings > [Your Name] > Password & Security > Recovery Email. For Android, go to myaccount.google.com, click "Security" on the left, and scroll to "How you sign in to Google" to add a recovery email and phone number.

Turn on automatic backups. iPhone users should enable iCloud backup in Settings > [Your Name] > iCloud > iCloud Backup. Android users should go to Settings > Google > Manage Your Google Account > Backup and turn on automatic backup. This way, even if you have to factory reset your phone, you can restore your photos, contacts, and messages afterward.

Consider using a password manager like Bitwarden or 1Password to store your phone password somewhere you can actually remember it. Write down your recovery email and phone number and store them in a safe place — not on the phone itself.

Frequently Asked Questions

How long does it take to unlock my phone?

If you have access to your recovery email or phone number, unlocking usually takes 15 minutes to an hour. If you need to answer security questions or provide proof of purchase, it can take one to three days. Apple and Google may add a waiting period for security reasons, which can add another 24 hours.

Will I lose my photos and messages if I unlock my phone?

No, not if you use your Google Account or Apple ID to unlock it. Account recovery keeps all your data on the phone. Only a factory reset erases everything, and you should only do that if account recovery doesn't work.

What if I don't remember my recovery email address?

For Google, go to accounts.google.com/signin/recovery from another device and follow the steps to find your account. For Apple, go to iforgot.apple.com and use your phone number instead. Both companies can verify your identity through security questions or proof of purchase if you can't access your recovery email.

Can someone else unlock my phone if they know my password?

No. Even if someone knows your password, they can't unlock your phone without also having access to your Google Account or Apple ID. This is why setting a strong, unique password on your account is important — it protects your phone even if someone gets your device password.

Is there a way to unlock my phone without erasing it if I don't have a recovery email?

Yes, but it takes longer. Both Google and Apple let you verify your identity by answering security questions or providing proof of purchase. This process can take several days, but it keeps your data intact. Contact Google Support or Apple Support directly to start this process.