Guide
How to Close Apps on a MacBook (Quit, Force Quit, Close Windows)
The red button closes a window, Command-Q quits the app. How to close apps on a MacBook from the keyboard, Dock and Activity Monitor, and force quit.
To close an app on a MacBook, press Command-Q (or choose Quit from the app's menu); clicking the red button in the top-left corner only closes that window, and most apps keep running. If an app is frozen, press Option-Command-Esc and choose Force Quit.
Mac apps work differently from Windows: windows and apps are separate things, and an app can be open with no windows at all. This guide covers every way to close windows, quit apps and force quit them, as of macOS 27 (the steps are the same on macOS 26 and earlier).
Quick reference
| What you want | How |
|---|---|
| Close the current window | Command-W or the red button |
| Close all windows of the app | Option-Command-W |
| Quit the app | Command-Q, or App menu → Quit |
| Quit from the Dock | Right-click (Control-click) the icon → Quit |
| Hide the app without quitting | Command-H |
| Force quit a frozen app | Option-Command-Esc → Force Quit |
| Quit several apps quickly | Hold Command, press Tab, then Q on each app |
Red button vs Command-W vs Command-Q
- Red button (close): closes the current window. The app usually stays open, and you can tell because its Dock icon still has a small dot underneath (if dots are hidden, turn on Show indicators for open applications in System Settings → Desktop & Dock).
- Command-W: the keyboard version of the red button. Closes the front window or tab. In a browser it closes the current tab.
- Command-Q: quits the whole app, closing all its windows. If you have unsaved work, the app asks first.
A handful of single-window apps, like Calculator and System Settings, quit when you close their window. Most apps, including Safari, Mail, Finder and nearly every third-party app, keep running. Finder can't be quit normally; it's always running.
How to quit an app from the Dock
- Right-click (or Control-click, or two-finger click on the trackpad) the app's icon in the Dock.
- Choose Quit.
Hold Option while the menu is open and Quit changes to Force Quit, useful when an app isn't responding.
How to quit an app from the app switcher
Press Command-Tab to open the app switcher. Keep holding Command, press Tab until the app you want is highlighted, then press Q to quit it. You can keep tabbing and pressing Q to quit several apps in a row without letting go of Command. This is the fastest built-in way to clear out a lot of apps.
How to force quit an app on a Mac
When an app freezes (spinning beachball, won't respond to Command-Q):
- Press Option-Command-Esc, or choose Apple menu → Force Quit.
- Select the app in the list. Apps that aren't responding are marked "Not Responding".
- Click Force Quit.
Force quitting discards unsaved changes in that app, so try Command-Q first and give it a few seconds. If the front app is the one that's frozen, holding Option-Shift-Command-Esc for a few seconds force quits it directly.
How to quit apps and processes in Activity Monitor
Activity Monitor shows everything running, including background processes and helpers that don't appear in the Dock.
- Open Activity Monitor (Command-Space, type "Activity Monitor", press Return).
- Select the app or process.
- Click the Stop button (the X at the top of the window).
- Choose Quit, or Force Quit if Quit doesn't work.
Sort by the CPU or Memory columns to see which apps are actually using resources; the Energy tab shows which ones affect battery life. Our guides to checking RAM usage and finding battery drain explain what the numbers mean. Be careful with processes you don't recognize: quitting system processes can log you out or restart parts of macOS.
How to quit many apps at once
macOS doesn't have a built-in Quit All button. Your options:
- Command-Tab and Q, as described above, for a handful of apps.
- Log out or restart (Apple menu → Log Out or Restart). Untick Reopen windows when logging back in if you want a clean start.
- A shortcut or script. In Terminal,
osascript -e 'quit app "Safari"'quits an app politely (like Command-Q). You can put several of these lines in an Apple Shortcuts "Run Shell Script" action for a one-click quit list.
Why apps keep running (and when it matters)
Mac apps stay open after their last window closes by design: the app is ready the moment you need a new window, and an idle app uses very little CPU. macOS also manages memory for you, compressing and swapping memory from apps you're not using. So you don't need to quit apps constantly the way you might on an older PC.
It's worth quitting an app when:
- It's using noticeable CPU or energy in Activity Monitor (browsers with busy tabs and video calls are common culprits).
- Memory pressure is yellow or red.
- It's misbehaving and a restart of the app would fix it.
- You want fewer distractions; closing chat apps while you work is a simple focus habit.
Menu bar apps and background apps
Some apps live in the menu bar at the top right of the screen and don't show in the Dock or the Command-Tab switcher (clipboard managers, battery limiters, VPNs and so on). To quit one:
- Click its icon in the menu bar.
- Look for Quit in its menu, often at the bottom or under a gear or "..." button.
If an app keeps coming back after a restart, it's set to open at login. Go to System Settings → General → Login Items & Extensions and remove it from Open at Login, or turn off its background permission under Allow in the Background.
The takeaway
Use Command-W to close a window, Command-Q to quit an app, and Option-Command-Esc only when something is frozen. Quitting apps you aren't using is fine, but it's rarely necessary; check Activity Monitor before blaming every open app. For more shortcuts like these, see our macOS tips.
Frequently asked questions
How do I fully close an app on a MacBook?+
Press Command-Q while the app is in front, or choose Quit from the app's menu next to the Apple menu. Clicking the red button only closes the window, and many apps keep running afterwards.
How do I force quit an app on a Mac?+
Press Option-Command-Esc, select the app in the Force Quit window, and click Force Quit. You can also Option-click (or right-click and hold Option on) the app's Dock icon and choose Force Quit.
Why do apps keep running after I click the red X on Mac?+
On a Mac the red button closes a window, not the app, so the app stays open in the Dock ready for a new window. Some single-window apps, such as Calculator and System Settings, do quit when their last window closes, but most don't. Use Command-Q to quit.
How do I close all open apps at once on a Mac?+
macOS has no single Quit All command. The quickest built-in way is to hold Command, press Tab to open the app switcher, and press Q on each app while still holding Command. Logging out or restarting also quits everything.
Do I need to quit apps on a MacBook to save battery?+
Not usually. macOS suspends idle apps efficiently, but apps that keep working in the background, such as browsers with busy tabs, can use CPU and battery. Check Activity Monitor's Energy tab to see which ones are worth quitting.
Keep reading