Start with the recovery method you set up when you created your account
The fastest way back into your phone depends on what you prepared before you locked yourself out. When you first set up your phone, the operating system asked you to add a recovery email address or phone number. That's your primary way back in — not a backup plan, but the actual intended route.
If you set up a recovery email, go to another device (a computer, tablet, or someone else's phone) and visit the account recovery page for your phone's operating system. For Android phones, that's accounts.google.com/signin/recovery. For iPhones, it's iforgot.apple.com. Enter the email address or phone number associated with your account, and follow the prompts to verify your identity — usually by answering security questions or confirming a code sent to your recovery email.
This process typically takes 15 to 30 minutes. You'll receive a temporary password or a link to create a new one, and you can use that to unlock your phone when ready.
Key Takeaways
- Your recovery email or phone number, set up when you created your account, is the fastest way to regain access without losing your data.
- Google accounts use accounts.google.com/signin/recovery and Apple accounts use iforgot.apple.com to start the recovery process from another device.
- If you don't have access to your recovery email or phone number, you'll need to factory reset your phone, which erases all data stored on it.
- After you regain access, when ready add a recovery method you can actually reach — a current email address or phone number you check regularly.
- Writing down your password in a physical location only you know, or using a password manager, prevents this situation in the future.
What happens if you can't reach your recovery email or phone number
If the recovery email no longer exists, the phone number is disconnected, or you straightforward can't remember which email you used, you have one remaining option: a factory reset. This erases everything on your phone — all photos, messages, apps, and files — and returns it to the state it was in when it left the factory.
For an Android phone, hold the power button and volume-down button simultaneously until the recovery menu appears (the exact combination varies by manufacturer, so search "[your phone model] factory reset" if this doesn't work). Navigate to "Wipe data / factory reset" using the volume buttons, then press power to confirm. The process takes 5 to 15 minutes.
For an iPhone, you'll need a computer with iTunes or Finder installed. Connect your phone, force it into recovery mode (hold power and volume-down for 10 seconds, then keep holding power for another 10 seconds after the slider appears), and select "Restore" in iTunes or Finder. This downloads the operating system fresh and erases your phone completely.
After the reset, you'll set up your phone as if it were new. You can restore photos and messages from a cloud backup (Google Photos, iCloud, or Samsung Cloud) if you had one running before you locked yourself out. Apps will reinstall from your account, but text messages, call history, and files not backed up to the cloud are gone permanently.
Using your phone's built-in recovery options before factory reset
Before you erase everything, check whether your phone manufacturer offers an account recovery service. Samsung phones, for example, let you unlock a forgotten password through findmobile.samsung.com if you're signed into a Samsung account. You'll need to verify your identity with the email or phone number associated with that account.
Some carriers (Verizon, AT&T, T-Mobile) also maintain account information that can help unlock your phone. Call your carrier's customer service line — the number is on your bill or on their website — and explain that you've forgotten your phone password. They can verify your identity through your account details and may be able to send you a reset link or temporary access code.
This option works only if you set up a carrier account when you activated your phone, and only if you can prove your identity to the carrier's satisfaction. It typically takes one to two business days.
Protecting yourself from this situation in the future
After you regain access, the most important step is making sure you won't be locked out again. Use a password manager — Bitwarden, 1Password, or Dashlane are common choices — to store your phone password in encrypted form. You only have to remember one master password, and the manager fills in the rest.
If you prefer not to use a password manager, write your password on a piece of paper and store it somewhere only you know: a locked drawer, a safe, or a sealed envelope in a file cabinet. This sounds old-fashioned, but it's more find than storing it in an email or a notes app on the same phone you're trying to unlock.
Update your recovery email and phone number right now, while you're thinking about it. Go to your account settings (Settings > Google Account on Android, or Settings > [Your Name] on iPhone) and make sure both fields contain information you actively use. If you changed email addresses or phone numbers in the last year, your recovery method is probably outdated.
What to do if you think someone else knows your password
If you forgot your password because someone told you they knew it, or if you suspect someone else has been using your phone, change your password when ready after you regain access. Don't just create a new password — go to your account settings and review your recent activity. On Google accounts, visit myaccount.google.com/security and check "Your devices" to see what's signed in. On Apple accounts, go to appleid.apple.com and check "Devices and Passcodes."
If you see devices you don't recognize, sign them out when ready. Change your recovery email and phone number too, so the person who knew your old password can't use those to get back in. If you share your phone with family members or roommates, consider using a screen lock that's harder to guess — a 6-digit PIN or a pattern — rather than a straightforward 4-digit code.
Frequently Asked Questions
Can I unlock my phone without losing my photos and files?
Yes, if you can reach your recovery email or phone number. The recovery process lets you create a new password without erasing your phone. Only a factory reset erases your data, and that's necessary only if you can't access your recovery method.
How long does it take to recover my account?
Recovery through your email or phone number usually takes 15 to 30 minutes. Carrier-based recovery takes one to two business days. A factory reset takes 5 to 15 minutes, but you'll spend additional time restoring your data from backups afterward.
What if I don't remember the email address I used to set up my account?
Try every email address you've ever used regularly. If none of them work, contact your phone manufacturer's support line with proof of purchase (a receipt or order confirmation). They may be able to verify your identity another way, though this process is slower than standard recovery.
Will I lose my text messages and call history if I factory reset?
Yes, unless you backed them up to the cloud before you locked yourself out. Google Messages and iMessage can back up conversations automatically if you turn on that setting. Check your backup status in Settings before you reset, so you know what you'll lose.
Is it safe to write my password on paper?
It's safer than reusing the same password across multiple accounts or storing it in an unsecured notes app. Keep the paper in a locked drawer or safe that only you can access. This is a reasonable choice if you don't want to use a password manager.