The fastest keyboard shortcut to turn off your PC

The quickest way to shut down your PC with the keyboard is Alt + F4. Press and hold Alt, then tap F4. A shutdown dialog box will appear on your screen asking whether you want to shut down, restart, or put the computer to sleep. Use the arrow keys to select "Shut down" and press Enter.

This method works on Windows 10 and Windows 11. The dialog appears within a second or two, and the shutdown begins when ready after you confirm. If you have unsaved work, Windows will prompt you to save before closing each program.

Alt + F4 is reliable because it works from almost anywhere on your desktop — you do not need to navigate to a menu first. It also works if your mouse is not responding, which makes it useful when your PC is acting up.

Key Takeaways

  • Alt + F4 opens the shutdown dialog when ready and works from your desktop without opening any menus.
  • Windows + X followed by U then S is an alternative that takes slightly longer but works the same way.
  • The command prompt method (typing "shutdown /s /t 0") shuts down when ready with no confirmation dialog.
  • If your keyboard is not responding, restart your PC in Safe Mode first to diagnose the problem before attempting shutdown.

Using the Windows menu with keyboard navigation

If Alt + F4 does not work or you prefer a different route, you can reach the shutdown menu through the Start menu. Press the Windows key (the key with the Windows logo) to open the Start menu, then press the arrow keys to navigate to the power icon in the bottom left corner.

Once you reach the power icon, press Enter. A small menu appears with options for Sleep, Shut down, and Restart. Use the arrow keys to highlight "Shut down" and press Enter again. This method takes a few more seconds than Alt + F4 but works just as reliably.

On Windows 11, you can also press Windows + X to open a quick menu, then press U to select the power options, and S to select Shut down. This combination is faster than navigating the full Start menu.

Shutting down when ready without a confirmation dialog

If you want to bypass the confirmation dialog entirely, you can use the command prompt. Press Windows + R to open the Run dialog, type shutdown /s /t 0, and press Enter. Your PC will begin shutting down when ready with no additional prompts.

The "/s" tells Windows to shut down, and the "/t 0" sets the timeout to zero seconds — meaning no delay. This method is useful if you are in a hurry, but use it carefully because it does not give you a chance to save unsaved work. Windows will close programs without asking.

If you want a shutdown delay instead — for example, to give yourself time to save files — you can replace the 0 with a number of seconds. For instance, shutdown /s /t 60 will shut down after 60 seconds.

What to do if your keyboard shortcuts are not working

If Alt + F4 or Windows + X do not respond, your keyboard driver may need attention or a program may be blocking the shortcut. First, try unplugging and reconnecting your keyboard, or if it is wireless, check that the batteries are not dead and the connection is active.

If the keyboard still does not respond, restart your PC in Safe Mode to see whether the problem is a driver issue or a program conflict. To enter Safe Mode using only the keyboard, restart your computer and repeatedly press F8 or F12 (depending on your PC model) before the Windows logo appears. Select "Safe Mode" from the menu that appears.

In Safe Mode, try Alt + F4 again. If it works there, the problem is likely a third-party program or driver. If it still does not work, your keyboard hardware may need replacement. You can also use an on-screen keyboard in Safe Mode by pressing Windows + U, then selecting "Ease of Access" and "On-Screen Keyboard."

Restarting instead of shutting down

If you need to restart rather than shut down, the keyboard shortcuts are nearly identical. Press Alt + F4 and select "Restart" instead of "Shut down" from the dialog. You can also use Windows + X, then U, then R to restart directly.

For an when ready restart with no confirmation, open the Run dialog with Windows + R, type shutdown /r /t 0, and press Enter. The "/r" tells Windows to restart instead of shut down. This is useful when you need to explore updates or troubleshoot a problem that requires a fresh start.

Putting your PC to sleep with the keyboard

If you want to put your PC to sleep instead of shutting it down completely, press Alt + F4 and select "Sleep" from the dialog. Sleep mode uses far less power than running normally but wakes up faster than a full shutdown and restart.

You can also press Windows + X, then U, then I to go to sleep directly. Sleep is useful when you plan to return to your PC within a few hours and want to avoid the startup time of a full shutdown.

Frequently Asked Questions

Why does Alt + F4 close my current window instead of shutting down?

Alt + F4 closes whatever window or program is currently active. If you have a document or browser window open, it will close that first. Click on an empty area of your desktop to deselect any open windows, then try Alt + F4 again. The shutdown dialog should appear.

Can I cancel a shutdown after I have started it?

Yes. If you used the command prompt method with a delay (for example, "shutdown /s /t 60"), you can cancel it by opening the Run dialog with Windows + R, typing shutdown /a, and pressing Enter. If you used Alt + F4 and have not confirmed yet, straightforward press Escape to close the dialog.

What is the difference between shutdown and restart?

Shutdown turns off your PC completely. Restart shuts down and then automatically powers back on. Use restart when explore updates or troubleshooting problems. Use shutdown when you are done for the day or need to replace hardware.

Does my PC need to save files before it shuts down?

Windows will prompt each open program to save unsaved work before closing. If you have unsaved files in a document or spreadsheet, you will see a dialog asking whether to save. If you use the when ready command prompt method, programs close without asking, so save your work first.

Will keyboard shortcuts work if my PC is frozen?

If your PC is completely frozen and not responding to keyboard input, keyboard shortcuts will not work. In that case, hold down the power button on your PC for 10 seconds until it powers off completely. This is a hard shutdown and should be a last resort, as it can cause data loss.