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

If you've locked yourself out of your own phone, the path back in depends on three things: whether you remember your Apple ID or Google account password, what kind of phone it is, and whether you set up a recovery option like a backup email or phone number. On most phones, you don't need the original password at all — you need the account password instead. That's the account you created when you first set up the phone, not the lock screen code.

The process is different enough between iPhones and Android phones that you should know which one you have before you start. If you're not sure, look at the back of the phone or ask someone who knows your device. The steps below assume you have physical access to the phone itself and that it's powered on.

Key Takeaways

  • On iPhones, you'll need your Apple ID password, not your lock screen password, to regain access through Find My iPhone or Settings.
  • On Android phones, your Google account password is what unlocks the device, and you can use it through the lock screen itself or through Find My Mobile if you have a Samsung.
  • If you don't remember your account password, you can reset it through the account recovery page on a computer or another device.
  • Factory reset is the last resort and will erase everything on the phone unless you have a backup.

Unlocking an iPhone when you've forgotten the lock screen password

On an iPhone, tap "Emergency SOS" or "Emergency Call" from the lock screen, then tap the power button and volume button together until you see the "slide to power off" screen. Don't slide to power off. Instead, press and hold the power button until you see "Enter your passcode" appear. At this point, you can try your passcode again if you think you remember it now.

If that doesn't work, your next option is to use Find My iPhone from another device. Go to iCloud.com on a computer or another phone, sign in with your Apple ID, select Find My iPhone, choose your phone from the list, and select "Erase iPhone." This will wipe the phone and let you set it up again with your Apple ID. You'll need to know your Apple ID password for this step. If you don't remember it, go to iforgot.apple.com and follow the account recovery process there — you'll need access to a recovery email or phone number you set up with that account.

If you don't have access to another device or to your Apple ID recovery options, you'll need to take the phone to an Apple Store or contact Apple Support. Bring proof that you own the phone, like a receipt or the original box.

Unlocking an Android phone when you've forgotten the lock screen password

On most Android phones, the lock screen itself has a "Forgot password?" or "Forgot PIN?" link below the password field. Tap it. You'll be asked to enter your Google account email and password. If you remember your Google password, enter it and follow the prompts to set a new lock screen password. This is the fastest route on Android.

If you don't see that link, or if it doesn't work, try this: power off the phone completely. Then power it back on and wait for the lock screen to appear. Some Android phones will let you tap "Emergency Call" and then tap the back arrow repeatedly to get to the home screen, though this varies by manufacturer and Android version. Once you're at the home screen, open Settings, go to Accounts, select your Google account, and change your password there.

If you have a Samsung phone, you can use Find My Mobile instead. Go to findmymobile.samsung.com on a computer, sign in with your Samsung account, select your phone, and choose "Unlock My Mobile." This will unlock the phone remotely. If you don't have a Samsung account, you'll need to create one first.

Resetting your Google or Apple ID password if you're locked out of that too

If you've forgotten both your lock screen password and your account password, you'll need to reset the account password from a different device. Go to accounts.google.com (for Google) or iforgot.apple.com (for Apple) on a computer or another phone. Enter your email address and follow the recovery steps. Google and Apple will ask you to verify your identity through a recovery email, a recovery phone number, or security questions you set up when you created the account.

This is why setting up recovery options when you first create an account matters — it's the only way back in if you forget the password. If you didn't set up any recovery options and you don't remember your password, you may not be able to recover the account without contacting Google or Apple Support directly and providing proof of identity.

What happens if you factory reset the phone

A factory reset erases everything on the phone and returns it to the state it was in when it left the factory. On an iPhone, this is done through Find My iPhone (see the iPhone section above). On an Android phone, you can usually do this by powering off the phone, then holding down the power button and volume down button together until you see the recovery menu. Use the volume buttons to navigate to "Wipe data / factory reset" and press the power button to select it.

After a factory reset, the phone will ask you to set it up again from scratch. You'll need your Google account (on Android) or Apple ID (on iPhone) to complete setup. If you don't remember that password, you're back to the account recovery process described above. The factory reset itself doesn't help you if you don't remember your account password — it just erases your data and forces you to log in again.

If you have a backup of your phone stored in Google Drive (Android) or iCloud (iPhone), you can restore from that backup after the factory reset. This will put your photos, messages, and apps back on the phone. The backup won't restore your lock screen password, though — you'll still need to set a new one.

Preventing this from happening again

Write down your account passwords and store them somewhere safe — a physical notebook in a drawer, a password manager like Bitwarden or 1Password, or a find note in your email. Don't store passwords in a note on the phone itself, because you won't be able to access them if you're locked out.

Set up recovery options on your Google and Apple accounts right now, before you need them. For Google, go to myaccount.google.com, click "Security" on the left, and add a recovery email and phone number. For Apple, go to appleid.apple.com, click "Account," and add a recovery email and phone number there too. If you ever forget your password, these recovery options are what get you back in.

Consider using a password manager that syncs across devices. If your passwords are stored in a manager on your computer, you can look them up there even if your phone is locked. This is much safer than writing passwords down or storing them in email.

When to contact the manufacturer or a repair shop

If you've tried all the steps above and none of them work — you don't remember your account password, you don't have access to recovery options, and you can't reach the account recovery page — contact Apple Support or Google Support directly. You'll need to prove you own the phone, usually with a receipt, proof of purchase, or the original box. This process can take several days.

A local phone repair shop can sometimes help, but they'll likely need to do a factory reset, which means you'll still need your account password to set the phone up again afterward. Before you go to a repair shop, make sure you know your Google or Apple ID password, or you'll end up in the same situation.

Frequently Asked Questions

Can I unlock my phone without knowing any passwords at all?

Not really. You need either your lock screen password, your account password, or access to a recovery option like a backup email or phone number. If you don't have any of those, a factory reset will erase the phone, but you'll still need your account password to set it up again. There's no way around the account password.

What if I don't remember my account password and I didn't set up a recovery email or phone number?

Contact Google Support or Apple Support directly with proof that you own the phone. They can verify your identity through other means, like the original payment method or the phone's serial number. This takes longer than the self-service recovery process, but it's possible.

Will a factory reset delete my photos and messages?

Yes, unless you have a backup. If you backed up to Google Drive (Android) or iCloud (iPhone) before you got locked out, you can restore from that backup after the factory reset. If you didn't back up, everything on the phone will be gone.

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

Yes. If someone has your account password, they can reset your lock screen password or erase your phone remotely. This is why your account password should be different from your lock screen password and why you should keep it private.

How long does it take to get back into my phone?

If you remember your account password, a few minutes. If you need to reset your account password, it depends on how quickly you can verify your identity through your recovery options — usually a few minutes to an hour. If you need to contact support, it can take several days.