The quickest way to close a program that won't respond
When a program stops responding and won't close normally, press Alt + F4 while the frozen window is active. If that doesn't work, open Task Manager by pressing Ctrl + Shift + Esc, find the program in the list, click it once to select it, then click the "End Task" button at the bottom right. The program will close when ready, and you'll return to your desktop.
Both methods force the program to shut down without saving any unsaved work, so you'll lose whatever you were doing in that window. But a frozen program can't save anyway, and sometimes forcing it closed is the only way to regain control of your computer.
Key Takeaways
- Alt + F4 is the fastest keyboard shortcut to close the active window, even if the program isn't responding.
- Task Manager (Ctrl + Shift + Esc) lets you see all running programs and force-close any one of them by name.
- Forcing a program closed will lose any unsaved work in that window, but a frozen program can't save anyway.
- If Task Manager itself won't open, restart your computer by holding the power button for 10 seconds, then pressing it again to turn it back on.
Using Alt + F4 to close the active window
The Alt + F4 keyboard shortcut closes whatever window is currently in focus on your screen. Click anywhere inside the frozen program's window first to make sure it's the active window, then hold Alt and press F4. The window should close within a second or two.
This method works even when a program isn't responding to mouse clicks or other keyboard input. It's faster than opening Task Manager because you don't have to navigate through menus. The downside is that Alt + F4 only closes the window you're currently looking at — if you have multiple frozen windows open, you'll need to repeat the process for each one.
Opening Task Manager to end a specific program
Task Manager shows you every program running on your computer and lets you force-close any one of them. Press Ctrl + Shift + Esc to open it directly. You'll see a list of programs under the "Processes" tab, which is the default view.
Find the frozen program in the list — it will often have a label like "Not Responding" next to its name. Click it once to highlight it, then click the "End Task" button in the bottom right corner of the Task Manager window. The program will close when ready. You can then close Task Manager itself by clicking the X button in the top right.
If you're not sure which program is frozen, look for one with "Not Responding" in its status, or check the CPU or Memory columns to see which one is using the most resources. Some programs have confusing names in Task Manager, so if you're unsure, you can right-click the program and select "Open file location" to see what it actually is before you close it.
What to do if Task Manager won't open
Occasionally a system problem is severe enough that Task Manager itself won't open, or your computer becomes so unresponsive that nothing works. In this case, restart your computer by holding down the physical power button on your computer case for about 10 seconds until the screen goes black and the computer shuts down completely. Wait a few seconds, then press the power button again to turn it back on.
A forced restart like this will close all open programs without saving their work, but it's sometimes the only way to recover when your computer is completely frozen. After the restart, Windows will check itself for errors and may take longer than usual to boot up — this is normal and part of the recovery process.
Why programs freeze and stop responding
A program stops responding when it encounters an error or gets stuck waiting for something that never arrives — a file that won't load, a network connection that's too slow, or a bug in the program's code. When this happens, the program can't process your clicks or keyboard input anymore, even though it's still running in the background.
Freezes are usually temporary and specific to one program. If the same program freezes repeatedly, try updating it to the latest version, or reinstalling it completely. If multiple programs freeze at once, or if your entire computer becomes unresponsive, the problem might be with Windows itself or with your hard drive, and you may need to restart your computer or run a diagnostic check.
Preventing data loss when a program freezes
Once a program stops responding, you can't save your work through the program itself — it won't accept any input. The best prevention is to save your work frequently while you're using any program, so that if it does freeze, you've lost only the last few minutes of work rather than hours.
Some programs have an auto-save feature that saves your work automatically at regular intervals. Check the program's settings or preferences menu to see if this option is available. If you use cloud-based programs like Google Docs or Microsoft 365 online, your work is usually saved automatically as you type, so a freeze won't cost you anything.
Frequently Asked Questions
Will force-quitting a program damage my computer?
No. Force-quitting closes the program but doesn't harm your computer or Windows itself. You will lose any unsaved work in that program, but the computer will continue running normally. Restarting your computer by holding the power button is also safe, though it should only be done when nothing else works.
What's the difference between Alt + F4 and End Task?
Alt + F4 closes only the window that's currently active on your screen, while End Task in Task Manager lets you choose which program to close from a list. Both force the program to shut down when ready. Use Alt + F4 if you know which window is frozen; use Task Manager if you're not sure which program is causing the problem.
Can I force-quit Windows itself?
No. Windows is the operating system that runs your computer, and you can't close it through Task Manager. If Windows becomes completely unresponsive, your only option is to restart your computer by holding the power button for 10 seconds.
Why does my program keep freezing?
Repeated freezes usually mean the program has a bug, needs an update, or doesn't have enough memory to run properly. Try updating the program to the latest version first. If it still freezes, try uninstalling and reinstalling it. If you're running many programs at once, close some of them to free up memory.
Is it safe to restart my computer by holding the power button?
It's safe for your computer hardware, but you will lose any unsaved work in all open programs. Only do this when Task Manager won't open or your entire computer is frozen. After a forced restart, Windows may take longer to boot up as it checks itself for errors — this is normal.