Guide

The Mac Equivalent of Alt+F4 (and Beyond)

Coming from Windows, your fingers look for Alt+F4. The Mac has an equivalent — two, actually — and the difference between them trips up every switcher. Here’s the full map, plus the shortcuts Windows never had.

The short answer

Cmd+Q is the Mac’s Alt+F4. It quits the application. If you only remember one thing, remember that.

The direct equivalents

  • Cmd+Q — quit the app.The closest match to Alt+F4’s spirit: the whole application exits, with save prompts where needed.
  • Cmd+W — close the window. The subtle difference from Windows: closing the last window usually leaves the Mac app running(check the Dock dot). Alt+F4 on a last window kills the program; Cmd-W doesn’t.

That distinction is why a Mac accumulates “invisible” running apps over a workday — you closed their windows, not the apps.

Why the red X button is not Alt+F4 either

The red traffic-light button in the corner of a window is Cmd+W, not Cmd+Q. Click it on your last Safari window and Safari stays open: no windows, still in the Dock, still using memory, its menu bar still at the top of the screen. This is the single most common switcher surprise, and it is deliberate on Apple’s part — on macOS the application and its windows are separate things.

The tell is the small dot under the app’s Dock icon. Dot means running. If you want to know what is actually open right now, that row of dots is the honest answer, not the windows on screen.

A handful of single-window apps (System Settings, Calculator) do quit when you close their window, which makes the rule feel inconsistent. It is not — those apps simply choose to quit on last-window-close.

The Windows → Mac shortcut map

  • Alt+F4Cmd+Q (quit app)
  • Ctrl+WCmd+W (close window or tab)
  • Ctrl+Alt+DelCmd+Option+Esc (Force Quit)
  • Ctrl+Shift+Esc (Task Manager) → Activity Monitor, no default shortcut
  • Alt+TabCmd+Tab (note: switches apps, not windows)
  • Win+D (show desktop) → F11, or Cmd+Option+H to hide everything else
  • Ctrl+C / V / XCmd+C / V / X

The Cmd+Tab one catches people out: it cycles applications, not windows. To move between windows of the same app, use Cmd+` (the backtick key).

Two Mac shortcuts Windows never had

  • Cmd+Option+W — close every window of the current app at once. The fastest way to clear a browser with nine windows open.
  • Cmd+Option+H — hide every app except the one in front. Not closing, but if what you actually want is a clean screen for thirty seconds, it is instant and reversible.

When an app won’t quit

  • Cmd+Option+Esc — the Force Quit dialog (the Mac’s Ctrl+Alt+Del).
  • Hold Option while right-clicking a Dock icon — Quit becomes Force Quit.
  • Cmd+Option+Shift+Esc, held for three seconds, force quits the frontmost app with no dialog at all.

Force-quitting skips save prompts and can leave crash-recovery state — a last resort, same as End Task.

What neither OS gives you: quit everything

There’s no Cmd+Q-all. The built-in method is the Cmd-Tab switcher loop (hold Cmd, tap Tab to an app, press Q, repeat) — fine for three apps, tedious for fifteen. The full manual playbook, including an AppleScript, is in our close-all-apps-on-Mac guide.

Captain Kill Switch adds the missing button: one click in the menu bar sends every app the same clean quit request as Cmd+Q, then closes anything still standing about two seconds later. Finder and everything macOS needs are excluded by an allowlist, so it cannot log you out. Free, signed and notarised. The honest caveat applies here as everywhere: it doesn’t wait for save dialogs — save first, then sweep.

Cheat sheet

  • Close window: Cmd+W (app keeps running)
  • Close all windows of an app: Cmd+Option+W
  • Quit app: Cmd+Q (the real Alt+F4)
  • Force quit: Cmd+Option+Esc
  • Hide everything else: Cmd+Option+H
  • Quit everything: no shortcut — one click from the menu bar