In this guide (8 sections)

Your PC restarts on its own: the screen goes black, the fans may speed up for a moment, and then the PC starts up again as if you had pressed the reset button. There’s no error message, so it feels random. It almost never is. Something is making the PC stop suddenly, and Windows usually records a clue each time. This guide shows you how to read those clues and find the cause, from the easiest checks to the parts that sometimes need replacing. If only the screen goes black and the PC keeps running (music keeps playing, the lights stay on), the PC isn’t restarting: see our guide about a monitor that goes black at random.

Quick fix

Do these four things first:

  1. Make Windows show the error: by default, Windows restarts straight after a blue screenBlue screen (BSOD): The full-screen error Windows shows just before it restarts after a serious crash. On recent Windows 11 updates it is black instead of blue. More in our Windows & performance glossary →, so you never see it. Turn that off to see the error the next time.
  2. Check the list of past crashes: type “reliability” in the Start menu and open View reliability history. Red crosses on the days it restarted point to the cause.
  3. Undo recent changes: if you recently turned on XMPXMP / EXPO: A one-click BIOS setting that runs RAM at its advertised faster speed. If unstable, the PC may not start. More in our RAM & storage glossary →, used overclockingOverclocking: Running a part faster than its standard speed. More speed, but the PC can freeze, restart or show a blue screen if the part can't handle it. More in our Windows & performance glossary →, or added a part, undo that change and see whether the restarts stop. More on this.
  4. Watch the temperatures: if it restarts mostly in games, check the processor and graphics card temperatures. How to check.

The PC switches off completely instead of restarting? See PC turns off while gaming.

Want to see how others fixed it? Read 4 real cases from PC forums.

What kind of restart do you have?

When and how the PC restarts is the best clue:

What happens Most likely cause Where to look
It restarts suddenly, and you never see any error. A blue screen that Windows hides by restarting straight away See cause 1
It restarts while you’re away or overnight, and your apps are closed when you come back. Windows Update finishing an update See cause 2
It restarts mostly in games or other heavy work. Overheating, or a power supply that can’t keep up See causes 3 and 4
It started after you changed a setting in the BIOS or added a part. Unstable RAM settings or an overclock See cause 5
It also restarts in the BIOS or before Windows finishes loading. A hardware fault, such as a RAM module, the motherboard or the processor See cause 6

1. A blue screen is flashing past too fast to see

When Windows hits a serious error, it shows a blue screen with a stop codeStop code: The name in capital letters on the blue screen, such as VIDEO_TDR_FAILURE. It tells you what kind of error caused the blue screen. More in our Windows & performance glossary → and then restarts. On many PCs the restart happens so fast that you never see the blue screen at all. From your chair, it just looks like a random restart.

How to check:

  1. Turn off the automatic restart so the blue screen stays on screen next time. Our guide to blue screens shows where the setting is.
  2. Open Reliability MonitorReliability Monitor: A built-in Windows page that lists every crash and problem day by day, with the stop code. More in our Windows & performance glossary → (type “reliability” in the Start menu). A red cross with “Windows was not properly shut down” only tells you the PC stopped suddenly. A red cross saying “Shut down unexpectedly”, with “BlueScreen” in its details, means there was a blue screen: the code next to “BCCode” identifies it.

In Event ViewerEvent Viewer: A Windows tool that keeps a detailed list of warnings and errors, including graphics driver resets. More in our Windows & performance glossary → you will probably also find Kernel-Power event 41Kernel-Power event 41: A note Windows records after the PC restarted or lost power without shutting down properly. It confirms the problem but doesn't name the cause. More in our Windows & performance glossary → for each restart. That event only confirms that the PC didn’t shut down properly. It doesn’t name the cause, so don’t stop there.

Fix: once you have a stop code, follow the steps for it. Our guide shows how to find what caused a blue screen. If you see WHEA_UNCORRECTABLE_ERROR, or WHEA-Logger errors in Event Viewer, see our guide to WHEA errors: they point to the processor, its settings or its power.

2. Windows Update is restarting the PC

Windows installs updates on its own and restarts the PC to finish them, usually outside the hours you normally use it. If you come back to a PC that has restarted and your apps are closed, an update is the most likely reason.

How to check: open Settings → Windows Update → Update history. If an update was installed on the day and around the time of the restart, that explains it.

Fix: in Settings → Windows Update → Advanced options, set Active hours to the hours you use the PC (on Windows 10: Settings → Update & Security → Windows Update → Change active hours). Windows won’t restart for updates during that time. This only explains restarts while you’re away; if the PC restarts while you’re using it, the cause is something else. If the restart for an update never finishes and the PC stays on a “Getting Windows ready” screen, see our guide about a PC stuck on “Getting Windows ready”.

3. The processor or graphics card is overheating

When the processor or graphics card gets too hot, it first slows down to protect itself. If that isn’t enough, the PC shuts down or restarts. That’s what makes the problem look random: it happens only after a while in a game, or on a hot day.

How to check: watch the temperatures while you play. Our guide shows how to see them on screen while gaming and which numbers are normal. If a temperature keeps climbing right up to each restart, heat is the cause. Some recent processors run at about 95°C under heavy load by design, so a high number alone isn’t proof: what matters is the climb just before the restart.

Fix: clean the dust out of the PC, check that every cooling fan spins, and make sure the processor heatsink is pressing evenly on the processor. Our guides to high processor temperatures and graphics card temperatures go through each fix.

4. The power supply can’t keep the power steady

The power supplyPSU (power supply): The power supply: the box that takes power from the wall and feeds every part through cables. More in our PC basics glossary → has to deliver steady power even when the graphics card suddenly needs much more of it. A power supply that is too small, worn out or faulty can let the power dip for a split second, and the PC restarts instantly, with no blue screen and no error. A loose or damaged power cable can do the same.

How to check:

  • The restarts happen mostly when the graphics card is working hard, for example when a game loads or in scenes with a lot of action.
  • They started after you installed a more powerful graphics card.
  • There’s never a stop code in Reliability Monitor, only “not properly shut down”.
  • Every power cable is pushed in at both ends until you hear its latch click. Our guide to a PC that turns off while gaming shows how to check the graphics card cables.

Fix: if your power supply is below what your graphics card maker recommends, or several years old, test with a stronger or newer one. Our guide to the signs of a failing power supply explains how to test it safely.

5. RAM settings or an overclock are unstable

The RAMRAM (memory): Memory modules: short-term working space the PC needs to run. They clip into slots next to the processor. More in our PC basics glossary → and the processor can run faster than their standard speed, through an XMP or EXPO profile, an overclock, or automatic boost options on the motherboard. If a setting is a little too aggressive, the PC usually runs fine and then restarts at a random moment, often with a different stop code each time.

How to check: enter the BIOS and load the default settings (often called “Load Optimized Defaults”). Use the PC normally for a day or two. If the restarts stop, one of your settings was the cause. If the PC opens the BIOS instead of Windows after loading the defaults, see how to fix a PC that opens the BIOS instead of Windows.

Fix: turn your settings back on one at a time. If the RAM profile is the cause, try the next lower speed, or test the RAM itself. Our guides show how to set XMP safely and how to test the RAM.

6. A part is starting to fail

If the PC restarts even with default settings, normal temperatures and a good power supply, a part may be faulty: a RAM module, the motherboard or, more rarely, the processor. Restarts that also happen in the BIOS or before Windows loads point strongly to hardware, because Windows isn’t involved yet.

How to check:

  1. Update the BIOS and the chipset drivers from your motherboard maker’s website. Updates often fix stability problems.
  2. If you have two or more RAM modules, use the PC with only one at a time. If the restarts stop with one module and come back with the other, that module is faulty.
  3. If you can, try a different power supply, motherboard or processor, one at a time. Changing one part at a time is the only way to be sure which one is faulty.

Fix: replace the faulty part. If the PC is under warranty, contact the maker first. If the PC has stopped turning on at all, see our guide to a PC that won’t turn on.

Real cases: what other users ran into

Real caseMSI MAG Z890 Tomahawk WiFi · Core Ultra 5 245K · DDR5-5600SolvedRestarts every few minutes, solved with RAM voltage

A newly built PC restarted every 1 to 30 minutes, often while doing nothing, with only Kernel-Power 41 errors and no crash dump. The person who posted swapped the motherboard, processor and power supply, tested each RAM module for hours and reinstalled Windows, with no change. A forum member noticed the RAM voltage was left on “Auto” and suggested setting it by hand to 1.25 V. After that change the restarts stopped, and the person who posted confirmed the RAM voltage had solved it.

Takeaway: RAM settings can cause restarts even without XMP. Loading the BIOS defaults and testing RAM settings should come first, before you replace any parts. See cause 5.

Source: Tom's Hardware Forum

Real caseASUS ROG Strix X570-E Gaming · Ryzen 7 5800X · RTX 5070 TiSolved by replacing hardwareWHEA errors pointed to the processor

This PC restarted without a blue screen, even while browsing, after a short freeze. Event Viewer showed a WHEA-Logger event 18 for a processor core next to each Kernel-Power 41. A BIOS update, removing two RAM modules, slower RAM settings and stress tests each seemed to help for a while, then the restarts came back. Replacing the processor with a Ryzen 9 5900X solved it, and the person who posted could even turn the RAM profile and automatic boost back on.

Takeaway: WHEA errors next to the restarts point to the processor or its settings. See our guide to WHEA errors and cause 6.

Source: Tom's Hardware Forum

Real caseMSI MAG B550 Tomahawk · Ryzen 7 5700X · RTX 3080 Ti · Corsair HX850Solved by replacing hardwareA faulty power supply, replaced under warranty

This PC restarted as if someone had pressed the reset button, at idle, in games and even in the BIOS, with only Kernel-Power 41 in the logs. The person who posted had already replaced the motherboard, tested the RAM, swapped the RAM and graphics card, and tried other wall sockets and cables. In the end the person who posted sent the power supply back to Corsair under warranty. Corsair sent a new one, and there were no more restarts.

Takeaway: restarts that also happen in the BIOS rule out Windows. Test the power supply early. See cause 4.

Source: Tom's Hardware Forum

Real caseASUS Prime B660M-A D4 WiFi · Core i5-12400 · RX 6800 XTSolved by replacing hardwareThe motherboard was the faulty part

A 10-month-old PC began restarting randomly, even at idle, first once a day and then every few minutes. Later it sometimes didn’t get past POSTPOST: Power-On Self-Test: the quick check the PC runs every time you switch it on, before Windows loads. More in our Startup & BIOS glossary → at all. The person who posted then updated the drivers, used the processor’s own graphics, ran it outside the case and tested with one RAM module and with XMP off. Forum members suspected the power supply, so they returned it under warranty, but the restarts continued. Replacing the motherboard finally solved it.

Takeaway: when the obvious suspects are cleared, change one part at a time until the restarts stop. See cause 6.

Source: Tom's Hardware Forum

Frequently asked questions

Can random restarts damage my PC?

The restarts themselves rarely damage anything, but you can lose unsaved work, and a sudden power cut while Windows is writing to the disk can damage files. Save often and find the cause soon, especially if you suspect the power supply.

What is Kernel-Power event 41?

It’s a note Windows records when the PC starts up after it didn’t shut down properly. It appears for any sudden restart or power loss, whatever the cause, so it confirms the problem but doesn’t explain it. Look in Reliability Monitor for a stop code instead.

Why does my PC restart only when it’s idle?

Restarts at idle or during light use are less likely to come from heat. They often come from unstable RAM settings or the processor’s own settings, but a faulty power supply or motherboard can cause them too, as two of the real cases above show. Start with cause 5, then cause 6.

Can a virus make my PC restart?

It’s possible but rare. Run a full scan with Windows Security to be sure, but if the scan finds nothing, look at the hardware causes above.

Should I reinstall Windows?

Only after you have checked the hardware causes. A fresh copy of Windows fixes restarts caused by a damaged Windows or a bad driver, but not unstable settings or a faulty part, and it takes a lot of time to set up again.

Did this fix work for you?

Tell other readers what worked, what didn't, and which hardware you have. Comments use GitHub Discussions, so you'll need a free GitHub account to post.

Loading comments connects to giscus.app and GitHub. See our privacy policy. Please keep it friendly and on topic. Spam and off-topic comments are removed.

RigClinic Editorial · PC hardware guides

RigClinic publishes practical, step-by-step guides to diagnosing and fixing PC hardware problems, checked against manufacturer documentation and kept up to date. How we write our guides