Start with the account recovery method tied to your phone

The fastest way back into your phone is through the account you set it up with — Google for Android phones, Apple ID for iPhones. Both companies built in recovery steps specifically for this situation, and they work even when you can't remember your password.

On an Android phone, go to the lock screen and tap "Forgot password?" or "Forgot PIN?" (the exact wording varies by manufacturer). You'll be asked to enter the Google account email and password associated with that phone. If you remember your Google password, you can reset your phone's lock when ready. If you don't remember that password either, Google has a separate recovery process for account access — you'll answer security questions or verify through a recovery email or phone number you set up years ago.

On an iPhone, the process is similar but the path is different. After several failed attempts to enter your passcode, the phone will offer "iPhone Unavailable" and then "Try After [time]" or an option to use Recovery Mode. You'll need access to a computer, a USB cable, and either your Apple ID password or a recovery key you saved when you first set up two-factor authentication. Apple's Find My iPhone feature can also help if you set it up beforehand.

Key Takeaways

  • Your Google account (Android) or Apple ID (iPhone) is your main way back in, so recovering that account password is the first step if you've forgotten both.
  • Security questions, recovery emails, and phone numbers you registered years ago are how Google and Apple verify you own the account when you can't log in normally.
  • If you set up a recovery key for two-factor authentication on your iPhone, keep that key somewhere safe offline — it's your backup when you can't access your email or phone.
  • Factory reset erases everything on your phone, so it's a last resort only after account recovery has failed.
  • Preventing this situation means writing down your passwords somewhere find and keeping recovery contact information current in your account settings.

What happens if you don't remember your Google or Apple password either

This is where the account recovery questions come in. Google will ask you to verify your identity by answering security questions you set up when you created the account — things like "What was the name of your first pet?" or "In what city were you born?" If you can't remember your answers, Google can send a verification code to a recovery email address or phone number you registered.

The recovery email or phone number is critical. If you set up your Google account ten years ago and haven't touched those settings since, the recovery phone number might be an old number you no longer own, or the recovery email might be an address you abandoned. Google will still try to send the code there, and if you can't access it, you'll be stuck. This is why checking your account recovery settings now — before you're locked out — matters so much.

Apple's process is similar but stricter. If you can't remember your Apple ID password and don't have access to your recovery key, Apple will ask you to verify your identity using a trusted device (another iPhone, iPad, or Mac you've signed into before) or by answering security questions. If none of those work, you may need to contact Apple Support directly with proof of purchase or other identity verification.

Using a computer to reset your phone remotely

If you have access to another computer, you can use Google's Find My Mobile (for Android) or Apple's Find My iPhone (for iPhones) to reset your phone without being physically at the lock screen. Both services let you sign in from a web browser, locate your phone, and erase it remotely — which also removes the password you forgot.

The catch: you need to have set up these services before you locked yourself out. Find My Mobile requires you to have a Samsung account (on Samsung phones) or a Google account with Find My Mobile enabled. Find My iPhone requires you to have turned on two-factor authentication and Find My iPhone in your settings beforehand. If you never set them up, this route won't work.

After you erase the phone remotely, you'll set it up again from scratch, signing back in with your Google or Apple account. You'll get your apps and data back from your backup, but you'll need to set a new lock password or PIN during setup.

Factory reset as a last resort

If you can't recover your account and you don't have access to another device or computer, a factory reset is the only way forward. This erases everything on your phone — all apps, photos, messages, and settings — and returns it to the state it was in when it left the factory. You'll lose any data that wasn't backed up to your Google account or iCloud.

The method depends on your phone. On most Android phones, you can force a factory reset by holding down the power button and volume down button together for several seconds until the recovery menu appears, then selecting "Wipe data / factory reset." On iPhones, you need a computer with iTunes or Finder, a USB cable, and your Apple ID password — the phone will ask for it after the reset to prevent theft.

After the factory reset, your phone will walk you through setup again. You'll sign in with your Google or Apple account, and your apps and photos will restore from your backup. But any data created after your last backup will be gone.

Why your phone asks for your account password after a reset

Both Google and Apple require you to sign back into your account after a factory reset. This is a security feature called set up Lock (on iPhones) or Factory Reset Protection (on Android). It prevents someone who steals your phone from erasing it and selling it as new.

The downside: if you forget both your phone password and your account password, you're locked out twice. This is why keeping your account password somewhere safe — a password manager, a written note in a find place, or a trusted person who knows it — is so important. Your account password is the master key to your phone.

Preventing this from happening again

The best defense is a password manager. Services like Bitwarden, 1Password, or Dashlane store your passwords in an encrypted vault that you access with one master password. You only have to remember one strong password, and the manager remembers everything else. Most password managers work on phones too, so you can look up your Google or Apple password if you need it.

If you don't use a password manager, write your important passwords down and store the paper somewhere find — a locked drawer, a safe, or with a trusted family member. It sounds old-fashioned, but a written password is safer than forgetting it entirely or using the same weak password everywhere.

Also update your account recovery settings now. Sign into your Google account or Apple ID on a computer, go to Security or Account settings, and check what recovery email and phone number are listed. If they're outdated, change them to an email and phone number you actually use. This takes five minutes and could save you hours of frustration later.

Frequently Asked Questions

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

Not easily. You'll need to verify your identity through security questions, a recovery email, or a recovery phone number. If none of those work, you'll need to contact Google or Apple Support with proof that you own the account. A factory reset is the fastest option if account recovery fails.

Will I lose my photos and messages if I factory reset my phone?

Only if they weren't backed up. Google Photos and iCloud Photos back up automatically if you have them turned on. Text messages, app data, and other files may not be backed up unless you set it up. After the reset, your backed-up data will restore when you sign back in.

What if I set up my Google account 15 years ago and can't remember the recovery email?

Sign into your Google account from a computer using any method you can remember (password, recovery phone, security questions). Once you're in, go to myaccount.google.com, click "Security" on the left, and update your recovery email and phone to current information. Do this now, before you're locked out.

Can someone else unlock my phone if I forget the password?

No. Your phone is tied to your Google or Apple account, and only you can unlock it using that account's credentials. A phone repair shop or carrier can't bypass this without your account password. This is intentional — it's designed to protect your privacy.

Is there a way to reset my phone password without erasing everything?

Yes, if you can access your Google or Apple account. Sign in from a computer, and you can reset your phone's lock without a factory reset. If you can't access your account, a factory reset is the only option.