sodcalculator

10 Tech How-To

Computer Restarted Unexpectedly? Fix the Error

Guide 10-8023 · Updated · Step by step

If your computer restarted unexpectedly or encountered an unexpected error, the cause is usually a system crash, a driver issue, overheating, or a hardware fault, and the fix ranges from checking the Windows Event Viewer to updating drivers or running memory diagnostics. This article explains what triggers these errors, how to diagnose them, and the steps to prevent them from happening again.

What Does “Unexpected Restart” Mean?

An unexpected restart is when your computer shuts down and boots back up without you initiating it. On Windows, this often appears as a blue screen (BSOD) followed by an automatic reboot, or as a message saying “Windows has recovered from an unexpected shutdown.” On macOS, you might see a message that your computer restarted because of a problem. These events are typically caused by a critical error in the operating system kernel, a faulty driver, overheating, or a failing hardware component like RAM or a hard drive.

Most Common Causes

Understanding the root cause is the first step to a permanent fix. Here are the most frequent culprits:

  • Driver conflicts: Outdated, corrupted, or incompatible device drivers (especially graphics, network, or chipset drivers) can trigger crashes.
  • Overheating: If the CPU or GPU gets too hot, the system shuts down to protect itself. Dust, failing fans, or dried thermal paste are common causes.
  • Power supply issues: A failing or insufficient power supply can cause random restarts, especially under load.
  • Memory (RAM) problems: Faulty RAM sticks can cause crashes and unexpected reboots.
  • Software or OS updates: A buggy Windows or driver update can destabilize the system.
  • Malware or viruses: Some infections cause system instability or force shutdowns.

How to Diagnose the Exact Cause

Windows and macOS both keep logs of system crashes. Here’s how to check them:

  1. Windows Event Viewer: Press Win + X and select Event Viewer. Go to Windows Logs > System. Look for red errors with source “Kernel-Power” (event ID 41) or “BugCheck” (event ID 1001). The BugCheck event often includes a stop code like 0x0000007E or 0x00000050, which you can search online.
  2. Windows Reliability Monitor: Type “Reliability” in the Start menu. This shows a timeline of crashes and software failures.
  3. macOS Console: Open Console from Applications/Utilities, then look under System Reports for “Panic” reports. These list the crashed process and the reason.

Once you have the stop code or panic report, you can search for that specific error to find targeted solutions.

Immediate Steps to Stop the Restart Loop

If your PC keeps restarting before you can log in, you need to break the cycle:

  1. Disable automatic restart: Boot into Safe Mode (press F8 or Shift + Restart from the login screen) and go to Settings > System > About > Advanced system settings. Under Startup and Recovery, uncheck “Automatically restart.” This lets you see the blue screen error code instead of rebooting.
  2. Boot into Safe Mode: Safe Mode loads only essential drivers. If the system is stable there, a driver is likely the problem.
  3. Run System Restore: If the problem started after a recent change, use System Restore to roll back to a point before the issue.

Long-Term Fixes and Prevention

After you’ve identified the likely cause, apply these fixes:

  • Update drivers: Go to your PC manufacturer’s website or use Windows Update to get the latest drivers. Pay special attention to GPU and chipset drivers.
  • Check for overheating: Use a free tool like HWMonitor to check CPU/GPU temperatures. Clean out dust, ensure fans spin, and consider replacing thermal paste if the CPU is old.
  • Test RAM: Use Windows Memory Diagnostic (type “mdsched.exe” in Run) or a tool like MemTest86. Let it run for several passes.
  • Check the power supply: If you have a spare PSU, test with it. Otherwise, listen for unusual noises or check if the restarts happen under heavy load (gaming, rendering).
  • Scan for malware: Run a full scan with Windows Defender or a reputable third-party antivirus.
  • Keep Windows updated: Install all critical updates, but if a recent update caused the issue, you can uninstall it from Settings > Update & Security > Windows Update > View update history.
  • Check disk health: Run chkdsk /f in Command Prompt (admin) to check for errors. Also, use tools like CrystalDiskInfo to check SMART status of your SSD/HDD.

What If It’s a Hardware Failure?

If you’ve gone through the software steps and the problem persists, it’s likely a hardware failure. Common culprits include:

  • Failing RAM: Replace the faulty stick.
  • Failing hard drive/SSD: Back up your data immediately and replace the drive.
  • Failing motherboard or CPU: These are harder to diagnose and often require professional help.

If the computer is under warranty, contact the manufacturer. If not, a local repair shop can run hardware diagnostics.

Frequently Asked Questions

Why does my computer restart without a blue screen?

Sometimes the system crashes so hard that it can’t even display a blue screen. This is often due to overheating, a failing power supply, or a hardware fault. Check the Event Viewer for Kernel-Power event 41, which indicates the system rebooted without a clean shutdown.

Can a virus cause unexpected restarts?

Yes, some malware can cause system instability, but it’s less common than driver or hardware issues. Run a full antivirus scan to rule it out.

How do I stop Windows from automatically restarting after a crash?

Go to Control Panel > System > Advanced system settings > Startup and Recovery > Settings. Uncheck “Automatically restart” under System failure. This lets you see the error code on the blue screen.

Is it safe to keep using my computer if it restarts randomly?

It’s risky, especially if the cause is overheating or a failing power supply, as it could damage components. Back up your data and address the issue as soon as possible.

What does the stop code 0x00000050 mean?

This is a “PAGE_FAULT_IN_NONPAGED_AREA” error, often caused by faulty RAM, a corrupted driver, or a failing hard drive. Try updating drivers and running memory diagnostics first.

Will a factory reset fix the problem?

If the issue is software-related, a factory reset can help, but it won’t fix hardware problems. Only do this after you’ve ruled out overheating and hardware failures, and make sure to back up your files first.

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

The whole Tech How-To bed →