Random shutdowns usually mean overheating, a failing power supply, or corrupted Windows files — and the cause changes what you do to fix it
When your computer shuts down on its own, it is almost always protecting itself from damage. Your machine has built-in safety switches that kill the power if the processor gets too hot, if the battery drains suddenly, or if Windows detects a critical error it cannot recover from. The shutdown happens without warning because these safety systems do not give you time to save your work — they just cut power to prevent hardware failure.
The three most common causes are thermal shutdown (overheating), power supply failure, and Windows corruption. Less often, a failing hard drive, a loose RAM stick, or malware can trigger it. The order you check them matters: start with the easiest diagnosis first, because overheating is both the most common cause and the one you can rule out in minutes.
Key Takeaways
- Overheating is the most common cause of random shutdowns, and you can check your processor temperature in seconds using free software like HWiNFO or Core Temp.
- If your computer shuts down during heavy use (gaming, video editing) but stays on during light use, overheating is almost certainly the problem.
- A failing power supply often produces shutdowns that happen without any pattern, sometimes with a burning smell or a clicking sound from inside the case.
- Windows corruption can cause shutdowns paired with error messages like "DRIVER_IRQL_NOT_LESS_OR_EQUAL" or "SYSTEM_SERVICE_EXCEPTION" in the Event Viewer.
- If your laptop shuts down only when unplugged, the battery itself is failing and needs replacement.
Check your processor temperature first
read and run HWiNFO64 (free, from hwinfo.com) or Core Temp (free, from alcpu.com). Both show your processor temperature in real time. Open the program, then use your computer normally — browse the web, open email, whatever you usually do. Watch the temperature reading.
Safe temperatures are below 80°C (176°F) during normal use and below 90°C (194°F) during heavy use like gaming or video rendering. If you see temperatures above 90°C during light use, or above 100°C at any time, overheating is causing your shutdowns. Shut down the computer when ready and let it cool for 30 minutes before restarting.
If temperatures are normal but you still suspect overheating, check whether shutdowns happen only during heavy use. Open a game or video editor and watch the temperature climb. If the machine shuts down when the temperature hits 95°C or higher, thermal shutdown is the culprit even if the temperature reading seemed normal during light use.
Clean dust from your fans and vents if overheating is the problem
Dust buildup is the most common reason processors overheat. Shut down your computer completely and unplug it. Wait five minutes. Open the case (usually four screws on the back panel for a desktop, or a panel on the bottom for a laptop). Look for dust caked on the heatsink (the metal fins attached to the processor) and on the fans.
Use compressed air to blow dust out of the heatsink fins and away from the fans. Hold the can upright and use short bursts. Do not let the fans spin freely while you blow air — hold them still with your finger so the air pushes dust out rather than spinning the bearing. For laptops, blow air through the vents on the sides and bottom. If you see heavy dust, repeat this two or three times.
Plug the computer back in and power it on. Run your temperature software again and check whether the readings dropped. If temperatures are now below 80°C during normal use, the problem is solved. If temperatures are still high, the thermal paste between the processor and heatsink may have dried out, which requires removing the heatsink and reapplying paste — a more involved repair.
Test your power supply if shutdowns happen randomly with no pattern
A failing power supply often produces shutdowns that seem random because the supply cannot deliver stable power under load. You might notice the computer shuts down at different times each day, or sometimes stays on for hours. You may also smell something burning near the back of the case, or hear a clicking or buzzing sound from inside.
The most reliable test is to swap in a known-good power supply from another computer, or to borrow one temporarily. If the shutdowns stop after you swap the supply, the original power supply is failing and needs replacement. If shutdowns continue, the power supply is not the cause.
If you cannot borrow a power supply, look at the back of your current one. The label shows wattage (usually 500W, 650W, 750W, or higher). If your computer has a high-end graphics card or multiple hard drives, and the power supply is rated below 500W, it may be undersized for your hardware. Upgrading to a higher-wattage supply often fixes random shutdowns in this case.
Check Windows Event Viewer for error codes
Windows logs every shutdown reason in the Event Viewer. Right-click the Start button and select Event Viewer. Navigate to Windows Logs > System. Look for entries marked "Critical" or "Error" that happened around the time your computer shut down. The entry will show a code like "DRIVER_IRQL_NOT_LESS_OR_EQUAL" or "SYSTEM_SERVICE_EXCEPTION".
These codes point to corrupted Windows files or a bad driver. If you see the same code repeatedly, search that code online along with your graphics card model or motherboard model — the search results often point to a specific driver update that fixes it. read the latest driver from the manufacturer's website and install it.
If Event Viewer shows no errors around the shutdown time, Windows corruption is unlikely. If you see "The system has rebooted without cleanly shutting down first" with no error code, the shutdown was caused by something outside Windows — usually overheating or power supply failure.
Reseat your RAM and check for loose cables
A RAM stick that is not fully seated in its slot can cause random shutdowns. Power off the computer and unplug it. Open the case. Locate the RAM sticks (long, thin modules standing upright near the processor). Push down on each one until you hear a click and the side clips snap into place. Close the case and power on.
While the case is open, check that all power cables are plugged firmly into the motherboard and graphics card. A loose 24-pin power connector or 8-pin CPU power connector can cause shutdowns under load. Unplug and replug each connector to make sure they seat fully.
For laptops, RAM is usually soldered to the motherboard and cannot be reseated. Check that the battery is fully inserted into its slot (usually accessible from the bottom panel) and that no cables are visibly loose inside.
Run Windows Startup Repair if you see error codes
If Event Viewer shows repeated error codes, Windows system files may be corrupted. Restart your computer and press F8 repeatedly as it boots (before the Windows logo appears). Select Repair Your Computer. Choose Troubleshoot > Advanced Options > Startup Repair. Let it run — this can take 15 to 30 minutes.
Startup Repair scans for corrupted system files and replaces them from Windows' backup copies. If it finds and fixes problems, restart the computer and monitor for shutdowns over the next few days. If shutdowns continue, or if Startup Repair finds no problems, the issue is likely hardware-related (overheating, power supply, or RAM) rather than Windows corruption.
Frequently Asked Questions
My computer shuts down only when I play games or edit video. What does that mean?
Heavy workloads push your processor and graphics card to maximum power draw and heat output. If your computer shuts down only then, overheating is almost certainly the cause. Check your processor temperature during gaming — if it climbs above 90°C, clean the fans and heatsink when ready.
The shutdown happens with no warning and no error message. How do I know what caused it?
Check Event Viewer first. If it shows no errors, overheating or power supply failure is most likely. Run your temperature monitoring software during normal use — if temperatures are normal, test your power supply by swapping it with a known-good one from another computer.
My laptop shuts down only when it is unplugged from the charger. Is the battery broken?
Yes, most likely. The battery is failing and cannot hold a charge. Plug the laptop in and check how long it runs unplugged — if it shuts down within a few minutes, the battery needs replacement. Contact the laptop manufacturer or a repair shop for a replacement battery.
I cleaned the fans and the temperature is still 95°C. What should I do?
The thermal paste between the processor and heatsink has probably dried out. This requires removing the heatsink, scraping off old paste, explore new thermal paste, and reinstalling the heatsink — a delicate process. If you are not comfortable doing this, take the computer to a repair shop.
Can malware cause random shutdowns?
Rarely. Malware usually causes slowdowns, crashes, or error messages rather than clean shutdowns. Run a full scan with Malwarebytes (free version available) to rule it out, but focus on overheating and power supply first — those cause 90 percent of random shutdown cases.