The fastest way depends on which phone you have and what you set up beforehand

If you forgot your phone password, you have several routes depending on whether you're using an iPhone or Android device, and whether you set up recovery options like a backup email or phone number. The quickest path is usually the one you prepared for before you got locked out — a recovery email, a linked phone number, or biometric backup. If you didn't set those up, you'll need to use your phone's built-in account recovery process, which takes longer but still works.

The key difference: iPhone locks you out through your Apple ID, while Android locks you out through your Google Account. Both companies can verify who you are and let you back in, but the steps and timing are different. Neither process is when ready, and both require proof that the phone belongs to you.

Key Takeaways

  • iPhone users can reset their password through Apple ID recovery on a computer or another device, or by using Find My iPhone if they set it up beforehand.
  • Android users can reset their password through their Google Account on any web browser, or use Samsung Find Mobile or similar manufacturer tools if available.
  • Recovery email and backup phone numbers are the fastest routes — set these up now so you don't have to prove ownership later.
  • If you can't remember your Apple ID or Google Account password either, you'll need to verify your identity through security questions, a recovery email, or a phone number associated with that account.
  • Factory reset is the last resort and erases everything on your phone — use it only if you've exhausted all other options and own the device outright.

Unlocking an iPhone you forgot the password to

Start by going to iforgot.apple.com on any computer or another device. Enter your Apple ID (usually your email address). Apple will ask you to verify your identity using either a recovery email, a phone number you registered, or security questions you answered when you created your Apple ID.

If you have access to a recovery email, Apple sends a link there. Click the link, answer a security question, and you can reset your Apple ID password. Once you've done that, go back to your locked iPhone, tap "Forgot passcode?" on the lock screen, and enter your new Apple ID password. Your phone will unlock and ask you to create a new device passcode.

If you don't have access to your recovery email, Apple can send a code to a phone number you registered. This takes a few minutes. Enter that code on iforgot.apple.com, and you can reset your password the same way.

If you set up Find My iPhone before you got locked out, you can use it instead. Go to iCloud.com on another device, sign in with your Apple ID, open Find My, select your iPhone, and choose "Erase iPhone." This wipes your phone and lets you set it up fresh with a new passcode. You'll need to restore from a backup afterward if you have one.

Unlocking an Android phone you forgot the password to

Go to accounts.google.com on any computer or phone. Click "Sign in" and enter the Google Account email address linked to your Android phone. If you don't remember that password, click "Forgot password?" and follow Google's recovery steps — they'll ask for a recovery email, a phone number, or answers to security questions.

Once you've reset your Google Account password, go back to your locked Android phone. On most devices, after several failed attempts, you'll see an option to sign in with your Google Account. Tap it, enter your Google Account email and your new password, and your phone will unlock.

If your phone is a Samsung, you can also use Samsung Find Mobile (findmobile.samsung.com). Sign in with your Samsung account, select your phone, and choose the unlock option. Samsung can send a code to your registered email or phone number. This works even if you don't remember your Google Account password, though you'll still need to set a new device passcode after unlocking.

Other Android manufacturers like Motorola, OnePlus, and LG have similar tools. Search "[your phone brand] find my phone" to locate yours.

What to do if you don't remember your Apple ID or Google Account password either

This is where the process slows down. Both Apple and Google have multi-step identity verification to prevent someone else from taking over your account. You'll need to prove the account belongs to you.

For Apple ID: Go to iforgot.apple.com, enter your Apple ID email, and when asked to verify your identity, choose "Answer security questions" instead of using email or phone recovery. You'll answer questions you set up when you created your account — things like your first pet's name or the city where you were born. If you can't remember those answers, Apple can verify you through your payment method (a credit card on file) or by having you wait 30 days while they review your account.

For Google Account: Go to accounts.google.com/signin/recovery, enter your email, and Google will ask for a recovery email, a phone number, or answers to security questions. If you don't have access to any of those, Google can verify you through a phone number you've used to sign in before, or through a recovery email you set up. If none of that works, Google may ask you to wait a few days while they review your account.

Using factory reset as a last resort

If you've exhausted all recovery options and you own the phone outright (not a work phone or a device financed through a carrier), you can perform a factory reset. This erases everything on your phone — all photos, messages, apps, and settings — and returns it to its original state.

On iPhone: Turn off the phone. Press and hold the top button and volume down button together until you see the power-off slider. Drag it to turn off the phone. Then press and hold the top button again until you see the recovery mode screen. Connect to a computer with iTunes or Finder, and choose "Restore." This erases your phone and lets you set it up with a new passcode.

On Android: Turn off the phone. Press and hold the power button and volume down button together (the exact combination varies by brand — search "[your phone model] factory reset" for your specific steps). When you see the recovery menu, use volume buttons to navigate to "Wipe data/factory reset" and press the power button to select it. Confirm the action. Your phone will restart with no passcode.

After a factory reset, you'll need to sign back into your Google Account or Apple ID to use your phone. You won't be able to restore your old data unless you have a backup.

How to prevent this from happening again

Set up a recovery email and phone number on your accounts right now. For Apple ID, go to Settings > [Your Name] > Password & Security and add a rescue email. For Google Account, go to myaccount.google.com, click "Security" on the left, and add a recovery email and phone number under "How we can reach you."

Write down your Apple ID and Google Account passwords and store them somewhere safe — a password manager like Bitwarden or 1Password, a locked drawer, or a trusted family member's house. If you use biometric unlock (Face ID, Touch ID, or fingerprint), enable it on your phone so you have a backup way in if you forget your passcode.

If you have important photos or data, turn on automatic backups. iPhone users can enable iCloud backup in Settings > [Your Name] > iCloud > iCloud Backup. Android users can enable Google One backup in Settings > Google > Manage your Google Account > Storage.

Frequently Asked Questions

How long does it take to unlock my phone through account recovery?

If you have access to a recovery email or phone number, you can unlock within minutes — usually under 15 minutes. If you need to answer security questions or wait for Apple or Google to review your account, it can take hours or up to 30 days depending on how much verification they need.

Will I lose my photos and messages if I reset my password?

No. Resetting your password through account recovery does not erase your phone. Only a factory reset erases everything. If you use a factory reset, you can restore your data from a backup if you have one.

Can I unlock my phone if I don't have access to the email or phone number I registered?

Yes, but it takes longer. Both Apple and Google can verify you through security questions or by reviewing your account over several days. Have your payment method (credit card) ready — both companies can verify you that way too.

What if my phone is financed through a carrier or provided by my employer?

Do not factory reset it. Contact your carrier or employer's IT department instead. They may have their own unlock process, and a factory reset could violate your agreement with them.

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

No. Even with your device password, they would need your Apple ID or Google Account password to fully access your phone. Both accounts have their own security, so your phone has two layers of protection.