Computer Keeps Restarting by Itself? How to Find the Cause (2026)
Quick answer
If your Windows 11 computer keeps restarting by itself, first stop Windows from restarting automatically after a crash so you can read the error. Then open Event Viewer and look for Kernel-Power Event ID 41 around the restart time. If the event shows a bug check code, the restart was a Windows crash, so follow the blue screen guide. If the code is zero or there is no error at all, the cause is more often power, heat, memory or another hardware problem.
Find your type of restart first
- A blue or black error screen flashes, then it restarts: Windows crashed with a stop code. Do Fix 1 to keep the error on screen, then see the blue screen guide.
- The screen goes black and it restarts instantly, with no message: think power, heat or hardware first. See Fix 2 to Fix 4.
- It restarts again and again before you reach the desktop: this is a restart loop. Use Fix 6 and our Windows 11 will not boot guide.
- It restarts when you choose Shut down: try Fix 5 (Fast Startup and updates).
- It restarts only under load, such as gaming: heat or the power supply is likely, see Fix 4.
Fix 1: Turn off automatic restart so you can read the error
By default Windows restarts straight after a system failure, which can hide the error. HP’s support team suggests switching this off to find out whether a hidden crash is triggering the reboot.
- Press Windows key + R, type
sysdm.cpland press Enter. - Open the Advanced tab and, under Startup and Recovery, select Settings.
- Under System failure, clear the Automatically restart box and select OK.
This is a diagnostic step, not a fix. If a blue screen now stays on screen, note the stop code and look it up in our blue screen guide.

Fix 2: Read Event ID 41 in Event Viewer
When Windows restarts unexpectedly, it logs a Critical event called Kernel-Power, Event ID 41, on the next start. Microsoft’s forum answers explain that this event only means the previous shutdown was not clean. The PC may have lost power, hit a stop error, or hung. It is a clue, not the cause itself.
- Right-click Start and open Event Viewer.
- Go to Windows Logs, then System.
- Find Critical entries with the source Kernel-Power and Event ID 41 at the time of the restart.
- Open the entry and select the Details tab. Check BugcheckCode.
- BugcheckCode is not zero: a Windows stop error caused the restart. Use the code in the blue screen guide, and look at nearby Error entries for a driver name.
- BugcheckCode is zero, or there is no Event ID 41 at all: Windows could not record an error before it lost power or locked up. Microsoft community answers say this pattern often points to a power supply or power interruption problem, although a faulty memory module has caused the same pattern.
Fix 3: Check power and unplug extras
On a laptop, test with the charger and without it, and try another wall outlet. On a desktop, check that the power cable is firm and that nothing like a worn power strip is involved. Unplug USB devices, external drives and extra monitors, and see whether the restarts stop. A faulty device can sometimes pull Windows down with it.
Fix 4: Rule out overheating and overclocking
A PC that gets too hot will shut itself down to protect its parts, and overheating is one of the common causes of restart loops. Clear dust from vents and fans, keep a laptop on a hard surface, and read how to keep a laptop cool. If you have overclocked the CPU, graphics card or memory, return everything to default settings, because Microsoft’s guidance for this event lists overclocking among the causes to disable.
Fix 5: Update Windows, drivers and the BIOS, and turn off Fast Startup
- Open Settings, then Windows Update, and install updates, including Advanced options, Optional updates, Driver updates.
- Download the latest BIOS and chipset drivers for your exact model from your PC maker’s support site. HP lists an outdated BIOS among the causes of reboot loops.
- If it restarts when you shut down, open Control Panel, Power Options, Choose what the power buttons do, Change settings that are currently unavailable, and clear Turn on fast startup. A Microsoft forum answer for a laptop that shut down randomly suggests this as a test.
Fix 6: Try a clean boot
A clean boot starts Windows with only essential services, which tells you whether a program or service is causing the restarts. HP’s guide uses these steps:
- Press Windows key + R, type
msconfigand press Enter. - On the Services tab, tick Hide all Microsoft services, then select Disable all.
- On the Startup tab, open Task Manager and disable the startup items.
- Restart and watch the PC. If it is stable, turn items back on a few at a time to find the culprit.
Fix 7: Repair system files and test memory
Open Command Prompt as administrator and run sfc /scannow. Then run mdsched.exe from the Run box and choose Restart now and check for problems to test memory. The standard test can take 20 to 30 minutes. Faulty memory is one of the hardware causes Microsoft’s guidance lists for this kind of restart.
Fix 8: Check the power supply (desktops) and BIOS settings
If Event ID 41 shows a zero bug check code and nothing else explains the restarts, a failing power supply is a common explanation on desktops. Testing it with a known good power supply is the clearest check, and a technician can do this quickly. Some forum answers also suggest turning off CPU power-saving modes (C-states) in the BIOS as a test for a motherboard or power management issue. That is an advanced step, so use your motherboard manual or ask a technician.
Malware and last steps
Run a Quick scan in Windows Security, and a Microsoft Defender Offline scan if you suspect an infection. If the restarts began recently, System Restore can return the PC to an earlier point without deleting personal files. Back up your files first.
When to get help
If it still restarts after these steps, take the PC to a technician and bring your Event ID 41 details, any stop codes and the fixes you already tried. Frequent restarts with a zero bug check code usually need a hardware test.
How this guide was made
The event reading steps follow Microsoft’s Event ID 41 troubleshooting guidance and answers on Microsoft’s Q&A site. The clean boot and automatic restart steps follow HP’s support community. Some hardware tests are common technician practice. We have not tested these steps on every PC.
Frequently asked questions
What does Kernel-Power Event ID 41 mean?
It means Windows restarted without shutting down cleanly. It does not name the cause on its own, so look at the bug check code and nearby events.
Is a restart loop the same as a crash?
A crash is one event. A restart loop is a crash or failure that repeats every time Windows starts, so see the boot guide if you cannot reach the desktop.
Can overheating make a PC restart?
Yes. A PC that gets too hot may shut down or restart to protect its hardware.
Will turning off automatic restart fix it?
No. It only keeps the error on screen so you can find the real cause.
Related guides
Sources
- Microsoft Learn: Event ID 41, the system has rebooted without cleanly shutting down first
- Microsoft Q&A: How to fix critical error 41
- HP Support Community: Laptop restart loop troubleshooting steps
Last updated: December 2026
