keepcalculator

06 Numbers and Powers

Mac Keeps Restarting? Fixes That Actually Work

Card No. 06·74259 · Updated · Standard formula, shown below

If your Mac keeps restarting on its own, the cause is usually a software panic, a failing component, or a peripheral conflict. Start by booting into Safe Mode and checking for recent software updates, then work through the steps below in order to isolate the issue.

Why Does a Mac Restart by Itself?

A sudden restart—often called a kernel panic—happens when macOS hits an error it can’t recover from. The system forces a reboot to protect your data. Common triggers include:

  • Incompatible or buggy apps, especially those that install kernel extensions
  • Corrupted system files or a failed macOS update
  • Failing hardware, most often RAM or the logic board
  • Overheating, usually from blocked vents or a failing fan
  • Faulty external devices or cables

If the restart happens only during heavy tasks (video editing, gaming), overheating is more likely. If it happens randomly even at idle, suspect RAM or software.

Before You Try Anything: Check the Panic Report

macOS writes a detailed log for every unexpected restart. Reading it can point you straight to the culprit.

  1. Open Console (in Applications/Utilities).
  2. Select Crash Reports or Diagnostic Reports in the sidebar.
  3. Look for files starting with “Kernel” or “panic” and sort by date.
  4. Open the most recent one and look for the line “panic(cpu …)”.

If the report mentions a specific driver or kext (e.g., com.apple.driver.AppleThunderboltIP), that’s a strong clue. If it says “No mapping exists for …” or just random hex, it’s likely hardware or a generic software issue.

Fix 1: Boot into Safe Mode

Safe Mode loads only essential software and prevents login items and third-party extensions from running. It also clears some caches.

  1. Shut down your Mac completely.
  2. Press the power button, then immediately hold the Shift key.
  3. Release Shift when you see the login window (you may need to log in twice).
  4. Use your Mac normally for a while. If it doesn’t restart, the problem is a login item or extension.

To exit Safe Mode, just restart normally. If the issue disappears in Safe Mode, go to System Settings → General → Login Items and disable suspicious items, and check for third-party kernel extensions in System Settings → General → Privacy & Security.

Fix 2: Update macOS and All Apps

Apple regularly patches bugs that cause kernel panics. Make sure you’re on the latest version of macOS:

  1. Open System Settings → General → Software Update.
  2. Install any available updates, then restart.
  3. Update all third-party apps, especially those that run in the background (antivirus, cloud sync, hardware utilities).

If you’re already on the latest version, try reinstalling macOS—it preserves your files but replaces the system files. Boot into Recovery (hold Command-R at startup) and choose Reinstall macOS.

Fix 3: Disconnect Everything and Test Hardware

External devices are a common trigger. Disconnect all peripherals except the power cord and the built-in display/keyboard/trackpad.

  • If the restarts stop, reconnect devices one at a time, testing for a few hours between each.
  • Pay special attention to hubs, docks, and Thunderbolt devices.
  • Also try a different power outlet or a known-good power adapter; a failing power supply can cause random reboots.

If you have a Mac with user-accessible RAM (older iMacs and Mac Pros), reseat the memory modules. For other models, you can run Apple Diagnostics to test hardware:

  1. Shut down your Mac.
  2. Press the power button and immediately hold D.
  3. Follow the on-screen prompts (requires internet on newer models).

If diagnostics find a problem, note the reference code. If they find nothing, the issue is likely software.

Fix 4: Reset NVRAM and SMC

NVRAM (non-volatile RAM) stores startup settings; the SMC (System Management Controller) manages power and fans. Resetting them clears corrupted settings.

Reset NVRAM (Intel Macs):

  1. Shut down.
  2. Press power, then immediately hold Option-Command-P-R for about 20 seconds.
  3. Release and let it boot normally.

Reset SMC (Intel Macs with T2 chip):

  1. Shut down.
  2. Hold Control-Option-Shift on the left side, then press and hold the power button for 10 seconds.
  3. Release all keys, then press power to turn on.

For Apple Silicon Macs (M1/M2/M3), you don’t reset SMC; just restart or force-restart. NVRAM reset isn’t needed either—the system handles it automatically.

Fix 5: Check Disk and Reinstall macOS

Corrupted disk permissions or a failing SSD can cause restarts. Run First Aid in Disk Utility:

  1. Boot into Recovery (hold Command-R).
  2. Open Disk Utility.
  3. Select your startup disk and click First Aid → Run.

If First Aid finds errors it can’t fix, you may have a failing drive—back up immediately. If the disk is fine, a clean reinstall of macOS is the next step. Erase the disk in Disk Utility (after backing up) and reinstall macOS, then restore from your backup.

When It’s Likely Hardware and You Should Get Help

If you’ve tried all the above and the restarts continue, it’s very likely a hardware fault. Common culprits:

  • RAM – even one bad module can cause random panics.
  • Logic board – solder joints can fail over time.
  • Battery – on laptops, a swollen or failing battery can cause shutdowns that look like restarts.
  • Storage drive – a failing SSD can cause kernel panics.

If your Mac is still under AppleCare or consumer law, contact Apple Support. For older machines, an independent repair shop may be more cost-effective. Don’t attempt to replace logic board components yourself unless you have experience.

Frequently Asked Questions

How do I know if it’s a kernel panic or just a crash?

A kernel panic shows a black screen with “Your computer restarted because of a problem” after reboot. A regular app crash just closes the app; the Mac stays on. If you see that message, it’s a kernel-level issue.

Can a virus cause my Mac to restart?

Yes, but it’s rare. Malware that installs kernel extensions or tampers with system files can cause instability. If you suspect malware, run a reputable security scanner and check for unknown login items.

Will resetting NVRAM delete my files?

No. NVRAM only stores settings like startup disk and volume. Your documents, photos, and apps are untouched.

My Mac restarts only when I wake it from sleep. What does that mean?

This often points to a sleep/wake power management issue. Try resetting SMC (Intel) or updating macOS. Also disable “Wake for network access” in Energy Saver settings. If it persists, it could be a hardware issue with the logic board.

How long should I test after each fix?

At least 24-48 hours of normal use. Some issues are intermittent, so a few hours without a restart isn’t conclusive. Keep a log of when restarts happen and what you were doing.

Is there a way to stop the restart loop so I can back up?

Yes. Boot into Safe Mode (which often prevents the panic), then immediately back up your important files to an external drive or cloud. If Safe Mode also restarts, boot into Recovery and use Disk Utility to copy your data or use Target Disk Mode (Intel) to connect to another Mac.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →