How to shut down a laptop with keys: Windows and Mac shortcuts

On Windows press Windows+D, then Alt+F4 and choose Shut down. On a Mac press Control-Option-Command-Power, or Control-F2 on Touch ID MacBooks.

Read time
11 min
Word count
1.7K
Sections
7
FAQs
8
Share
Hands typing on a laptop on a wooden desk beside a keyboard, notebook and mug, under the words Shut down with your keyboard
On this page · 7 sections
  1. Shutdown shortcuts at a glance
  2. How to shut down a Windows laptop with keys
  3. How to shut down a Mac with keys (macOS 27)
  4. Laptop won't shut down? Common fixes
  5. For IT teams: shutdown controls and scripting
  6. How eCorpIT can help
  7. References

Summary. On a Windows 11 laptop, press Windows logo key + D to bring the desktop forward, press Alt + F4, check that Shut down is selected in the prompt and press Enter. Microsoft's shortcut list, dated 2 September 2026, says Alt + F4 closes the active window and, when no windows are open, prompts you to shut down. Windows logo key + X, then Shut down or sign out > Shut down, does the same from the Quick Link menu, and shutdown /s /t 0 in the Run box shuts down at once instead of after the default 30 seconds. On a Mac, Control-Option-Command-Power quits all apps and shuts down, but Apple lists it and the other four Power-button combinations only for built-in keyboards without Touch ID. On a MacBook with Touch ID, press Control-F2 to move focus to the menu bar, open the Apple menu and choose Shut Down. Holding the power button forces a frozen laptop off, at the cost of unsaved work. On a work laptop, a missing Shut down option is usually a policy setting, not a fault.

About this article. For anyone who wants to turn off a Windows or Mac laptop without the mouse or trackpad, and for the IT teams who support them. Every step was checked on 15 November 2026 against Microsoft Support and Microsoft Learn (Windows 11 versions 24H2, 25H2 and 26H2) and Apple Support, including the Mac User Guide for macOS 27 Golden Gate. Labels can differ slightly by build and keyboard layout. No vendor paid for inclusion. Researched with AI assistance and reviewed by our editorial team.

Shutdown shortcuts at a glance

The table sums up each route from Microsoft's shortcut list and command reference and Apple's shortcut page.

Platform Keys What happens
Windows 11 Windows logo key + D, then Alt + F4 Shutdown prompt; choose Shut down and press Enter
Windows 11 Alt + F4 inside an app Closes that app's window only
Windows 11 Windows logo key + X, then Shut down or sign out > Shut down Quick Link menu route
Windows 11 Windows logo key + R, then shutdown /s /t 0 Shuts down with no delay
Mac without Touch ID Control-Option-Command-Power Quits all apps, then shuts down; asks about unsaved documents
Mac without Touch ID Control-Power Asks whether to restart, sleep or shut down
Mac without Touch ID Control-Command-Power Forces a restart without asking to save
Any Mac Control-F2, then Apple menu > Shut Down Menu bar route; works with Touch ID
Any Mac Hold Option while choosing Shut Down Skips the confirmation dialogue
Any laptop Press and hold the power button Forces it off; unsaved work can be lost

How to shut down a Windows laptop with keys

These steps apply to all current Windows 11 releases, which on 15 November 2026 were versions 24H2, 25H2 and 26H2 (released 29 September 2026), plus 26H1 on some new devices only. Microsoft's shortcut list also covers Windows 10 with the same keys, although Windows 10 Home and Pro support ended on 14 October 2025. For other everyday keyboard tasks, see our guides to zooming in and out on a laptop and taking a screenshot on a laptop.

Method 1: Windows logo key + D, then Alt + F4

  1. Save your work.
  1. Press Windows logo key + D to show the desktop. Alt + F4 acts on the active window, so inside a browser it closes the browser instead.
  1. Press Alt + F4. With the desktop in front, Windows shows its shutdown prompt, as Microsoft describes for when no windows are open.
  1. If the drop-down list doesn't already show Shut down, choose it with the arrow keys, then press Enter.

If Alt + F4 changes the volume or brightness, the top row is set to media keys. On many keyboards, Microsoft's Surface Keyboard included, those keys act as F1 to F12 only with Fn, which can also lock them into function mode.

Method 2: Windows logo key + X

  1. Press Windows logo key + X to open the Quick Link menu, the same menu you get by right-clicking Start.
  1. Use the arrow keys to select Shut down or sign out, then press the Right arrow to open the submenu.
  1. Select Shut down and press Enter.

The submenu also shows Hibernate once you turn it on in Control Panel under System and Security > Choose what the power buttons do > Change settings that are currently unavailable. Microsoft notes that some PCs, such as those with InstantGo, have no hibernate option.

Method 3: the shutdown command

  1. Press Windows logo key + R to open Run.
  1. Type shutdown /s /t 0 and press Enter.

In Microsoft's command reference, /s shuts down and /t sets the delay in seconds, from 0 to 315,360,000 (10 years) with a default of 30. Any delay above 0 implies /f, which closes running apps without warning and can lose unsaved data. shutdown /a, run in a new Command Prompt window during the countdown, cancels it; /r restarts, and /h hibernates if hibernation is turned on.

When an app freezes: Ctrl + Alt + Del

Ctrl + Alt + Del opens the security screen, where you can lock, switch user, sign out, change a password or open Task Manager; Ctrl + Shift + Esc opens Task Manager directly. End the stuck app, then shut down normally. When updates are waiting, the Start menu's power entry reads Update and shut down in place of Shut down.

How to shut down a Mac with keys (macOS 27)

The current Mac release is macOS Golden Gate 27, released on 14 September 2026; its latest update on 15 November 2026 was 27.2.1, from 9 November. Apple's Mac keyboard shortcuts page (US edition dated 14 September 2026) lists the combinations below and notes that some need holding slightly longer than other shortcuts, so you don't trigger them by accident.

Check for Touch ID first

On a keyboard with Touch ID, a single press of the power button locks the screen, and Apple lists its Power-key shutdown shortcuts only for built-in keyboards without Touch ID. Not every current MacBook has the sensor: Apple sells one MacBook Neo model with a plain Magic Keyboard and another with Touch ID.

Macs without Touch ID: the Power-key shortcuts

  • Control-Option-Command-Power button: quits all apps, then shuts down. If open documents have unsaved changes, macOS asks whether to save them.
  • Control-Power button: asks whether to restart, sleep or shut down.
  • Control-Command-Power button: forces a restart without asking to save open documents. Use it only when nothing else responds.
  • Option-Command-Power button, or holding the power button for 1.5 seconds: puts the Mac to sleep.
  • Control-Shift-Power button: puts the displays to sleep.

Apple qualifies all five for built-in keyboards without Touch ID.

MacBooks with Touch ID: the Control-F2 route

  1. Press Control-F2, or Fn-Control-F2 if your top row is set to brightness and media keys. Keyboard focus moves to the menu bar.
  1. Use the arrow keys to select the Apple menu, then press Return to open it.
  1. Select Shut Down with the arrow keys, or type its name to jump to it, then press Return.
  1. To skip the confirmation dialogue, hold Option as you choose Shut Down.

If Control-F2 does nothing, open System Settings > Keyboard, click Keyboard Shortcuts, select Keyboard on the left and turn on the menu bar focus shortcut; Apple says some focus shortcuts must be enabled there first.

In the shutdown dialogue you can deselect Reopen windows when logging back in for a clean start. Apple says a Mac is fully off when the screen is black; on a Mac laptop, wait for that before closing the display, because closing it mid-shutdown may stop a proper shutdown and slow the next startup.

Laptop won't shut down? Common fixes

  • Alt + F4 only closes windows. Press Windows logo key + D first so the desktop is active.
  • An app blocks shutdown. Save and close it, or end it in Task Manager on Windows or with Option-Command-Esc (Force Quit) on a Mac.
  • The Mac Power-key shortcuts do nothing. If your keyboard has Touch ID, Apple doesn't list those shortcuts for it; use Control-F2 and the Apple menu.
  • The whole laptop is frozen. Press and hold the power button. Apple says this forces a Mac off and may lose unsaved changes. For current Surface laptops, Microsoft says to hold it for about 20 seconds, until the device shuts down and restarts to the Windows logo; other makers' timings differ.
  • No Shut down option on a work laptop. Your IT team may have hidden it by policy; ask before forcing the laptop off.

For IT teams: shutdown controls and scripting

  • User right. Windows controls who can shut down through the Shut down the system user right (SeShutdownPrivilege), under Local Policies > User Rights Assignment in Security Settings. On client computers the effective default is Administrators, Backup Operators and Users. The same right is needed to cancel a shutdown and change power management settings.
  • Hiding power options. The Start Policy CSP settings Start/HidePowerButton, Start/HideShutDown, Start/HideRestart, Start/HideSleep and Start/HideHibernate hide those entries from the Start menu's power button on Pro, Enterprise, Education and IoT Enterprise editions, from Windows 10, version 1703. HidePowerButton needs a reboot to take effect. Hiding a button leaves the user right in place, so test both together on shared or kiosk devices.
  • Scheduled and remote shutdowns. The command below gives 10 minutes' warning (600 seconds) and logs reason p:0:0, which Microsoft defines as Other (Planned), in Shutdown Event Tracker. Because the delay is above 0, /f is implied, so apps still open when the timer ends close without saving. Add /m \\computername to target a remote PC; comments can run to 512 characters.

            shutdown /s /t 600 /d p:0:0 /c "Scheduled maintenance"
          
  • Macs. Put the Control-F2 route in onboarding notes for Touch ID fleets; the Power-key shortcuts still apply to the MacBook Neo model sold without Touch ID. For other housekeeping, see our guide to deleting temp files on a laptop.

How eCorpIT can help

eCorpIT is a Gurugram-based technology organisation, founded in 2021, assessed at CMMI Level 5 and MSME certified, with senior-led engineering teams working across AWS, Microsoft and Google platforms. Our digital transformation services team can help you set consistent power, update and shutdown policies across Windows and Mac fleets. Talk to us at /contact-us/.

Last updated: 15 November 2026.

References

  1. Keyboard shortcuts in Windows, updated 2 September 2026 — Microsoft Support
  1. shutdown (Windows commands) — Microsoft Learn
  1. Mac keyboard shortcuts, published 14 September 2026 — Apple Support
  1. Shut down or restart your Mac, Mac User Guide for macOS 27 — Apple Support
  1. Start Policy CSP — Microsoft Learn
  1. Windows 11 release information — Microsoft Learn
  1. Windows 10 Home and Pro, Microsoft Lifecycle — Microsoft Learn
  1. Use the special keys on Surface Keyboard — Microsoft Support
  1. Shut down, sleep, or hibernate your PC — Microsoft Support
  1. Apple security releases — Apple Support
  1. MacBook Neo, Technical Specifications — Apple
  1. Force a shutdown and restart your Surface — Microsoft Support
  1. Shut down the system, security policy setting — Microsoft Learn

Frequently asked

Quick answers.

01 What is the shortcut key to shut down a laptop?
On Windows, press Windows logo key + D, then Alt + F4, check that Shut down is selected and press Enter. On a Mac without Touch ID, press Control-Option-Command-Power. On a MacBook with Touch ID, press Control-F2, open the Apple menu with Return and choose Shut Down. Holding Option skips the Mac's confirmation dialogue.
02 How do I shut down a Mac with the keyboard?
Without Touch ID, press Control-Option-Command-Power to quit apps and shut down, or Control-Power for a dialogue offering restart, sleep or shut down. With Touch ID, press Control-F2 or Fn-Control-F2, select the Apple menu with the arrow keys, press Return, choose Shut Down and press Return again.
03 Does Alt + F4 shut down the computer?
Only when no app window is active. Microsoft says Alt + F4 closes the active window and, if no windows are open, prompts you to shut down. Press Windows logo key + D first to show the desktop, then Alt + F4, choose Shut down and press Enter. Inside an app it just closes that app.
04 How do I force shut down a frozen laptop?
Press and hold the power button. Apple documents this for Macs and warns that unsaved changes may be lost. Microsoft tells owners of current Surface models to hold it for about 20 seconds until the device restarts. First try Ctrl + Shift + Esc on Windows or Option-Command-Esc on a Mac to close only the stuck app.
05 What is the shutdown command in Windows?
Press Windows logo key + R, type shutdown /s /t 0 and press Enter to shut down with no delay. Use shutdown /r to restart, or shutdown /h to hibernate if hibernation is turned on. Without /t the delay is 30 seconds, and any delay above 0 also forces open apps to close without warning.
06 Can I cancel a shutdown after running the command?
Yes, if you set a delay. Open a new Command Prompt window and run shutdown /a before the countdown ends. With a delay of 0 there is no countdown to stop. Because any delay above 0 implies forced closing of apps, save your work before the timer runs out, even if you plan to cancel.
07 Why can't I see a Shut down option on my work laptop?
Your organisation may have hidden it. Administrators can apply Start policy settings such as HideShutDown or HidePowerButton, or limit who holds the Shut down the system user right. These keep shared and kiosk devices running. Ask your IT team before holding the power button, since a forced shutdown can lose unsaved work.
08 Is it better to shut down or sleep a laptop?
Microsoft says sleep uses very little power, resumes faster and saves your work, turning the PC off if the battery runs too low, so it suits short breaks. Hibernate uses less power and suits long spells away from a charger. Shut down fully when you need the laptop off, and Apple says always before installing memory.

About the author

Manu Shukla

Founder & Director

Founder of eCorpIT. Hands-on engineer leading senior-only delivery for AI apps, custom software, and cloud systems for global clients.

Subscribe

One engineering note a week. No fluff, no spam.

Senior-architect playbooks on AI agents, mobile apps, cloud, security, data, and marketing — delivered every Wednesday.

Past the reading

Read enough. Let's build something.

A senior architect responds in 24 working hours with scope, indicative cost, and a timeline. NDA before any technical conversation.

Loading search…

Browse all guides