What causes a computer to freeze

A frozen computer—one that stops responding to your mouse, keyboard, or clicks—usually means one of three things is happening: your hard drive is working overtime, your RAM (memory) is full, or a single program is using so much processing power that nothing else can run. The freeze is not random. Something specific is demanding more resources than your system can deliver at that moment.

The most common culprit is disk usage spiking to 100 percent. This happens when Windows Update is installing in the background, your antivirus is scanning files, or a program is reading and writing data faster than your drive can handle. Your computer is not broken—it is just waiting for the hard drive to catch up. A second cause is RAM running out. If you have 20 browser tabs open, Spotify playing, and three other programs running, your system runs out of memory and slows to a crawl. The third cause is a runaway process—a single program (often a web browser, a video player, or malware) consuming 80 or 90 percent of your CPU while everything else waits.

Key Takeaways

  • Most freezes happen because your hard drive, RAM, or processor is maxed out, not because your computer is broken.
  • Open Task Manager (Ctrl+Shift+Esc on Windows, Activity Monitor on Mac) to see which program is using the most resources right now.
  • Restarting your computer clears RAM and stops background processes, which fixes most freezes when ready.
  • If freezes happen every time you do the same thing, that program or task is the problem—uninstall it, update it, or stop running it alongside other programs.
  • Freezes that happen randomly and often may mean your hard drive is failing or malware is running; back up your files and run a scan.

Check what is using your resources right now

The fastest way to find out why your computer is frozen is to look at what is actually running. On Windows, press Ctrl+Shift+Esc to open Task Manager. On Mac, press Command+Space, type "Activity Monitor," and press Enter. Both tools show you every program running and how much CPU, memory, and disk space each one is using.

Look at the columns labeled CPU, Memory, and Disk (or % CPU and % Memory on Mac). If one program shows 80 percent or higher, that is your problem. Click on it and select "End Task" (Windows) or the X button (Mac) to close it. If your disk is at 100 percent, wait 30 seconds—Windows Update or an antivirus scan often finishes on its own. If it does not, restart your computer, which will pause the background task and free up your drive.

Restart your computer

Restarting is the single most effective fix for freezing because it clears your RAM, stops all background processes, and gives your hard drive a fresh start. When you restart, Windows or macOS closes every open program, clears temporary files from memory, and loads only the essential services your system needs to run.

If your computer is frozen and will not respond to clicks or keyboard input, hold the power button for 10 seconds until the screen goes black. Wait 30 seconds, then press the power button again to turn it back on. This is a hard shutdown and is safe to do—it is the same as unplugging the power cable. Once your computer restarts, try the task that was causing the freeze. If it does not freeze again, the problem was a temporary overload and restarting fixed it.

Identify programs that freeze your computer repeatedly

If your computer freezes every time you open a specific program—say, Photoshop or a particular website—that program is the problem. The program either has a bug, is not compatible with your version of Windows or macOS, or is using more memory than your system has available.

Try these steps in order. First, update the program: go to its settings or Help menu and look for "Check for Updates." Developers release updates to fix freezing bugs. Second, close other programs before opening the one that freezes. If Photoshop freezes when you have 15 browser tabs open but runs fine when nothing else is running, you do not have enough RAM for both. Third, uninstall and reinstall the program. Sometimes installation files get corrupted. If none of that works, the program may not be compatible with your system, and you may need to use a different one or contact the software maker for support.

Check for malware and viruses

If your computer freezes randomly, often, and without a clear cause, malware or a virus may be running in the background. Malware consumes CPU and disk resources while hiding from you, which causes constant freezing and slowness.

Run a full scan with Windows Defender (built into Windows) or your antivirus software. On Windows, open Settings, go to Privacy & Security, then Windows Security, and click "Virus & threat protection." Select "Scan options" and choose "Full scan." This takes 30 minutes to an hour but checks every file on your computer. If malware is found, let the antivirus remove it. If you use Mac, run a scan with your antivirus software or take your computer to an Apple Store. Do not ignore repeated freezing—malware gets worse over time and can steal your passwords and personal information.

Free up hard drive space

If your hard drive is nearly full, your computer will freeze because it has no room to write temporary files. Windows and macOS need free space to function smoothly. If your disk usage is constantly at 90 percent or higher, you need to delete files or move them to an external drive.

Start by emptying your Downloads folder and Recycle Bin (or Trash on Mac). Delete old email attachments and video files you no longer need. If you have a lot of photos, move them to an external hard drive or cloud storage like OneDrive or Google Drive. On Windows, you can also use Storage Sense to delete temporary files automatically: go to Settings, System, Storage, and turn on "Storage Sense." Aim to keep at least 10 to 15 percent of your drive free. If your drive is full and you cannot delete anything, you will need a larger hard drive or an external drive to store files.

Upgrade your RAM or replace your hard drive

If your computer freezes constantly even after restarting, closing programs, and removing malware, your hardware may be too old or too weak for what you are trying to do. RAM and hard drives are the two parts most likely to cause freezing.

If Task Manager shows your RAM is always above 80 percent even when you are not running much, you need more RAM. Adding RAM is one of the cheapest upgrades you can make—a 16 GB upgrade costs between $50 and $150 depending on your computer type. If your hard drive is 10 years old or older, it may be failing. Failing drives freeze, make clicking sounds, or show error messages about corrupted files. Replacing a hard drive with a solid-state drive (SSD) is faster and more reliable than the old spinning drives. Both upgrades require opening your computer or taking it to a repair shop, so get a quote before deciding. If your computer is very old, it may be cheaper to buy a new one than to upgrade it.

Frequently Asked Questions

Why does my computer freeze when I open Chrome or Firefox?

Web browsers use a lot of RAM, especially with many tabs open. Close some tabs, disable browser extensions you do not use, and make sure your browser is updated. If freezing happens only with one browser, try a different one to see if the problem follows the program or stays with your computer.

Can a virus cause my computer to freeze?

Yes. Malware runs in the background and uses CPU and disk resources, which causes freezing and slowness. Run a full antivirus scan. If you find malware, let your antivirus remove it. If freezing continues after a scan, take your computer to a repair shop to check for deeper infections.

Is it safe to force-shut down my frozen computer?

Yes. Holding the power button for 10 seconds until the screen goes black is safe and is the correct way to shut down a frozen computer. You may lose unsaved work in open programs, but you will not damage the computer itself.

Why does my computer freeze after I turn it on?

Windows Update or an antivirus scan often runs automatically after startup. Wait 5 to 10 minutes before using your computer. If freezing continues after 15 minutes, restart again and open Task Manager to see what is running. A failing hard drive can also cause this—if it happens every time, back up your files and consider replacing the drive.

Will adding more RAM fix my freezing?

Only if Task Manager shows your RAM is constantly above 80 percent. If your RAM is fine but your disk is at 100 percent, adding RAM will not help. Check Task Manager first to see which resource is actually maxed out.