The fastest way depends on what kind of phone you have

If you've forgotten your phone password, the path forward depends on whether you have an iPhone or an Android device — they use different recovery systems. For an iPhone, you'll use Apple's Find My iPhone service or recovery mode on a computer. For Android, the method varies by manufacturer (Samsung, Google Pixel, OnePlus, etc.) but usually involves your Google account or Samsung account. Both routes require proof that you own the device, which is why phone makers ask for your email address and recovery codes when you first set up the phone.

The key thing to know upfront: you cannot straightforward guess your way in. After a certain number of wrong attempts — usually 5 to 10 — the phone locks you out for increasingly long periods. On iPhones, after too many failed tries, you'll see a message saying the device is disabled and you must wait 15 minutes, then an hour, then longer. On Android, the phone may lock for 30 seconds between attempts. This is intentional: it slows down anyone trying to break in, but it also means you should stop guessing and move to a recovery method instead.

Key Takeaways

  • iPhones can be unlocked through Find My iPhone on another device or through recovery mode using a computer, both of which require your Apple ID email and password.
  • Android phones unlock through your Google account (Pixel, OnePlus, Motorola) or Samsung account (Galaxy phones), which you'll need to enter after too many wrong password attempts.
  • You will lose all data on the phone if you do not have a backup, because both iPhone and Android recovery methods erase the device as part of the unlock process.
  • If you do not remember your Apple ID or Google account password either, you can recover those accounts through the email address you used to create them.

Unlocking an iPhone with Find My iPhone

If you have another Apple device (iPad, Mac, or another iPhone), this is the fastest method. Go to iCloud.com on a computer or use the Find My app on another Apple device. Sign in with your Apple ID and password — the same credentials you used to set up the locked iPhone. Select "Find My iPhone" and choose your locked phone from the list of devices.

Once you've selected the phone, tap "Erase iPhone." This will wipe the device completely and remove the password. When the phone restarts, you can set it up again from scratch. You'll be able to restore your data from an iCloud backup if you made one before you forgot the password. If you don't have a backup, your photos, messages, and other data will be gone.

If you don't have another Apple device handy, you can still use a computer. Go to iCloud.com, sign in with your Apple ID, and follow the same steps. You need internet access and your Apple ID credentials — not the phone password.

Unlocking an iPhone using recovery mode on a computer

If you don't have access to Find My iPhone or another Apple device, you can use a Mac or Windows computer. Connect your locked iPhone to the computer with a USB cable and open Finder (Mac) or iTunes (Windows). The computer will recognize the phone and ask if you want to restore it.

Click "Restore" and the computer will read the latest iPhone software and reinstall it on your phone. This erases the password along with everything else on the device. When it finishes, you'll set up the phone as new or restore from a backup. This method requires your Apple ID password when the phone restarts — you cannot skip this step, even though the phone is now unlocked.

Unlocking an Android phone through your Google account

Most Android phones (Google Pixel, OnePlus, Motorola, and others) let you unlock the device using your Google account after you've been locked out by too many wrong password attempts. After the 5th or 6th wrong try, the phone will show a message saying "Try again in 30 seconds" or similar. Keep trying until you see an option that says "Forgot password?" or "Use Google account" — the exact wording varies by phone model and Android version.

Tap that option and enter the email address and password for the Google account you used to set up the phone. If you remember those credentials, the phone will unlock when ready. You can then set a new password. If you don't remember your Google password, you can recover it by going to accounts.google.com on another device and following Google's account recovery process, which usually involves confirming your identity through a recovery email or phone number.

Unlocking a Samsung Galaxy phone

Samsung Galaxy phones use Samsung's own account system in addition to Google. If you've forgotten your password, after several wrong attempts you'll see an option to unlock using your Samsung account. Tap "Unlock with Samsung account" and enter the email address and password you used when you set up the phone.

If you don't see that option, or if you've already been locked out completely, you can visit Samsung Find Mobile on a computer. Go to findmobile.samsung.com, sign in with your Samsung account, select your phone, and choose the unlock option. Like other methods, this will erase the phone, so you'll lose any data that wasn't backed up to Samsung Cloud or Google Drive.

What to do if you don't remember your email password either

If you've forgotten both your phone password and the password to your Apple ID or Google account, you'll need to recover the email account first. Go to the account recovery page for whichever service you use: appleid.apple.com for Apple ID or accounts.google.com for Google. Both services will ask you to verify your identity, usually by confirming a recovery email address or phone number you set up when you created the account.

Once you've reset your email password, you can use it to unlock your phone through the methods described above. This process usually takes a few minutes to an hour, depending on how quickly you can access your recovery email or phone number. Keep in mind that if you set up your phone with an email address you no longer have access to, the recovery process will be much harder — you may need to contact Apple or Google support directly.

Protecting yourself from this situation in the future

The best defense is to write down your passwords somewhere safe — not on the phone itself. A physical notebook in a drawer, a password manager like Bitwarden or 1Password, or a trusted family member who knows your credentials can all work. You should also turn on automatic backups: iPhones back up to iCloud automatically if you're signed in, and Android phones back up to Google Drive if you have a Google account.

Consider using a password manager that generates and stores strong passwords for you. These tools can sync across devices, so you'll have your passwords on your computer even if your phone is locked. You should also enable two-factor authentication on your email account — this adds an extra security layer and makes account recovery easier if you ever need it.

Frequently Asked Questions

Will I lose my photos and messages if I unlock my phone this way?

Yes, unless you have a backup. Both iPhone and Android recovery methods erase the phone completely. If you backed up to iCloud (iPhone) or Google Drive (Android) before you forgot the password, you can restore everything after the phone is unlocked. If you didn't back up, that data is gone.

How long does it take to unlock a phone?

Using Find My iPhone or your Google account usually takes 5 to 15 minutes if you have internet access and remember your account password. Recovery mode on a computer can take 20 to 45 minutes because the computer has to read and reinstall the phone's operating system. Recovering a forgotten email password can take anywhere from a few minutes to several hours, depending on how quickly you can access your recovery email or phone number.

Can I unlock my phone without erasing it?

No. Both Apple and Google require a complete erase as part of the unlock process. This is a security feature — it prevents someone who steals your phone from accessing your data. Your only option to keep data is to have a backup you can restore from afterward.

What if I don't have a computer or another Apple device?

You can use any computer with internet access — a friend's, a family member's, a library computer, or a computer at an Apple Store or phone repair shop. You just need your Apple ID or Google account credentials. If you're at an Apple Store, staff can help you through the process.

Can I unlock my phone if I don't remember which email I used to set it up?

This is much harder. Check any email accounts you might have used, or look through old receipts or documentation from when you bought the phone. If you still can't find it, contact Apple or Google support with proof of purchase — they can sometimes help verify your identity and unlock the account. This process can take several days.