The most common causes of unexpected restarts
Your computer restarts on its own for a handful of specific reasons, and most of them are fixable. The most frequent culprits are Windows updates that finish installing and force a restart, overheating from dust buildup or a failing fan, driver problems (especially graphics or chipset drivers), malware or viruses, and hardware failure in the power supply, RAM, or hard drive. Less often, a corrupted Windows file or a recently installed program causes the loop.
The key is figuring out when the restart happens. Does it occur during startup, randomly during use, when you run a specific program, or always at the same time of day? The pattern tells you where to look first.
Key Takeaways
- Windows Update is the single most common cause—check Settings > Update & Security to see if an update is pending or recently installed.
- Overheating forces restarts as a safety measure; clean dust from vents and fans, and make sure the computer has airflow around it.
- Restart loops (restart, then restart again when ready) usually point to a driver problem or corrupted Windows file, not a hardware failure.
- Malware can trigger restarts; run a full scan with Windows Defender or a dedicated antivirus tool to rule it out.
- If restarts happen only during one program, uninstall and reinstall that program rather than troubleshooting the whole system.
Check for pending Windows updates first
Windows Update is responsible for more unexpected restarts than any other cause. Open Settings (press Windows key + I), then go to Update & Security > Windows Update. If an update is waiting, you will see a button to restart now or schedule the restart for later. If you see "Your device is up to date," the last update has already installed—check the restart history by clicking View update history to confirm when the last restart occurred.
If you want to prevent automatic restarts, you can change when Windows installs updates. In the same Update & Security window, click Change active hours and set a window of time when you use your computer most. Windows will not force a restart during those hours. However, the update will still install; you will just have more control over when the restart happens.
Clean dust and check for overheating
Dust buildup inside your computer blocks airflow and causes the CPU or GPU to overheat. When the temperature gets too high, Windows restarts automatically to prevent hardware damage. Shut down your computer completely, unplug it, and wait five minutes. Then open the case (if you are comfortable doing so) and use a can of compressed air to blow dust out of the fans, heatsinks, and vents. Blow in short bursts and hold the fans still so they do not spin freely—spinning a fan without power can damage it.
While the case is open, make sure cables are not blocking airflow and that the CPU heatsink is seated firmly. If you have a laptop, use compressed air on the vents along the sides and bottom. After cleaning, close the case, plug in the computer, and turn it back on. Monitor the temperature using a free tool like HWInfo or Core Temp for the first hour of use. If the CPU stays below 80°C under normal use, overheating is not your problem.
Update or reinstall drivers, especially graphics drivers
Outdated or corrupted drivers—particularly the graphics driver, chipset driver, and network driver—can trigger restarts. Open Device Manager by right-clicking the Start button and selecting it from the menu. Look for any devices with a yellow exclamation mark; those are the problem drivers. Right-click the device and select Update driver, then choose Search automatically for updated driver software. Windows will search online and install the latest version if one is available.
For graphics drivers specifically, visit the manufacturer's website directly. If you have an NVIDIA card, go to nvidia.com/read/driverDetails. If you have AMD, go to amd.com/en/support. If you have Intel integrated graphics, go to intel.com/content/www/us/en/read/726609. read the latest driver for your exact card model and Windows version, then run the installer. During installation, choose the option to perform a clean install, which removes the old driver completely before installing the new one. Restart when prompted.
Run a malware scan to rule out viruses
Malware can cause restarts by consuming system resources or modifying Windows files. Open Windows Security (search for it in the Start menu), click Virus & threat protection, then click Scan options. Select Full scan and click Scan now. A full scan takes 30 minutes to two hours depending on how much data is on your drive, so start it when you have time to let it run. Do not use the computer during the scan.
If Windows Defender finds threats, it will quarantine them automatically. If the scan completes and finds nothing, malware is probably not the cause. If you want a second opinion, read Malwarebytes (the free version is sufficient) and run a scan with that tool as well. Restart your computer after the scan finishes.
Check the Event Viewer for restart codes
Windows logs the reason for every restart in the Event Viewer. Right-click the Start button, select Event Viewer, then navigate to Windows Logs > System. Look for entries labeled "Critical" or "Error" that occurred just before your restarts. The most common codes are Event ID 1000 (process crash), Event ID 1001 (unexpected shutdown), and Event ID 41 (kernel power loss, usually hardware-related).
Click on an entry to see its details. The Description field often names the program or driver that caused the problem. If you see the same program name repeatedly, uninstall that program and restart. If you see a driver name like "nvlddmkm.sys" (NVIDIA) or "amdkmdap.sys" (AMD), that confirms a graphics driver problem—go back and reinstall the driver using the steps above.
Test your hardware if software fixes do not work
If you have tried updates, driver reinstalls, and malware scans and the restarts continue, the problem is likely hardware. The most common culprits are a failing power supply, bad RAM, or a failing hard drive. Start by running Windows Memory Diagnostic. Press Windows key + R, type "mdsched.exe," and press Enter. Choose Restart now and check for problems. The computer will restart and run a memory test that takes 10 to 15 minutes. If errors are found, one of your RAM sticks is failing and needs replacement.
For the hard drive, open Settings > System > Storage and click your drive. Scroll down and click Drive health. If the status shows anything other than "Normal," the drive is failing. For the power supply, listen for unusual fan noise or smell for a burning odor near the back of the case—these are signs of imminent failure. If you suspect hardware failure, contact a repair technician or the computer manufacturer, as these parts require professional replacement.
Frequently Asked Questions
Why does my computer restart in a loop right after I turn it on?
A restart loop usually means a driver failed to load or a Windows file is corrupted. Try booting into Safe Mode by restarting and pressing F8 repeatedly before the Windows logo appears. If the computer stays on in Safe Mode, a driver is the problem—uninstall recently installed drivers in Device Manager. If it still loops in Safe Mode, you may need to repair Windows using installation media or contact a technician.
Can a virus cause constant restarts?
Yes, malware can trigger restarts, but it is less common than driver or update problems. Run a full scan with Windows Defender and Malwarebytes to rule it out. If the scan finds nothing and restarts continue, focus on drivers and hardware instead.
My computer restarts only when I play a specific game. What does that mean?
The game is likely pushing your graphics card or CPU to its thermal limit, or the game has a compatibility issue with your driver. Update your graphics driver first. If restarts continue, lower the game's graphics settings (resolution, texture quality, frame rate cap) to reduce heat. If it still restarts, the game may not be compatible with your hardware.
How do I stop Windows from forcing a restart after an update?
You cannot prevent the restart entirely, but you can control when it happens. Go to Settings > Update & Security > Windows Update > Change active hours and set a time window when you are not using the computer. Windows will restart outside that window. You can also click "Pause updates for 7 days" to delay the restart temporarily, but the update will still install eventually.
Is it safe to keep restarting my computer while I troubleshoot?
Yes, restarting is safe and often helps. Each restart clears temporary files and resets drivers, which can resolve transient problems. The only exception is if your computer is in the middle of a Windows Update—never force a shutdown during an update, as that can corrupt Windows files.