Start with your phone's built-in recovery options

Most phones have a way to reset your password without losing your data, and the fastest route depends on what kind of phone you have. On an iPhone, you can use your Apple ID and a trusted device or phone number to reset your passcode without erasing everything. On Android, you can use your Google account to unlock the phone, though the exact steps vary by manufacturer — Samsung, Google Pixel, and others each have slightly different processes.

Before you try anything, check whether you have a trusted device nearby. If you have an iPad, Mac, or another iPhone signed into the same Apple ID, you can reset your passcode from that device without losing photos, messages, or apps. This is the fastest option if it's available to you.

Key Takeaways

  • iPhones can be reset using your Apple ID and a trusted device or recovery key, which keeps your data intact.
  • Android phones can be unlocked through your Google account, but the process differs by manufacturer and may erase some data.
  • If you have a trusted device, use it first — it's the quickest way to reset your password without losing anything.
  • Your phone carrier can verify your identity and help you access your account if you're locked out of your Apple ID or Google account.

How to reset an iPhone passcode using Apple ID

On your iPhone, go to Settings, then Face ID & Passcode (or Touch ID & Passcode on older models), and tap "Passcode Options" at the bottom. You'll see an option to reset your passcode using your Apple ID. Tap it, then enter your Apple ID email and password. Your phone will ask you to set a new passcode.

If you don't remember your Apple ID password either, you can reset that at iforgot.apple.com. You'll need to answer security questions, use a recovery key if you saved one, or verify your identity through a trusted phone number. Once you reset your Apple ID password, go back to your phone and use the new password to unlock it.

If you have a Mac or iPad signed into the same Apple ID, you can use that device instead. Open System Preferences (Mac) or Settings (iPad), find your Apple ID, and look for an option to reset your iPhone's passcode. This method doesn't require you to remember your Apple ID password.

How to unlock an Android phone using your Google account

After you've entered the wrong password too many times, Android phones typically show a "Forgot password?" or "Forgot PIN?" link on the lock screen. Tap it and enter your Google account email and password. Your phone will unlock and let you set a new password.

If you don't see that option, or if your phone doesn't respond, restart it and try again. Some Android phones require you to wait a few minutes between incorrect attempts before the recovery option appears.

If you don't remember your Google password, go to myaccount.google.com on another device and click "Security" in the left menu. Select "How you sign in to Google" and choose "Password." You can reset it there using a recovery email or phone number. Once you've reset your Google password, use the new one on your phone's lock screen.

What to do if you can't access your backup email or phone number

If the recovery email or phone number on your account is outdated or no longer works, you'll need to verify your identity another way. For Apple, you can use a recovery key if you saved one when you set up two-factor authentication — check your email or password manager for a 24-character code starting with "L". For Google, you can answer security questions you set up when you created your account.

If you can't answer those questions either, contact Apple Support or Google Support directly. Have your phone's serial number ready — you can find it in the phone's Settings under About. They'll ask you questions about your account history and may take a few days to verify your identity, but they can help you regain access.

Using your phone carrier to verify your identity

Your phone carrier (Verizon, AT&T, T-Mobile, or your regional provider) can confirm that you own the phone number and account. Call them from another phone or visit a store in person with a photo ID. They can help you reset your Apple ID or Google account password by verifying your identity through your account details and billing information.

This route takes longer than using your recovery email, but it works when other options are closed. The carrier can also help if someone else has changed your account information and locked you out.

When you need to erase and set up the phone fresh

If you can't access your Apple ID or Google account, and you don't have a recovery key or trusted device, your only option is to erase the phone and set it up as new. This deletes everything on the phone — photos, messages, apps, and settings — unless you had a backup.

For an iPhone, connect it to a computer with iTunes or Finder, put it in recovery mode (the steps vary by model), and choose "Restore." For Android, go to Settings, then System, then Reset Options, and choose "Erase all data." You'll need to set up the phone from scratch with a new Apple ID or Google account.

Before you erase, check whether you have a backup. iPhones back up to iCloud automatically if you're signed in; Android phones back up to Google Drive if you're signed into a Google account. If you had a backup, you can restore your photos, messages, and app data after you set up the phone again.

Preventing this from happening again

Write down your passwords in a physical notebook kept somewhere safe, or use a password manager like Bitwarden, 1Password, or Dashlane that stores passwords encrypted. Save your recovery key or recovery codes in a separate place — not on your phone. For Apple, you can print your recovery key or save it in your password manager. For Google, save your backup codes in a safe place.

Set up two-factor authentication on both your Apple ID and Google account. This adds a second step when you sign in from a new device, but it also makes it much harder for someone else to lock you out of your account. Turn on automatic backups so that if you do have to erase your phone, you can restore everything afterward.

Frequently Asked Questions

Can I unlock my phone without erasing it if I don't have my Apple ID password?

Yes, if you have a trusted device like an iPad or Mac signed into the same Apple ID. Use that device to reset your iPhone's passcode. If you don't have a trusted device, you'll need to reset your Apple ID password first at iforgot.apple.com, then use the new password on your phone.

What if my recovery email doesn't exist anymore?

Contact Apple Support or Google Support directly with your phone's serial number and photo ID. They can verify your identity through account history and security questions, then help you regain access. This takes longer than using a recovery email, but it works.

Will resetting my password delete my photos and messages?

No. Resetting your passcode or password keeps all your data intact. Erasing the phone deletes everything, but you only need to erase it if you can't access your Apple ID or Google account at all.

How long does it take to unlock my phone through my carrier?

If you visit a store in person with photo ID, it usually takes 15 to 30 minutes. If you call, it may take a few hours to a day depending on how busy they are. They'll verify your identity and help you reset your account password.

Can I use a different Google account to unlock my Android phone?

No. You must use the Google account that's signed into the phone. If you don't remember that account's password, reset it at myaccount.google.com using your recovery email or phone number, then use the new password on your phone.