If your computer keeps turning off, first check whether it is sleeping, crashing, overheating, or losing power: sleep wakes normally, a crash shows a blue screen or restart, heat shuts it off under load, and power loss kills it instantly. Mix those up, and you can waste hours while a bad PSU, clogged cooler, or worn battery stays unfixed. This guide shows the fastest checks and the right fix for each pattern.

What the shutdown usually means

What the shutdown usually means
Windows power settings screen with a highlighted fast startup option

The quickest first step is to separate a real power-off from sleep, hibernate, and a crash. A sleeping PC usually comes back with a key press, mouse move, or power button tap, while a crash often leaves a blue screen, automatic restart, or an Event 41 entry in Windows logs. If the screen simply goes dark, that can be display sleep, not shutdown.

Open Settings > System > Power & battery and check the sleep and hibernate timeouts. Microsoft’s default plugged-in sleep timing is 15 minutes on S3 devices and 5 minutes on modern standby devices; the display-off default mentioned is 5 minutes when plugged in. Those settings can make a machine look dead when it is only asleep.

Suppose a desktop turns off only after a game menu sits idle for 10 minutes. That pattern points away from a PSU fault and toward sleep, hibernate, or a scheduled power change. A common first-timer mistake is to assume the monitor went dark because the whole PC died.

What your shutdown pattern usually means

Use the pattern before you touch fixes. The same symptom can mean a scheduled shutdown, thermal protection, a bad power supply, or a sleep setting that only looks like a failure. Windows logs and the machine’s behavior after the shutoff usually tell you which branch to follow next.

Symptom pattern Likely cause What Windows log to check Next test
Idle shutdowns Sleep, hibernate, display timeout, or wake timer Event 1074, 6006, and 6008 in System Check Power & battery timeouts and wake timers
Gaming shutdowns Overheating or PSU wattage under load Event 41 and 6008 after the failure Check CPU/GPU temperatures and power plugs, plus the GPU PCIe leads and CPU EPS cable
Shutdowns with no logs Immediate power loss or unstable hardware System log around the failure time Check wall outlet voltage, AC cord, laptop battery charge state, or PSU rails
Shutdowns with Event 41 Unexpected restart, crash, or power interruption Kernel-Power Event 41 Read BugcheckCode and PowerButtonTimestamp
Shutdowns after cooling Thermal trip or protective shutdown Event 41 and 6008, sometimes no clean shutdown Inspect CPU cooler fan speed, GPU fans, chassis vents, heatsink fins, and thermal paste coverage
Laptop-only shutdowns Battery wear, charger fault, or lid/power-button setting Event 1074 or 41 depending on the cause Test on AC power only and review battery health

Why did it turn off?

Windows logs often point you in the right direction first. Event Viewer’s System log can separate a planned shutdown from a dirty one or an unexpected restart. Filter for Event IDs 41, 1074, 6006, and 6008, then match the time stamp to the moment the PC turned off.

Read the System log the right way

  1. Press Win + X, choose Event Viewer.
  2. Open Windows Logs > System.
  3. Select Filter Current Log and enter 41, 1074, 6006, 6008 in the Event IDs box.
  4. Compare the entries around the shutdown time.
  5. Look at the General tab for the process name, user name, and any bugcheck details.

Event 1074 means a program or person requested the shutdown. It names the process and the user, so it is the best sign of a planned shutdown. Event 6006 marks a clean stop of the event log service. Event 6008 means the previous shutdown was unexpected and points to the failure time.

Kernel-Power Event 41 is the unexpected restart indicator. If the entry includes a BugcheckCode, a crash is more likely. If PowerButtonTimestamp is present, the power button was likely involved. If the code fields are zero, that points more toward power or hardware than a normal Windows shutdown.

Rank the likely causes

  • Most often: sleep, hibernate, or a scheduled shutdown that looks like a power-off.
  • Next: overheating under load.
  • Next: PSU or charger trouble.
  • Less commonly: BIOS power settings, wake timers, or Fast Startup behavior.

Is it overheating?

Is it overheating?
A desktop PC tower with purple lighting sits on a wooden floor

If the machine turns off during games, exports, or heavy multitasking, heat moves near the top of the list. CPU and GPU temperatures are the first numbers to check, because thermal protection can force an emergency shutdown before Windows can log much detail. A shutoff that happens after the machine has been running hard is a strong clue.

Check CPU and GPU heat under load

  1. Open Task Manager > Performance to confirm the CPU or GPU is under load when the problem happens.
  2. Use your motherboard or GPU utility to read current CPU and GPU temperatures.
  3. Look for blocked intake vents, dust in fans, or a fan that is not spinning.
  4. In Settings > System > Power & battery, reduce heavy background activity while testing.
  5. Run the same workload with the case panel open only as a short check, then stop if temperatures drop sharply.

If the PC shuts down after a few minutes of gaming, then stays on again once it cools, thermal protection is more likely than a random Windows fault. That pattern often points to a clogged cooler, dried thermal paste, or a fan curve that is too quiet for the load.

Check the cooling hardware

  1. Shut down the PC and unplug it.
  2. Inspect the CPU cooler, case fans, GPU fans, heatsink fins, and fan blades for dust buildup.
  3. Make sure every fan connector is seated on the motherboard.
  4. Confirm the heatsink is firmly mounted.
  5. If the system still overheats, plan for fresh thermal paste or cooler replacement.

Is it power loss or the PSU?

Instant black screens with no graceful shutdown often point to power delivery. A desktop PSU can trip over-temperature protection or cut out when load exceeds what it can supply. On laptops, the same symptom can come from a worn battery, a failing charger, or a damaged DC jack.

Check the power path first

  1. Move the desktop to a known-good wall outlet.
  2. Bypass the surge strip or UPS for a short test.
  3. Reseat the AC cable at both ends.
  4. For a laptop, test on AC only, then on battery only if the model allows it.
  5. Check whether shutdowns happen when the charger is wiggled, which points to a loose connector or bad brick.

On a desktop, a PSU that is undersized for the GPU and CPU load may stay fine at idle and fail during games. On a laptop, battery health matters more than wattage, and a machine may switch off the moment the battery can no longer hold the load even though the charge meter still shows a percentage.

Desktop versus laptop clues

  • Desktop: immediate power cut, no warning, no clean log entry, or Event 41 with zeroed fields.
  • Laptop: the machine dies on battery only, behaves differently on AC, or shuts off when the lid or power button settings change.

Could Windows be putting it to sleep?

Some “shutdowns” are sleep, hibernate, or a wake-related power change. Windows sleep and hibernate settings live in Settings > System > Power & battery, and Fast Startup can affect power-on behavior after a shutdown. Wake timers and scheduled tasks can also move the machine into or out of a power state without warning.

Check Fast Startup and power timeouts

  1. Open Control Panel > Power Options > Choose what the power buttons do.
  2. Select Change settings that are currently unavailable.
  3. Clear Turn on fast startup.
  4. Return to Settings > System > Power & battery.
  5. Set sleep and screen-off timers long enough to avoid mistaken shutdowns while testing.

Check wake timers, scheduled tasks, and BIOS settings

  1. Open Control Panel > Power Options > Change plan settings > Change advanced power settings.
  2. Expand Sleep and set Allow wake timers to your preferred test value.
  3. Open Task Scheduler and review tasks that say they can wake the computer.
  4. Check whether Windows Update or Automatic Maintenance is waking the PC.
  5. Enter BIOS or UEFI and review wake events, power management, and any power-on-by-device setting.

Say your PC wakes at 3:00 a.m. and then seems to “turn off” again when you move the mouse. That can be a wake timer plus a short idle timeout, not a hardware fault. The fix is to align sleep, wake, and maintenance settings instead of replacing parts too early.

Still not working?

Still not working?
Open desktop computer tower sits on a workbench with tools nearby

If the logs keep showing Event 41 with zeroed fields, or the machine still dies after you have checked sleep settings, heat, and the power path, move to hardware replacement decisions. That is the point where a failing PSU, battery, charger, motherboard power circuit, or cooling assembly becomes the stronger suspect than Windows itself.

If that didn’t work, try this next

  1. Run a clean boot to rule out startup software that triggers a shutdown or sleep change.
  2. Open Command Prompt as administrator and run sfc /scannow, then DISM /Online /Cleanup-Image /RestoreHealth.
  3. Update BIOS/UEFI if the vendor lists a fix for power or stability issues.
  4. For a desktop, test with a known-good PSU if the symptoms point to power loss under load.
  5. For a laptop, test with a known-good charger and, if possible, a replacement battery.
  6. Contact the manufacturer or a repair shop when the machine will not stay on long enough to complete logging or thermal checks.

Prevention: keep vents clear, avoid blocking intake grills on a laptop, and leave wake timers disabled unless you need them. That reduces repeat shutdowns caused by heat buildup or unexpected power-state changes.

Keep reading

Frequently asked questions

Why does my computer keeps turning off?

If you see 1074, something requested the shutdown. If you see 41 with zeroed fields, focus on power or hardware. If there is no useful log, check heat and the power path next.

Why my pc keeps turning off

Check whether it is really turning off or sleeping. Then review Settings > System > Power & battery for sleep and hibernate timers, plus Control Panel > Power Options for Fast Startup and wake settings. If it fails under load, move to cooling and PSU checks.

Why won't my PC turn back on after it shuts off?

That usually points to a power delivery problem, not a Windows setting. Check the wall outlet, power cable, PSU switch, charger, and battery. If the system is a desktop and there are no signs of life, the PSU or motherboard power circuit is a common suspect.

How can I tell what turned off my computer?

Open Event Viewer > Windows Logs > System and inspect the event around the failure time. 1074 names the process and user that asked for shutdown. 6008 marks an unexpected stop. 41 points to an unexpected restart or power interruption.

Why does my PC turn off when I play games?

Gaming raises CPU and GPU load, so heat and PSU wattage become the top suspects. Check temperatures, fan speed, and airflow first. If the PC shuts off only during games, a weak PSU or thermal protection trip is more likely than a normal Windows shutdown.