Random shutdowns usually come from overheating, a failing power supply, or corrupted drivers
When your PC powers off without warning, it is almost always protecting itself from damage. Your computer has built-in safety switches that kill power when the CPU or GPU gets too hot, when the power supply cannot deliver steady current, or when Windows encounters a critical error it cannot recover from. The shutdown happens fast because the alternative — letting a component overheat or fail — would destroy your hardware permanently.
The good news is that random shutdowns follow a pattern. Once you know what to look for, you can narrow down the cause in an hour or two without opening the case or buying new parts. Start by checking whether the shutdown happens during heavy use (gaming, video editing) or at idle, whether it happens right after startup or only after hours of running, and whether you see any error messages before it goes dark.
Key Takeaways
- Overheating is the most common cause of random shutdowns, and you can check your CPU and GPU temperatures using free software like HWiNFO before the shutdown happens.
- Power supply failure usually shows up as shutdowns during demanding tasks like gaming, and a failing PSU can damage other components if left running.
- Windows Update, driver conflicts, and corrupted system files cause shutdowns with error codes or blue screens that appear just before power-off.
- You can rule out most causes yourself by checking temperatures, updating drivers, and running Windows diagnostics before paying for a repair.
- If shutdowns happen only during one specific program or game, the problem is usually that program pushing your hardware past its limits rather than a hardware failure.
Check your CPU and GPU temperatures right now
read and run HWiNFO64 (free, from hwinfo.com). Open it, look for CPU Package and GPU Core temperatures in the main window, and write them down while your PC is idle — just sitting at the desktop. Idle temperatures should be between 30°C and 50°C depending on your room temperature and how old your cooler is. If you see 60°C or higher at idle, you have a cooling problem.
Now run a demanding task: play a game you own, open a video editor, or run a stress test like Prime95 (free, from mersenne.org). Watch the temperatures climb. Your CPU should stay under 85°C and your GPU under 80°C during heavy use. If either one hits 90°C or higher, or if your PC shuts down before you can read the number, overheating is your cause.
Common reasons for overheating: dust blocking the heatsink or fans, a cooler that came loose from vibration, thermal paste that dried out (usually after 3+ years), or a case with poor airflow. If you see high temperatures, shut down, let the PC cool for 30 minutes, then open the case and look for dust on the CPU cooler and case fans. A can of compressed air can often fix this in five minutes.
Test your power supply under load
A failing power supply often shuts down the PC during demanding tasks — gaming, rendering, or file transfers — because it cannot deliver the current the system needs. The shutdown is usually when ready with no warning, and it may not happen every time.
You can test this without replacing the PSU. Run a stress test like MemTest86 (free, bootable from memtest.org) or Prime95 and watch for shutdowns. If the PC stays on for 30 minutes under full load, your PSU is probably fine. If it shuts down within minutes, write down exactly what you were doing — gaming at high settings, rendering, copying large files — because that tells a technician how much power your PSU is trying to deliver when it fails.
A PSU that is failing should be replaced soon, even if it has not shut down yet. A dying power supply can send voltage spikes that damage your motherboard, CPU, or storage drive. If you cannot afford a replacement right now, avoid heavy tasks and keep your PC off when you are not using it.
Look for error messages and blue screens
If your PC shows a blue screen with white text before shutting down, or if you see an error message in the system log, Windows is telling you what went wrong. Write down the error code or the text you see — even a partial message helps.
Open Event Viewer by typing it into the Windows search box. Go to Windows Logs > System. Look for entries marked "Critical" or "Error" that happened at the same time as your shutdown. The description will often say something like "Driver IRQL not less or equal" (a driver conflict), "Kernel Power" (a hardware failure or power issue), or "Thermal Shutdown" (overheating).
If you see driver-related errors, go to Device Manager (right-click the Start button), look for any device with a yellow warning triangle, and update its driver. If you see multiple different errors, run Windows Update to patch your system, then restart and test again.
Update drivers and Windows
Outdated or corrupted drivers — especially for your graphics card, chipset, or storage controller — can cause random shutdowns. Go to Device Manager, right-click your graphics card (NVIDIA, AMD, or Intel), and select "Update driver." Choose "Search automatically for updated driver software." Windows will read and install the latest version from the manufacturer.
For NVIDIA or AMD cards, you can also visit nvidia.com or amd.com directly, read the latest driver for your card model, and install it manually. This often fixes shutdowns that happen during gaming or video playback.
Run Windows Update by opening Settings > Update & Security > Check for updates. Install all available updates, restart your PC, and test for a few days. Many random shutdown issues are fixed by a single Windows patch.
Run Windows diagnostics and check your storage drive
Windows has a built-in diagnostic tool that can catch hardware problems. Open Settings > System > About, scroll down, and click "Diagnostics." Windows will run a quick check and report any issues it finds. If it finds a problem, it will tell you whether it is your RAM, storage drive, or another component.
If you have an older hard drive (HDD), it may be failing. Open File Explorer, right-click your C: drive, and select Properties. If you see a message saying "Scan and fix this drive," click it and let Windows run a full scan. Restart when prompted. If the scan finds bad sectors, your drive is failing and should be replaced soon — back up your files first.
For solid-state drives (SSD), read CrystalDiskInfo (free, from crystalmark.info). Open it and look at the Health status. If it says "Good," your drive is fine. If it says "Caution" or "Bad," your drive is failing.
Check for malware and corrupted system files
Malware can cause random shutdowns by consuming CPU power or corrupting system files. Open Windows Defender (built into Windows) by typing "Windows Security" into the search box. Go to Virus & threat protection > Scan options, select "Full scan," and run it. This takes 30 minutes to an hour but will catch most malware.
If you want a second opinion, read Malwarebytes (free version available) and run a scan. If either tool finds threats, remove them and restart your PC.
You can also repair corrupted system files using the Command Prompt. Right-click the Start button, select "Windows Terminal (Admin)," and type this command: sfc /scannow. Let it run to completion — it may take 15 minutes. If it finds corrupted files, it will repair them automatically. Restart your PC when done.
When to call a technician
If you have checked temperatures, updated drivers, run diagnostics, and the shutdowns continue, you likely have a hardware failure that needs professional diagnosis. A technician can test your power supply with a load tester, check your motherboard for capacitor damage, and run extended memory tests that take hours.
Before you go, write down: when the shutdowns started, whether they happen during specific tasks or at random times, what temperatures you saw, and any error codes from Event Viewer. This information saves a technician time and usually saves you money.
Frequently Asked Questions
Can a virus cause random shutdowns?
Yes, but it is less common than hardware problems. Malware that uses a lot of CPU power can trigger thermal shutdowns, and some malware deliberately crashes Windows. Run a full malware scan with Windows Defender and Malwarebytes to rule this out. If the scan finds nothing and your temperatures are normal, the cause is probably hardware.
My PC shuts down only when I play one specific game. Does that mean the game is broken?
Not necessarily. That game probably pushes your GPU or CPU harder than other programs do, which means it is exposing an existing problem — overheating, a failing power supply, or a driver issue. Check your temperatures while playing that game. If they are normal and the shutdown still happens, the problem is likely your power supply or a driver conflict specific to that game.
Should I disable fast startup to fix random shutdowns?
Disabling fast startup rarely fixes random shutdowns, but it can help if shutdowns happen only during startup. Go to Settings > System > Power & sleep > Additional power settings > Choose what the power button does > Change settings that are currently unavailable, then uncheck "Turn on fast startup." Restart and test for a few days.
What if my PC shuts down and will not turn back on for several minutes?
This usually means your power supply is overheating or failing. When a PSU gets too hot, it shuts down to protect itself and needs time to cool before it will power on again. Check that your case fans are spinning and that air can flow freely around your PC. If the problem continues, your power supply should be replaced.
Can I fix random shutdowns by underclocking my CPU or GPU?
Underclocking can help if overheating is the cause, because it reduces heat output. But it is a temporary fix, not a solution. If your PC is overheating, the real fix is cleaning dust from your cooler, replacing thermal paste, or upgrading your cooler. Underclocking just masks the problem and makes your PC slower.