The fastest universal shortcut to close an application on Windows is Alt + F4; on macOS it is Command (⌘) + Q. These close the active window or quit the entire app, respectively, and work in nearly every program.
How Alt+F4 Works on Windows
Pressing Alt + F4 sends a “close” command to the currently active window. In most applications, this quits the program entirely. If you have unsaved changes, the app will usually prompt you to save before closing. If no window is active (e.g., you’re on the desktop), Alt+F4 opens the Windows shutdown dialog.
Some apps interpret Alt+F4 differently:
- Browsers (Chrome, Edge, Firefox): Alt+F4 closes the entire browser window, not just a tab. Use Ctrl+W to close a single tab.
- Games and full-screen apps: Alt+F4 often quits immediately, sometimes without a confirmation prompt.
- Microsoft Office: Alt+F4 closes the current document; if it’s the last one, it exits the app.
For closing only the current window in a multi-window app (like Word or Excel), use Ctrl+W or Ctrl+F4. These close the document or window but leave the application running.
How Command+Q Works on macOS
On a Mac, Command (⌘) + Q quits the entire application. It’s the equivalent of choosing “Quit” from the app’s menu. If you have unsaved documents, macOS will ask you to save before quitting. To close just the current window without quitting the app, press Command + W.
Note that some apps (like Finder) may not quit with ⌘+Q if they are system-required; you can still force quit via the Apple menu > Force Quit (or press Option+Command+Esc).
Other Keyboard Shortcuts for Closing
Beyond the primary shortcuts, there are a few more that come in handy:
- Ctrl+W (Windows) / Command+W
- (Mac): Close the current tab or document window.
- Ctrl+Shift+W (Windows) / Command+Shift+W (Mac): Close all windows of the current app (in some browsers, closes all tabs).
- Ctrl+F4 (Windows): Close the current document window in MDI apps (like older Office versions).
- Alt+F4 (Windows) / Command+Q (Mac): Quit the entire application.
How to Close Apps Without a Keyboard
If you prefer using a mouse or touchscreen, you have several options:
- Windows: Click the X button in the top-right corner of the window. For a full-screen app, hover at the top to reveal the title bar, or press Windows + D to show the desktop, then right-click the app in the taskbar and choose “Close window”.
- macOS: Click the red traffic light button in the top-left corner. This closes the window but does not quit the app (the app stays running in the Dock). To quit, right-click the app icon in the Dock and select “Quit”.
What About Force Quitting?
Sometimes an app freezes and won’t respond to normal close commands. In that case, you may need to force quit:
- Windows: Press Ctrl+Shift+Esc to open Task Manager, select the app, and click “End task”. Alternatively, press Ctrl+Alt+Delete and choose Task Manager.
- macOS: Press Option+Command+Esc to open the Force Quit window, select the app, and click “Force Quit”. You can also right-click the app icon in the Dock while holding Option, then choose “Force Quit”.
Force quitting discards any unsaved changes, so use it only when the app is truly unresponsive.
Why Shortcuts Differ Between Windows and Mac
The difference stems from the design philosophies of the two operating systems. Windows uses the Alt key for menu access and system commands, while macOS uses the Command key for most shortcuts because it sits next to the spacebar, making it easy to press with the thumb. The concept of “closing” also differs: on Windows, closing the last window usually quits the app, while on macOS, the app remains running with no windows open (a deliberate design choice to preserve state).
Common Misconceptions
One common myth is that Ctrl+W closes an entire application on Windows. In reality, it only closes the current tab or document. Another is that pressing Alt+F4 on a Mac works—it doesn’t; Macs use Command+Q. Also, some users think that closing a laptop lid quits apps—it doesn’t; it just puts the computer to sleep unless you change the power settings.
Frequently Asked Questions
Does Alt+F4 close the entire app or just the window?
On Windows, Alt+F4 closes the active window. For most apps, that also quits the application because the app has no other windows. However, for apps that support multiple windows (like some text editors or file managers), Alt+F4 closes only the focused window, leaving the app running in the background.
What is the shortcut to close a tab in a browser?
To close a single tab, press Ctrl+W on Windows or Command+W on Mac. To close the entire browser window, use Alt+F4 (Windows) or Command+Shift+W (Mac, closes all tabs in the window).
How do I close an app that is not responding?
If an app is frozen, use Task Manager on Windows (Ctrl+Shift+Esc) or Force Quit on Mac (Option+Command+Esc). Select the unresponsive app and force quit it. Be aware that you may lose unsaved work.
Is there a shortcut to close all open apps at once?
There is no built-in shortcut to close all apps simultaneously, but you can use Alt+F4 repeatedly on Windows, or on Mac, you can press Command+Q while holding Option to quit all apps (though this may not work for all apps). Alternatively, you can log out or shut down, which closes everything.
Does closing a laptop lid quit applications?
No, closing the lid typically puts the computer to sleep or shuts down the display, but it does not close running applications. When you wake the laptop, your apps are still open. You can change this behavior in power settings if you want it to shut down instead.
Related
- Sign Out Shortcut Windows: 5 Fast Ways
- Google Sheets QUERY Clause Guide
- Entry Level Data Entry Jobs: What They Are & How to Start
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Create File Labels in Word: A Step-by-Step GuideTo create file labels in Microsoft Word, open Mailings > Labels, choose the label brand and product number…
- Snowflake CSV vs CSV for Excel: Which Should You Choose?Snowflake CSV is the standard comma-separated export, while CSV for Excel is a Snowflake download option intended to…
- Excel Data Validation Button: Where to Find and Use ItIn Excel for Microsoft 365 on Windows, find the Data Validation button on the Data tab, in the…
- Excel Print Area Greyed Out: Why It Happens and FixesIn Excel for Microsoft 365 on Windows, the Print Area commands are most often greyed out because multiple…
- Charting My Path for Future Success: A Practical GuideTo chart your path for future success, start by defining what success means to you in concrete, measurable…
- Traffic Signs Manual Chapter 3: Regulatory SignsTraffic Signs Manual Chapter 3 is the official UK government guidance covering regulatory signs – the circular signs…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.