Pressing Alt + F4 on the desktop is the fastest keyboard shortcut to turn off your computer, and it works on Windows 10 and 11. This opens the shutdown dialog directly, letting you choose to shut down, restart, or sleep without navigating menus. No special tools or apps are needed—this shortcut is built into the operating system and works whether you're logged in or at the lock screen. It’s the most reliable method for users who want to power down without using the Start menu or mouse.

What You'll Need

  • A Windows 10 or Windows 11 computer
  • A keyboard with an Alt key and F4 key
  • At least 10 seconds of idle time to allow the system to close programs cleanly

Step-by-Step

  1. Ensure all open applications are saved and ready to close. The shortcut will attempt to close all running programs, and unsaved work may be lost if you don’t save first.
  2. Click anywhere on the desktop background to make sure no window is active and focused. If a program like Chrome, Word, or File Explorer is in focus, Alt + F4 will close that program instead of opening the shutdown menu.
  3. Press and hold the Alt key on your keyboard. Do not release it yet.
  4. While holding Alt, press the F4 key once. Do not press it multiple times.
  5. A dialog box titled "Shut Down Windows" will appear. It will show three options: Shut down, Restart, and Sleep. The default selection is usually "Shut down".
  6. Press Enter to confirm and turn off the computer. Alternatively, use the arrow keys to select a different option and then press Enter.
  7. Wait for the screen to go black and the fans to stop. Do not press any keys or move the mouse during this process—interrupting the shutdown can cause file corruption.

Common Mistakes

  • Pressing Alt + F4 while a program window is active, which closes that program instead of opening the shutdown menu. Always click the desktop first.
  • Using Alt + F4 too quickly after opening an app or switching windows. The system needs a moment to recognize the desktop as the active surface.
  • Pressing F4 without holding Alt, which may open the address bar in File Explorer or trigger other shortcuts depending on the active window.
  • Trying to use this shortcut on a Mac, Chromebook, or Linux machine—it only works on Windows.
  • Assuming it forces a shutdown. It doesn’t. If a program refuses to close (e.g., a frozen app), the system will prompt you to wait or end the task manually.

Tips

  • If you frequently shut down your computer, consider pinning the shutdown option to your taskbar or creating a desktop shortcut with the command shutdown /s /t 0 for one-click access.
  • Use Alt + F4 + Enter to shut down in one motion once you’re familiar with the workflow. This saves time and reduces unnecessary mouse movement.
  • If your keyboard has a Windows key, you can also press Win + X and then U, then U again to shut down. But Alt + F4 is faster and requires fewer key presses.
  • For users with accessibility needs, this shortcut is often easier than navigating the Start menu with a screen reader or joystick.
  • Always wait for the full shutdown sequence to complete. Even if the screen turns black, the hard drive may still be writing data—wait until the power light stops blinking or the fan noise ends.
  • Never use Alt + F4 during an update. Windows will block shutdown if critical updates are installing. Wait for the update to finish, or restart manually if needed.

Troubleshooting

  • The shutdown dialog doesn’t appear when I press Alt + F4. Make sure you’re on the desktop. Click the empty space on your desktop and try again. If you’re at the lock screen, press Ctrl + Alt + Delete, then click Power and select Shut down.
  • A program won’t close and the shutdown is stuck. Wait up to 30 seconds. If it doesn’t proceed, press Ctrl + Shift + Esc to open Task Manager, find the unresponsive app, right-click it, and select End task. Then try Alt + F4 again.
  • My computer restarts instead of shutting down. Check if Fast Startup is enabled. Go to Settings > System > Power & sleep > Additional power settings > Choose what the power buttons do > Change settings that are currently unavailable. Uncheck "Turn on fast startup" and save. This setting sometimes causes unexpected restarts.
  • Alt + F4 opens a different menu. You may have pressed F4 without holding Alt, or the active window is a browser or File Explorer. Click the desktop again and try once more.
  • The computer doesn’t turn off at all. Hold the physical power button for 10 seconds to force shutdown. This should be a last resort—only use it if the system is completely frozen and unresponsive.
  • I get an error saying "Windows could not shut down properly." Run the built-in troubleshooter: Settings > System > Troubleshoot > Other troubleshooters > Power. Run it and follow any suggested fixes. Also check for pending Windows updates.

Frequently Asked Questions

Can I use Alt + F4 to shut down my laptop while it’s on battery?

Yes. The shortcut works the same whether on battery or plugged in. The system will shut down normally unless a low battery warning is active, in which case it may delay shutdown to preserve data.

Does this shortcut work on Windows 7?

Yes. Alt + F4 works identically on Windows 7, 8, 10, and 11. The shutdown dialog may look slightly different, but the function is unchanged.

Why does my computer turn on again after I shut it down with Alt + F4?

This is usually caused by Wake-on-LAN settings, scheduled updates, or peripherals like a mouse or keyboard sending wake signals. Go to Device Manager > Network adapters > Properties > Power Management and uncheck "Allow this device to wake the computer" for each adapter. Repeat for USB controllers and keyboards.

Can I use this shortcut on a touchscreen tablet?

No. Touchscreen Windows tablets without a physical keyboard cannot trigger Alt + F4. Use the Start menu or the on-screen power button in the Settings app instead.

Is it safe to use Alt + F4 every time I turn off my computer?

Yes. It is a standard, supported Windows command that follows the same shutdown sequence as clicking Start > Power > Shut down. It is not a force shutdown and does not bypass safety protocols.

What if I accidentally press Alt + F4 and close a program?

If you close a program by accident, just reopen it and restore your work. To prevent this, always click the desktop before using the shortcut. You can also press Ctrl + Alt + Delete and select Shut down as a safer alternative if you’re unsure which window is active.