When a program freezes, it stops reacting to clicks and key presses, and it can leave you staring at a window that will not close. You do not usually need to restart the whole computer: both Windows and macOS let you force a single app to close. The steps below start with the gentlest option.
Try closing it normally first
Before forcing anything, give the app a chance to close properly. On a Mac, press Command-Q or choose Quit from the app's menu. Apple recommends this first because a normal quit lets the app do what it needs to before closing, such as saving changes.1
On Windows, press Alt+F4, which closes the active window.4 Click on the frozen window first so that it is the active one, otherwise you may close a different program.
If the app still will not close, force it to quit using the steps below.
You may lose unsaved work
Force quitting closes the app straight away, without giving it a chance to save. Any changes you had not saved in that app may be lost.2,6
How to force quit on Windows 11 and Windows 10
The tool for this on Windows is Task Manager. The quickest way to open it is a single keyboard shortcut.4,5
If that shortcut does not work, there are other ways to open Task Manager on Windows 11:5
- Press Ctrl+Alt+Delete, then choose Task Manager on the screen that appears.4,5
- Right-click the Start button, then click Task Manager.5
- Press the Windows key and X together, then click Task Manager.5
- Press the Windows key and R, type taskmgr and click OK.5
How to force quit on a Mac
Every Mac has a Force Quit window that lists your open apps and lets you close one that is stuck.1,2
If it is Finder that has frozen (the app that shows your files and desktop), select Finder in the same window and click Relaunch instead.1 If an app closed by itself rather than freezing, macOS may offer to reopen it, and you can click Reopen.2
If the whole computer is frozen
Sometimes it is not just one app: the pointer will not move, or nothing responds to the keyboard.
On Windows, if pressing Ctrl+Alt+Delete does nothing, the computer may be completely locked up, and restarting it is the next step.6 Our guide to the Windows blue screen error helps if the PC crashes to a blue screen instead.
On a Mac, if you cannot force an app to quit, choose Apple menu > Restart.1 If the Mac will not restart either, press and hold the power button for up to 10 seconds until it turns off. On Mac laptops with Touch ID, hold the Touch ID button instead. Then press and release the power button to turn it back on.1,3
Forcing a restart is a last resort
Apple notes that forcing a Mac to restart does not prompt you to save open documents, so you can lose unsaved work in every open app, not just the frozen one. Only use it when nothing else responds.3
How to stop it happening again
An app that freezes once is usually nothing to worry about. If the same app keeps freezing, try these steps.
On a Mac, Apple suggests:2
- checking that the app works with your version of macOS;
- checking for updates to the app;
- opening a different file in the app, because the problem may be the file rather than the app;
- disconnecting any accessory you recently plugged in;
- removing third-party plug-ins or add-ons from the app.
On Windows, Computer Hope suggests:6
- installing any updates for the program;
- uninstalling and reinstalling it;
- running an antivirus and malware scan;
- contacting the program's developer.
If your whole computer feels sluggish rather than one app, see our guide to fixing a slow computer. A nearly full drive can also make apps struggle, so it is worth checking how to free up disk space on Windows or Mac.
If your laptop also gets hot or its fan roars while an app is struggling, see how to fix a loud or overheating laptop.
When to get help
If one program keeps freezing after you have updated and reinstalled it, contact its developer.6 On a Mac, if problems continue across several apps, Apple suggests running its built-in diagnostics.2 On a phone, apps that close by themselves are a different problem: see our guide on what to do when an Android app keeps stopping. And if the computer will not switch back on after a forced shutdown, see what to do when a laptop won't turn on.
Common questions
What is the Mac version of Ctrl+Alt+Delete?
The closest equivalent is Option-Command-Esc, which opens the Force Quit window.3
Is force quitting bad for my computer?
It closes the app without letting it tidy up, so you can lose unsaved changes in that app. That is why Apple recommends quitting normally first whenever you can.1,2
Can I record the error before closing the app?
Yes. If a message appears before an app freezes, it can help to capture it for later. Our guide shows how to take a screenshot on Windows and Mac.
