The password for your phone is the one you set yourself

Your phone password is not something the manufacturer or your service provider assigns to you — it is a code you created when you first set up the device, or one you changed later. If you have forgotten it, you cannot call the phone company to have them tell you what it is. Instead, you have two real paths: reset the phone to factory settings (which erases everything on it), or use a backup account you linked to the phone when you set it up.

Which path works depends on what type of phone you have, whether you remember the email or phone number you used to set it up, and whether you have a backup of your data. The fastest route is usually the account recovery method, because it lets you keep your photos, messages, and apps. Factory reset is the fallback when account recovery does not work.

Key Takeaways

  • Your phone password is one you created yourself, and the manufacturer cannot retrieve it for you.
  • If you linked your phone to a Google account (Android) or Apple ID (iPhone), you can use that account to reset your password without erasing the phone.
  • Factory reset erases everything on the phone but lets you set a new password; you can restore photos and messages from a backup afterward if you have one.
  • The method you use depends on your phone type and whether you remember the email or phone number tied to your account.
  • You will need access to the email address or phone number associated with your account to prove you own the device.

Resetting your password on an iPhone using your Apple ID

If you have an iPhone and you set up an Apple ID when you first turned it on, you can use that account to reset your password. On the lock screen, tap "iPhone Unavailable" or "Try Again Later" until you see the option to use your Apple ID. Tap that option and enter the email address and password for your Apple ID account.

Apple will send a verification code to the email address or phone number tied to your Apple ID. Check that email or text message, enter the code into your phone, and then create a new password. Your phone will unlock and you will keep all your data. If you do not remember your Apple ID password, you can reset it at iforgot.apple.com before you start this process.

Resetting your password on Android using your Google account

Android phones linked to a Google account can be unlocked using that account. After several failed password attempts, your phone will show "Forgot password?" or "Forgot PIN?" — tap it. Enter the email address and password for the Google account you used to set up the phone.

Google will send a verification code to your email or phone number. Enter that code, then create a new password for your phone. Your apps, photos, and messages will remain on the device. If you do not remember your Google password, go to accounts.google.com/signin/recovery on a computer or another phone and reset it there first.

Using factory reset when you cannot remember your account details

If you do not remember the email or phone number for your Apple ID or Google account, or if you did not set up an account when you first turned on the phone, factory reset is your remaining option. This erases everything on the phone — all photos, messages, apps, and settings — and returns it to the state it was in when it left the factory.

On an iPhone, go to Settings, then General, then Transfer or Reset, then Erase All Content and Settings. On Android, go to Settings, then System, then Reset Options, then Erase All Data. You will be asked to confirm; the phone will restart and ask you to set it up as if it were brand new. At that point, you can create a new password.

After the factory reset completes, you can restore your photos and messages from a backup if you have one saved to iCloud (iPhone) or Google Drive (Android). Apps will need to be downloaded again from the App Store or Google Play Store.

What to do if you have a backup but no account access

If you have backed up your phone to iCloud or Google Drive but you cannot remember the account password, you can still recover your data after a factory reset. Reset the phone as described above. When the setup screen asks you to sign in to your account, choose "Forgot password?" and use the recovery process on Apple's or Google's website to regain access to that account.

Once you have reset your account password and signed back in during setup, your phone will offer to restore your backup. This brings back your photos, messages, contacts, and most of your settings. Apps will restore their data but will need to be downloaded fresh from the store.

Preventing this from happening again

Write down your phone password and store it somewhere safe — a notebook in a drawer, a password manager app, or a trusted family member. Do not store it in a note on the phone itself, because you will not be able to access it if you are locked out.

Make sure you remember the email address and password for your Apple ID or Google account, because these are your fastest way back into a locked phone. If you use a password manager, store these credentials there. Set up automatic backups to iCloud or Google Drive so that if you ever need a factory reset, your data is not lost.

Frequently Asked Questions

Can the phone store or the manufacturer reset my password for me?

No. Phone stores and manufacturers cannot retrieve or reset your password because they do not have access to it — only you do. They can help you perform a factory reset or guide you through account recovery, but the actual reset must come from you or your account provider.

Will I lose my photos and messages if I use account recovery?

No. Using your Apple ID or Google account to reset your password keeps everything on your phone intact. You only lose data if you choose to do a factory reset, and even then you can restore from a backup afterward.

What if I never set up an Apple ID or Google account?

Then factory reset is your only option. You will lose all data on the phone unless you have a backup saved elsewhere. In the future, set up an account during the initial phone setup to avoid this situation.

How long does it take to reset my password using my account?

Account recovery usually takes a few minutes. You receive a verification code by email or text, enter it into your phone, create a new password, and you are done. Factory reset takes longer — usually 15 to 30 minutes depending on how much data is on the phone.

Can I use someone else's account to unlock my phone?

No. You must use the account that was originally set up on the phone. If someone else set up the phone for you, you will need their account credentials, or you will need to do a factory reset.