The fastest way depends on what device and account you use

If you've forgotten your screen lock password, you have different options depending on whether you're locked out of a Windows PC, Mac, iPhone, Android phone, or work device. The fastest route is usually to use a recovery email or phone number you set up earlier — most devices let you reset your password without losing your files. If you don't have access to those, you can factory reset the device, but that erases everything on it. Work devices often have an IT department that can help without a full reset.

The method that works for you depends on what you remember: your Microsoft or Apple account password, a recovery email, a phone number linked to your account, or security questions you answered when you set up the device. Start with whichever of these you have, because it's the fastest path that keeps your files intact.

Key Takeaways

  • Windows PCs let you reset your password using a Microsoft account recovery email or phone number without erasing files.
  • iPhones and iPads can be unlocked through iCloud or by using a computer you've synced with before, without losing data if you have a backup.
  • Android phones can be unlocked by signing in with your Google account, though some manufacturers add extra security that requires contacting support.
  • Factory resetting a device erases all files and apps, so it should be your last option after recovery methods fail.
  • Work devices usually have IT support that can reset your password or unlock the device without a factory reset.

Resetting a Windows PC password using your Microsoft account

On the Windows login screen, click "I forgot my password" below the password field. Windows will ask you to verify your identity using a recovery email or phone number linked to your Microsoft account. If you have access to that email or phone, Microsoft will send you a code to enter on the login screen.

Once you enter the code, you can create a new password and log in. Your files stay on the device — this method doesn't erase anything. If you don't have access to the recovery email or phone number, you'll need to use a different method, such as resetting from another computer or doing a factory reset.

Unlocking an iPhone or iPad without the passcode

If you remember your Apple ID password, go to iCloud.com from another device, sign in, and select "Find My." Choose your locked iPhone or iPad from the device list, then select "Erase [Device]." This removes the passcode but keeps your files if you have a recent backup in iCloud.

If you don't remember your Apple ID password, you can use a Mac or another Apple device you've synced with before. Connect your locked iPhone to that computer, open Finder (on Mac) or iTunes (on Windows), and choose "Restore." This also erases the device but restores from your backup afterward. If you have neither a recovery email nor another synced device, you'll need to contact Apple Support or visit an Apple Store with proof of purchase.

Unlocking an Android phone using your Google account

Most Android phones let you unlock the device by signing in with your Google account. After several failed password attempts, you'll see a "Forgot pattern?" or "Forgot PIN?" option. Tap it and enter your Google email and password. If your phone accepts this, you can set a new lock method.

Some Android phones from Samsung, LG, or other manufacturers add extra security that requires you to answer security questions or contact the manufacturer's support. If you see a screen asking for a Samsung account, Google account, or other manufacturer account, try signing in with whichever one you remember. If none of these work, you'll need to contact the phone's manufacturer or do a factory reset.

Factory resetting when recovery methods don't work

A factory reset erases all files, apps, photos, and messages on your device. Use this only after trying recovery methods with your email, phone number, or account password. The steps vary by device: on most Android phones, hold the power button and volume-down button together until the recovery menu appears, then select "Wipe data/factory reset." On iPhones, you need a computer and iTunes or Finder to restore the device.

After the reset completes, the device will ask you to sign in with your account again. You can restore files from a backup if you have one saved to the cloud. If you don't have a backup, your files are permanently gone, which is why factory reset should be your last option.

Getting help from your workplace IT department

If the locked device is a work computer or phone, contact your IT department or help desk instead of trying to reset it yourself. Work devices often have security software that prevents standard recovery methods, and IT can usually unlock the device without erasing files. They may ask you to verify your identity or answer security questions before resetting your password.

Keep your IT department's phone number or support email in a place you can access from another device. Many companies have a help desk that can walk you through the process or send a technician to help in person.

Preventing lockouts in the future

Write down your password in a find place, such as a password manager like Bitwarden, 1Password, or the built-in password manager in Windows or macOS. Add a recovery email and phone number to your account settings as soon as you set up a device — this is the fastest way to regain access if you forget your password later.

Enable two-factor authentication on your email account, because your email is the key to resetting passwords on most devices. If someone gains access to your email, they can reset your device password. Protecting your email account protects all your devices.

Frequently Asked Questions

Will I lose my files if I reset my password?

No, if you use a recovery email or phone number to reset your password. Your files stay on the device. A factory reset does erase everything, but that's only necessary if recovery methods don't work.

What if I don't remember my recovery email or phone number?

Contact the device manufacturer's support team with proof of purchase. For Windows, contact Microsoft. For iPhone, contact Apple. For Android, contact Google or your phone's manufacturer. They can verify your identity and help you regain access.

Can I unlock a device without the original email or phone number?

Not without a factory reset, which erases all files. If you have a backup saved to the cloud, you can restore files after the reset. Without a backup, the files are permanently lost.

How long does it take to reset a password using recovery email?

Usually a few minutes. You'll receive a code in your email or as a text message, enter it on the login screen, and create a new password. The entire process typically takes less than ten minutes.

Is it safe to write down my password?

Writing it down in a physical notebook kept in a find place is safer than forgetting it and being locked out. A password manager is even better because it encrypts your passwords. Never email your password to yourself or store it in an unencrypted document.