The fastest way depends on what kind of phone you have

If you've forgotten your phone password, the path forward splits between iPhone and Android — they use different recovery systems, and one is usually faster than the other. iPhone locks you out after too many wrong attempts and forces you to use your Apple ID or a computer. Android gives you more options but they vary by manufacturer and Android version. Before you try anything, know that the goal is to prove you own the phone, not to bypass security entirely.

The single fastest route for most people is using a computer and your phone's official recovery tool — iTunes for iPhone, or your manufacturer's software for Android. This works even if you can't remember anything except that the phone is yours. If you don't have a computer nearby, your second-best option is using your Apple ID (iPhone) or Google account (Android), which you may remember even if you don't remember the phone password.

Key Takeaways

  • iPhone users can unlock through Apple ID on the lock screen itself, or by connecting to a computer running iTunes or Finder and using recovery mode.
  • Android users should try their Google account first on the lock screen, then move to manufacturer recovery tools if that doesn't work.
  • You will need either the email address and password for your Apple ID or Google account, or access to a computer with the phone's official software.
  • After unlocking, you can set a new password when ready — the old one is gone and won't be needed again.
  • If you can't remember your Apple ID or Google password either, you'll need to recover those accounts first through their respective websites.

iPhone: using your Apple ID on the lock screen

If you see the message "iPhone Unavailable" after entering the wrong password too many times, tap "iPhone Unavailable" again and look for the option to use your Apple ID. This appears on most recent iPhones after a few failed attempts. Enter your Apple ID email and password — the same credentials you use to sign into iCloud or the App Store. Your phone will unlock and you can when ready set a new password in Settings.

This method works on iPhone 5s and newer running iOS 15.1 or later. If you don't see the Apple ID option on your lock screen, or if your phone is older, move to the computer method instead. The Apple ID method is the fastest because you don't need to erase anything — your photos, messages, and apps stay exactly where they are.

iPhone: using a computer and recovery mode

Connect your iPhone to a Mac or Windows computer using a USB cable. On a Mac running Monterey or newer, open Finder and click your phone in the sidebar. On an older Mac or any Windows computer, open iTunes. Look for a button that says "Restore" — this will erase your phone and reinstall the operating system, but it won't touch your data if you have a backup.

When you click Restore, the computer will ask you to sign in with your Apple ID. Enter your Apple ID email and password. Once the restore finishes, your phone will restart and ask you to set up as new or restore from a backup. If you have a backup from before you forgot the password, restore from that backup and your phone will return to exactly how it was. If you don't have a backup, you'll set up as new and your data will be gone, but the phone will be unlocked and usable.

This method works on any iPhone and any computer, but it requires a USB cable and takes 15 to 30 minutes. You also need your Apple ID password — if you don't remember that either, go to iforgot.apple.com on the computer and recover your Apple ID before you start.

Android: using your Google account on the lock screen

After entering the wrong password too many times, you should see a message saying "Try again in [X] minutes" or "Forgot password?" Tap "Forgot password?" and enter your Google account email address. Google will send a verification code to that email or to a phone number you set up with the account. Enter the code, then create a new phone password. Your phone unlocks when ready.

This method works on most Android phones from Samsung, Google Pixel, Motorola, and other major manufacturers. The exact wording and location of the "Forgot password?" button varies slightly between brands, but it's always on the lock screen after failed attempts. You need access to the email address or phone number linked to your Google account — if you don't have that access, you'll need to use the manufacturer's recovery tool instead.

Android: using manufacturer recovery software

If the Google account method doesn't work or you can't access your Google email, you'll need your phone's manufacturer software. Samsung phones use Samsung Find Mobile, Google Pixel phones use Google Find My Mobile, and other brands have their own tools. Go to the manufacturer's website on a computer, sign in with the account you used to set up the phone, and look for an option to unlock or reset the device remotely.

These tools vary widely. Some let you unlock without erasing anything. Others erase the phone but let you restore from a backup afterward. A few require you to connect the phone to a computer with special software. Check your phone's manufacturer website for the exact steps — search "[Your phone brand] unlock forgot password" and look for an official support page.

If you can't find your manufacturer's tool or you don't remember the account you used to set up the phone, your last option is a factory reset using recovery mode. This erases everything on the phone, but it's free and doesn't require any accounts. Look up "[Your phone model] recovery mode" on a computer to find the exact button combination for your phone — it usually involves holding Power and Volume Down at the same time while the phone starts up.

What to do if you don't remember your Apple ID or Google password

If you've forgotten both your phone password and your Apple ID or Google password, recover the account first. Go to iforgot.apple.com (Apple) or accounts.google.com/signin/recovery (Google) on any computer. Follow the steps to verify you own the account — you'll usually need access to a backup email address or phone number you set up with the account. Once you've reset your Apple ID or Google password, use that new password to unlock your phone.

This adds an extra step but it's straightforward. The account recovery usually takes a few minutes. If you can't access the backup email or phone number either, contact Apple Support or Google Support — they can verify your identity through other means, though it may take longer.

After you unlock: setting a new password you'll remember

Once your phone is unlocked, go to Settings and create a new password when ready. For iPhone, go to Settings > Face ID & Passcode (or Touch ID & Passcode on older models). For Android, go to Settings > Security > Screen Lock or Biometrics and Security depending on your manufacturer. Choose a password you can actually remember, or use your phone's fingerprint or face recognition so you don't have to type it often.

Write the new password down somewhere safe — not on a sticky note on your monitor, but in a password manager like Bitwarden or 1Password, or in a notebook you keep at home. If you use a password manager, you can generate a long random password and never have to remember it at all.

Frequently Asked Questions

Will I lose my photos and messages when I unlock my phone?

Not if you use the Apple ID method on iPhone or the Google account method on Android — both unlock without erasing anything. If you use recovery mode or a factory reset, everything erases unless you restore from a backup afterward. Always try the account method first.

How many times can I try the wrong password before the phone locks me out?

iPhone locks you out after six wrong attempts, then forces you to wait longer between tries. After 10 wrong attempts, it may erase itself if you turned on that security feature. Android varies by manufacturer — Samsung usually locks you out after 20 attempts, but others differ. Don't guess randomly; use the account recovery method instead.

Can I unlock my phone without a computer or email access?

Not really. You need either your Apple ID or Google account to prove you own the phone, and you need access to the email or phone number linked to that account. If you have neither, contact Apple Support or Google Support and they can help verify your identity, but it takes longer.

What if my phone is very old and doesn't support Apple ID or Google account unlock?

Older iPhones and Android phones may not have these features. Your only option is usually a factory reset using recovery mode, which erases everything. Look up your specific phone model and "recovery mode" to find the button combination, then follow the on-screen steps to reset and set up the phone as new.

Do I need to tell anyone that I unlocked my phone?

No. If it's your phone, unlocking it is entirely your choice. If someone else is asking you to unlock a phone that isn't yours, don't — that's not your phone to unlock.