A Windows Hello PIN is meant to make signing in quicker, so it's alarming when the sign-in screen suddenly says "Something happened and your PIN isn't available", or your PIN is simply rejected. In most cases your files are fine and the PC is fine; it's the PIN set-up that has broken, and you can get back in with your password and create a new one. The steps come from Microsoft's own support pages, plus advice from a Microsoft support moderator, all credited below.
Work through the fixes in order. The first ones are quick and don't change anything on your PC.
Before you start: check the simple things
Microsoft suggests a couple of quick checks before you reset anything:
Make sure you're typing the right digits. A PIN is numbers-only by default, but it can include letters and symbols if you turned that option on when you set it up. If you use a keyboard's number pad, check Num Lock is on. If letters or symbols come out wrong, see our guide to fixing a keyboard typing the wrong characters.
Check you're signing in to the right account. If the PC has several users, pick the right one in the bottom-left corner of the sign-in screen.
Check the keyboard is actually working. A wireless keyboard with a flat battery or a lost connection can look like a PIN problem. Our guide to fixing a wireless keyboard and mouse covers that.
Also note that your PIN and your account password are different things. Microsoft points out that the PIN is tied to one device, so different PCs can have different PINs, and the PIN isn't your Microsoft account password.
Fix 1: Sign in with your password instead
You don't need the PIN to get into Windows. On the sign-in screen, select Sign-in options and choose the password (key) option, then sign in with your account password. Microsoft's PIN help page gives this route for local accounts: select Sign-in options, then Enter your password.
If you use a Microsoft account (an Outlook, Hotmail or Live email address), that's the Microsoft account password. If the PC uses a local account, it's the password you set when you created that account. Our local account vs Microsoft account explainer covers the difference if you're not sure which you have.
If you've forgotten the password too, Microsoft lists three ways to reset a Microsoft account password: select I forgot my password on the sign-in screen, use Sign-in options > Web sign-in and then Forgot my password, or reset it from any browser on another device. Resetting a Microsoft account password needs the PC to be online, so if the sign-in screen says you're offline, plug in an Ethernet cable or use the network icon on the sign-in screen to connect to Wi-Fi.
Fix 2: Use "I forgot my PIN" to create a new PIN
Once you can sign in, the cleanest fix is to set the PIN up again.
If you're at the sign-in screen with a Microsoft account: look under the PIN box. Microsoft says that if I forgot my PIN is there, you can select it and follow the instructions. That option is only available for Microsoft accounts, not local accounts.
If you're already signed in: open Settings, go to Accounts > Sign-in options, and select PIN (Windows Hello). To change a PIN you remember, choose Change PIN; Microsoft notes you have to enter the old PIN first. If you've forgotten it or it no longer works, select I forgot my PIN and follow the steps to verify your account and create a new one.
Restart the PC and try signing in with the new PIN. For many people, that's the end of it.
Fix 3: Clear the damaged PIN data from safe mode
If Windows won't let you set a new PIN, or the "PIN isn't available" message keeps coming back, the PIN data stored on the PC may be damaged. Answering a Microsoft Q&A question about this exact message, a Microsoft support moderator said it "usually means the Windows Hello PIN data became corrupted during the update", and that "the most effective fix is to remove the old PIN configuration and set up a new one". Their steps were:
On the sign-in screen, hold Shift while you select Power > Restart.
On the Choose an option screen, select Troubleshoot > Advanced options > Startup Settings > Restart.
When the list of options appears, press 4 or F4 for safe mode, or 5 or F5 for Safe Mode with Networking if you need the internet.
Sign in with your password, not the PIN.
Open File Explorer and go to C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\NGC, then delete everything inside the NGC folder.
Restart normally, sign in with your password, and set up a new PIN under Settings > Accounts > Sign-in options.
A few cautions. This deletes the Windows Hello data on this PC, so you'll need to set up your PIN again, and possibly face or fingerprint sign-in too if you use them. Delete only the contents of that one folder and nothing else in the path. At least one person in the same Q&A thread said Windows wouldn't give them access to the NGC folder, so be prepared for that. If you're not comfortable changing protected folders, skip to the next fixes instead.
If your drive is encrypted with BitLocker or device encryption, Microsoft says you'll need your BitLocker key to get into Startup Settings this way. Our guide to finding your BitLocker recovery key explains where it's usually stored. For more on what safe mode does, see safe mode vs clean boot.
Fix 4: If it started after an update, undo or repair it
If the PIN stopped working straight after a Windows update and you can sign in with your password, try these in order:
Fix 5: Reset Windows as a last resort
If you can't sign in at all, by PIN or password, and none of the above works, the last option is to reset Windows. From the sign-in screen, hold Shift and select Power > Restart, then choose Troubleshoot > Reset this PC. Microsoft's recovery options let you keep your personal files or remove everything, but apps and settings are removed either way, so it's genuinely a last resort. Our guide to resetting Windows 11 walks through the choices.
How to stop it happening again
Know your account password. The PIN is a convenience, and the password is your way back in. Write it down somewhere safe, or keep it in a password manager.
Keep your BitLocker recovery key somewhere you can reach from another device. You'll need it for most recovery tools if the drive is encrypted.
Consider a second sign-in method. Setting up Windows Hello face or fingerprint sign-in as well as a PIN gives you another way in. Our Windows Hello PIN vs password explainer covers how the two compare.