If you have forgotten your phone's screen lock password, the practical answer is: you cannot simply read it back or recover it. Android and iPhone encrypt the lock credential, so the only reliable fix is to reset the device and set it up again, restoring your data from a backup you made earlier. On Android you can often do this remotely through Find My Device or Samsung's Find My Mobile; on iPhone you use a computer with Finder or the Apple Devices app, or iCloud's Erase This Device. Everything on the phone that was not backed up will be erased, so read the warnings below before you start.
Before anything else, try the obvious: on Android, after several wrong attempts you may see a "Forgot pattern" or "Forgot PIN/password" option that lets you sign in with your Google account. On iPhone there is no such option; iOS shows a Security Lockout screen with an Erase iPhone choice on newer versions, which erases the phone and lets you restore from backup. Labels differ slightly by phone maker, OS version and region, so if a menu name below does not match exactly, look for the closest equivalent.
What You'll Need
- Your Google account credentials (Android) or Apple ID and password (iPhone).
- The phone's existing screen lock type, so you know which reset route applies.
- A computer with a USB cable for the iPhone method, or a stable Wi-Fi connection for the remote methods.
- A recent backup, ideally in Google Drive, Samsung Cloud or iCloud, plus the account password to restore it.
- The phone's SIM card and, for some Android models, the original Google account that was signed in before the lock.
Step-by-Step
Android: remote erase through Find My Device
- On a computer or another phone, open a browser and go to google.com/android/find, then sign in with the same Google account that was on the locked phone.
- Select the locked device in the list on the left. If it does not appear, the phone is offline, signed out, or location is off; skip to the recovery-mode method below.
- Choose Erase device. Confirm the prompt. This wipes all data on the phone, including the forgotten password.
- Wait for the erase to complete. The phone needs to be powered on and connected to the internet for the command to reach it.
- Set the phone up again and sign in with your Google account. During setup, choose to restore from a backup if one exists.
Android: recovery mode (when remote erase is unavailable)
- Power the phone off completely.
- Press and hold the buttons your maker uses for recovery. On most Pixel and many stock Android phones this is Power plus Volume Down; on Samsung it is usually Power plus Volume Up plus Bixby or Side key. The exact combination varies by model, so check your maker's support page.
- Use the volume keys to highlight Recovery mode and press Power to select.
- In the recovery menu, choose Wipe data/factory reset, then confirm. This deletes everything on internal storage.
- Choose Reboot system now. The phone starts fresh with no lock screen password.
- Sign in with the Google account that was previously on the phone. Android's factory reset protection will ask for it, so a different account will not work.
iPhone: erase with a computer
- Turn the iPhone off, or leave it disconnected from power if it is on.
- Put the phone into recovery mode. On iPhone 8 and later, press and quickly release Volume Up, press and quickly release Volume Down, then hold the Side button until the recovery screen appears. On iPhone 7 hold Volume Down plus the Side or Top button. On iPhone 6s and earlier hold Home plus the Top or Side button. Button names differ by model.
- Connect the phone to a computer with a cable and open Finder (Mac) or the Apple Devices app (Windows).
- Select the phone when it appears, then choose Restore. Confirm that you understand all data will be erased.
- Wait for the restore to finish. The phone restarts as if new.
- Set it up and choose Restore from iCloud Backup or Restore from Mac or PC backup when prompted.
iPhone: erase through iCloud
- On another device, sign in at icloud.com/find with your Apple ID.
- Select the locked iPhone from the device list.
- Choose Erase iPhone and confirm. The phone must be online for this to work.
- When the erase completes, set the phone up again and restore from your iCloud backup.
Common Mistakes
- Guessing repeatedly. Too many wrong attempts trigger longer lockouts on iPhone and can force an erase on some Android phones, so stop and use a reset route instead.
- Erasing before checking for a backup. Sign in to Google Drive or iCloud on another device first to confirm a recent backup exists.
- Using a different Google account after an Android factory reset. Factory reset protection will lock the phone again until the original account is entered.
- Unplugging the iPhone during a restore. Interrupting the process can leave the phone stuck on the recovery screen.
- Assuming a carrier store can unlock it. Carriers cannot recover a forgotten screen lock password; they can only help with SIM or account issues.
Tips
- After you are back in, turn on automatic backups so a future lockout costs you nothing.
- Write the new password or PIN somewhere secure, or use a password manager that syncs across devices.
- On Android, set up Find My Device and confirm location is on; it is the fastest recovery route.
- Keep a current backup of photos and messages on a computer as well as in the cloud.
- Consider a longer PIN or password rather than a short pattern, which is easier to forget and easier to guess.
Troubleshooting
If the phone does not appear in Find My Device or iCloud, it is almost certainly offline or signed out. A phone that is off cannot receive a remote erase command, so you will need the recovery-mode or computer method instead. If recovery mode will not open, charge the phone for at least fifteen minutes and try the button combination again; some models need a different sequence, so check the maker's support page.
If the iPhone restore fails partway through, try a different cable and a different USB port, and make sure Finder or the Apple Devices app is up to date. If the Android phone asks for the previous Google account and you no longer know it, you will need to use Google's account recovery process before the phone can be set up. If a message says the device is remotely managed by an organisation, stop and contact that organisation's IT administrator, because a work profile cannot be removed by a normal reset.
If the phone boots but the old password still appears, the reset did not complete. Repeat the erase step and let it run to the end without interrupting power.
Frequently Asked Questions
Can I recover the password without erasing the phone?
No. The lock credential is encrypted and cannot be read back. On Android, the "Forgot pattern" option lets you sign in with Google to reset the lock on some versions, but if that option is not shown, a reset is the only route.
Will I lose all my photos and messages?
Anything not backed up is lost. Photos and contacts synced to Google Photos, Google Contacts or iCloud will return after you sign in; local files, some app data and unsynced messages will not.
Does removing the SIM card help?
No. The screen lock is stored on the phone, not the SIM. Removing the SIM only affects calls and mobile data.
Can a repair shop unlock it without erasing?
Legitimate shops use the same reset methods described here. Be wary of anyone claiming to bypass the lock without wiping the device.
Why does the phone ask for my old Google account after a reset?
That is factory reset protection, a theft deterrent. You must sign in with the account that was on the phone before the reset, or complete Google's account recovery.
Does this work on a phone that is turned off?
Remote erase needs the phone online. If it is off, use the recovery-mode or computer method, which works without a network connection.