What to do right now if you're locked out
If you've forgotten your password, the fastest way back in depends on what kind of phone you have and what recovery options you set up before you got locked out. Most phones let you reset your password through a backup email address, a phone number you registered, or biometric data like your fingerprint. The process takes 15 minutes to an hour for most people, though some methods require you to wait for a code to arrive by text or email.
Start by looking at your lock screen. If you see a "Forgot password?" link or button, tap it — this is the fastest route on most Android phones and some older iPhones. If that option doesn't appear, you'll need to use your phone's recovery mode, which wipes the device and restores it from a backup. This is more time-consuming but works when other methods don't.
Key Takeaways
- Most phones offer a "Forgot password?" option on the lock screen that lets you reset using an email address or phone number you registered earlier.
- If no reset option appears, you can use recovery mode to erase the phone and restore it from a backup, though this takes 30 minutes to an hour.
- iPhones require your Apple ID and password to restore; Android phones may ask for your Google account or Samsung account depending on the manufacturer.
- If you don't remember your backup email or account password either, contact your phone's manufacturer — they can verify your identity and help you regain access.
Using the "Forgot password?" option on your lock screen
On most Android phones, the lock screen shows a "Forgot password?" or "Forgot PIN?" link below the password field. Tap it and you'll be asked to enter the email address or phone number you used when you set up the phone. The phone will send a code to that email or number, and you enter the code to reset your password.
This method works only if you still have access to the email address or phone number you registered. If you've lost access to that email account or changed your phone number, you'll need to move to recovery mode instead. Keep the code the phone sends you — you'll need it within a few minutes, and it usually expires after 10 to 15 minutes.
Recovery mode on Android phones
If the "Forgot password?" option doesn't work or doesn't appear, turn off your phone completely. Then hold down the power button and volume-down button at the same time for about 10 seconds until you see a menu with options like "Recovery Mode" or "Fastboot Mode." Select Recovery Mode using the volume buttons to navigate and the power button to select.
Once in Recovery Mode, look for an option that says "Wipe data" or "Factory reset." This will erase everything on your phone, including the password you forgot. After the wipe completes, the phone will restart and ask you to sign in with your Google account or Samsung account (depending on your phone's manufacturer). Enter the email and password for that account, and the phone will restore your data from your backup if one exists.
This process takes 20 to 40 minutes depending on how much data was on your phone. You'll lose any data that wasn't backed up to your Google account or Samsung account, so this is a last resort if you can't use the "Forgot password?" option.
Recovery mode on iPhones
On an iPhone, you'll need a computer with iTunes or Finder (on Mac) or a second device with the Find My app. Connect your iPhone to the computer using a USB cable, or use Find My on another device to locate your phone remotely. Open iTunes or Finder and select your phone, then look for a "Restore" button.
Clicking Restore will erase your iPhone and let you set it up again. When the setup screen appears, you'll be asked to sign in with your Apple ID and password. Enter the credentials for the Apple ID associated with your phone, and the phone will restore your data from your iCloud backup if you had one set up.
If you don't remember your Apple ID password, you can reset it on the Apple ID website using a recovery email address or phone number you registered. This adds extra time to the process, but Apple's account recovery usually takes 10 to 15 minutes.
What to do if you don't remember your backup account password
If you've forgotten both your phone password and the password to the email or account you used to set it up, you'll need to reset that account's password first. For Google accounts, go to accounts.google.com and click "Forgot password?" — Google will send a recovery code to a backup email or phone number you registered. For Apple IDs, visit iforgot.apple.com and follow the same process.
Once you've reset your email or account password, you can use that new password to unlock your phone through recovery mode. This adds 15 to 30 minutes to the total process, depending on how quickly you receive the recovery code.
Contacting your phone manufacturer if you're stuck
If you don't have access to your backup email, your registered phone number, or your account password, contact your phone's manufacturer directly. Apple, Google, Samsung, and other manufacturers have account recovery teams that can verify your identity and help you regain access to your phone.
You'll need to provide proof of ownership — usually a receipt, order confirmation, or the serial number of your phone. The manufacturer will ask security questions about your account and may send a verification code to an address on file. This process can take a few days, so it's slower than the other methods, but it's the only option if you've lost access to all your recovery information.
How to avoid this in the future
Write down your password and store it somewhere safe — not on a sticky note on your monitor, but in a physical location like a locked drawer or a safe. Better yet, use your phone's built-in password manager (Google Password Manager on Android, iCloud Keychain on iPhone) to store your password securely.
Set up biometric unlock (fingerprint or face recognition) as your primary way to unlock your phone, and keep your backup email and phone number current. Check your account settings once every few months to make sure the recovery email and phone number still work. If you change your email address or phone number, update it in your phone's settings right away.
Frequently Asked Questions
Will I lose my photos and files if I use recovery mode?
Only if they weren't backed up. Android phones back up photos and files to Google Drive or Samsung Cloud automatically if you turned on backup. iPhones back up to iCloud if you have iCloud backup enabled. If backup was off, recovery mode will erase those files. Check your backup settings before you start the recovery process.
How long does it take to restore my phone from a backup?
Recovery mode itself takes 20 to 40 minutes. Restoring your data from a backup takes an additional 10 to 30 minutes depending on how much data you have and your internet speed. The entire process from locked phone to fully restored phone usually takes 45 minutes to an hour.
Can I unlock my phone without a computer?
On Android, yes — you can use the "Forgot password?" option on the lock screen or recovery mode without a computer. On iPhone, you need a computer or another Apple device to use recovery mode. If you don't have access to either, you'll need to contact Apple directly.
What if my phone is stolen and someone else is trying to unlock it?
Modern phones have anti-theft protections that prevent someone from unlocking a stolen phone even with recovery mode. On iPhones, set up Lock requires the original Apple ID password. On Android, Factory Reset Protection requires the original Google account. These protections are designed to make stolen phones useless to thieves.
Do I need to pay to unlock my phone?
No. Unlocking your own phone through recovery mode or account recovery is free. If you contact the manufacturer for help, that's also free. Be cautious of websites or services that claim to unlock phones for a fee — they're often scams.