Mac keeps restarting? How to find out why — and make it stop

Updated October 2026 · 7 min read

You're in the middle of something, the screen goes black, the Mac chimes or shows the Apple logo, and a moment later you see the message: "Your computer restarted because of a problem." Once is annoying. When it happens every day — or in a loop — it's worrying.

The good news: an unexpected restart is almost always fixable at home, and in most cases the cause is software, not a broken Mac. This guide explains what's going on in plain words and walks you through the checks in the order Apple itself recommends.

What "restarted because of a problem" actually means

When macOS hits an error so serious that it can't safely keep running, it stops everything and restarts. This is called a kernel panic. The kernel is the core of the operating system — the part that talks to the hardware — and "panic" just means it chose to start over rather than risk damaging your files.

A single panic every few months is not a reason to worry. Repeated panics, though, point to something specific that keeps triggering the same error. According to Apple, the most likely cause is faulty or incompatible software. Less often, it's hardware: a damaged component, or an external device plugged into your Mac.

Good to know: a kernel panic is different from a frozen app. If just one app stops responding, that's an app problem — force quit it with Option-Command-Esc. A kernel panic takes down the whole Mac at once.

Step 1: Read the clue macOS leaves behind

After a panic, macOS usually shows a message when you log back in, with a Report… button. Click it and you'll see a block of technical text. You don't need to understand most of it — just look for the names of apps or extensions you recognize. If the same app or accessory name shows up after every restart, you've probably found your suspect.

You can also find older reports later: open the Console app (search for it with Spotlight, Command-Space), click Reports in the sidebar, and look for entries whose names start with "panic". Comparing a few of them can reveal a pattern.

Step 2: Install software updates

Apple regularly fixes bugs that cause panics, and so do app developers. Start here:

Pay special attention to apps that work "deep" in the system: antivirus tools, VPNs, screen recorders, drivers for printers, drawing tablets or audio interfaces, and anything that added an item to System Settings → General → Login Items & Extensions (just Login Items on macOS Sonoma). Old versions of this kind of software are classic panic triggers right after a macOS upgrade. If restarts started right after an update, also read why a Mac misbehaves after an update.

Step 3: Unplug everything (yes, everything)

Accessories cause more restarts than people expect: a worn-out USB hub, an old external drive, a cheap charging cable, a docking station. To test this:

  1. Shut down your Mac.
  2. Disconnect every accessory except the power cable — and, on a desktop Mac, an Apple keyboard and mouse or trackpad.
  3. Use the Mac normally for a while.
  4. If the restarts stop, reconnect one device at a time, using each for a while, until the problem comes back. The last thing you plugged in is the likely culprit.

Step 4: Start up in Safe Mode

Safe Mode starts the Mac with only the essentials: it skips login items and third-party extensions, and it runs some basic checks on your startup disk. If your Mac runs fine in Safe Mode but restarts in normal mode, the cause is almost certainly something that loads at startup.

On a Mac with Apple silicon (M1 and newer)

  1. Shut down the Mac.
  2. Press and hold the power button until you see Loading startup options.
  3. Select your startup disk, then press and hold Shift and click Continue in Safe Mode.

On an Intel-based Mac

  1. Turn on or restart the Mac and immediately press and hold Shift.
  2. Release it when you see the login window.

You'll see "Safe Boot" in the menu bar on the login screen. To leave Safe Mode, just restart normally. Our Safe Mode guide covers this in more detail.

Step 5: Remove the suspect software

If the panic report or Safe Mode points at a particular app, Apple's advice is simple: move it to the Trash and see if the restarts stop. If you can't pin down one app, remove plug-ins and add-ons you don't really need, and check that the rest is compatible with your version of macOS (the developer's website usually says).

Some apps leave background helpers behind after you delete them. Our guide on uninstalling apps completely shows where those leftovers live. Also review Login Items & Extensions and turn off anything under Allow in the Background that belongs to an app you no longer use.

Step 6: Check the disk and free up space

A damaged file system or a nearly full startup disk can make macOS unstable. Open Disk Utility (in Applications → Utilities), select your startup disk in the sidebar, and click First Aid. Then check how much room you have left — if your disk is close to full, see what to do when your startup disk is full.

Step 7: Test the hardware with Apple Diagnostics

If the restarts continue even in Safe Mode with nothing plugged in, it's time to test the hardware. Apple Diagnostics is built into every Mac and checks things like memory and the logic board. First disconnect all external devices except the keyboard, mouse, display, Ethernet and power.

Your MacHow to start Apple Diagnostics
Apple siliconShut down. Press and hold the power button until the startup options appear, then press and hold Command-D.
IntelTurn on the Mac and immediately press and hold D until you see a progress bar or a language choice. If that doesn't work, try Option-D.

If the test finds a problem, it gives you a reference code. Write it down — that's what Apple or an authorized service provider will ask for.

Step 8: Reinstall macOS as a last resort

If nothing above helps and the hardware test is clean, reinstalling macOS replaces the system files without erasing your documents. Back up first with Time Machine, just in case. Our guide to reinstalling macOS walks through it step by step for both Apple silicon and Intel Macs.

When to stop and get help: if your Mac restarts before you can even log in, restarts during Apple Diagnostics, or the diagnostics report a hardware issue, contact Apple Support or an authorized repair shop. Don't keep forcing restarts on a Mac that shows hardware errors.

Not sure which app is the troublemaker?

Gigatidy looks at what starts with your Mac and what runs in the background, explains each item in plain English, and helps you remove leftovers from old apps — only after you approve the checklist. Removed apps go to the Trash, and everything is kept in your history.

Meet Gigatidy →

FAQ

Is a kernel panic dangerous for my Mac?

No. A kernel panic is a safety mechanism: macOS restarts to protect your files instead of continuing in a broken state. An occasional one is harmless. Frequent panics are a sign that some software or hardware needs attention, so it's worth working through the steps above.

Why does my Mac restart every time I plug in a certain device?

That device, its cable, or its driver software is most likely the cause. Try a different cable or port, update the device's software from the maker, and if the restarts continue, stop using that accessory with your Mac.

Will reinstalling macOS delete my files?

No. Reinstalling macOS from macOS Recovery keeps your files and user settings. Only erasing the disk or using Erase All Content and Settings removes your data. Still, always make a Time Machine backup before reinstalling.