The fastest way to close every open program on your Mac
You can close all open programs at once by holding down Option (also labeled Alt), then clicking the Apple menu in the top-left corner and selecting Force Quit. This opens a window showing every running program. Click the program you want to close, then click Force Quit. Repeat for each one, or use Command + Q after selecting a program to close it without the extra click.
If you want programs to close when you shut down your Mac without being asked to save changes, you can also restart or shut down your computer directly — macOS will close everything automatically. Hold down Command + Control + Power Button (or Command + Control + Eject on older Macs) to force a restart, or go to the Apple menu and select Shut Down to close programs in order.
The reason to close programs manually is usually one of three: your Mac is running slowly, a program has stopped responding, or you want to free up memory before opening something demanding. Each situation has a different best approach.
Key Takeaways
- Hold Option and click the Apple menu, then select Force Quit to see all running programs in one window.
- Use Command + Q after selecting a program in the Force Quit window to close it without clicking the button again.
- If a program is frozen or not responding, Force Quit is the only way to close it without restarting your entire Mac.
- Closing programs frees up RAM (memory), which can speed up your Mac if you have many things open at once.
- Restarting your Mac closes everything automatically and clears temporary files, which often fixes slowness better than closing programs one at a time.
When you should close programs instead of restarting
Close individual programs when you have unsaved work in other applications. If you restart, macOS will ask you to save changes in each program before it shuts down — this takes longer than closing just the programs you do not need. If you have a document open in one program and want to keep it there, close the others around it instead.
Closing programs also makes sense when one program is using a lot of your Mac's memory and slowing everything down. Open Activity Monitor (search for it in Spotlight by pressing Command + Space, typing "Activity Monitor", and pressing Enter). Click the Memory tab to see which programs are using the most RAM. Close the ones you are not using, and your Mac should speed up within seconds.
If a program has frozen and is not responding to clicks or keyboard commands, closing it is often the only way forward without restarting. A frozen program can lock up your entire Mac if you try to force a restart, so closing it first is the safer move.
How to close a single program using the keyboard
The quickest way to close one program is Command + Q. This works in almost every Mac process. The program will close when ready if there are no unsaved changes. If you have unsaved work, a dialog box will appear asking whether you want to save — click Save, Don't Save, or Cancel depending on what you want to do.
Command + W closes only the current window, not the entire program. If a program has multiple windows open (like multiple browser tabs or document windows), Command + W closes one at a time. Command + Q closes the whole program and all its windows at once.
If Command + Q does not work, the program may be frozen. In that case, use Force Quit instead: hold Option, click the Apple menu, select Force Quit, click the program name, and click the Force Quit button.
How to close a program using the Dock
The Dock is the row of program icons at the bottom of your screen. Right-click (or Control-click) any program icon in the Dock, and a menu will appear. Select Quit to close that program. This is slower than Command + Q but works the same way — it will ask you to save unsaved changes.
If a program icon in the Dock has a dot underneath it, that program is currently running. If there is no dot, the program is already closed. You can also click and hold on a Dock icon to see all open windows for that program, then click one to bring it to the front.
To close a program without saving changes using the Dock, right-click its icon and look for an option like Force Quit (this only appears if the program is frozen). If that option is not there, you will need to use the Force Quit window from the Apple menu instead.
Understanding what happens to your Mac's memory when programs close
Every program running on your Mac uses a portion of your computer's RAM (random access memory). RAM is temporary storage your Mac uses to run programs quickly. When you close a program, that RAM is freed up and becomes available for other programs or tasks.
If your Mac is running slowly, it may be because you have too many programs open at once and your Mac has run out of available RAM. When that happens, your Mac starts using storage space on your hard drive as temporary memory, which is much slower. Closing programs you are not using moves that temporary memory back to RAM, which speeds things up noticeably.
Restarting your Mac clears all RAM and temporary files at once, which is why a restart often fixes slowness better than closing a few programs. However, if you have important work open that you do not want to lose, closing just the programs you do not need is a faster solution.
What to do if a program will not close
If a program does not close when you press Command + Q, or if it closes but then when ready opens again, the program is likely frozen or has a problem. Try Force Quit: hold Option, click the Apple menu, select Force Quit, click the program name, and click Force Quit. This will close the program when ready without asking to save changes.
If Force Quit does not work, or if the program keeps opening on its own, restart your Mac. Hold Command + Control + Power Button (or Command + Control + Eject on older Macs) to force a restart. Your Mac will close everything and start fresh. If the program still opens automatically after restart, it may be set to open at startup — go to System Settings, click General, then Login Items, find the program, and click the minus sign to remove it.
If a program repeatedly freezes or will not close, it may have a bug or be incompatible with your version of macOS. Check the developer's website or the Mac App Store to see if an update is available. If updates do not help, you may need to uninstall and reinstall the program.
How closing programs relates to your Mac's overall performance
Closing programs is one part of keeping your Mac running smoothly, but it is not the only part. Your Mac's performance depends on RAM, storage space, and how many background processes are running. Closing visible programs helps with RAM, but background programs (like cloud storage, email, and system services) keep running even when you do not see them.
If your Mac is still slow after closing programs, check your storage space. Go to the Apple menu, select About This Mac, and click the Storage tab. If your drive is more than 90 percent full, your Mac will slow down significantly. Deleting large files, moving photos to cloud storage, or emptying your Trash can help.
Restarting your Mac weekly is one of the most effective ways to keep it running well. A restart clears RAM, closes background processes, and clears temporary files all at once. If you restart regularly, you will rarely need to manually close programs to fix slowness.
Frequently Asked Questions
Will closing a program delete my files or documents?
No. Closing a program does not delete anything. If you have unsaved changes in a document, macOS will ask you to save before closing. If you click Don't Save, those unsaved changes will be lost, but the file itself remains on your Mac. Files are stored on your hard drive; programs are just tools for opening and editing them.
What is the difference between closing a program and uninstalling it?
Closing a program stops it from running but leaves it on your Mac. You can open it again later. Uninstalling removes the program from your Mac entirely. To uninstall a program, drag its icon from the Applications folder to the Trash, or use an uninstaller if the program came with one. Closing and uninstalling are completely different actions.
Can I close all programs at once without restarting?
Not with a single command, but you can close them quickly one after another. Open the Force Quit window (Option + Apple menu + Force Quit), click each program, and press Command + Q. Or use Command + Q in each program as you switch between them. Restarting is faster if you want everything closed at once, but it also closes your unsaved work.
Does closing programs save battery on my Mac laptop?
Yes, slightly. Programs running in the background use CPU power and drain your battery. Closing programs you are not using extends battery life, especially if those programs are doing work (like downloading files or processing video). However, restarting your Mac saves more battery than closing a few programs, because it stops all background processes at once.
Why does my Mac ask me to save changes when I close a program?
macOS is protecting your work. If you have made changes to a document but have not saved them, closing the program would lose those changes. The save dialog gives you a chance to keep your work. Click Save to keep the changes, Don't Save to discard them, or Cancel to go back to the program and keep working.