The fastest way depends on what phone you have and what you set up before you locked yourself out
If you forgot your password, you have a path forward — but which one works depends on whether you're on iPhone or Android, and whether you saved a backup email or phone number to your account beforehand. The good news is that both Apple and Google built recovery options into their systems specifically for this situation. The bad news is that none of them are when ready, and some require you to have set things up in advance.
Start by identifying your phone type and then follow the section that matches. If you set up a recovery email or phone number when you created your account, you're in the fastest group. If you didn't, you'll need to prove you own the phone through a longer verification process.
Key Takeaways
- iPhone users can reset their password through iCloud.com or by using a trusted device, but you'll need either a recovery email or a phone number linked to your Apple ID.
- Android users can reset their Google password on a computer, then sign back into their phone, but the process locks you out for 24 hours as a security measure.
- If you didn't set up a recovery email or phone number, you'll need to verify ownership through your device's serial number or by answering security questions you created years ago.
- Factory reset is a last resort that erases everything on your phone — use it only after other methods fail and you've backed up what you can from another device.
- Setting up a recovery email and phone number right now, while you have access, prevents this problem from happening again.
Resetting your password on iPhone
Go to iCloud.com from any computer or another phone's web browser. Click "Find My iPhone" at the bottom of the login page, then click "Forgot Apple ID or password?" Enter your Apple ID (usually your email address) and follow the prompts. Apple will send a reset link to the recovery email you set up, or send a code to the phone number you registered.
If you don't remember your Apple ID, enter the email address you think you used. If that doesn't work, try other email addresses you've owned. Apple will tell you if it recognizes the address. Once you reset your password through the email or text code, go back to your iPhone, open Settings, tap your name at the top, and sign in with your new password.
If you have another Apple device (iPad, Mac, Apple Watch) that's already signed into your account, you can use that instead. Open Settings on the trusted device, find your name, and look for an option to reset your password. Your iPhone will then accept the new password without needing the recovery email.
Resetting your password on Android
Go to accounts.google.com from any computer. Click "Sign in" and enter your email address. When prompted for your password, click "Forgot password?" Google will ask you to enter the last password you remember, or skip that step if you can't recall it. Then Google will send a reset code to your recovery email or phone number.
Once you've reset your password, go back to your Android phone. Open Settings, scroll to "Accounts" or "Users and accounts," tap your Google account, and sign out. Then sign back in with your new password. Your phone will sync and unlock within a few minutes.
Google locks you out of signing in for 24 hours after a password reset as a security measure. This means you won't be able to sign into that account on any device during that window, but your phone will remain unlocked once you've signed back in before the lockout begins.
What to do if you didn't set up recovery email or phone number
If you can't receive a reset code because you never added a recovery email or phone number to your account, both Apple and Google require you to verify you own the device. This process is slower and more involved, but it's designed to prevent someone else from taking over your account.
For iPhone, go to iforgot.apple.com and enter your Apple ID. Choose "I don't have access to my recovery email" and select "I don't have access to my trusted phone number." Apple will ask for your device serial number. You can find this in Settings under General > About, or on the original box your phone came in. Apple will then send you a link to verify your identity through security questions you answered when you created your account.
For Android, the process is similar. At accounts.google.com, after clicking "Forgot password," Google will ask you to verify your identity. You may be asked to enter a recovery email or phone number, or to answer security questions. If you can't answer those either, Google will ask for your phone's IMEI number (dial *#06# on the phone to see it, or find it in Settings under About Phone). Google uses this to confirm you own the device.
Using Find My Mobile on Samsung phones
If you own a Samsung Android phone, you have an additional option through Samsung's Find My Mobile service. Go to findmymobile.samsung.com from a computer and sign in with your Samsung account (not your Google account). Click "Unlock My Mobile" and follow the prompts to verify your identity. Samsung can remotely unlock your phone without erasing it.
This works only if you set up a Samsung account on your phone before you forgot your password. If you did, this is often faster than going through Google's full verification process. If you didn't set up a Samsung account, you'll need to use the Android method described above.
Factory reset as a last resort
If none of the above methods work and you've exhausted all recovery options, a factory reset will unlock your phone — but it erases everything on it. Use this only after you've tried every other path and confirmed it won't work.
On iPhone, you can factory reset through iCloud.com. Go to Find My iPhone, select your device, and choose "Erase iPhone." On Android, restart your phone and hold down the volume down button and power button together until you see a recovery menu. Select "Wipe data / factory reset" using the volume buttons to navigate and the power button to select. The phone will restart and ask you to set it up as new.
After a factory reset, you'll be able to sign into your account again with your new password, and your phone will read any data that was backed up to the cloud. Photos, contacts, and messages stored locally on the phone (not synced to the cloud) will be gone permanently.
Preventing this from happening again
Right now, while you have access to your phone, add a recovery email and phone number to your account. On iPhone, go to Settings > [Your Name] > Password & Security > Recovery Email. On Android, go to myaccount.google.com, click "Security" on the left, and scroll to "Recovery email" and "Recovery phone." These two pieces of information cut the recovery time from days to minutes if you ever forget your password again.
Consider using a password manager like Bitwarden, 1Password, or the built-in password managers in iOS and Android. These store your passwords securely and can fill them in automatically, so you're less likely to forget them. If you do forget, the password manager itself has its own recovery options.
Frequently Asked Questions
How long does it take to reset my password and get back into my phone?
If you have a recovery email or phone number set up, you can reset your password and sign back in within 15 to 30 minutes. If you need to verify ownership through security questions or device serial number, the process takes 24 to 48 hours because Apple and Google review your request manually.
Will I lose my photos and messages if I reset my password?
No. Resetting your password does not erase anything on your phone. Only a factory reset erases data, and that's a separate action you choose to take. Your photos, messages, and apps stay on your phone after you sign back in with your new password.
Can I unlock my phone without a computer?
On iPhone, you can use another Apple device (iPad, Mac) that's already signed into your account to reset your password. On Android, you need a computer or another device with a web browser to access Google's password reset page. You cannot reset your password using only the locked phone itself.
What if I don't remember my Apple ID or Google email address?
Try every email address you've ever owned. Apple and Google will tell you if the address is associated with an account. If you still can't remember, you can verify ownership through your device's serial number or IMEI, which takes longer but works.
Do I need to contact Apple or Google support to unlock my phone?
No. Both companies built self-service recovery into their systems, and you can complete the entire process on your own through their websites. Contact support only if you've tried all the self-service options and none of them work.