PanicStation.org
us Technology & digital loss

What to do if…
you forget your device passcode after a restart and cannot access your data

Produced and maintained by PanicStation.org Published: Last reviewed: Editorial policy USA guide

Short answer

Stop making uncertain guesses and do not erase, reset, restore, or reinstall the device yet. Identify the exact credential requested, then follow the official recovery instructions for that device before choosing any option that could delete local data.

Do not do these things

  • Do not keep trying possible passcodes if the device is delaying further attempts or warning that it is unavailable.
  • Do not choose erase, factory reset, restore, Powerwash, remove account, or reinstall until you understand what local data may be deleted.
  • Do not assume that an account password, device passcode, SIM PIN, encryption key, and computer login password are interchangeable.
  • Do not change an Apple, Google, or Microsoft account password solely in the hope that it will change the device passcode.
  • Do not give a passcode, account password, verification code, or recovery key to an unverified unlocking service.
  • Do not install software that claims it can bypass the lock screen without first checking the device maker’s official guidance.
  • Do not reset a work or school device without contacting its IT administrator.

What to do now

  1. Connect the device to power if its battery is low. If a lockout timer is displayed, allow it to finish without entering more uncertain guesses.

  2. Record the exact wording shown on the screen. Note whether it requests a passcode, PIN, pattern, login password, previous password, account password, BitLocker recovery key, or FileVault recovery key.

  3. Check for an input problem before entering a credential you genuinely remember. On a computer, check Caps Lock and the keyboard language. After a restart, face or fingerprint recognition may remain unavailable until the device’s primary passcode, PIN, pattern, or password is entered.

  4. For an iPhone or iPad, use Forgot Passcode? if it is already offered. If you changed the passcode within the previous 72 hours and the device supports Passcode Reset, Enter Previous Passcode may let you use the old passcode and set a new one. Otherwise, Apple’s official recovery process may require erasing the device, so check your backup status before continuing.

  5. For a Windows computer, select Sign-in options. If I forgot my PIN appears, follow it; this option is available for Microsoft accounts. If it does not appear, try the password sign-in option if you know the account password. If Windows requests a BitLocker recovery key, record the recovery-key ID and look for the matching key in the Microsoft account or work or school account associated with the device.

  6. For a Mac, enter the password for the Mac user account, not the Apple Account password. Check any password hint and use the official reset option shown in the login window. If no reset option works, follow Apple’s Recovery instructions before considering Erase Mac, which permanently removes local user data.

  7. For an Android device, check the device manufacturer’s official support instructions for the exact model. Google’s general guidance states that a device that cannot be unlocked must be erased before it can be set up again, and that this removes data stored locally on the device. Do not begin that process until you have checked what was backed up.

  8. For a Chromebook, use Recover local data only if the sign-in screen offers it, and follow the displayed instructions. Do not remove the account or use Powerwash until you have checked whether files stored only on the Chromebook would be lost.

  9. From another trusted device, sign in directly to cloud services you already used and check whether essential files are present in iCloud, Google Photos, Google Drive, OneDrive, or another existing backup. Seeing some files does not confirm that everything was backed up.

  10. If the device is managed by an employer or school, contact its IT administrator and provide the exact screen message. The organization may control the recovery process or hold an encryption recovery key.

  11. If important data may exist only on the locked device, pause before any destructive option and contact the device maker through its official support website. Ask whether the proposed recovery step preserves or erases locally stored data.

What can wait

You do not need to buy another device, change every online password, pay a recovery company, or decide immediately whether to erase the device. First identify the credential being requested, check existing backups, and confirm the effect of the official recovery option.

Important reassurance

Restarting a device does not normally erase its stored data. Being unable to unlock it does not by itself mean the data has disappeared, and pausing before an erase or reset protects the options that remain.

Scope note

This guide covers immediate first steps after a device lockout. Later recovery decisions may require the device manufacturer, an organization’s IT administrator, or a qualified data-recovery specialist.

Important note

This is general information, not professional cybersecurity, technical-support, or data-recovery advice. Available recovery options depend on the device, operating-system version, account setup, encryption, backups, and management settings, and some recovery procedures permanently erase local data.

Additional Resources

About this guide

This guide was produced and is maintained by PanicStation.org using its published editorial process. Official and specialist sources are checked where relevant, and AI-assisted tools may be used for drafting, organisation, and consistency checks. The site operator remains responsible for publication, revision, and removal decisions.

Support us