The fastest way depends on what phone you have and what you remember

If you've forgotten your phone password, the path forward depends on whether you have an iPhone or Android device, and whether you can access a computer or another device. The quickest option for most people is to use the account recovery method tied to your phone — Apple ID for iPhones, or Google Account for Android. Both let you reset your password without losing your data, though the exact steps differ.

Before you try anything, know that the goal is to prove you own the device. Phone makers lock you out on purpose to protect your data if someone else has your phone. That same protection means you'll need to verify your identity — usually through an email address, phone number, or security questions you set up when you created your account.

Key Takeaways

  • iPhone users can reset a forgotten password through iCloud.com using their Apple ID, which works even if the phone is locked.
  • Android users can unlock a device through their Google Account settings on any computer, then set a new password on the phone.
  • Both methods require access to the email address or phone number linked to your account, or answers to security questions you created.
  • If you cannot access your recovery email or phone number, contact Apple or Google support with proof of purchase — this process takes longer but is still possible.
  • Factory reset is the last resort and erases all data on the phone; use it only after other methods fail.

Unlocking an iPhone with your Apple ID

Go to iCloud.com on any computer or another device and sign in with your Apple ID and password. If you've forgotten your Apple ID password too, click "Forgot Apple ID or password" on that page and follow the recovery steps — Apple will send a code to your recovery email or phone number.

Once you're signed into iCloud, click "Find My" in the menu. Select "Find My iPhone" and choose your locked device from the list. Click the device name, then select "Erase iPhone." This removes the password and lets you set a new one when the phone restarts. Your data stays on the phone — only the password is removed.

If your iPhone is turned off or not connected to the internet, the erase command will run the next time it connects. You can then set a new password when ready.

Unlocking an Android phone with your Google Account

On any computer, go to myaccount.google.com and sign in with the Google Account linked to your Android phone. If you don't remember which account is linked, check any emails from Google on the phone's email app, or look at the Google Play Store — it shows your account name at the top.

Once signed in, click "Security" in the left menu, then scroll down to "Your devices." Find your locked phone in the list and click it. Select "Find My Mobile Device" or "Find My Device" (the name varies by Android version). Click "Security" and then "Lock." You'll be asked to create a new password. Enter it twice and click "Lock."

The new password takes effect when ready on the phone. You can now unlock it with the new password you just created.

What to do if you don't remember your recovery email or phone number

If the recovery email address no longer works or you can't access the phone number on file, you'll need to contact Apple or Google directly. Have your proof of purchase ready — a receipt, credit card statement, or order confirmation showing you bought the device.

For iPhone, call Apple Support or visit an Apple Store with your proof of purchase. For Android, contact Google Account Recovery through the Google Account help page. Both companies can verify you own the device and help you regain access, but this process typically takes several days rather than minutes.

Using Find My Mobile if you have a Samsung phone

Samsung phones have an additional option. If you set up a Samsung account on your device, go to findmymobile.samsung.com on a computer and sign in with that account. Click "Unlock My Mobile" and select your phone from the list. Samsung will send a verification code to your registered email. Enter the code, and your phone will unlock.

This method works even if you've forgotten your Google Account password, as long as you remember your Samsung account details. It's often faster than the Google Account method because it doesn't require security questions.

Factory reset as a last resort

If you cannot access your recovery email, phone number, or security questions, and you cannot reach the manufacturer's support team, a factory reset is the only remaining option. This erases all data on the phone — photos, messages, apps, everything — and returns it to factory settings.

For iPhone, you'll need access to a computer with iTunes or Finder. Connect the locked iPhone, select it, and choose "Restore." The phone will erase and restart, and you can set it up as new. For Android, the process varies by manufacturer, but usually involves holding specific buttons (often Power and Volume Down) while the phone is off, then selecting "Wipe Data" or "Factory Reset" from the recovery menu.

Because this erases your data permanently, only use this method if you've exhausted all other options and have backups of your important files elsewhere.

Preventing this from happening again

Once you've regained access, write down your recovery email and phone number and store them somewhere safe — a notebook at home, a password manager, or a trusted family member. Set up security questions with answers only you know. Enable two-factor authentication on your Apple ID or Google Account, which adds an extra layer of protection and makes recovery easier if you forget your password in the future.

Consider using a password manager like Bitwarden or 1Password to store your phone password securely. These tools can generate strong passwords and remind you of them when you need to reset your device or sign into a new one.

Frequently Asked Questions

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

No. Resetting your password through iCloud or Google Account only removes the lock — it does not erase data. Your photos, messages, and apps stay on the phone. A factory reset is different and does erase everything; only use that method if other options fail.

What if my phone is off and I can't turn it on?

You can still use iCloud or Google Account recovery. The unlock command will take effect the next time the phone turns on and connects to the internet. You don't need the phone to be on to start the process.

Can I unlock someone else's phone?

No. Both Apple and Google require you to sign in with the account that owns the device. If you're trying to unlock a phone that belongs to someone else, they need to do the recovery themselves or contact support with proof of purchase.

How long does it take to unlock through Apple or Google support?

If you have access to your recovery email or phone number, unlocking takes minutes. If you need to contact support with proof of purchase, the process typically takes two to five business days, depending on how quickly you can provide documentation.

What if I never set up a recovery email or phone number?

Contact Apple or Google support when ready with proof of purchase. Without a recovery method on file, you'll need to verify ownership through your receipt or order confirmation. This is the slowest path, so set up recovery options as soon as you regain access.