Skip to content

How-ToRAM

PC Randomly Restarts or Shuts Down? How to Find the Cause and Fix It

How to fix a PC that randomly restarts or shuts down: read the Kernel-Power Event ID 41 entry in Event Viewer (a non-zero BugcheckCode means a Stop error, zero points to power), then check the power supply's wattage and cables, look for overheating, turn off overclocking and XMP/EXPO, test the RAM and update drivers and BIOS.

By , Editorial team

4 min read

PC Randomly Restarts or Shuts Down? How to Find the Cause and Fix It

Few PC problems are as frustrating as a computer that suddenly restarts or switches off in the middle of a game. The good news is that Windows usually leaves a clue, and the list of likely causes is short: a Stop error (blue screen), the power supply, overheating, unstable memory or overclocking settings, or a driver problem.

This guide is based on Microsoft's official troubleshooting documentation, checked on 14 November 2026. Forge PC has not diagnosed your specific PC, so work through the steps in order and change one thing at a time.

Step 1: Restart or shut down? Note exactly what happens

  • It restarts and shows a blue screen first (or Windows reports an unexpected shutdown when it starts again): this is usually a Stop error. Go to Step 2.

  • The power cuts instantly, like pulling the plug, often under load in games: suspect the power supply or overheating. See Steps 3 and 4.

  • It won't turn back on at all afterwards: see our PC won't turn on or boot guide.

Step 2: Check Event ID 41 in Event Viewer

When Windows restarts without shutting down cleanly, it logs Event ID 41 (source: Kernel-Power) in the System log. To find it, right-click Start, open Event Viewer, go to Windows Logs > System and look for Kernel-Power 41 entries at the time of the crash. Open the entry and check the Details tab. Microsoft describes three scenarios:

What the event shows

What it means

What to do

A non-zero BugcheckCode

The PC restarted because of a Stop error

Convert the code to hexadecimal (Microsoft's example: 159 becomes 0x9F) and look it up; see our blue screen guide

A non-zero PowerButtonTimestamp

Someone held down the power button

Nothing is wrong, unless the PC had frozen first

BugcheckCode is 0, or no Event 41 at all

The PC lost power or hung so badly it could not record a code

Microsoft says this "might indicate a power supply problem"; work through Steps 3 to 6

Microsoft notes that Event ID 41 on its own "might not contain sufficient information" to explain what happened, so also think about what you were doing at the time.

Step 3: Check the power supply

Microsoft lists an underpowered or faulty power supply as a likely cause when the bug check code is zero. It advises checking that the PSU has enough wattage for everything installed, especially if you have recently added a more powerful graphics card, a new processor, more drives or external devices.

  • Compare your PSU's wattage with your graphics card maker's recommendation; our PSU sizing guide shows how.

  • Reseat the 24-pin, CPU and graphics card power cables at both ends with the PC unplugged.

  • Plug the PC straight into a wall socket rather than an extension lead, to rule out the lead.

  • If the PSU is old or underpowered, replacing it is often the fix; see our best power supplies.

Microsoft also suggests an uninterruptible power supply (UPS) if the problem is interruptions to your mains power.

Step 4: Check for overheating

Microsoft recommends checking the internal temperature of your hardware for overheating components. Watch CPU and GPU temperatures while gaming with the tools in our HWiNFO and Afterburner guide. If temperatures climb right before the shutdown, clean dust out of the fans and filters, check that every fan is spinning and follow our overheating fixes.

Step 5: Turn off overclocks and test your memory

Microsoft's advice is to disable any overclocking and confirm the problem still occurs at standard speeds, then check the memory. That includes memory profiles: temporarily turn off XMP or EXPO in the BIOS and see whether the restarts stop (our XMP and EXPO guide shows where the setting lives). Then test the RAM with the tools in our memory testing guide.

Step 6: Update drivers, BIOS and Windows

If Event 41 shows a Stop error code, the cause is often a driver. Update your graphics driver (or do a clean install with Display Driver Uninstaller if problems started after an update), install your motherboard's latest chipset drivers and consider a BIOS update. Make sure Windows Update is current too.

Our verdict

When a PC randomly restarts or shuts down, open Event Viewer and check the Kernel-Power Event ID 41 entry: a non-zero BugcheckCode points to a Stop error and usually a driver, while a code of zero (or no event at all) points to power, according to Microsoft. Then work through the hardware checks Microsoft recommends: make sure the power supply has enough wattage and its cables are seated, check for overheating, turn off overclocking and XMP or EXPO, and test the memory. Change one thing at a time so you know what fixed it. Forge PC has not diagnosed your PC; this guide follows Microsoft's official troubleshooting documentation.

The bottom line

When a PC randomly restarts or shuts down, open Event Viewer and check the Kernel-Power Event ID 41 entry: a non-zero BugcheckCode points to a Stop error and usually a driver, while a code of zero (or no event at all) points to power, according to Microsoft. Then work through the hardware checks Microsoft recommends: make sure the power supply has enough wattage and its cables are seated, check for overheating, turn off overclocking and XMP or EXPO, and test the memory. Change one thing at a time so you know what fixed it. Forge PC has not diagnosed your PC; this guide follows Microsoft's official troubleshooting documentation.

Sources

  1. 01Microsoft Learn, Event ID 41 The system has rebooted without cleanly shutting down first

About the author

Forge PC Staff

Editorial team

The shared byline for articles researched, written and edited by the Forge PC editorial team. How we source, check and correct our work is set out in our editorial policy.

More from Forge PC Staff

Read next

How to Clean Dust Out of Your PC Safely (and How Often to Do It)

How-To

How to Clean Dust Out of Your PC Safely (and How Often to Do It)

Switch off and unplug the PC, clean the dust filters first, then use short bursts of compressed air on fans, heatsinks, radiator fins and the PSU grille while holding each fan still so it can't overspin. Keep the can upright, brush fins gently, never open the PSU and don't vacuum inside the case. Check filters every month or two and clean inside every few months.

Forge PC Staff3 min

Two vs Four RAM Sticks for DDR5: Why 2x32GB Usually Beats 4x16GB

Versus

Two vs Four RAM Sticks for DDR5: Why 2x32GB Usually Beats 4x16GB

Two DDR5 sticks are better for most builds. AMD lists DDR5-5600 as the AM5 maximum with two modules but DDR5-3600 with four, and XMP or EXPO speeds above that are overclocking and not guaranteed. Buy 2x16GB or 2x32GB for 32GB or 64GB, and use four sticks, ideally a matched kit, only if you need 128GB or more.

Forge PC Staff3 min

SFX vs SFX-L vs ATX Power Supply: Which PSU Size Do You Need?

Versus

SFX vs SFX-L vs ATX Power Supply: Which PSU Size Do You Need?

ATX power supplies are 150 x 86mm with a depth of 140mm or more; SFX units are 125 x 63.5 x 100mm and SFX-L units are 125 x 63.5 x 130mm. Buy ATX for normal towers, SFX for compact mini-ITX cases and SFX-L only if your case supports it. An SFX unit can fit an ATX case with a bracket, but an ATX unit won't fit an SFX-only case.

Forge PC Staff4 min

Liquid Metal vs Thermal Paste: Is Liquid Metal Worth the Risk for Your CPU?

Versus

Liquid Metal vs Thermal Paste: Is Liquid Metal Worth the Risk for Your CPU?

Thermal paste is the right choice for almost everyone: it's cheap, easy and non-conductive. Liquid metal such as Thermal Grizzly Conductonaut targets maximum heat transfer but is electrically conductive, must never touch aluminium, can react with bare copper and needs insulation and checking. Use it only if you're experienced, ideally on nickel-plated copper or direct-die setups.

Forge PC Staff4 min