The fastest way to close a program depends on what's happening
If a program is responding normally, click the X button in the top-right corner of its window. If it's frozen and won't respond, you'll need to force it closed using your operating system's task manager. On Windows, press Ctrl+Alt+Delete, then click Task Manager. On Mac, press Command+Option+Esc, then click the program name and select Force Quit. On Linux, press Ctrl+Alt+Esc and click the frozen window.
Most of the time the X button works. Use the force-close method only when a program stops responding to clicks or keyboard commands — you'll know because the window title bar will say "Not Responding" or the entire window will be grayed out.
Key Takeaways
- Click the X button in the top-right corner of any program window to close it normally.
- If a program freezes and won't respond, use Task Manager on Windows (Ctrl+Alt+Delete) or Force Quit on Mac (Command+Option+Esc) to shut it down.
- Closing a program this way does not delete it from your computer — it only stops it from running.
- If you have unsaved work in a program, it will usually ask you to save before closing; if it doesn't ask, that work is lost.
Closing a program the normal way
Look at the top-right corner of the program window. You'll see an X button — click it once. The program will close immediately if you haven't made any unsaved changes. If you have unsaved work, the program will usually show a dialog box asking whether you want to save before closing. Click Save if you want to keep your work, or Don't Save if you want to discard it.
This method works on Windows, Mac, and Linux. On some older programs or certain Mac applications, the close button might be in a slightly different spot, but it's always in the top corner of the window. If you can't find it, try pressing Alt+F4 on Windows or Command+W on Mac — both are keyboard shortcuts that close the active window.
Force-closing a frozen program on Windows
When a program stops responding and the X button doesn't work, you need Task Manager. Press Ctrl+Alt+Delete all at once. Your screen will go dark and show a menu with several options. Click Task Manager. A new window will open showing all the programs currently running on your computer.
Find the program that's frozen in the list — it will usually have "Not Responding" written next to its name. Click it once to select it, then click the End Task button at the bottom right of the window. The program will close within a few seconds. If it doesn't, click End Task again.
After the program closes, you can open it again if you need to. Forcing it closed does not damage your computer or the program itself. However, any work you were doing in that program will be lost — the program didn't have a chance to save.
Force-closing a frozen program on Mac
Press Command+Option+Esc at the same time. A window titled "Force Quit Applications" will appear, showing all open programs. Look through the list for the program that's frozen. Click it once to select it, then click the Force Quit button at the bottom right of the window.
The program will close immediately. Unlike Windows, you don't need to click Force Quit twice — once is enough. After it closes, you can open the program again without any problems. Any unsaved work in that program will be lost.
Force-closing a frozen program on Linux
Press Ctrl+Alt+Esc at the same time. Your cursor will change to a crosshair or skull icon. Move your cursor over the frozen program window and click once. The program will close immediately.
If that doesn't work, open a terminal window and type the command killall followed by the program name. For example, if Firefox is frozen, you would type killall firefox and press Enter. The program will close right away. This method requires knowing the exact name of the program, but it works when the graphical method doesn't.
What happens when you close a program
Closing a program stops it from running, but it does not delete the program from your computer. The program's files stay in place, and you can open it again whenever you want. Think of it like closing a book — the book still exists on your shelf even though you're not reading it right now.
When you close a program normally, it saves its settings and any open files (if you told it to save). When you force-close a program, it shuts down immediately without saving anything. That's why you should only force-close when a program is actually frozen — if you force-close a program that's working fine, you'll lose any unsaved work.
Closing multiple programs at once
If you need to close several programs quickly, you can do it through Task Manager on Windows or Activity Monitor on Mac. On Windows, open Task Manager (Ctrl+Alt+Delete), click each program you want to close, and click End Task for each one. On Mac, open Activity Monitor (search for it in Spotlight), click each program, and click the X button at the top left of the Activity Monitor window.
On Linux, you can close multiple programs from the terminal using the killall command for each one, or you can use a graphical task manager if your desktop environment has one. Most Linux systems have one built in — check your applications menu.
Frequently Asked Questions
Will closing a program delete it from my computer?
No. Closing a program only stops it from running. The program files remain on your computer, and you can open it again anytime. Closing is temporary; uninstalling is permanent.
What's the difference between closing and minimizing?
Closing stops the program from running and removes it from memory. Minimizing hides the window but leaves the program running in the background. You can minimize by clicking the minus button (on Mac) or the underscore button (on Windows), or by clicking the program's taskbar icon.
Why does my program say "Not Responding"?
A program becomes unresponsive when it's waiting for something to finish — a file to download, a calculation to complete, or a connection to a server. Usually it will respond again after a few seconds. If it stays unresponsive for more than a minute, force-closing is your best option.
Can I close a program without saving my work?
Yes, but you'll lose everything you haven't saved. When you close normally, the program will ask if you want to save. When you force-close, it won't ask — it will just shut down. Always save your work before closing if you want to keep it.
What if a program won't close even with Task Manager?
This is rare. On Windows, try restarting your computer — that will close everything. On Mac, restart as well. On Linux, if killall doesn't work, try killall -9 followed by the program name, which forces a harder shutdown. If problems keep happening with the same program, consider uninstalling and reinstalling it.