29 September 2026 · 5 minute read

Alt+F4 on a Mac

Alt+F4 does nothing on a Mac. The closest thing is ⌘+W — but it is not quite the same, and the difference is the single most confusing thing about moving from Windows.

The short answer. ⌘+W closes the window. ⌘+Q quits the app. On Windows, Alt+F4 on the last window does both at once. On a Mac it never does.

The thing nobody tells switchers

On Windows, closing the last window of a program ends the program. On a Mac it does not. Close every Safari window and Safari is still running, still in the Dock, still in ⌘+Tab.

This is deliberate, not a bug. A Mac app is separate from its windows — the menu bar at the top of the screen still belongs to it, which is why the menu bar changes as you switch apps.

The practical consequence is that a month into using a Mac, switchers often have twenty or thirty apps running without realising. Look along your Dock: every icon with a small dot underneath is an app that is still open.

Close versus quit

You wantWindowsMac
Close this window or tabCtrl+W / Alt+F4⌘+W
Close every window, keep the app—⌘+⌥+W
Quit the app entirelyAlt+F4 on last window⌘+Q
Force quit a frozen appCtrl+Alt+Delete⌘+⌥+Esc
Hide the app instead—⌘+H

The habit worth building: ⌘+W when you are finished with a document but will be back in the app, ⌘+Q when you are finished with the app.

The red dot is a close button, not an X

The red circle at the top left of every window looks like the Windows X and behaves like the minimise-adjacent close: it closes that window and nothing more.

There are three exceptions where the app really does quit with its last window, because it makes no sense otherwise — System Settings, Calculator and App Store among them. That inconsistency is part of why the rule takes a while to learn.

Do the leftovers slow the Mac down?

Mostly, no. macOS compresses the memory of idle apps and pages it out, so a dozen apps sitting doing nothing cost very little. The ones worth quitting are those doing actual work in the background — syncing clients, video editors, anything indexing.

If the fan is running and you want to know what is responsible, that is a different question with a proper answer.

If your hand still goes to Alt+F4

Everything above is built in and free. What it cannot do is answer to the key you have pressed ten thousand times.

Switchover is a free menu bar app that maps it back: ⌥+F4 closes the front window, and ⌃+W closes a tab, both on by default. Option is the Alt key on a Mac keyboard, so the finger position is the one you already know.

Two things worth knowing. On a laptop keyboard, F4 needs fn held as well, unless you have set function keys to standard in System Settings ▸ Keyboard. And ⌃+W is deliberately left alone in Terminal and other shells, where it already means delete the previous word and remapping it would be actively harmful.

It closes the window rather than quitting the app — the Mac behaviour, on the Windows key. For quitting, ⌘+Q remains the honest answer.

The same app handles Ctrl+X to move files in Finder, Win+V clipboard history, Ctrl+Alt+Delete and the Delete key. Every mapping has its own switch.

Free on the Mac App Store. No account, no network access, nothing collected.

Alt+F4 closing a window and Ctrl+W closing a tab (jumps to 1:54). Watch on YouTube

Download free on the Mac App Store

Related