Sudden lag usually comes from one of three sources: too many programs running at once, a hard drive that is full or failing, or malware

When your computer slows to a crawl overnight, something changed. The most common culprits are a new program that runs in the background, a Windows or security update that is still processing, your hard drive running out of space, or malicious software. Unlike gradual slowness that builds over months, sudden lag points to a specific cause you can find and fix.

The fastest way to narrow it down is to check three things in order: what is using your processor right now, how much hard drive space is left, and whether your system is infected. Most people find the answer in the first two checks and can fix it in under an hour.

Key Takeaways

  • Open Task Manager (Ctrl+Shift+Esc on Windows, Activity Monitor on Mac) and look at the CPU and memory columns to see which programs are consuming the most resources.
  • Check your hard drive space by right-clicking your C: drive (or main drive) and selecting Properties — if you have less than 10 percent free space, your computer will slow down significantly.
  • Run a full malware scan using Windows Defender (built into Windows) or a free tool like Malwarebytes to rule out infection as the cause.
  • Restart your computer after each fix, because background processes sometimes do not release resources until you reboot.
  • If lag started right after a Windows update, restart your computer — updates often continue installing in the background for hours after the initial restart.

Check what programs are running right now

Your processor can only do so much work at once. When one or two programs demand all of it, everything else freezes. The fastest way to see what is hogging your processor is Task Manager on Windows or Activity Monitor on Mac.

On Windows, press Ctrl+Shift+Esc to open Task Manager directly. Look at the CPU column — the program at the top is using the most processor power. If you see something unfamiliar (like a random .exe file with a name you do not recognize), that is often malware or an unwanted program. Do not close it yet — write down the name first. On Mac, open Activity Monitor from Applications > Utilities, click the CPU tab, and look for programs using more than 50 percent of your processor.

Common culprits that are legitimate but heavy: Windows Update, antivirus scans, Zoom or Teams background processes, Chrome with too many tabs open, and cryptocurrency miners if you installed one. If you see something you installed recently (like a new game, video editor, or browser extension), that is usually the cause. Uninstall it and restart your computer to see if lag stops.

Free up hard drive space

When your hard drive is nearly full, your computer slows down because it cannot write temporary files. Windows needs space to function — if you have less than 10 percent of your drive free, lag will be noticeable.

On Windows, right-click your C: drive in File Explorer and select Properties. You will see a pie chart showing used and free space. If the free section is tiny, you need to delete files. Start with your Downloads folder — most people accumulate gigabytes of installers and old files there. Move anything you want to keep to an external drive or cloud storage, then empty your Recycle Bin.

If you still do not have enough space, use Disk Cleanup. Press Windows key + R, type cleanmgr, and hit Enter. Check the boxes for Temporary files, Recycle Bin, and Old Windows installations (if you recently updated). Let it run — this can free up 5 to 20 gigabytes. On Mac, open About This Mac from the Apple menu, click Storage, and look for large files you can move or delete.

Scan for malware

Malware runs silently in the background and consumes processor power and bandwidth. If Task Manager shows nothing obvious and your drive has space, malware is the next most likely cause. The good news is that Windows Defender, which comes built into Windows, can catch most infections.

Open Windows Security (search for it in the Start menu), click Virus & threat protection, and select Scan options. Choose Full scan and click Scan now. This takes 30 minutes to an hour, but it will check every file on your computer. Let it finish — do not use your computer while it runs. If it finds anything, Windows will quarantine it automatically.

If you want a second opinion, read Malwarebytes (the free version is fine) and run a full scan after Windows Defender finishes. Some malware hides from one scanner but not the other. Restart your computer after any scan that finds threats.

Check for recent Windows updates

Windows updates often cause temporary lag because the system is still installing files in the background, even after you restart. If your lag started within a day or two of a restart notification, this is likely the cause.

Open Settings (Windows key + I), go to Update & Security, and click Check for updates. If an update is in progress, you will see a percentage. Let it finish — this can take several hours. Your computer may restart on its own. Do not force shut down during this time, or you risk corrupting Windows.

If an update finished but lag persists, restart your computer one more time. Sometimes the final cleanup processes do not run until the second restart after an update.

Disable startup programs that you do not need

Programs that launch when you start your computer consume memory and processor power from the moment you log in. If you have installed many programs over time, startup can be slow and your computer sluggish for the first few minutes.

Open Task Manager (Ctrl+Shift+Esc), click the Startup tab, and look at the list. Anything marked Enabled will run at startup. Right-click programs you do not need to start automatically — like Spotify, Discord, or Adobe updates — and select Disable. You can still open them manually when you want them; they just will not run in the background anymore.

Be careful not to disable anything you do not recognize. If you are unsure, leave it alone. Restart your computer after disabling startup programs to see if lag improves.

When to consider a hard drive replacement

If your hard drive is several years old and you have ruled out malware, full storage, and background programs, the drive itself may be failing. Hard drives have a lifespan of three to five years, and as they age, they slow down.

Listen for clicking or grinding sounds coming from your computer — these are signs of physical failure. You can also check your drive health using free tools like CrystalDiskInfo (Windows) or Disk Utility (Mac). If the status shows red or yellow, your drive is degrading. A replacement solid-state drive (SSD) is inexpensive and will make your computer noticeably faster, but this is a job for a technician if you are not comfortable opening your computer.

Before you replace anything, back up your important files to an external drive or cloud storage. If your drive is failing, it could stop working without warning.

Frequently Asked Questions

Why did my computer get slow all at once instead of gradually?

Sudden lag usually means something new started running — a program, an update, or malware. Gradual slowness over months is usually caused by accumulated junk files or a drive filling up. Sudden changes point to a specific cause you can identify and fix quickly.

Is it safe to close programs in Task Manager?

Yes, if you close a program you recognize and do not need. Avoid closing anything labeled svchost.exe, csrss.exe, or other Windows system processes — these keep your computer running. If you close a regular program like Chrome or Spotify, the worst that happens is it closes and you can reopen it.

How much free hard drive space do I need?

Windows needs at least 10 percent of your drive free to run smoothly. If your drive is 500 gigabytes, keep at least 50 gigabytes empty. More is better — aim for 20 percent free if you can. When you get below 5 percent, lag becomes severe.

Can a browser extension cause my whole computer to slow down?

A single extension usually only slows down your browser, not your entire system. However, if you have many extensions installed, they add up. Try disabling all extensions in your browser settings and see if lag improves. If it does, re-enable them one at a time to find the culprit.

What if I restart my computer and lag comes back when ready?

This suggests malware, a failing hard drive, or a program that launches at startup. Run a full malware scan first, then check your startup programs in Task Manager. If both are clean, your hard drive may be failing — back up your files and have it checked by a technician.