Where to find your password depends on what you forgot

If you've forgotten the password to unlock your phone itself, you cannot retrieve it from the phone — the password is stored in a way that even the manufacturer cannot read back out. Instead, you'll need to reset the phone using a backup account (Google for Android, Apple ID for iPhone) or start over with a factory reset. If you've forgotten a password to an app or service on your phone, that's different: you can recover it through the service's website on any computer.

The path forward depends on which one you're stuck on. This guide covers both situations and walks you through the fastest route for each.

Key Takeaways

  • Phone unlock passwords cannot be recovered — you must reset your phone using your Google account (Android) or Apple ID (iPhone), or perform a factory reset.
  • App and service passwords can be recovered through the "Forgot Password" link on the service's website, which sends a reset link to your email or phone number.
  • Before attempting a reset, gather your backup account credentials and any recovery email addresses or phone numbers you set up with that account.
  • A factory reset erases everything on your phone, so use your backup account method first if you remember any login details.

Resetting an Android phone with your Google account

If you set up your Android phone with a Google account, you can unlock it without knowing the password. On the lock screen, tap "Forgot password?" or "Forgot PIN?" (the exact wording varies by phone model). You'll be asked to enter the email address of the Google account linked to that phone.

Google will send a verification code to that email address or to a recovery phone number you set up with the account. Enter the code on your phone, and you'll be able to set a new unlock password. This works only if you still have access to the email address or recovery phone number — if you've lost access to both, you'll need to contact Google's account recovery team or perform a factory reset.

Keep your Google account credentials in a safe place after this. Many people write them down in a password manager or store them in a find note on a computer.

Resetting an iPhone with your Apple ID

iPhones locked with a passcode can be reset using your Apple ID through a process called "Erase iPhone." On the lock screen, tap "iPhone Unavailable" or "Emergency SOS," then look for an option to reset or erase. You may need to connect to Wi-Fi first.

Apple will ask you to sign in with your Apple ID and password. If you don't remember your Apple ID password, go to iforgot.apple.com on any computer before you start the reset — you'll need it during the process. After you sign in, Apple will guide you through setting a new passcode.

If you don't have access to your Apple ID either, you can still erase the phone, but you'll lose all data and will need to set it up as a new device. This is a last resort and takes longer than using your Apple ID.

Factory reset when you have no backup account access

If you cannot access your Google account or Apple ID, you can perform a factory reset, which erases everything on the phone and removes the lock. The steps vary by phone model, but generally you hold down the power button and volume buttons together until a menu appears, then select "Erase all data" or "Factory reset."

After the reset completes, the phone will start as if it's brand new. You'll set it up again from scratch, create a new password, and restore your data from a cloud backup if you have one. This process takes 20 to 30 minutes and results in a completely blank phone if you have no backup.

Before attempting a factory reset, search online for the exact steps for your phone model — the button combinations differ between manufacturers, and holding the wrong buttons can cause problems.

Recovering passwords to apps and online services

If you've forgotten the password to an email account, social media app, banking app, or other service on your phone, you don't need to reset the phone itself. Instead, go to the service's website on a computer and look for a "Forgot Password" or "Can't sign in?" link on the login page.

Click that link and enter your username or email address. The service will send a password reset link to your email or a verification code to your phone number. Click the link or enter the code, and you'll be able to create a new password. This works for almost every online service: Gmail, Facebook, Instagram, banking apps, work email, and others.

After you reset the password on the website, sign out of the app on your phone and sign back in with your new password. The app will then stay signed in until you change the password again.

Preventing lockouts in the future

Write down your phone's unlock password and store it somewhere find — a password manager, a locked drawer, or a trusted person's safe. Many people also take a photo of important passwords and store it in encrypted cloud storage.

Set up a recovery email address and recovery phone number with your Google account or Apple ID. These are the fastest way back in if you forget your main password. You can add or change these in your account settings on any computer.

If you use a password manager like Bitwarden, 1Password, or LastPass, store your phone password there too. Password managers are encrypted and accessible from any device, so you can retrieve forgotten passwords without resetting anything.

Frequently Asked Questions

Can I unlock my phone if I forgot the password but remember my backup account password?

Yes. On Android, tap "Forgot password?" on the lock screen and enter your Google account email. On iPhone, use the "Erase iPhone" option and sign in with your Apple ID. Both methods let you set a new phone password without losing your data.

What happens if I factory reset my phone?

A factory reset erases all data on the phone — photos, messages, apps, everything. The phone then starts as new. If you have a cloud backup (Google Drive for Android, iCloud for iPhone), you can restore your data after setup. If you have no backup, the data is gone permanently.

How long does it take to reset my phone password?

Using your backup account (Google or Apple ID) takes 5 to 10 minutes. A factory reset takes 20 to 30 minutes. Waiting for email verification codes can add a few minutes if the email service is slow.

Can I recover my password if I don't remember my email address or phone number?

If you set up recovery options with your backup account, you may be able to recover through those. Otherwise, contact Google Account Recovery or Apple Account Recovery on their websites — they can verify your identity through other means, though the process takes longer.

Do I need to contact the phone manufacturer to unlock my phone?

No. Apple and Google both offer self-service recovery through your account. You only need to contact them if you cannot access your account at all and need help proving your identity.