The fastest way depends on what phone you have and what you set up beforehand

If you've forgotten your phone password, the path forward changes based on whether you have an iPhone or Android device. Both systems let you reset a forgotten password, but they use different accounts and different steps. The key is that you'll need access to either an email address or phone number you registered with the device — not a new one, but the actual account you linked to it when you first set it up.

Before you start, know that resetting your password will erase everything on the phone unless you had backups turned on. Most people do have backups running without realizing it — iCloud for iPhones, Google Drive for Android — so your photos, contacts, and messages are often still there even after a reset. The process takes 15 to 30 minutes and doesn't require a computer for most phones made in the last five years.

Key Takeaways

  • iPhone users need their Apple ID email and password to reset a forgotten screen password; Android users need their Google account details.
  • Both systems will erase the phone's contents unless you had automatic backups turned on before you forgot the password.
  • You can recover photos, contacts, and messages from backups after the reset is complete, even though the phone itself gets wiped.
  • If you don't remember your Apple ID or Google password either, you'll need to recover those accounts first using the email address or phone number attached to them.

Resetting an iPhone when you've forgotten the screen password

Start by powering off your iPhone completely. Then hold down the top button and volume-down button together until you see the power-off slider, and slide it to turn the phone off. Once it's off, keep holding the top button (or the home button if you have an older iPhone) until you see the recovery mode screen — this usually takes about 10 seconds after the phone is already off.

When recovery mode appears, you'll see options on the screen. Choose "Restore" to erase the phone and install a fresh copy of iOS. This step takes several minutes and requires an internet connection. After the restore finishes, the phone will ask you to set it up as new or restore from a backup. At this point, enter your Apple ID email and password — the account you originally used to set up the phone, not a new one.

Once you've entered your Apple ID, the phone will restore your data from iCloud if you had backups turned on. If you didn't have backups, you'll have a blank phone but you'll be able to set a new password and use it normally. If you don't remember your Apple ID password, you can reset it through Apple's account recovery page before you start this process — you'll need the email address or phone number linked to that Apple ID.

Resetting an Android phone when you've forgotten the screen password

The process for Android is similar but uses your Google account instead of an Apple ID. Power off the phone completely, then hold the power button and volume-up button together until you see the boot menu. Select "Recovery Mode" from the menu using the volume buttons to navigate and the power button to select.

In recovery mode, look for an option that says "Wipe data" or "Factory reset" — the exact wording varies by manufacturer. Select it, then confirm that you want to erase everything. The phone will restart and ask you to set it up again. When it does, sign in with the Google account you used originally. The phone will then restore your photos, contacts, and other data from Google Drive if backups were enabled.

If you don't remember your Google password, you can reset it on Google's account recovery page using the email address or phone number on file. Do this before you start the factory reset if possible, so you have the new password ready when the phone asks for it during setup.

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

If you've forgotten the password to your Apple ID or Google account as well, you'll need to recover those accounts first. For Apple ID, go to iforgot.apple.com and enter the email address associated with your account. Apple will send you a recovery link to that email, and you can use it to set a new password. For Google, go to accounts.google.com/signin/recovery and enter your email or phone number, then follow the steps to verify your identity and create a new password.

Both companies use the email address or phone number on file to confirm you own the account, so make sure you have access to whichever one you used when you created the account. If you no longer have access to that email or phone number, both Apple and Google have additional recovery options, but they take longer — sometimes several days — because they need to verify your identity more thoroughly.

Recovering your data after the reset

After your phone is set up again with your account, it will ask whether you want to restore from a backup. If you had automatic backups turned on before you forgot your password, select "Restore from backup" and choose the most recent one. This will bring back your photos, messages, contacts, and most of your apps — though some apps may need to be reinstalled from the app store.

The restore process can take 30 minutes to several hours depending on how much data you had and your internet speed. Keep the phone plugged in and connected to Wi-Fi during this time. If you didn't have backups turned on, your data is gone, but you can still use the phone normally with a new password.

Preventing this from happening again

Once you have your phone working again, turn on automatic backups when ready. On iPhone, go to Settings, tap your name, select iCloud, then turn on iCloud Backup. On Android, go to Settings, select Google, then Manage Your Google Account, tap the Backup tab, and make sure "Backup to Google Drive" is turned on. Both systems back up your data automatically when the phone is plugged in and connected to Wi-Fi.

Write down your Apple ID or Google password somewhere safe — a notebook at home, a password manager, or a trusted family member. You don't need to memorize it, but you do need to be able to find it if you forget your phone password again. Many people also set up a recovery email address or phone number on their account, which gives you another way to get back in if you forget the main password.

What to do if your phone won't turn on or respond

If your phone is frozen or won't respond to button presses, try a force restart before you attempt a factory reset. For iPhone, quickly press and release the volume-up button, then quickly press and release the volume-down button, then hold the top button until the Apple logo appears. For Android, hold the power button for 10 to 30 seconds — the exact time varies by model — until the phone vibrates and restarts.

A force restart often fixes a frozen phone without erasing anything. If the phone still won't respond after a force restart, then proceed with the factory reset steps above. If the phone won't turn on at all even after multiple force restart attempts, the battery may be completely drained — plug it in for at least 30 minutes and try again before assuming the hardware is broken.

Frequently Asked Questions

Will I lose all my photos and messages if I reset my phone?

Only if you didn't have backups turned on before you forgot your password. If iCloud (iPhone) or Google Drive (Android) backups were running, your photos, messages, and contacts will be restored after you set up the phone again. You can check whether backups were on by looking at your iCloud or Google account settings on a computer or another device.

What if I don't have access to the email address or phone number on my Apple ID or Google account?

Both Apple and Google have account recovery processes for this situation, but they require you to verify your identity in other ways — usually by answering security questions or providing a government ID. Contact Apple Support or Google Support directly to start the recovery process, as it may take several days.

Can I reset my phone password without erasing everything?

No. Resetting a forgotten screen password always requires a factory reset, which erases the phone. This is a security feature to prevent someone else from accessing your phone if they steal it. Your data is only preserved if you had backups turned on before you forgot the password.

How long does the whole process take?

From powering off the phone to having it set up again with your data restored usually takes 30 minutes to two hours, depending on how much data you have and your internet speed. The factory reset itself takes 5 to 10 minutes, but restoring from backup can take much longer if you have thousands of photos or large app data.

Do I need a computer to reset my phone password?

No. Most phones made in the last five years can be reset using only the phone itself and an internet connection. You don't need a computer, but having one available can be helpful if you need to recover your Apple ID or Google password first.