How to Keep Num Lock On at Startup in Windows 11

To keep Num Lock on when Windows 11 starts, turn off Fast Startup first, then set the InitialKeyboardIndicators registry value to 2, the value widely used for Num Lock on, under HKEY_USERS\.DEFAULT\Control Panel\Keyboard (for the sign-in screen) and HKEY_CURRENT_USER\Control Panel\Keyboard (for your account). If it still comes up off, look for a Num Lock option in the PC’s BIOS or UEFI setup.

Every time the PC starts you type a PIN on the number pad and nothing happens, because Num Lock came up off again.

Why Num Lock Turns Off When Windows 11 Starts

Three different things decide the Num Lock state at startup, and any one of them can switch it off:

  • The firmware (BIOS or UEFI) sets the keyboard light when the PC powers on, before Windows loads.
  • Windows’ sign-in screen applies its own keyboard setting, stored in a registry area for the default profile (HKEY_USERS\.DEFAULT). That screen is where you type your PIN.
  • Your own account applies a setting stored in your profile (HKEY_CURRENT_USER) once you’re signed in.

Fast Startup complicates this. With Fast Startup on, a shutdown saves part of Windows to disk and resumes it next time, so Windows may restore the keyboard state from that saved session instead of reading your settings fresh. That’s why the fixes below start with Fast Startup and work toward the more involved changes. Try them in order and test after each one.

Quick Checks Before You Change Anything

  1. Find the Num Lock key and its light. On a full desktop keyboard it sits above the 7 on the number pad. Press it at the sign-in screen and watch for the light (some keyboards have no light, and some laptops show an on-screen indicator instead).
  2. Check for an Fn combination on a laptop. Many laptops put Num Lock on a shared key, labeled NumLk or Num, that works only while you hold Fn. The exact key depends on the model, so check the key labels or the manufacturer’s manual.
  3. Test a restart against a shutdown. Turn Num Lock on, then choose Restart. If Num Lock survives a restart but not a Shut down, Fast Startup is the likely cause, because it normally applies to Shut down and not to Restart.

If the number keys don’t type anything even with the light on, the problem may be the keyboard itself rather than Num Lock. Work through troubleshooting keyboard problems in Windows 11 first.

Turn Off Fast Startup First

Fast Startup is a power setting in Control Panel, and the labels may differ slightly on your PC. You’ll need administrator rights.

  1. Press Windows key + R, type powercfg.cpl and press Enter to open Power Options.
  2. Click Choose what the power buttons do in the left column.
  3. Click Change settings that are currently unavailable and approve the prompt if asked.
  4. Under Shutdown settings, clear Turn on fast startup (recommended).
  5. Click Save changes.
Power Options with Turn on fast startup unchecked
Classic Windows Power Options with fast startup unchecked. (Recreated interface)

If the checkbox is missing, hibernation may be turned off on the PC, which also removes Fast Startup. More detail, including what you give up, is in disabling Fast Startup in Windows 11. Now turn Num Lock on, shut down fully, start up again and check the sign-in screen. If the light stays on, you’re finished. If not, continue to the registry.

Back Up the Registry Keys Before You Edit

The next two fixes change the registry, the database Windows uses for settings. A wrong edit in the wrong place can cause problems, so export the keys first. Microsoft’s back up and restore the registry article describes the method:

  1. Click Start, type regedit.exe and press Enter. Approve the administrator prompt. (Other ways to start it are in opening Registry Editor in Windows 11.)
  2. Select the key HKEY_USERS\.DEFAULT\Control Panel\Keyboard in the left pane. You can paste the path into the address bar under the menu and press Enter.
  3. Click File > Export, choose a location such as your Documents folder, type a name like numlock-default and click Save.
  4. Repeat for HKEY_CURRENT_USER\Control Panel\Keyboard, saving it under a different name.

Set Num Lock On for the Sign-In Screen

This is the change that matters most for typing a PIN, because the sign-in screen reads the default profile, not yours.

  1. In Registry Editor, go to HKEY_USERS\.DEFAULT\Control Panel\Keyboard.
  2. In the right pane, double-click InitialKeyboardIndicators.
  3. Note the current Value data (write it down so you can put it back), then change it to 2 and click OK.
Edit String dialog with InitialKeyboardIndicators set to 2
Registry Editor dialog. The example value is 2. (Recreated interface)

About the value: 2 is the setting most how-tos and community answers give for Num Lock on. No Microsoft reference page documents this value, so treat it as well established rather than official. Some guides use 2147483650 instead. If 2 doesn’t hold after you’ve turned off Fast Startup and set the value below as well, you can try that value as an experiment, keeping your backup handy.

Set the Same Value for Your Own Account

The sign-in screen setting may not carry into your session. To keep Num Lock on after you sign in as well:

  1. Go to HKEY_CURRENT_USER\Control Panel\Keyboard.
  2. Double-click InitialKeyboardIndicators, note the old data, set it to 2 and click OK.
  3. Close Registry Editor, turn Num Lock on, and choose Shut down (not Restart). Start the PC and check the light at the sign-in screen and again after you sign in.

If other people use the PC, each account has its own HKEY_CURRENT_USER copy. They’d make the same change while signed in to their own account. A worked example: a shared family PC where the sign-in screen now starts with Num Lock on, but one account turns it off after sign-in, simply needs that account’s value set to 2 as well.

Turn On Num Lock in the BIOS or UEFI

If the light is off even before Windows appears, the firmware is switching it off. Many desktop boards have a setting for this; many laptops don’t. Names vary by maker, with labels along the lines of Boot Up NumLock State or NumLock on boot, often on a Boot or Advanced page.

  1. Open the firmware setup. In Windows 11 you can go through Settings > System > Recovery > Advanced startup, as covered in entering BIOS or UEFI on Windows 11, or press the maker’s setup key while the PC starts.
  2. Look for a NumLock setting and set it to On or Enabled.
Older Dell BIOS Numlock Enable setting checked
Older Dell firmware interface. Setting names and locations vary by PC. (Recreated interface)
  1. Save and exit using the option shown on screen. Change nothing else you came across.

Your PC maker’s support site or manual is the reliable source for the exact label and the save key on your model.

If Num Lock Still Turns Off at the PIN Screen

  • Check you edited .DEFAULT, not a similar key. HKEY_USERS also holds folders with long S-1-5 names for individual accounts. The sign-in screen uses .DEFAULT.
  • Confirm Fast Startup really is off and test with a full Shut down. A restart doesn’t test the Fast Startup path.
  • Check for a managed PC. On a work or school PC, organization policies may reset keyboard settings at sign-in. Ask IT before editing the registry.
  • Try a different keyboard. A wireless keyboard that connects late in startup may miss the setting. If a wired keyboard keeps Num Lock on and the wireless one doesn’t, that points to the keyboard or its receiver.
  • Shut down from the sign-in screen: some people find that turning Num Lock on at the sign-in screen and shutting down from there, without signing in, makes it stick. It isn’t a documented fix, but it’s harmless to try.

Startup scripts and third-party keyboard utilities that press Num Lock for you exist, but they work around the problem rather than fix it and need extra software or code running at every sign-in. Try everything above first.

Use the On-Screen Keyboard’s Number Pad as a Fallback

On a compact laptop with no number pad, or while you sort this out, Windows’ On-Screen Keyboard can show one. Microsoft’s On-Screen Keyboard page says to select Options and then Turn on numeric keypad to expand the keyboard. With the numeric keypad turned on, the On-Screen Keyboard shows its own NumLock key on most versions. At the sign-in screen, Microsoft says to select the Accessibility button in the lower-right corner and choose On-Screen Keyboard; for other ways to start it, see turning on the On-Screen Keyboard.

Undo the Changes

  1. Registry: open Registry Editor, click File > Import, choose the .reg file you exported and click Open. You can also double-click InitialKeyboardIndicators and type back the value you wrote down.
  2. Fast Startup: return to Choose what the power buttons do, click Change settings that are currently unavailable, check Turn on fast startup (recommended) and click Save changes.
  3. Firmware: set the NumLock option back, or use the setup screen’s option to load defaults if you’re unsure what you changed.

Num Lock Questions

Does turning off Fast Startup slow down my PC?

Cold starts can take a little longer; how much depends on the PC and its drive. Restarts normally aren’t affected.

Will a Windows update undo the fix?

It may. If Num Lock starts coming up off after a large update, check Fast Startup and the .DEFAULT value again.

Can I use a password instead of a PIN to avoid this?

You can, and the top row of number keys works for a PIN no matter what Num Lock is doing. The number row is a reliable workaround on any keyboard while you test the fixes above.

Why does Num Lock work on my desktop keyboard but not on my laptop’s built-in keys?

On laptops that overlay a number pad on letter keys, Num Lock turns those letters into numbers. Leaving it on permanently would make some letter keys type numbers instead, so on that kind of laptop it’s usually better to leave Num Lock off at startup and use the number row.

After your next full shutdown and cold start, glance at the Num Lock light before you type your PIN: if it’s on, the fix has stuck.