TechBuzzPro

Forgot Phone Passcode? Here's What to Do

· 7 min read · Phones & Tablets

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If you do not know your phone passcode, you cannot unlock the device or access its data. The only official way back in is to erase the phone and set it up again, then restore your data from a backup if you have one. The exact steps depend on whether you use an iPhone or an Android phone, and on whether you have access to a computer and your Apple or Google account. This guide walks through the official recovery methods, what each one deletes, and how to avoid common mistakes. Menu labels can differ slightly by version, device and region, so treat the names below as a guide rather than a guarantee.

What You'll Need

  • Your phone, a charging cable and, for some methods, a computer (Windows PC or Mac).
  • Your Apple ID and password (iPhone) or your Google account and password (Android).
  • A recent backup if you want to get your photos, messages and apps back after the erase.
  • Your Wi-Fi password or a mobile data connection for the setup screens.
  • Your SIM card, in case the phone asks for the SIM PIN after restart.

Step-by-Step

  1. Check whether you can still unlock another way. On many iPhones and Android phones you can use Face ID, Touch ID or a fingerprint sensor instead of typing the passcode. Try that first. If biometrics work, you can open Settings and change the passcode without erasing anything. If biometrics fail or are disabled, continue below.
  2. For iPhone: try Erase iPhone from the lock screen. After several failed passcode attempts, recent iOS versions show an Erase iPhone option on the lock screen. Tap it, enter your Apple ID password, and confirm. The phone erases itself and restarts at the setup screen. This option only appears if the phone has a working internet connection and is signed in to an Apple ID.
  3. For iPhone: use iCloud Find My if Erase iPhone is not shown. On another device or a browser, sign in to iCloud.com with your Apple ID. Open Find My, select your phone from the device list, and choose Erase This Device. Confirm. The phone erases the next time it connects to the internet. If the phone is offline, the erase is queued and happens when it comes back online.
  4. For iPhone: use Recovery Mode with a computer. Connect the iPhone to a computer with a cable. Put the phone into Recovery Mode: on newer iPhones, press and quickly release the volume up button, press and quickly release the volume down button, then press and hold the side button until the recovery screen appears. On older models with a Home button, hold the Home button while connecting the cable. In Finder (macOS) or iTunes (Windows), select the phone and choose Restore. This erases the phone and installs the latest iOS.
  5. For Android: use Find My Device. On another device or a browser, go to android.com/find and sign in with the same Google account that is on the phone. Select the phone, choose Erase Device, and confirm. The phone erases the next time it is online. This requires that Find My Device was turned on and the phone is signed in to your Google account.
  6. For Android: use Recovery Mode if Find My Device is not available. Turn the phone off. Press and hold the power and volume down buttons (the exact combination varies by manufacturer) until the recovery menu appears. Use the volume buttons to highlight Wipe data/factory reset and press the power button to select. Confirm the wipe. Then choose Reboot system now. The phone restarts at the setup screen.
  7. Set up the phone again. Follow the on-screen setup. When asked, sign in with your Apple ID or Google account. On the restore screen, choose to restore from a backup if you have one: iCloud or a computer backup for iPhone, or a Google Drive backup for Android. If you have no backup, you start with a clean phone.
  8. Restore your data. For iPhone, choose Restore from iCloud Backup or Restore from Mac or PC during setup. For Android, choose Copy apps & data and pick the backup from your Google account. Keep the phone charged and on Wi-Fi during the restore, which can take a while.

Common Mistakes

  • Erasing before checking for a backup. The erase deletes everything on the phone. If you have no backup, photos, messages and app data that were not synced to the cloud are gone permanently.
  • Using unofficial tools or "passcode unlock" services. These often do not work, can install malware, and may ask for your Apple ID or Google password. Stick to Apple's and Google's official methods.
  • Forgetting the Apple ID or Google password. After the erase, the phone asks for the account that was signed in before. If you do not know it, you cannot finish setup. Recover the account first through Apple's or Google's account recovery pages.
  • Interrupting Recovery Mode. Unplugging the cable or closing the computer software mid-restore can leave the phone stuck. Let it finish.
  • Assuming Find My Device or Find My is on. Both features must have been enabled before you forgot the passcode. If they were off, use Recovery Mode instead.

Tips

  • Set up automatic backups now so a future lockout costs you nothing: iCloud Backup on iPhone, Google One backup on Android.
  • Write your passcode somewhere safe and offline, or use a password manager that supports PINs.
  • Keep your Apple ID and Google account recovery details up to date, including a trusted phone number and email.
  • If the phone belongs to a workplace, contact your IT administrator before erasing it; company management settings may block the reset or require a different procedure.
  • After setup, consider enabling biometric unlock so a forgotten passcode is less likely to lock you out completely.

Troubleshooting

  • The Erase iPhone option does not appear. The phone may be offline or not signed in to an Apple ID. Use iCloud Find My or Recovery Mode with a computer instead.
  • Find My Device cannot find the phone. The phone may be offline or Find My Device was not enabled. Use Recovery Mode.
  • Recovery Mode does not start. Try a different cable and a different USB port, make sure the computer has Finder or iTunes installed and updated, and repeat the button sequence exactly. If it still fails, contact Apple Support or the manufacturer's service centre.
  • The phone asks for the previous owner's account after erase. This is Activation Lock (iPhone) or Factory Reset Protection (Android). You must sign in with the account that was on the phone. If you bought the phone second-hand, contact the seller; there is no official bypass.
  • The restore is stuck or fails. Check your internet connection, free up space in your iCloud or Google account, and try again. For computer restores, update Finder or iTunes first.
  • You have no backup at all. The phone will be empty after setup. Check whether photos and contacts were synced to iCloud, Google Photos or Google Contacts, and sign in to those services to get them back.

Frequently Asked Questions

Can I unlock my phone without erasing it?

Only if you can use biometric unlock (Face ID, Touch ID or fingerprint) or another trusted method that is still enabled. If the passcode is the only way in and you do not know it, the phone must be erased.

Will I lose all my data?

Everything on the phone is deleted by the erase. Data that was backed up to iCloud, Google Drive or a computer can be restored during setup. Data that was never backed up is lost.

Does this work if the phone is offline?

iCloud Find My and Find My Device queue the erase and run it when the phone next connects to the internet. Recovery Mode works offline because it uses a cable connection to a computer.

Can I use a third-party tool to recover the passcode?

No official tool can read or recover a forgotten passcode. Third-party services are not recommended and can be unsafe. Use Apple's or Google's official recovery methods.

What if I forgot my Apple ID or Google password too?

Use the account recovery pages for Apple ID or Google Account before erasing. Without the account credentials, you cannot complete setup after the erase.

Is there a limit on passcode attempts?

Yes. iPhones and many Android phones add delays after repeated wrong attempts and can disable the phone entirely. Stop guessing and use one of the official recovery methods above.