What you can do depends on which phone you have and what you set up beforehand
If you've forgotten your phone password, your options fall into three categories: using a recovery method you set up earlier (the fastest route), contacting your phone's manufacturer with proof of ownership, or performing a factory reset that erases everything on the device. Which path works depends on whether you have an iPhone or Android phone, whether you remember any backup information, and how much data you're willing to lose.
The fastest solutions take minutes. The slowest take days and require you to prove you own the phone. None of them work if someone else locked you out on purpose — that's a different problem requiring police involvement or a lawyer.
Key Takeaways
- iPhone users with a recovery email or phone number on file can reset their password through Apple's account recovery page without losing data.
- Android users can unlock most phones through their Google account if they set up a recovery email or phone number before being locked out.
- A factory reset erases all data on your phone but works on any phone and requires no prior setup — use this only if you have backups elsewhere.
- If you can't remember any recovery information, you'll need to contact Apple or Google with proof of purchase to verify ownership before they'll help.
- Setting up a recovery email, phone number, and backup PIN now prevents this problem from happening again.
Unlocking an iPhone using your Apple ID
If you have an iPhone, the fastest path is through your Apple ID. Go to iforgot.apple.com on any computer or another phone. Enter the email address or phone number linked to your Apple ID, then follow the prompts to verify your identity. Apple will send a verification code to your email or phone — enter it, and you'll be able to set a new password.
Once you've reset your Apple ID password, go back to your locked iPhone. Tap "iPhone Unavailable" or the lock screen, then select "Try Again" after the timer runs out. Enter your new Apple ID password. If you set up two-factor authentication on your Apple ID (a security feature that requires a second code), you'll need to complete that step too — Apple will send the code to a trusted device or phone number you registered earlier.
This method keeps all your photos, messages, and apps intact. It works only if you remember the email address or phone number tied to your Apple ID. If you don't, move to the section on contacting Apple directly.
Unlocking an Android phone through your Google account
Most Android phones let you unlock them using your Google account. After several failed password attempts, your phone will show an option to unlock with your Google account — tap it. Enter the email address and password for the Google account linked to your phone, and you'll regain access.
If that option doesn't appear, or if your phone is too old to support it, try going to accounts.google.com/signin/recovery on another device. Enter your Google email address, then follow the steps to verify your identity through a recovery email or phone number. Once you've reset your Google password, return to your locked phone and try entering the new password.
Like the Apple method, this preserves your data. It requires that you remember your Google email address and have access to a recovery email or phone number you set up before being locked out. If you don't have either, you'll need to contact Google with proof of ownership.
Using a backup PIN or security questions
Some phones ask you to set up a backup PIN or answer security questions during setup. If you did, your phone may offer these as an unlock option after you've entered the wrong password several times. The exact location varies by phone model — look for a link that says "Can't remember your password?" or "Use backup options."
A backup PIN is usually four to six digits you chose yourself. Security questions are ones you answered during setup, like "What was the name of your first pet?" If you remember either one, enter it now. This method works offline and doesn't require internet access or a second device.
Factory reset: the nuclear option that erases everything
A factory reset removes your password by wiping the entire phone and returning it to its original state. Everything on the phone — photos, messages, apps, contacts — is deleted. Use this only if you have backups of your important data stored elsewhere, like in Google Photos, iCloud, or on a computer.
On an iPhone, you can factory reset through a computer. Connect your iPhone to a Mac or PC, open Finder (Mac) or iTunes (Windows), select your phone, and choose "Restore." You'll need to confirm that you want to erase the device. The process takes 10 to 20 minutes.
On Android, the method depends on your phone model. Most phones let you power off, then hold the power button and volume-down button together 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. Some phones require you to hold power and volume-up instead, or to press a different combination — search "[your phone model] factory reset" to find the exact steps.
After a factory reset, your phone will restart as if it's brand new. You'll set up your Google or Apple account again, and your phone will re-read apps and data from your backups if you had them set up.
Contacting Apple or Google when you have no recovery options
If you don't remember your Apple ID or Google account email, don't have access to a recovery phone number or email, and don't have a backup PIN, you'll need to prove you own the phone. Contact Apple Support or Google Account Recovery directly.
Apple Support is reachable through support.apple.com or by calling 1-800-MY-APPLE. Google Account Recovery is at accounts.google.com/signin/recovery. Both will ask for proof of ownership — usually a receipt, order confirmation email, or the last four digits of the credit card you used to buy the phone. The verification process typically takes one to three business days.
Once verified, Apple or Google will help you reset your account password or unlock your phone. This is slower than the methods above, but it's the legitimate path when you have no other way in.
What to do if someone else locked you out
If you believe someone else intentionally locked you out of your phone, this is a security issue, not a forgotten password. Contact local police and file a report — include the phone's serial number and any proof of purchase. Then contact Apple or Google and explain that your account may have been compromised. They can freeze your account while you work with police.
Do not attempt to bypass the lock yourself through third-party software or services that claim to unlock phones remotely. Most of these are scams that steal your payment information or install malware on other devices you use.
Preventing this from happening again
Set up a recovery email and phone number on your Apple ID or Google account right now. For iPhone, go to Settings > [Your Name] > Password & Security > Recovery Email. For Android, go to myaccount.google.com, click "Security" in the left menu, scroll to "How you sign in to Google," and add a recovery email and phone number.
Also enable two-factor authentication (called "two-step verification" on Google accounts). This adds a second security layer — even if someone gets your password, they can't access your account without a code sent to your phone or email. On iPhone, go to Settings > [Your Name] > Password & Security > Two-Factor Authentication. On Android, go to myaccount.google.com > Security > 2-Step Verification.
Write down your backup PIN or security answers and store them somewhere safe — a notebook in a drawer, a password manager, or a trusted family member. Do not store them in your phone's notes app, where they'll be locked away with everything else.
Frequently Asked Questions
How long does it take to unlock my phone?
Using your Apple ID or Google account takes 5 to 15 minutes if you have access to your recovery email or phone. A factory reset takes 10 to 20 minutes. Contacting Apple or Google for verification takes 1 to 3 business days.
Will I lose my photos and messages?
No, if you use your Apple ID or Google account to unlock. Yes, if you do a factory reset — unless you had automatic backups turned on. Check Settings > [Your Name] > iCloud (iPhone) or Settings > Google > Manage Your Google Account > Storage (Android) to see if backups were running.
What if I don't remember my Apple ID or Google email address?
Try the email addresses you commonly use. If none work, contact Apple or Google support with proof of purchase — a receipt, order email, or credit card ending. They can look up your account and help you regain access.
Can I unlock my phone without erasing it if I have no recovery options?
No. Without a recovery email, phone number, or backup PIN, the only ways to regain access are to contact Apple or Google (which takes days) or to factory reset (which erases everything). This is intentional — it's designed to prevent theft.
Is it safe to use third-party unlock services I found online?
No. Most are scams that steal your payment information or personal data. Use only Apple Support, Google Account Recovery, or your phone's built-in recovery options.