PC restarts, shuts off or freezes randomly

Find out whether it was a hidden blue screen, a power problem or a hardware fault.

A PC that restarts, switches off or freezes on its own usually falls into one of three cases. Windows hit a blue screen and restarted before you could read it. The PC lost power, for example because of the power supply or overheating. Or the hardware stopped responding, so you had to hold the power button.

Microsoft notes that a single unexpected restart is often resolved by the restart itself. When it keeps happening, the clues below tell you which case you have.

How to tell which case you have

  1. After the restart, open Event Viewer (Win + R, eventvwr.msc) > Windows Logs > System and find the Kernel-Power event 41. On the Details tab, a BugcheckCode other than 0 means a hidden blue screen.
  2. If BugcheckCode is 0 and PowerButtonTimestamp is not 0, the power button was held down. If both are 0, Microsoft says this typically indicates a hardware problem, such as power loss.
  3. When the PC freezes, press Caps Lock. Microsoft uses this test: if the light does not change, the whole PC has stopped responding, not just one program.
  4. To see the stop code next time, turn off automatic restart: Win + R, sysdm.cpl > Advanced > Startup and Recovery > Settings > clear Automatically restart.

Start here: read the restart event

This guide explains the Kernel-Power 41 event in detail and turns its codes into the next step.

Hidden blue screens behind random restarts

These stop codes are common when a PC seems to restart for no reason, especially under load.

Freezes and hangs

The PC stops responding for a while or completely. Drivers that stall and storage that resets are common causes.

First steps for random restarts and freezes

These checks come from Microsoft's articles on unexpected restarts and Event ID 41. Do them in order and use the PC normally for a while after each.

  1. Remove hardware you added recently and check Device Manager for devices with a warning sign; update or disable them.
  2. Install the latest Windows updates and the current drivers for chipset, graphics and storage.
  3. Turn off overclocking, including XMP or EXPO memory profiles, and check CPU and GPU temperatures.
  4. Run Windows Memory Diagnostic (mdsched.exe) to test the RAM.
  5. Check that the power supply is strong enough for your components, and plug the PC straight into a wall socket.
  6. Keep 10% to 15% of the system drive free.
  7. If it started recently, use System Restore to go back to a point from before the problem.

Sources

Written and reviewed by Matyáš Rada.

You don’t need to know the technical name.

Tell us what you see. We’ll help you narrow down the problem.

Find by symptom