How to

How to Stop a Mac From Randomly Restarting or Shutting Down

1,192 words, 6 min

how to stop a mac from randomly restarting or shutting down openverse 19f89def c920 4e19 bc37 c20a2dedaa5a

Image: Lisa Fotios, public domain via Openverse

Tech news by email, once a week

Unsubscribe any time. Privacy policy

A Mac that powers off or reboots without warning usually leaves a clue behind. If you see a "Your computer was restarted because of a problem" message after the restart, the Mac hit a kernel panic. If it simply went dark, the cause is more likely power, heat, or a hardware fault. Work through the fixes below in order, because the first few are quick and rule out the most common causes.

Tell a kernel panic from a power cut

After a kernel panic, the Mac restarts and shows a message saying it restarted because of a problem. Apple says faulty software is the most likely cause of that message. A sudden black screen with no message points elsewhere: a drained or failing battery, an overheating chip, or a power supply problem.

Note two details before you start, since they decide which section applies: whether a message appeared after the restart, and what you were doing when it happened. Crashes during video calls or games suggest heat. Crashes right after plugging in a new accessory suggest that accessory.

Advertisement

Fixes to try first

  1. Update macOS and your apps. Open System Settings, go to General, then Software Update. Update apps from the App Store or the developer's own updater too.
  2. Disconnect everything except the keyboard and mouse. Hubs, docks, external drives, and cheap cables are frequent kernel panic triggers. Use the Mac for a day. If it behaves, plug devices back in one at a time until the crashes return.
  3. Remove third-party RAM or add-in cards if you installed any. Apple lists these as a known cause of kernel panics.
  4. Free up disk space. A nearly full startup disk makes macOS unstable. Keep a healthy margin of free storage.
  5. Uninstall recently added software that runs in the background, such as VPN clients, antivirus tools, and system utilities with kernel extensions or system extensions.

Check heat and battery on a laptop

A hot Mac protects itself by throttling and, in extreme cases, shutting down. Check that the vents are clear and the Mac is not sitting on a bed or blanket. Open Activity Monitor and sort by the CPU column to find a runaway process pinning the processor. Quit it, and if it keeps coming back, update or remove the app behind it.

On a MacBook, open System Settings, then Battery, and look at the battery health information. If the battery is flagged for service and the Mac dies when unplugged or at a seemingly healthy percentage, the battery is a prime suspect. Run the Mac on the charger for a day. If the shutdowns stop while plugged in, a battery replacement is the likely fix.

Start in safe mode to isolate software

Safe mode loads only essential software and runs some disk checks, which helps you tell whether a third-party extension or login item is to blame.

  1. On an Intel Mac, restart and hold Shift until the login window appears.
  2. On an Apple silicon Mac, shut down, wait about ten seconds, then press and hold the power button until the startup options screen appears. Select your startup disk, hold Shift, and click Continue in Safe Mode.
  3. Use the Mac normally for a while. If the restarts stop, a startup item or extension is the culprit.
  4. Restart normally, without holding any keys, to leave safe mode.

If the Mac is stable in safe mode, remove login items one by one in System Settings under General, then Login Items, and uninstall recently added utilities.

Reset the SMC on an Intel Mac, and what Apple silicon does instead

The System Management Controller handles power, battery, fans, and thermal behavior on Intel Macs. Apple says you most likely do not need to reset it, but it can help with power problems like unexpected shutdowns. Apple silicon Macs reset the equivalent functions automatically, so shutting down and starting up again is all you can do there. No manual reset exists.

On an Intel Mac, the steps depend on the model. For a laptop with a T2 security chip:

  1. Shut down the Mac, then press and hold the power button for 10 seconds. Release it, wait a moment, and turn the Mac on. Apple lists this simpler step first.
  2. If the problem remains, shut down again. Hold the right Shift key, left Option key, and left Control key for seven seconds, then keep holding them and also hold the power button for another seven seconds. Release everything, wait a few seconds, and turn the Mac on.

For an Intel desktop, shut down, unplug the power cord for 15 seconds, plug it back in, wait about five seconds, then turn the Mac on. Older laptops without a T2 chip use a different combination that depends on whether the battery is removable, so check Apple's SMC reset page for your exact model.

Reset NVRAM on an Intel Mac

NVRAM stores small settings like startup disk, display resolution, and speaker volume. Corrupted values occasionally cause boot trouble. Resetting does not touch your files, though it can reset those settings to defaults.

  1. Shut down the Mac. If you set a firmware password, turn it off first, or the reset will not work.
  2. Turn it on and immediately hold Option, Command, P, and R together.
  3. Keep holding for about 20 seconds, then release. The Mac may appear to restart during this time.
  4. Reopen System Settings and check the volume, display, and startup disk settings.

Apple silicon Macs have no manual reset, since they check NVRAM at startup and repair it when needed. The Intel key combination does nothing on those models.

Run Apple Diagnostics for hardware faults

Apple Diagnostics tests the Mac's built-in hardware and returns reference codes if it finds a problem. Unplug all accessories except power, keyboard, mouse, display, and Ethernet first.

  1. On an Intel Mac, turn it on and immediately hold D. If that fails, hold Option and D to run the test over the internet.
  2. On an Apple silicon Mac, shut down, then press and hold the power button until the startup options screen appears, and press Command and D.
  3. Wait for the results. On macOS Tahoe 26 and later you may be asked to pick a specific component to test.
  4. Write down any reference code. Apple publishes a list of what each one means.

The tool does not check external devices or software, so a clean result still leaves software causes on the table.

Reinstall macOS or get the Mac repaired

If the Mac still restarts after all this, back up your files and reinstall macOS from recovery. A clean install rules out corrupted system files. If the crashes continue after a fresh install, or Apple Diagnostics reports a hardware code, book a repair. A swollen or failing battery, a logic board fault, and a bad power adapter or port all need a technician, and a swollen battery should be handled quickly, because it can damage the case and trackpad.

Before you hand the Mac over, check whether it is covered by warranty or AppleCare, and bring your charger so the technician can test with your own adapter.

Featured image: Lisa Fotios, public domain via Openverse

Advertisement

Get the week's tech news by email

One email a week with Trendblog's stories on AI, hardware, apps and crypto.

We'll email you to confirm your address. Unsubscribe any time. Privacy policy