The fastest way depends on what phone you have and what you remember
If you've forgotten your phone password, the path forward splits into three directions: use a backup method you set up earlier (like a recovery email or backup phone number), reset the phone to factory settings and start over, or contact the manufacturer's support team. Which one works fastest depends on whether you're locked out of an iPhone or Android phone, whether you remember your Apple ID or Google account password, and how much data you're willing to lose.
The key difference: backup methods let you keep your data and get back in within minutes. A factory reset wipes everything but takes about the same time. Contacting support is slowest but doesn't require you to remember anything else.
Key Takeaways
- If you set up a recovery email or backup phone number, you can reset your password without losing any data, usually within 10 to 15 minutes.
- iPhone users who remember their Apple ID password can use iCloud's Find My iPhone feature to reset the device remotely.
- Android users can sign in with their Google account on the lock screen itself, which bypasses the forgotten password on many phones.
- A factory reset erases all data but gets you back into a working phone if you have no other options.
- If you cannot remember any backup information, the phone manufacturer can verify your identity and help you regain access, though this takes several days.
iPhone: using iCloud or your Apple ID to regain access
On an iPhone, your Apple ID is the master key. If you remember your Apple ID password (the one you use for the App Store, iCloud, or Apple services), you can reset your device password without losing your data.
Go to iCloud.com on any computer or another phone. Sign in with your Apple ID and password. Click Find My, then Find My iPhone. Select your locked phone from the list of devices. Click Erase iPhone. This wipes your password but keeps your data intact because it restores from your iCloud backup once you set up the phone again. The process takes about 10 minutes, and your phone will restart and ask you to set a new password.
If you do not remember your Apple ID password, go to iforgot.apple.com and enter your Apple ID email address. Apple will send a reset link to that email or ask you to answer security questions you set up when you created the account. Once you reset your Apple ID password, follow the iCloud steps above.
Android: signing in with your Google account at the lock screen
Most Android phones let you bypass a forgotten password by signing in with your Google account directly on the lock screen. After you've entered the wrong password several times, the phone will show an option like "Forgot password?" or "Sign in with Google." Tap it and enter your Google account email and password.
This method works on phones from Samsung, Google Pixel, Motorola, and most other Android makers, though the exact wording and location of the option varies slightly. If you see this option, use it — it's the fastest route and keeps all your data.
If you do not see this option on your lock screen, or if you also forgot your Google password, move to the factory reset section below.
Resetting your phone to factory settings when you have no backup information
A factory reset erases everything on your phone — all photos, messages, apps, and settings — but it removes the password and lets you set up the phone as new. This is the right choice only if you have no recovery email, no backup phone number, and no memory of your Apple ID or Google password.
On iPhone: Connect the phone to a computer with iTunes or Finder. Put the phone into recovery mode by holding the top button and volume down button together until the recovery screen appears. Click Restore. iTunes will erase the phone and install fresh software. When it restarts, you'll set up the phone as new and can sign in with your Apple ID afterward.
On Android: Turn off the phone. Hold the power button and volume down button together until the recovery menu appears (this varies by manufacturer — some use power and volume up instead). Use the volume buttons to highlight "Wipe data / factory reset" and press the power button to select it. Confirm the wipe. The phone will restart as new. The whole process takes 15 to 20 minutes.
After a factory reset, you'll need to sign in with your Apple ID or Google account to restore your backed-up data. If you backed up to iCloud or Google Drive, your photos, contacts, and messages will return once you sign in.
Contacting Apple or Google support if you're locked out of your accounts too
If you've forgotten both your phone password and your Apple ID or Google password, and you have no recovery email or backup phone number, the manufacturer can help you prove you own the phone and regain access. This is the slowest route — it typically takes three to seven business days — but it does not require you to remember anything.
Call Apple Support at 1-800-MY-APPLE or Google Support through the Google Account Recovery page. Have your phone's serial number ready (it's on the original box or in Settings). They will ask you to verify your identity using the phone number or email address associated with your account, or by answering security questions. Once verified, they can send you a reset link or unlock code.
This process is slower because the company has to confirm you're not someone trying to break into someone else's phone. Be prepared to wait on hold and to provide proof of purchase if they ask for it.
What to do if your phone is locked by your employer or school
If your phone is managed by your workplace or school (often called Mobile Device Management or MDM), you cannot reset it yourself — the organization controls the lock. Contact your IT department or help desk instead. They have the ability to unlock the device remotely or reset your password without erasing the phone.
This is different from a personal password you forgot. Employer-managed phones have an extra layer of security, and only the organization that set it up can remove it. Trying a factory reset on a managed phone may lock it permanently.
Setting up recovery options so this does not happen again
Once you're back into your phone, add a recovery email and backup phone number to your account right away. On iPhone, go to Settings > [Your Name] > Password & Security and add a recovery email. On Android, go to myaccount.google.com, click Security on the left, and add a recovery email and phone number under "How we can reach you."
You should also turn on automatic backups. iPhone backs up to iCloud automatically if you're signed in and connected to Wi-Fi. Android backs up to Google Drive if you're signed in. These backups mean that if you ever have to factory reset again, your data comes back when you sign in.
Frequently Asked Questions
Can I unlock my phone if I do not have access to the email or phone number I used to set it up?
Yes, but it takes longer. Contact Apple or Google support with your phone's serial number and proof of purchase. They can verify your identity through other means — like security questions or account history — and help you regain access. This process usually takes three to seven business days.
Will I lose my photos and messages if I factory reset?
A factory reset erases everything on the phone itself, but if you backed up to iCloud or Google Drive before you forgot the password, your photos and messages will return when you sign back in. If you never backed up, they're gone. This is why setting up automatic backups now prevents data loss in the future.
What if I see a message saying my account is locked or compromised?
This usually means the system detected unusual activity and locked the account for security. Go to iforgot.apple.com or myaccount.google.com from another device and follow the password reset steps. You may be asked to verify your identity or confirm recent sign-in activity. Once you reset your password, you can unlock your phone using the new password.
Can I unlock someone else's phone if they forgot the password?
No. The security system is designed to prevent this. Only the person who owns the Apple ID or Google account can unlock the phone, or the manufacturer can help if that person can prove ownership. This protects everyone's privacy and security.
How long does it take to regain access after I reset my password?
If you use a recovery email or backup phone number, you can reset your password and unlock your phone within 10 to 15 minutes. A factory reset takes about 15 to 20 minutes. Contacting support takes three to seven business days. The fastest route is always the one where you remember a backup method you set up earlier.