If your computer restarted on its own and showed a message like “Your PC ran into a problem and needs to restart,” it means Windows hit a critical error (a bug check, often called a Blue Screen of Death) and shut down to protect your hardware. This guide explains the most common causes—driver conflicts, overheating, failing hardware, and corrupted system files—and walks you through the fixes, from simple restarts to advanced recovery tools.
What Does “Computer Restarted Because of a Problem” Actually Mean?
This exact wording appears in Windows Event Viewer and in the “Recovery” screen after an unexpected shutdown. It’s the operating system’s way of saying it encountered a stop error (also known as a bug check or BSOD). When Windows detects a condition that could corrupt data or damage hardware, it halts the system and restarts. The message is not a virus or a random glitch—it’s a safety mechanism.
You’ll typically see this after a blue screen flashes (often too fast to read), or when you boot back up and Windows reports “The system has rebooted without cleanly shutting down first.” The restart itself is normal; the underlying error is what you need to address.
Most Common Causes (and How to Spot Them)
There are five usual culprits behind an automatic restart. Each leaves a different clue:
- Driver failures – Outdated or incompatible drivers (especially graphics, network, or chipset drivers) are the number one cause. You’ll often see errors like IRQL_NOT_LESS_OR_EQUAL or SYSTEM_THREAD_EXCEPTION_NOT_HANDLED.
- Overheating – If the CPU or GPU gets too hot, the system shuts down instantly. This usually happens during gaming, video rendering, or in dusty cases with failing fans.
- Faulty RAM or hard drive – Bad memory sectors or a failing SSD/HDD cause random crashes, often with errors like MEMORY_MANAGEMENT or KERNEL_DATA_INPAGE_ERROR.
- Corrupted system files – A failed Windows update or a sudden power loss can damage core system files, leading to repeated restart loops.
- Power supply issues – An underpowered or failing PSU can cause random restarts under load, especially when the system draws more power than the supply can deliver.
First Steps: Stop the Automatic Restart and Read the Error
Before you can fix the problem, you need to see the actual error code. By default, Windows restarts immediately, so the blue screen disappears before you can read it. Here’s how to disable that and capture the error:
- Right-click the Start button and select System (or go to Settings → System → About).
- Click Advanced system settings on the right.
- Under “Startup and Recovery,” click Settings.
- Uncheck Automatically restart under “System failure.” Click OK.
Now when the blue screen appears, it will stay on screen. Write down the error code (like 0x0000001A) and the name (like MEMORY_MANAGEMENT). You can also check the Event Viewer later: open it by typing eventvwr.msc in Run, then go to Windows Logs → System and look for red “Critical” events with source “Kernel-Power” (event ID 41) or “BugCheck” (event ID 1001).
How to Fix the Most Common Causes
Once you have the error code, you can target the fix. If you don’t have a code, work through these in order:
1. Update or Roll Back Drivers
Open Device Manager (right-click Start → Device Manager). Look for any device with a yellow exclamation mark. Right-click it and choose Update driver. If the problem started right after a driver update, choose Properties → Driver → Roll Back Driver. For graphics drivers, download the latest version directly from the manufacturer’s website (NVIDIA, AMD, or Intel) rather than using Windows Update.
2. Check for Overheating
Download a free temperature monitor (like Core Temp or HWMonitor) and check your CPU and GPU temperatures while idle and under load. If they exceed 90°C (194°F) on a desktop or 80°C (176°F) on a laptop, you likely have a cooling problem. Open the case and clean dust from fans and heatsinks, ensure all fans spin, and consider replacing thermal paste on older systems.
3. Test Your RAM and Hard Drive
For RAM, run the built-in Windows Memory Diagnostic: type mdsched.exe in Run, choose “Restart now and check for problems,” and let it run. If it finds errors, replace the faulty stick. For your hard drive, open an admin Command Prompt and run chkdsk C: /f /r (replace C: with your system drive). This scans for bad sectors and fixes file system errors.
4. Repair Corrupted System Files
Open an admin Command Prompt (right-click Start → Windows Terminal (Admin)) and run:
sfc /scannow
This checks and repairs protected system files. After it finishes, run DISM /Online /Cleanup-Image /RestoreHealth to fix the underlying Windows image. Restart and see if the crashes stop.
5. Check Your Power Supply
If you built your PC or it’s a few years old, a weak or failing PSU can cause restarts under load. If the problem only happens during gaming or heavy tasks, and your PSU is older than 5 years or below the recommended wattage for your GPU, consider replacing it. This is the only component you can’t easily test with software—if you suspect it, take the system to a repair shop.
When You Can’t Boot: Use Windows Recovery Environment
If the computer restarts in a loop and never reaches the desktop, you need to boot into the Windows Recovery Environment (WinRE). To do this:
- Turn the computer on and off three times in a row—interrupt the boot before Windows loads. On the third attempt, Windows should open the recovery screen.
- Select Troubleshoot → Advanced options.
- Try Startup Repair first—it can fix boot issues automatically.
- If that fails, go to Advanced options → System Restore and pick a restore point from before the problem started.
- As a last resort, Reset this PC will reinstall Windows while keeping your files (choose “Keep my files”).
How to Prevent Future Restarts
Once you’ve fixed the immediate issue, take these steps to reduce the chance of it happening again:
- Keep Windows and all drivers updated (but wait a few days after major updates to see if others report issues).
- Clean dust from inside your computer every 6–12 months.
- Use a surge protector or UPS to prevent power fluctuations.
- Run
sfc /scannowmonthly as a preventive check. - If you overclock your CPU or GPU, revert to stock settings—instability from overclocking is a common cause of random restarts.
Frequently Asked Questions
Why does my computer restart without a blue screen?
This usually points to a hardware issue, most often the power supply or overheating. A failing PSU can cut power instantly, and an overheating CPU will trigger a thermal shutdown before Windows even has a chance to display an error. Check temperatures and, if possible, test with a different PSU.
Will I lose my files if this keeps happening?
Not necessarily. The restart itself doesn’t delete files, but if the underlying cause is a failing hard drive or corrupted system files, you could eventually lose data. Back up important files to an external drive or cloud service right away, and run chkdsk to check the drive health.
Is this a sign of a virus?
Rarely. While some malware can cause system instability, the “restarted because of a problem” message is almost always a driver, hardware, or system file issue. Run a full Windows Defender scan to rule out malware, but focus your troubleshooting on the causes listed above.
How do I find the exact error code after it restarts?
Open Event Viewer (type eventvwr in Run), go to Windows Logs → System, and look for red events with source “BugCheck” or “Kernel-Power” around the time of the restart. The BugCheck event will contain the stop code (e.g., 0x0000001A). You can also use the free tool BlueScreenView to read the minidump files created during crashes.
Should I disable automatic restart permanently?
No. Disabling it is only for troubleshooting so you can read the error. Leaving it off means if a critical error occurs while you’re away, the system will stay frozen until you manually restart, which can lead to data loss. Re-enable it after you fix the problem.
When should I take it to a repair shop?
If you’ve tried updating drivers, checking temperatures, running memory and disk diagnostics, and repairing system files—and the restarts continue—it’s likely a hardware issue (like a failing motherboard or PSU) that requires professional diagnosis. Also go to a professional if you’re uncomfortable opening your computer case or working with BIOS settings.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Error 0x80004005: Top Easy Ways That Work
- How to Cool Down an Overheating Laptop
- Good Password: How to Create One
- Remove Write Protection on External Hard Drive
- How to Disable Chkdsk at Windows Startup
- Restore WiFi and Secure Your Netgear Router After Reset