Troubleshooting September 8, 2026 7 min read

Why Does My Mac Keep Shutting Down or Restarting Unexpectedly?

An unexpected shutdown is unsettling, but the causes are a short, well-known list. Here’s how to work through them in order, from easiest to check to most serious.

Quick Answer

Unexpected Mac shutdowns are most often caused by, in order of likelihood: overheating triggering a thermal protection shutdown, a failing or severely degraded battery (on MacBooks), a misbehaving kernel extension or peripheral, low free disk space causing system instability, or — least commonly — a hardware fault. Start with the free, non-destructive checks (thermal and storage) before assuming a hardware problem.

1. Check for Overheating

Modern Macs will shut down to protect themselves if internal temperatures get dangerously high, often after heavy sustained load with blocked vents or excessive dust buildup. Signs: the shutdown happens during demanding tasks (gaming, video export, compiling), the case feels hot beforehand, and fans were audibly at full speed. See our guide on Mac overheating for cleaning vents and checking thermal load.

2. Check Battery Health (MacBooks)

Go to System Settings → Battery → Battery Health. If it reports "Service Recommended" or the cycle count is very high for the model’s age, a degraded battery can cause sudden shutdowns, especially under load, even when the reported percentage looks fine. This is a hardware wear issue, not something software can fix.

3. Check Free Disk Space

macOS needs meaningful free space for swap memory and temporary system files. When a disk gets critically full (typically under a few GB free), you can see instability including app crashes, beachballing, and in severe cases unexpected restarts. Run a scan with a tool like TrimyMac to see how much is actually free and reclaim space from caches, logs, and duplicates — see our Mac storage full guide for a full walkthrough.

4. Check the Diagnostic Report

  1. Open Console (Applications → Utilities) and look under "Crash Reports" or search for a panic log around the time of the shutdown.
  2. Look for a repeating pattern — the same kernel extension or driver name appearing before each shutdown points to a specific culprit, often a third-party peripheral driver.
  3. Run Apple Diagnostics. Restart while holding D (Intel) or the power button until diagnostics options appear (Apple Silicon) to check for a hardware fault.

Rule Out Storage as a Cause

Free up space and check for junk buildup with TrimyMac before assuming a hardware issue.

Download TrimyMac Free

Frequently Asked Questions

Why does my Mac shut down when the battery says it still has charge?

A degraded battery can lose the ability to deliver peak current even while the percentage readout looks normal, causing the system to shut down under load. Check System Settings → Battery → Battery Health for a "Service Recommended" flag.

Can low storage cause a Mac to shut down?

Very low free disk space (often under a few GB) can cause broader system instability since macOS relies on free space for swap and temp files, and in severe cases this can contribute to crashes or restarts. Freeing up space is a reasonable early troubleshooting step.

Is a random Mac shutdown a sign of a virus?

It’s uncommon but not impossible if a misbehaving kernel extension or malicious process is involved. Overheating, battery wear, and low storage are far more common causes, so check those first, then run a security check if the pattern continues.

How do I read a Mac panic log?

Open Console (Applications → Utilities → Console), then look under Crash Reports in the sidebar for a log timestamped near the shutdown. The top few lines often name the specific process or kernel extension involved.