The fastest way depends on which phone you have
If you've forgotten your phone password, the path forward depends on whether you have an iPhone or Android device, and whether you remember any backup information like an email address or recovery code. iPhone owners can use their Apple ID to reset the phone remotely. Android users have more options depending on their phone brand — Samsung, Google Pixel, and other manufacturers each have their own recovery process. The key is acting quickly: the sooner you start, the sooner you'll regain access.
Before you try anything, know that you'll need to prove you own the phone. That proof usually comes in the form of an email address, phone number, or security questions you set up when you first created your account. If you don't remember those details, the process takes longer but is still possible.
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 should first try the "Forgot password?" option on the lock screen, which may let you unlock using your Google account or Samsung account.
- If you can't remember your backup email or account password, you'll need to contact the phone manufacturer's support team with proof of purchase.
- Factory reset is the last resort and erases everything on your phone — only do this if you've backed up your data elsewhere or have nothing to lose.
- Setting up a backup email, recovery phone number, and security questions now prevents this problem in the future.
Unlocking an iPhone with your Apple ID
Go to iCloud.com from any computer or another device and sign in with your Apple ID — the email address you use for your iPhone. If you've forgotten that password too, click "Forgot Apple ID or password?" on the sign-in page and follow the steps to reset it using 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 phone from the list of devices. Click "Erase iPhone" to wipe the phone and remove the password. You'll then set up your iPhone again from scratch, and you can restore your data from an iCloud backup if you have one. This process works whether your phone is on or off, as long as it's connected to the internet at some point.
If you don't have an iCloud backup, you'll lose your photos, messages, and other data stored only on the phone itself. Apps and settings can be re-downloaded, but personal files are gone. This is why the process is worth doing carefully — make sure you really want to erase before you confirm.
Unlocking Android with your Google account
On your Android lock screen, tap "Forgot password?" or "Forgot PIN?" — the exact wording varies by phone brand. You'll be asked to enter your Google account email address. If you remember it, enter it and follow the prompts to verify your identity. Google will usually send a verification code to your backup email or phone number.
Once you've verified, you can set a new password or PIN right on the lock screen. Your phone will unlock when ready. This method works on most Android phones made by Google, Samsung, Motorola, and others, though the exact steps vary slightly by brand.
If you don't see a "Forgot password?" option on your lock screen, or if it doesn't work, move to the next method. Some older phones or custom setups don't offer this shortcut.
Samsung phones: using your Samsung account
Samsung phones often let you unlock using your Samsung account instead of your Google account. On the lock screen, look for "Forgot pattern?" or "Forgot PIN?" and tap it. You may see an option to unlock with your Samsung account — enter the email address and password you use for Samsung services.
If you've set up Samsung Find Mobile, you can also unlock your phone through that service on a computer. Go to findmobile.samsung.com, sign in with your Samsung account, select your phone, and choose the unlock option. The phone will unlock remotely within a few minutes.
If neither of these works, you'll need to use your Google account method instead, or contact Samsung support with proof of purchase.
What to do if you don't remember your backup email or account password
If you can't remember the email address linked to your phone, or you can't access that email account, the process becomes more involved. Contact your phone manufacturer's support team — Apple, Google, Samsung, or whoever made your phone. Have your proof of purchase ready: a receipt, order confirmation, or credit card statement showing you bought the phone.
The support team will verify your identity using this information and may ask security questions about your account. Once they confirm you own the phone, they can help you reset your account password or unlock the device. This process typically takes 24 to 48 hours, sometimes longer depending on how busy the support team is.
During this time, your phone will remain locked. There's no way around this verification step — it's designed to prevent theft. If you can't provide proof of purchase, the manufacturer won't be able to help you.
Factory reset as a last resort
If none of the above methods work, you can perform a factory reset. This erases everything on your phone — all photos, messages, apps, and settings — and returns it to the state it was in when it left the factory. You'll need to set it up again from scratch.
To factory reset an iPhone, use the "Erase iPhone" option in Find My as described above. For Android, turn off the phone, then hold down the power button and volume down button at the same time until you see a recovery menu. Use the volume buttons to navigate to "Wipe data / factory reset" and press the power button to select it. The exact button combination varies by phone brand — search "[your phone model] factory reset" if you're not sure.
Only do this if you've already backed up your data to cloud storage, or if you're willing to lose everything on the phone. Once the reset is complete, you'll be able to set up a new password and use the phone normally.
Preventing this problem in the future
Set up a recovery email address and phone number in your account settings right now. On iPhone, go to Settings > [Your Name] > Password & Security and add a recovery email. On Android, go to Settings > Google > Manage your Google Account > Security and add a recovery phone number and email.
Also write down or store in a password manager the answers to your security questions. These questions are often the fastest way to prove your identity if you forget your password. If you use a password manager like Bitwarden or 1Password, store your phone's backup codes there too — they're usually printed when you first set up two-factor authentication.
Consider using your phone's built-in biometric unlock — fingerprint or face recognition — as your primary lock method, with a password as a backup. This way, you rarely have to type your password, so you're less likely to forget it.
Frequently Asked Questions
Can I unlock my phone without erasing it?
Yes, if you remember your backup email or account password. The methods in this guide that use your Apple ID or Google account let you reset your password without erasing the phone. Only a factory reset erases your data.
What if my phone is off and I don't know the password?
For iPhone, use Find My on iCloud.com — it works whether the phone is on or off. For Android, turn the phone on first. Once it's on and showing the lock screen, you can use the account recovery methods described above.
How long does it take to unlock my phone?
If you remember your backup email or account password, unlocking takes 5 to 15 minutes. If you need to contact manufacturer support, expect 24 to 48 hours. A factory reset takes 10 to 30 minutes depending on how much data is on the phone.
Will I lose my photos and messages?
Not if you use the account recovery methods — those reset your password without erasing data. You'll only lose data if you choose a factory reset. If you have iCloud or Google Photos turned on, your photos are backed up in the cloud and will still be there after you unlock.
What if someone else is trying to unlock my phone?
All of these methods require proof of ownership — an email address, account password, or recovery code. If someone has your phone but doesn't have this information, they cannot unlock it. This is why setting up a strong backup email and recovery method now protects you later.