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.