The fastest way to close a program on Mac
To close a program on Mac, press Command + Q while the program is active — that is, while its window is in front or its name appears in the menu bar at the top of the screen. This is the standard keyboard shortcut that works in nearly every Mac application.
If you prefer using the mouse, click the program's name in the menu bar at the top left, then select Quit [Program Name] from the dropdown menu. For example, if you have Safari open, you would click "Safari" and then "Quit Safari".
Both methods save your work first if the program asks you to — you will see a dialog box asking whether you want to save changes before the program closes. If you click "Don't Save", any unsaved work in that program will be lost.
Key Takeaways
- Command + Q closes the active program and is the fastest method on any Mac.
- You can also click the program's name in the menu bar and select Quit from the dropdown.
- If a program is frozen and will not respond to either method, use Force Quit to close it without saving.
- Closing a program is different from minimizing it — minimizing hides the window but leaves the program running in the background.
- Some programs may ask you to save changes before closing; clicking "Don't Save" will discard any unsaved work.
When a program is frozen and will not close normally
If a program stops responding and Command + Q does not work, you can force it to close. Press Command + Option + Escape to open the Force Quit Applications window. Find the program that is not responding in the list, select it, and click Force Quit.
Force Quit closes the program immediately without saving any unsaved work. Use this only when the program is truly frozen — normal closing gives the program a chance to save your work first. After you force quit a program, it is a good idea to restart your Mac if you notice other programs acting slowly, since a crash can sometimes affect system performance.
The difference between closing, minimizing, and hiding a program
Closing a program (Command + Q) shuts it down completely and removes it from memory. The program no longer runs in the background, and you will not see it in the Dock unless you open it again.
Minimizing a program (Command + M or the yellow button in the top left corner of the window) hides the window but leaves the program running. You will still see the program's icon in the Dock, and you can click it to bring the window back. The program continues to use memory and may continue to run background tasks.
Hiding a program (Command + H) hides all of its windows but keeps it running. Unlike minimizing, hidden programs do not show in the Dock. You can unhide them by clicking the program's name in the menu bar and selecting "Show All" or by using Command + Tab to switch between open programs.
How to close multiple programs at once
If you want to close several programs quickly, you can use Command + Tab to switch between them and press Command + Q in each one. However, there is no built-in Mac feature to close all programs at once — you have to close them one by one.
A faster approach is to restart your Mac, which closes all programs automatically. Click the Apple menu in the top left corner, select Restart, and confirm. Your Mac will close all open programs and restart. This is also useful if your Mac is running slowly or if multiple programs are frozen.
What happens to your work when you close a program
When you close a program, it will usually ask you to save any unsaved changes. A dialog box appears with three options: Save (saves your work and closes the program), Don't Save (closes without saving), or Cancel (keeps the program open). If you click "Don't Save", any changes you made since you last saved will be lost permanently.
Some programs, like Apple's Mail or Notes, save your work automatically as you type. In these cases, you may not see a save dialog when you close them. Other programs, like Microsoft Word or Google Chrome, may ask you to save each document or tab individually.
If you close a program by accident, you can usually reopen it and recover your work if the program has an auto-recovery feature. Word, for example, can recover unsaved documents when you open it again after a crash. Check the program's preferences or help menu to see whether auto-recovery is turned on.
Closing programs from the Dock
You can also close a program by right-clicking (or Control-clicking) its icon in the Dock at the bottom of your screen. A menu appears with options including Quit. Click "Quit" to close the program using the same method as Command + Q.
If a program's icon in the Dock has a dot underneath it, that means the program is currently running. Once you close it, the dot disappears. Some programs, like Finder, cannot be quit — they run continuously on your Mac.
Frequently Asked Questions
Is it bad to force quit programs on Mac?
Force quitting should only be used when a program is frozen and will not respond. Doing it regularly can cause data loss because the program does not get a chance to save your work. However, using Force Quit once in a while when necessary will not damage your Mac.
What is the red button in the top left corner of a program window?
The red button closes the window, but it does not always close the program itself. In some Mac programs, like Safari or Mail, closing the window leaves the program running in the background. To fully close the program, use Command + Q or click the program's name in the menu bar and select Quit.
Can I close a program without saving my work?
Yes. When you close a program, click "Don't Save" if the dialog box appears. However, any changes you made since you last saved will be lost. Most programs will warn you before you lose unsaved work.
Why does my Mac slow down even after I close programs?
Closing a program frees up memory, but your Mac may still run slowly if you have many programs open or if your storage is nearly full. Restarting your Mac clears temporary files and memory, which often improves performance. If slowness continues, check your storage by clicking the Apple menu, selecting "About This Mac", and clicking "Storage".
What is the difference between closing and restarting my Mac?
Closing a program shuts down only that one application. Restarting your Mac shuts down all programs and the operating system itself, then starts everything fresh. Restarting clears memory and temporary files, which can fix performance problems that closing individual programs cannot.