How to Close a Window on a Mac: Every Method Explained
Closing a window on a Mac seems simple — and usually it is. But macOS handles windows differently than Windows does, and that difference trips up a lot of switchers and newcomers. Once you understand what's actually happening when you close something on a Mac, the whole thing makes a lot more sense.
The Red Button: The Most Obvious Way
Every standard macOS window has three colored dots in the top-left corner — red, yellow, and green. These are called the traffic light buttons.
- 🔴 Red (Close) — closes the window
- 🟡 Yellow (Minimize) — shrinks the window to the Dock
- 🟢 Green (Full Screen / Zoom) — expands the window
Click the red button to close the active window. That's the most direct method and works in virtually every app.
Important distinction: Closing a window does not always quit the app. On macOS, an app can remain running in the background even after its last window is closed. You'll notice the small dot beneath an app's icon in the Dock — that dot means the app is still active. This behavior is by design on macOS, and it's one of the biggest differences from Windows, where closing the last window typically closes the program too.
Keyboard Shortcut: The Faster Way
If your hands are already on the keyboard, the fastest method is:
⌘ Command + W
This closes the current active window without touching your mouse or trackpad. It works across almost every native macOS app — Safari, Finder, Mail, Notes, Pages, and more.
A few useful variations:
| Shortcut | What It Does |
|---|---|
| ⌘ + W | Closes the current window |
| ⌘ + Option + W | Closes all open windows in the current app |
| ⌘ + Q | Quits the app entirely (closes all windows + stops the process) |
The difference between ⌘ + W and ⌘ + Q is worth memorizing. If you want the window gone but the app ready to reopen quickly, use W. If you want the app fully shut down and removed from memory, use Q.
Closing Windows in Finder
Finder behaves slightly differently than other apps because it's always running — you can't quit it the normal way. Closing a Finder window with the red button or ⌘ + W just removes that window from view; the Finder itself stays active.
If you have multiple Finder windows open, ⌘ + Option + W will close all of them at once without quitting Finder.
To open a new Finder window again, you can click the Finder icon in the Dock or press ⌘ + N while Finder is active.
Closing Tabs vs. Closing Windows
In tab-based apps like Safari, Chrome, or Terminal, there's an important distinction:
- ⌘ + W closes the current tab, not the whole window (if multiple tabs are open)
- Once only one tab remains, ⌘ + W closes the window itself
- ⌘ + Option + W closes all tabs and the window together
This is standard behavior across most macOS browsers and multi-tab apps, but some third-party apps may handle it differently.
Using the Menu Bar to Close
Every Mac app has a menu bar at the top of the screen. With your app active, click File → Close Window (or just Close in some apps). This does the same thing as the red button or ⌘ + W.
Some apps also offer Close All under the File menu, which mirrors the ⌘ + Option + W shortcut.
What Happens to Full-Screen Windows?
If a window is in full-screen mode (triggered by the green button or ⌘ + Control + F), the red close button still works — but you may want to exit full screen first using the same green button or pressing Escape in some apps, then close the window normally.
Alternatively, pressing ⌘ + W while in full screen will close the window and exit full screen simultaneously in most apps.
When the Window Won't Close 🖥️
Occasionally a window becomes unresponsive and won't close through normal means. In that case:
- Try ⌘ + Q to quit the app entirely
- If that doesn't work, use ⌘ + Option + Escape to open the Force Quit window
- Select the unresponsive app and click Force Quit
Force quitting should be a last resort — it closes the app without saving open documents — but it reliably removes a stuck window.
The Variable That Changes Everything
Most of what's described here applies to native macOS apps and standard windows. However, the experience can vary depending on:
- Which version of macOS you're running — some keyboard behaviors and gestures have been updated across Ventura, Sonoma, and beyond
- Whether the app is a native Mac app or a web-based/Electron app — some cross-platform apps have their own window management logic
- Trackpad vs. mouse vs. keyboard-only workflows — power users who rarely lift their hands from the keyboard may rely entirely on shortcuts, while casual users may prefer clicking
- Accessibility settings — macOS allows remapping of certain keyboard shortcuts and mouse button behaviors under System Settings → Accessibility
How you close windows most efficiently on a Mac ultimately comes down to how you work, which apps you use most, and whether your muscle memory is already built around shortcuts or mouse-driven navigation.