Laptop Keeps Shutting Off or Restarting Randomly? How to Fix It

A laptop that suddenly shuts off or restarts on its own is usually telling you one of four things: it’s overheating, the battery or charger can’t deliver steady power, Windows (or macOS) is crashing and restarting itself, or an update is rebooting it on a schedule. The trick is figuring out which one before you start changing things, and your laptop keeps a record that tells you.

Quick answer

  1. If it shuts off when it’s hot or under load (games, video calls, exports), it’s almost always overheating. Clean the vents and keep it on a hard surface.
  2. If it only dies on battery, often at 20–40%, the battery is worn out or miscalibrated.
  3. If it restarts rather than turning off, Windows is usually crashing. Check Reliability Monitor (below) to see the cause.

First: shutting off, restarting or sleeping?

These look similar but point to different causes, so note exactly what happens:

  • The screen goes black and the power light goes out instantly, with no warning. That’s a hard power loss: overheating protection, a failing battery or a power fault.
  • It restarts and comes back to the login screen, sometimes after a brief blue or black screen with a message. That’s a system crash (a “stop error” on Windows, a kernel panic on a Mac).
  • It restarts overnight or while you’re away, and your apps are closed when you come back. That’s usually Windows Update installing updates.
  • The screen goes dark but the power light stays on or pulses, and pressing a key wakes it. It’s going to sleep, not shutting off. Change the sleep timers in Settings > System > Power & battery (Windows) or System Settings > Lock Screen (Mac).

1. Find out why it shut down (Windows 11)

Windows logs every unexpected shutdown. Two built-in tools show you what happened.

Reliability Monitor (easiest): click Start, type reliability and open View reliability history. Each red X is a critical event. Click a day where your laptop shut off and look for entries like “Windows was not properly shut down” or “Shut down unexpectedly”. If it lists a crash with a stop code (for example MEMORY_MANAGEMENT or DRIVER_IRQL_NOT_LESS_OR_EQUAL), search that code. It often names a specific driver.

Event Viewer (more detail): right-click Start, choose Event Viewer, then open Windows Logs > System. Click Filter Current Log and enter 41,1001,1074,6008 in the Event IDs box.

  • Event 41 (Kernel-Power) on its own: the laptop lost power without shutting down cleanly. Think heat, battery or hardware.
  • Event 1001 (BugCheck): Windows crashed. The entry includes the stop code.
  • Event 1074: a planned restart. It names the program that asked for it, often Windows Update (TrustedInstaller or MoUsoCoreWorker).
  • Event 6008: the previous shutdown was unexpected.

Tip: crash screens disappear fast because Windows restarts automatically. To keep the message on screen next time, open Settings > System > About > Advanced system settings, click Settings under Startup and Recovery, and untick Automatically restart. On recent Windows 11 versions the crash screen is black rather than blue, but it still shows the stop code.

2. Rule out overheating

Every laptop shuts itself off to protect the processor when it gets too hot. If shutdowns happen during games, video calls, big exports or on a bed or sofa, heat is the prime suspect.

3. Check the battery and charger

A worn battery can report 30% charge and then collapse to zero the moment the processor asks for more power. Signs: it only shuts off on battery, the percentage jumps around, or it dies at the same reading every time.

  • Windows: open Command Prompt and run powercfg /batteryreport. Compare Full charge capacity with Design capacity. Below about 60–70% means the battery is due for replacement. Full walkthrough: check laptop battery health.
  • Check the critical battery action: Control Panel > Power Options > Change plan settings > Change advanced power settings > Battery. Make sure the critical level isn’t set unusually high (for example 30%) with the action set to Shut down.
  • If it shuts off while plugged in, try another outlet and, if you have one, a second charger with the same or higher wattage. A failing charger or a loose charging port can cut power intermittently.
  • A swollen battery (the touchpad lifts, the case bulges or the laptop rocks on a table) is a safety issue. Stop using it and get the battery replaced.
Person restarting a laptop at a desk after an unexpected shutdown

4. Stop surprise update restarts

If the laptop restarts when you’re not using it, or event 1074 points at Windows Update, it’s doing its job, just at a bad time. Go to Settings > Windows Update > Advanced options and set Active hours to cover the times you normally use it. You can also pause updates for a week from the main Windows Update page while you finish something important. Don’t leave updates paused for good; they fix security holes and the very driver bugs that cause crashes.

5. Fix crashes: drivers, updates and system files

If Reliability Monitor shows crashes with stop codes, work through these in order:

  1. Undo what changed. If the restarts started after an update, go to Settings > Windows Update > Update history > Uninstall updates and remove the most recent one. If they started after you installed new software or hardware, remove it.
  2. Update drivers and BIOS from your laptop maker’s support app or website (Dell SupportAssist, HP Support Assistant, Lenovo Vantage, MyASUS). Graphics, chipset and storage drivers matter most. See how to update laptop drivers and BIOS.
  3. Repair Windows files. Open Terminal as administrator and run DISM /Online /Cleanup-Image /RestoreHealth, then sfc /scannow. Restart when both finish.
  4. Test the memory. Press Win + R, type mdsched and choose Restart now and check for problems. Any errors mean faulty RAM, which needs a repair.
  5. Scan for malware. In Windows Security, run a full scan, then a Microsoft Defender Offline scan from Scan options.
  6. Turn off Fast Startup if it restarts or crashes right after you switch it on: Control Panel > Power Options > Choose what the power buttons do > Change settings that are currently unavailable, then untick Turn on fast startup.

If it crashes too often to do any of this, boot into Safe Mode: Settings > System > Recovery > Advanced startup > Restart now, then Troubleshoot > Advanced options > Startup Settings > Restart, and press 4. If Windows can’t stay up even there, back up your files and consider a reset.

6. On a Mac

  • If you see “Your computer restarted because of a problem”, macOS had a kernel panic. Click Report to see details. The panic report often names the software or extension involved.
  • Update macOS in System Settings > General > Software Update, and update or remove apps that install system extensions (older antivirus, VPN and audio drivers are common culprits).
  • Unplug every accessory, including hubs and docks, and see whether the restarts stop.
  • Check the battery: System Settings > Battery, then click the info button next to Battery Health. “Service Recommended” means the battery is worn.
  • Try Safe Mode (Apple silicon): shut down, hold the power button until you see startup options, select your disk, then hold Shift and click Continue in Safe Mode. If the restarts stop, a login item or third-party extension is the cause.
  • Run Apple Diagnostics: shut down, hold the power button until “Loading startup options” appears, then press Command-D.
  • Curious why it last shut down? In Terminal, run log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h. A cause of 5 is a normal shutdown; other numbers point to power, heat or hardware events worth mentioning to Apple Support.

7. On a Chromebook

  • Check for updates in Settings > About ChromeOS.
  • Open the Diagnostics app (search for it in the launcher) to run battery, CPU and memory tests.
  • Do a hard reset: shut down, then hold Refresh + Power and release Power when it starts.
  • Remove recently added extensions, and if nothing helps, back up your Downloads folder and Powerwash it (Settings > System preferences > Reset settings).

When it’s probably hardware

  • It shuts off even when cool, plugged in and freshly reset, and diagnostics report errors.
  • It shuts off when you move it or touch a certain spot: often a loose battery connector or charging port.
  • Memory tests fail, or the same stop code keeps returning after a clean reset.

Contact the manufacturer first if it’s under warranty. If it’s older and the repair quote climbs into the hundreds, it may be time to compare with our best laptops under $1,000. If the laptop locks up instead of switching off, see what to do when your laptop is frozen.

FAQ

Why does my laptop shut off without warning when the battery isn’t low?

Usually because the battery has worn out and can’t supply power during spikes in demand, or because the laptop is overheating. Run a battery report and check temperatures under load; one of the two will usually stand out.

Why does my laptop keep restarting by itself overnight?

Almost always Windows Update. Set your active hours, and check Event Viewer for event 1074 to confirm which process triggered the restart.

Can a virus make a laptop shut down?

It’s possible but much less common than heat, battery or driver problems. A full scan plus a Microsoft Defender Offline scan will rule it out. Most laptops don’t need extra antivirus; see do you need antivirus.

Is it bad for my laptop to keep shutting off?

Repeated sudden power loss risks unsaved work and, occasionally, corrupted files. Back up now, and fix the cause rather than living with it.

You may also like