First, work out what you've forgotten
Windows can ask for two different things at the sign-in screen: a PIN (a short number set up with Windows Hello) or a password. It also matters which kind of account you use, because the fix is different for each.
- Microsoft account: you sign in with an email address. The password is stored by Microsoft online, so you reset it on the web or from the sign-in screen.3,4
- Local account: the account exists only on that PC. You reset it on the PC itself using security questions, a password reset disk or another administrator account.1
- Work or school account: your organisation's IT administrator decides whether you can reset it yourself.6
If you're not sure, look at the sign-in screen: an email address under your name usually means a Microsoft account.
Forgot your PIN
A forgotten PIN is the easiest problem to fix, and it works the same way on Windows 11 and Windows 10.2
The "I forgot my PIN" link only appears for Microsoft accounts. If you use a local account, select Sign-in options, choose the password option and sign in with your password instead. You can then set a new PIN in Settings > Accounts > Sign-in options > PIN (Windows Hello) > Change PIN.2
Forgot your Microsoft account password
Because the password belongs to your Microsoft account, you can reset it on the PC or on any other device with a web browser.3
On the Windows sign-in screen, select I forgot my password. If you don't see it, Microsoft also lists Sign-in options > Web sign-in > Forgot my password.3 On another device, open Microsoft's Reset password page.4
Enter the email address, phone number or Skype name you use for the account and select Next.4
Choose where to get a security code, such as your backup email or phone number, and type the hidden part to confirm it. Select Get code.4
Enter the code, select Next, then create a new password.4
Sign in to Windows with the new password.3
If you can't reach the email address or phone number on the account, Microsoft points you to its Sign-in helper and then to its account recovery form.4,5 The form asks questions that only the real owner should be able to answer. Microsoft suggests filling it in on a device and in a place you've used before, and giving an email address you can check, such as a friend's or a new free one. You should hear back within 24 hours, and you can submit it up to twice a day.5
Nobody can reset it for you
Microsoft says its support agents cannot send password reset links or get around a forgotten password.3,5 Anyone who phones or messages offering to "unlock" your Microsoft account is a scammer. If two-step verification is on and you have no backup method, Microsoft says it cannot help you recover the account.5
Forgot your local account password
For an account that only exists on the PC, Windows offers a few routes.1
Type any password and select the arrow to submit it. When Windows says it's incorrect, select OK.1
Select Reset password and answer the security questions you set up when you created the account.1
If you made a password reset disk (a USB stick) earlier, choose Use a password reset disk instead and follow the Password Reset Wizard.1,9
Create a new password and sign in.1
If someone else on the PC has an administrator account, they can set a new password for you. Microsoft's route is Computer Management > Local Users and Groups > Users, then right-click your user name and choose Set Password.1
If none of this works and there's no other administrator account, Microsoft's advice is to reset the PC.1 That's a last resort, explained below.
Work or school account
Self-service reset only works if your organisation has switched it on and you registered security info, such as a phone number, beforehand. On the sign-in page, choose Can't access your account? and follow the steps. If you see "Contact your administrator", your IT team will need to reset it for you.6
Last resort: reset the PC
If you can't get back in any other way, you can reinstall Windows. From the sign-in screen you can reach the recovery environment, then choose Troubleshoot > Reset this PC.7
- Keep my files reinstalls Windows and removes apps and settings, but keeps your personal files.7
- Remove everything also deletes your personal files.7
You can choose Cloud download or Local reinstall to get Windows. The screen can stay black for more than 15 minutes during the reset, so don't turn the PC off.7 Our guide to factory resetting a Windows PC or Mac covers the process in more detail.
You may need your BitLocker key
If your PC's drive is encrypted, you need the BitLocker recovery key to reset it from the recovery environment.7 The 48-digit key is often saved to the Microsoft account that set up the PC. Without it, Microsoft cannot recover the key, and resetting removes all your files.8 See our guide on how to find your BitLocker recovery key.
How to avoid getting locked out again
Once you're back in, add a backup email address and phone number to your Microsoft account so a reset code can always reach you.4 For a local account, it's worth making a password reset disk on a USB stick.9 A password manager can also remember long passwords for you, and our guide on how to create a strong password has tips for ones you'll remember.
When to get help
If the recovery form fails more than once, or you think someone else changed your password, treat it as a possible hacked account and follow our guide on what to do if your account is hacked. For a work laptop, contact your IT team before trying anything else, as resetting a managed PC can break access to work systems.6 A local repair shop can help with a home PC, but don't hand over your passwords.
Common questions
Is my PIN the same as my password?
No. They are separate, and Windows lets you reset each one on its own. If you've forgotten the PIN but know the password, choose the password option under Sign-in options, sign in, then set a new PIN in Settings.2
Can I reset my Microsoft password from my phone?
Yes. Because a Microsoft account password is stored online, you can reset it from Microsoft's Reset password page on any device with a browser, then use the new password on your PC.3,4
