The fastest way to close an application depends on your operating system

On Windows, press Alt + F4 while the application window is active, or click the X button in the top-right corner of the window. If the program is frozen and won't respond, press Ctrl + Alt + Delete, select Task Manager, find the application in the list, click it, and then click "End Task".

On Mac, press Command + Q while the application is active, or click the application name in the menu bar and select "Quit [Application Name]". If it's unresponsive, press Command + Option + Escape to open Force Quit, select the application, and click "Force Quit".

On Linux, close the window using the X button, or open a terminal and type killall [application-name] to force-close it. The exact command varies by distribution, but this works on most systems including Ubuntu, Fedora, and Debian.

Key Takeaways

  • Windows users can press Alt + F4 or click the X button to close most applications normally.
  • Mac users should press Command + Q to close applications, or Command + Option + Escape if the program is frozen.
  • If an application won't close normally on any system, use the task manager or force-quit tool to end it immediately.
  • Closing an application this way does not delete it from your computer — it only stops it from running.
  • Unsaved work in a closing application will be lost unless you save it first.

When the normal close button doesn't work

Sometimes an application becomes unresponsive and the close button stops working. This happens when a program crashes or gets stuck on a task. On Windows, Task Manager is your tool: press Ctrl + Alt + Delete, wait for the menu to appear, click "Task Manager", find the frozen application in the list, select it, and click "End Task" at the bottom right. The application will close immediately, though you will lose any unsaved work.

On Mac, the equivalent is Force Quit. Press Command + Option + Escape to open the Force Quit Applications window. Select the unresponsive application from the list and click "Force Quit". The window will close right away. You can also reach this same tool by clicking the Apple menu in the top-left corner, selecting "Force Quit", and following the same steps.

On Linux, open a terminal window and type killall firefox (or replace "firefox" with the name of the application you want to close). If you do not know the exact application name, type ps aux to see all running programs, find the one you want to close, and use its name in the killall command.

The difference between closing and uninstalling

Closing an application stops it from running but leaves it installed on your computer. The program files remain in their original location — usually Program Files on Windows, Applications on Mac, or /usr/bin on Linux — and you can open the application again whenever you want.

Uninstalling removes the application entirely from your computer. On Windows, go to Settings > Apps > Apps & Features, find the application, and click "Uninstall". On Mac, open Applications in Finder, right-click the application, and select "Move to Trash". On Linux, use your package manager (apt, dnf, or pacman depending on your distribution) to remove the package. After uninstalling, you cannot open the application unless you install it again.

Why applications sometimes stay running after you close them

Some applications run background processes even after you close the main window. These are often called "services" or "daemons" and they continue using system resources. Examples include cloud storage services like OneDrive or Dropbox, which sync files in the background, or messaging apps that stay ready to receive notifications.

To stop these background processes on Windows, open Task Manager, look for the application name in the list (it may appear multiple times), and click "End Task" for each instance. On Mac, use Activity Monitor (open Spotlight with Command + Space, type "Activity Monitor", and press Enter), find the application, select it, and click the X button in the top-left corner. On Linux, use the terminal command killall -9 [application-name] to force-close all instances.

If you want an application to stop running in the background permanently, check its settings for an option to disable background activity, or uninstall it entirely.

What happens to your work when you close an application

If you close an application without saving your work, that work is lost. Most applications will warn you before closing if you have unsaved changes — a dialog box will appear asking "Do you want to save changes?" Click "Save" to keep your work, "Don't Save" to discard it, or "Cancel" to go back to the application.

Some applications like Google Docs or Microsoft 365 online save automatically as you type, so closing the window does not lose your work. Check the application's menu or settings to see if autosave is turned on. If you are unsure whether your work is saved, save it manually before closing: press Ctrl + S on Windows or Linux, or Command + S on Mac.

Closing multiple applications at once

On Windows, you can close all open applications by shutting down your computer. Click the Start menu, click the power icon, and select "Shut down". This closes every running application. If you want to close several applications but keep your computer running, use Task Manager to close them one by one, or close each window individually.

On Mac, you can close all windows of one application by pressing Command + Q, which closes the application entirely. To close all open applications at once, hold Option and click the power button in the menu bar, then select "Shut Down". You can also use Mission Control (swipe up with four fingers on a trackpad, or press F3) to see all open windows and close them individually.

On Linux, you can close all applications by typing shutdown -h now in a terminal to shut down the system, or use your desktop environment's menu to close windows one at a time.

Frequently Asked Questions

Will closing an application delete my files?

No. Closing an application stops it from running but does not delete any files you created with it. Your documents, photos, and other files remain on your computer. You will only lose work that was open in the application but not saved to a file.

What does "End Task" do on Windows?

End Task force-closes an application immediately, without waiting for it to save or shut down normally. Use this only when an application is frozen or unresponsive. If the application is working normally, use the close button or Alt + F4 instead, which gives the program a chance to save your work.

Can I close an application without losing my internet connection?

Yes. Closing a web browser or other application does not affect your internet connection. Your router and modem will stay connected. If you want to stay connected to the internet but close a specific application, just close that application — your connection will remain active.

Why does my computer slow down if I don't close applications?

Open applications use memory and processing power, even if you are not actively using them. The more applications running at once, the less memory available for other tasks, which can make your computer slower. Closing applications you are not using frees up these resources and can improve performance.

Is it bad to force-quit an application?

Force-quitting is safe and does not damage your computer, but you will lose any unsaved work in that application. Use force-quit only when an application is frozen or unresponsive. For normal closing, use the close button or keyboard shortcut so the application has a chance to save your work.