The fastest way depends on what kind of phone you have and what you set up before you locked yourself out
If you forgot your password, the path forward is different for iPhone and Android, and it matters whether you saved a recovery email, set up biometric unlock, or linked the phone to another device. Most people can regain access in under an hour without losing their data, but the steps vary widely. Start by identifying your phone type and what backup or recovery method you may have set up months ago.
The goal here is to help you understand your actual options — not to promise a quick fix, because some routes take longer than others. What works fastest for you depends on choices you made (or didn't make) before you got locked out.
Key Takeaways
- iPhone users with a recovery email or trusted device can reset their password through iCloud without erasing the phone, but the process takes 24 hours or more.
- Android users can often sign back in with their Google account from the lock screen itself, which is faster than iPhone but requires you remember your Google email and password.
- If you set up biometric unlock (fingerprint or face recognition) before forgetting your password, you can still use that method to unlock the phone even though you don't remember the code.
- Factory reset erases everything on the phone unless you had automatic backups turned on, so it should be your last option, not your first.
- If the phone belongs to your employer or school, contact their IT department first — they may have a way to reset it that you cannot do yourself.
Using biometric unlock if you set it up before
If your phone has a fingerprint reader or face recognition and you set it up before you forgot your password, you can still unlock the phone with your finger or face. This is the fastest route and requires no internet connection or recovery email. Open the phone normally, use your fingerprint or face, and you are in.
Once you are unlocked, go to Settings and change your password to something you will remember. Write it down somewhere safe — not on a sticky note on your monitor, but in a password manager like Bitwarden (free) or 1Password, or in a locked drawer. The point is to have a backup that is not your memory.
iPhone: using iCloud to reset your password
If you have an iPhone and you set up iCloud with a recovery email address, you can reset your password without erasing the phone. Go to the Apple ID login screen on your iPhone (or use a computer), click "Forgot password," and follow the prompts to verify your identity using your recovery email or a trusted device you own.
Apple will send a reset link to your recovery email. Click it, create a new password, and sign back into your iPhone. This process can take 24 hours or longer because Apple builds in a delay for security — the idea is to give you time to notice if someone else is trying to break in. You cannot speed this up. During the wait, your phone is locked but your data is safe.
If you do not have a recovery email set up and you do not have access to another Apple device, you will need to do a factory reset, which erases everything. See the section below on that route.
Android: signing back in with your Google account
Most Android phones let you sign back in with your Google account directly from the lock screen. After several failed password attempts, the phone will offer "Forgot password?" or "Sign in with Google" — tap that option and enter your Google email address and password.
If you remember your Google password, you are back in within minutes. If you forgot that password too, go to accounts.google.com from any computer or another phone, click "Forgot password," and reset it using your recovery email or phone number. Then return to your Android phone and sign in with the new password.
This method does not erase your phone or your data. Everything stays where it is. If your Android phone is older or heavily customized by your carrier, the exact wording on the lock screen may differ, but the "sign in with Google" option is standard across most devices.
Factory reset as a last resort
A factory reset erases everything on the phone and returns it to the state it was in when it left the factory. Do this only if you cannot use biometric unlock, cannot reset through iCloud or Google, and you have already backed up your data elsewhere or accepted that you will lose it.
The steps differ by phone type. On iPhone, you need a computer with iTunes or Finder, a USB cable, and your Apple ID password. On Android, you usually hold down the power button and volume down button together until a recovery menu appears, then select "Wipe data" or "Factory reset." The exact button combination varies by manufacturer — search "[your phone model] factory reset" to find the right sequence.
After the reset, the phone will ask you to sign in with your Apple ID (iPhone) or Google account (Android). You will be able to restore your data from a backup if you had one turned on. If you did not have backups enabled, your photos, messages, and apps are gone.
What to do if the phone is managed by your employer or school
If your phone is owned by your company or school, it may have mobile device management (MDM) software installed. This software lets your IT department manage the phone remotely, and it also means you cannot reset the password yourself — the IT department has to do it for you.
Contact your IT helpdesk or support team and tell them you are locked out. They will verify your identity and either reset the phone remotely or walk you through the reset process. This usually takes a few hours to a day. Do not attempt a factory reset on a managed phone without asking IT first, because you may lose access to work email, VPN, or other critical apps that IT set up.
Preventing this from happening again
Once you are back in, set up at least two ways to unlock your phone. Use biometric unlock (fingerprint or face) as your everyday method — it is faster and you cannot forget it. Set a strong password as your backup, and write it down in a password manager or somewhere physically find.
Turn on automatic backups. On iPhone, go to Settings > [Your Name] > iCloud > iCloud Backup and turn it on. On Android, go to Settings > Google > Manage Your Google Account > Backup and turn on "Backup by Google One." These backups run automatically over WiFi and let you restore your data if you ever need a factory reset.
Add a recovery email and recovery phone number to your account. On iPhone, go to Settings > [Your Name] > Password & Security. On Android, go to myaccount.google.com and add a recovery email and phone. These are your lifeline if you get locked out again.
Frequently Asked Questions
Can I unlock my phone if I forgot both my password and my Google/Apple ID password?
Yes, but it takes longer. Go to the Google or Apple account recovery page from another device, reset your account password using your recovery email or phone number, then return to your phone and sign in with the new password. If you do not have a recovery email or phone number on file, you will need to contact Google or Apple support with proof of identity, which can take several days.
Will I lose my photos and messages if I do a factory reset?
Only if you did not have backups turned on. If you had iCloud Backup (iPhone) or Google One Backup (Android) enabled, your data is safe in the cloud and you can restore it after the reset. If you did not have backups, a factory reset erases everything on the phone permanently.
What if I see a message saying the phone is "set up locked" or "Find My" is on?
This is a security feature that prevents someone else from using your phone after a factory reset. You will need to sign in with your Apple ID (iPhone) or Google account (Android) to remove it. If you forgot that password, follow the account recovery steps in the section above.
How long does it take to regain access to my phone?
Biometric unlock is when ready. Google account sign-in on Android takes minutes. iPhone iCloud password reset takes 24 hours or more because of Apple's security delay. Factory reset takes 15 to 30 minutes, plus time to restore your data from backup. Contacting IT for a managed phone usually takes a few hours to a day.
Can I unlock my phone without knowing any passwords at all?
Not without help. You will need either biometric unlock (if you set it up), a recovery email or phone number tied to your account, or access to another device you own. If you have none of these, contact your phone manufacturer's support team with proof that you own the phone — they can walk you through identity verification and account recovery.