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

If you've forgotten your phone password, the path forward splits when ready: iPhones, Android phones, and older devices each have different recovery routes. The good news is that you almost certainly have a way back in without losing everything. The catch is that most methods require either a computer, an email account you set up with the phone originally, or a phone number associated with your account.

Start by identifying which type of phone you're holding. Look at the back or the settings menu — if you see an Apple logo, follow the iPhone path. If you see "Android" in the settings, or the phone is made by Samsung, Google, OnePlus, or another manufacturer, follow the Android path. Older phones (more than five years old) may have a different process entirely.

The method you use will depend on what information you have available right now: Do you remember the email address or phone number you used to set up the phone? Do you have access to a computer? Do you have another device, like a tablet or computer, that's already signed into your account? Answer these questions first, because they determine which route will actually work for you.

Key Takeaways

  • iPhone users can regain access through iCloud.com using the email address they set up with, even without the phone itself.
  • Android users can use their Google account to reset the password, and the process varies slightly depending on when the phone was last updated.
  • You will need either a computer or another device to start most recovery processes, since you cannot access the locked phone itself.
  • If you set up a recovery email or phone number during initial setup, that becomes your fastest route back in.
  • Some carriers and phone manufacturers offer account recovery through their own systems if you can prove ownership.

Recovering an iPhone through iCloud

Go to iCloud.com on any computer or another device and sign in with the Apple ID email address you used to set up the iPhone. If you don't remember this email, check your email inbox for messages from Apple, or look at any receipts from an Apple purchase — the email on the receipt is usually the Apple ID.

Once you're signed into iCloud.com, look for "Find My" or "Find My iPhone" in the menu. Click it, then select your phone from the list of devices. You'll see an option to "Erase iPhone" — this removes the password and wipes the phone's data, but it also lets you set a new password when you turn it back on. Before you do this, make sure you know your Apple ID password, because you'll need it to set up the phone again.

If you don't remember your Apple ID password either, click "Forgot password" on the iCloud sign-in page. Apple will send a reset link to your recovery email address or to a phone number you registered with the account. Follow those instructions to create a new Apple ID password, then return to Find My and erase the phone.

After erasing, turn the iPhone back on. It will ask you to sign in with your Apple ID — use the email and new password you just created. The phone will restore from your most recent backup if you had one saved to iCloud, which means your photos, contacts, and most apps will return.

Recovering an Android phone through your Google account

On any computer, go to Google.com and sign in with the Gmail address you used to set up the Android phone. If you don't remember which email you used, check your email inbox for messages from Google or Android, or look for any Google service confirmations.

Once you're signed in, go to myaccount.google.com and look for "Security" in the left menu. Scroll down to "Your devices" and find your phone in the list. Click on it, then look for an option to "Find, find, and Erase" or "Find My Mobile" — the exact wording depends on your phone's manufacturer and Android version.

Select "find device" or "Lock device." Google will ask you to set a new password or PIN. Create one you'll remember, then confirm it. Within a few minutes, this new password will sync to your phone. Turn the phone on, and enter the new password you just created.

If your phone is very old (made before 2015) or hasn't been updated in several years, this method may not work. In that case, look up your phone's manufacturer — Samsung, OnePlus, Motorola, and others have their own account recovery systems. You can usually find these by searching "[Your phone brand] account recovery" in a search engine.

Using a recovery email or phone number you set up earlier

When you first set up your phone, you may have entered a recovery email address or phone number. If you did, that information becomes your fastest way back in. On the lock screen, look for a link that says "Forgot password," "Can't access your account," or "Need help signing in." Click it.

The phone will ask you to verify your identity using the recovery email or phone number. If you chose email, check the inbox for a message from Apple or Google with a reset link. If you chose a phone number, you'll receive a text message with a code. Enter that code on the phone, and you'll be able to set a new password when ready.

This method is faster than going through a computer because you don't have to sign into another device or remember your full account password. However, it only works if you actually set up a recovery method when you first configured the phone — many people skip this step.

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

If you can't remember the email address or phone number associated with your account, you have two options: contact your phone's manufacturer directly, or contact your mobile carrier.

For iPhone, call Apple Support and explain that you've forgotten your password and don't remember your Apple ID email. They will ask you to verify ownership — usually by providing the phone's serial number (found in Settings > General > About) or the last four digits of the credit card you used to buy it. Once verified, Apple can help you regain access or reset your account information.

For Android, the process depends on your phone's manufacturer. Samsung users can contact Samsung Support; Google Pixel users can contact Google Support. Again, you'll need to prove you own the phone. Your mobile carrier (Verizon, AT&T, T-Mobile, etc.) can also verify your identity and may be able to help you recover your account, since they have your account information on file.

Recovering data after a factory reset

If you've already erased the phone or had to do a factory reset, your data isn't necessarily gone. When you turn the phone back on and sign into your account, it will ask whether you want to restore from a backup. If you had automatic backups turned on, your photos, contacts, messages, and most apps will restore.

For iPhone, this happens automatically if you had iCloud backup enabled. For Android, it depends on whether you had Google backup turned on. You can check this by going to Settings > Accounts > Google (on Android) or Settings > [Your Name] > iCloud (on iPhone) and looking for a "Backup" option.

If you didn't have backups turned on, the data on the phone is gone, but you may still be able to recover some information. Photos and messages you sent to other people still exist on their devices or in cloud services like Google Photos or iCloud. Contacts may be stored in your email account. Apps can be reinstalled from the app store.

Preventing this from happening again

Once you're back into your phone, take a few minutes to set up protections so you don't get locked out again. Write down your Apple ID or Google account email address and store it somewhere safe — not on the phone itself. Consider using a password manager like Bitwarden or 1Password to store your passwords securely.

Turn on automatic backups: on iPhone, go to Settings > [Your Name] > iCloud > iCloud Backup and turn it on. On Android, go to Settings > Accounts > Google > Manage your Google Account > Backup and turn on automatic backup. Set up a recovery email and phone number in your account settings so you have multiple ways to prove your identity if you get locked out again.

If you use biometric unlock (fingerprint or face recognition), keep that enabled as your primary unlock method — it's faster than typing a password and you're less likely to forget it. But always keep a password as a backup, because biometric unlock won't work if your phone is turned off or hasn't been used in several days.

Frequently Asked Questions

Can I unlock my phone without a computer or another device?

Not easily. Most recovery methods require you to sign into your account from a computer or another device, because you can't access the locked phone itself. The only exception is if you set up a recovery email or phone number during initial setup — then you can use the "Forgot password" link on the lock screen.

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

Not if you had backups turned on. When you sign back into your account after resetting, the phone will offer to restore from your most recent backup. This brings back photos, messages, contacts, and most apps. If you didn't have backups on, that data is lost, but you may still recover some of it from cloud services or from other people you communicated with.

What if my email account is also locked or I can't access it?

Contact the email provider directly. If it's Gmail, go to accounts.google.com/signin/recovery. If it's Outlook or Hotmail, go to account.microsoft.com/security-info. If it's another provider, search "[Email provider] account recovery." You'll need to verify your identity using a recovery phone number or backup email. Once you regain access to your email, you can use it to unlock your phone.

How long does it take to regain access after I reset my password?

If you're using a computer to erase or reset through iCloud or Google, the new password usually syncs to your phone within a few minutes. If you're using the recovery email or phone number on the lock screen, it's usually when ready. If you're contacting your phone manufacturer or carrier, it may take a few hours to a day.

Can a phone repair shop unlock my phone for me?

Some can, but it depends on the shop and your phone. Authorized Apple or Samsung repair shops can sometimes help if you can prove ownership. Independent repair shops may be able to do a factory reset, but this erases all data. Before paying for a repair shop, try the free methods above — they work for most people and don't cost anything.