How to Close Programs on Windows

Closing programs you are not using frees memory and tidies the taskbar. Most apps close with the X button or Alt+F4. If an app freezes, Task Manager or the taskbar End task option forces it to close.

Quick Answer

Click the X in the top-right corner or press Alt+F4. If the app is frozen, press Ctrl+Shift+Esc, select it in Task Manager and click End task.

How to Close Programs on Windows

  1. Click the X in the app’s top-right corner.
  2. Or click inside the app and press Alt+F4.
  3. Or right-click its taskbar icon and choose Close window (or Close all windows).
  4. If the app is not responding, press Ctrl+Shift+Esc to open Task Manager.
  5. Select the app under Processes and click End task.
  6. On Windows 11, you can turn on End task in the taskbar menu: Settings, System, For developers (Advanced on newer builds), End task.
Windows 11 taskbar app menu with End task and Close window highlighted
Right-click a taskbar icon to close or end it.

Close Methods

Method Use when
X button or Alt+F4 App responds normally
Taskbar Close window App is minimized
Task Manager End task App is frozen
Taskbar End task Quick force-close (Windows 11)
taskkill command Scripting or remote tasks

Related: how to restart the taskbar.

Troubleshooting

  • App keeps running in the system tray: closing the window may only hide it. Right-click the tray icon and choose Quit or Exit.
  • End task does nothing: restart the PC.
  • Unsaved work: End task can lose changes; try saving first.
  • Related: signing out of Windows and speeding up a slow laptop.

Frequently Asked Questions

Does Alt+F4 on the desktop shut down the PC?

It opens the Shut Down Windows box; nothing happens until you choose an option.

How do I close all programs at once?

Sign out or restart. Save work first.

Can I stop apps starting automatically?

Yes, in Task Manager, Startup apps, or Settings, Apps, Startup.

Is it the same on Windows 10?

Yes, except the taskbar End task option.

Summary

  1. Click X or press Alt+F4.
  2. Use the taskbar menu.
  3. Open Task Manager for frozen apps.
  4. Click End task.
  5. Quit tray apps from the tray.