How to Fix a Mac With a Kernel Panic During Startup

Illustration for How to Fix a Mac With a Kernel Panic During Startup

A kernel panic during startup means macOS encountered a serious system-level error and could not continue loading. The Mac may restart repeatedly, show a message that it was restarted because of a problem, freeze on the Apple logo, or display a black or gray screen.

Start with the least destructive solutions: disconnect accessories, perform a complete shutdown, and try Safe Mode. If the problem continues, use macOS Recovery to run Disk Utility, reinstall macOS, or restore your data from a backup. If your Mac still panics after these steps, a hardware problem or damaged internal storage may require professional service.

Quick Answer

  1. Disconnect all nonessential accessories.
  2. Shut down the Mac completely, then turn it on again.
  3. Start in Safe Mode and remove recently installed software, drivers, or login items.
  4. Use macOS Recovery and run First Aid on the internal startup volume.
  5. Install available macOS updates or reinstall macOS from Recovery.
  6. If the Mac continues to panic, back up or recover your data and contact Apple Support or an authorized service provider.

A kernel panic can be caused by incompatible software, faulty peripherals, damaged system files, storage errors, overheating, or failing hardware. Avoid repeatedly forcing the Mac to restart if you hear unusual drive sounds or suspect physical damage.

What a Kernel Panic During Startup Looks Like

A kernel panic occurs when the macOS kernel—the core part of the operating system—detects an error it cannot safely handle. During startup, this may prevent macOS from reaching the login screen.

Common signs include:

  • The Mac restarts immediately after the Apple logo appears.
  • A message says the computer was restarted because of a problem.
  • The screen freezes, turns black, or shows a multilingual restart message.
  • The Mac repeatedly shows the Apple logo and progress bar.
  • Startup succeeds only occasionally.
  • The Mac crashes shortly after you enter your password.

A single panic does not always indicate a serious failure. If it happens repeatedly, however, treat it as a troubleshooting issue rather than continuing to use the Mac normally.

Before You Begin

If the Mac starts normally even once, back up important files immediately. Use Time Machine, an external drive, or a cloud backup service. Do not begin with steps that erase a disk or delete files unless you have confirmed that your important data is backed up.

You should also note what changed before the first panic. Recent changes may include:

  • A macOS update
  • A newly installed app
  • Antivirus or security software
  • A VPN or network filter
  • A printer, dock, display, or other accessory
  • A third-party driver or system extension
  • A storage upgrade or memory installation

If the Mac is completely unresponsive, hold the power button until it turns off. This can discard unsaved work, so use it only when a normal shutdown is not possible.

1. Disconnect Accessories and Perform a Complete Shutdown

External devices can trigger startup crashes, particularly docks, USB hubs, external drives, displays, and devices that use third-party drivers.

  1. Shut down the Mac. If it will not shut down normally, hold the power button until it turns off.
  2. Disconnect everything except the power adapter, if you are using a portable Mac.
  3. Remove USB devices, Thunderbolt devices, external displays, memory cards, printers, hubs, and external storage.
  4. Wait at least 30 seconds.
  5. Turn on the Mac.

If startup succeeds, reconnect devices one at a time and restart after each connection. This helps identify the accessory causing the panic. Check the device manufacturer’s website for updated firmware or macOS-compatible software before reconnecting it permanently.

If the Mac will not turn on at all, follow the steps in How to Fix a Mac That Won’t Turn On.

2. Start the Mac in Safe Mode

Safe Mode starts macOS with only essential components and performs additional startup checks. It can help determine whether third-party software, extensions, fonts, or login items are causing the panic.

Apple silicon Mac

  1. Shut down the Mac.
  2. Press and hold the power button until Loading startup options appears.
  3. Select a startup volume.
  4. Hold the Shift key, then click Continue in Safe Mode.
  5. Sign in. You may need to sign in twice.

Intel-based Mac

  1. Shut down the Mac.
  2. Turn it on and immediately press and hold the Shift key.
  3. Release the key when the login window appears.
  4. Sign in.

You may see Safe Boot in the menu bar or in the startup information. If the Mac works in Safe Mode, restart normally and test again. If the panic returns, remove recently installed system software or login items.

To review login items, open Apple menu > System Settings > General > Login Items. Select an unfamiliar or recently added item, then click the remove button. Removing a login item changes what opens automatically when you sign in; it does not normally uninstall the associated app.

Also uninstall recently added VPN software, antivirus tools, device utilities, and system extensions using the developer’s instructions. Do not delete random files from system folders.

For detailed startup instructions, see How to Start a Mac in Safe Mode.

3. Check for macOS and App Updates

Outdated software can conflict with newer system components or hardware drivers. If Safe Mode works, install available updates before testing normal startup again.

  1. Open Apple menu > System Settings.
  2. Click General.
  3. Click Software Update.
  4. Install available updates and follow the onscreen instructions.

Also update apps through the App Store or through each developer’s update mechanism. If the panic began immediately after a particular app or driver update, temporarily uninstall that software rather than installing it again.

If the Mac cannot stay on long enough to update, continue with macOS Recovery.

4. Use macOS Recovery and Run Disk Utility First Aid

macOS Recovery is a separate startup environment that includes tools for repairing disks, reinstalling macOS, and restoring from backups. First Aid checks the file system and attempts to repair certain directory and formatting problems.

Enter macOS Recovery

Apple silicon Mac

  1. Shut down the Mac.
  2. Press and hold the power button until Loading startup options appears.
  3. Click Options, then click Continue.
  4. Select an administrator account if asked and enter its password.

Intel-based Mac

  1. Shut down the Mac.
  2. Turn on the Mac and immediately press and hold Command-R.
  3. Release the keys when the Apple logo or spinning globe appears.
  4. Select an administrator account if asked and enter its password.

Run First Aid

  1. In Recovery, open Disk Utility.
  2. Choose View > Show All Devices.
  3. In the sidebar, select the internal physical drive or the highest-level internal device.
  4. Click First Aid, then click Run.
  5. Repeat First Aid for each internal volume and container shown in the sidebar, working from the volumes upward when possible.
  6. When finished, choose Disk Utility > Quit Disk Utility.
  7. Select Restart from the Recovery menu.

First Aid does not recover deleted files and cannot repair every hardware failure. If Disk Utility reports that the disk is failing, cannot be repaired, or is not detected, avoid erasing it until you have considered data recovery.

5. Reinstall macOS Without Erasing the Startup Disk

If First Aid completes but the Mac still panics, reinstalling macOS can replace damaged system files. Reinstalling from Recovery is designed to preserve your user files and installed applications, but you should still maintain a backup whenever possible.

  1. Start the Mac in macOS Recovery.
  2. Select Reinstall macOS.
  3. Click Continue.
  4. Follow the onscreen instructions.
  5. Select the current startup disk when prompted.

The Mac needs a reliable power connection and, usually, an internet connection. The installation may restart several times and can take a while. Do not close the lid of a notebook or disconnect power during the installation.

If the installer says the disk cannot be used, return to Disk Utility and check whether the startup volume is mounted. Do not erase the disk unless you have a current backup or have accepted that its contents may be lost.

6. Reset NVRAM on an Intel-Based Mac

Nonvolatile random-access memory, or NVRAM, stores a small amount of startup-related information such as display settings, selected startup disk information, and audio volume. Corrupt settings can occasionally contribute to startup problems.

NVRAM reset instructions differ between Intel-based Macs and Apple silicon Macs. On an Intel-based Mac:

  1. Shut down the Mac.
  2. Turn it on and immediately press and hold Option-Command-P-R.
  3. Keep holding the keys for about 20 seconds.
  4. Release the keys and allow the Mac to start.

This may reset some system settings, such as the startup disk selection or speaker volume. It does not erase your documents or reinstall macOS. Apple silicon Macs manage these settings differently and generally do not use the same manual key combination.

For additional background and model-specific considerations, see What Is NVRAM and Why Is It Necessary to Reset It in MacBook, iMac, and Mac mini?.

7. Test for Hardware Problems

If the Mac panics in Safe Mode, in macOS Recovery, or with all external devices disconnected, software is less likely to be the only cause. Possible hardware causes include:

  • Failing internal storage
  • Defective memory on an older Mac
  • A damaged logic board
  • Overheating
  • A faulty power component
  • A malfunctioning dock, display, or cable

You can run Apple Diagnostics to check for certain hardware faults.

Apple silicon Mac

  1. Shut down the Mac.
  2. Press and hold the power button until startup options appear.
  3. Continue holding the power button, then press Command-D.

Intel-based Mac

  1. Shut down the Mac.
  2. Turn it on and immediately press and hold the D key.
  3. Release the key when the diagnostics screen appears.

Follow the onscreen instructions and write down any reference code. Apple Diagnostics may not detect every problem, so a clean result does not guarantee that the hardware is healthy.

Troubleshooting

The Mac keeps restarting before Safe Mode loads

Disconnect all accessories again and try macOS Recovery instead. If Recovery loads, run Disk Utility First Aid and reinstall macOS if necessary. If Recovery also crashes or cannot start, hardware or internal storage problems become more likely.

The panic started after connecting a dock or display

Shut down the Mac, disconnect the device, and test startup without it. Replace the cable if possible and check for firmware or driver updates from the manufacturer. Avoid installing old drivers that were designed for a different macOS release.

The Mac starts, but panics after login

Use Safe Mode to remove login items and recently installed background utilities. Check System Settings > General > Login Items and uninstall software that adds system extensions, VPN filters, antivirus monitoring, or hardware drivers.

Disk Utility cannot repair the disk

First Aid cannot fix every type of damage. If the disk contains important files, stop experimenting with erase or partition tools and seek data-recovery assistance. If you have a current backup, you can erase the disk in Recovery and restore your files afterward.

The panic happens only when the Mac is hot

Keep air vents clear, use the Mac on a hard surface, and remove accessories that draw power or generate heat. Repeated overheating can indicate a fan, sensor, battery, or logic-board problem and should be inspected professionally.

The Mac is stuck on the Apple logo instead of showing a panic message

The underlying issue may still be related to a startup crash. Try the startup and Recovery procedures above. You can also read How to Fix a Mac Stuck on the Apple Logo for additional startup troubleshooting.

Frequently Asked Questions

Can a kernel panic damage my Mac?

A single kernel panic usually does not physically damage the Mac. However, repeated forced shutdowns can interrupt file operations and increase the risk of file-system problems. Investigate recurring panics instead of ignoring them.

Will reinstalling macOS delete my files?

A normal Reinstall macOS operation from Recovery is intended to preserve the startup disk’s user data. Nevertheless, backups are important because disk failure or an interrupted installation can create additional problems. Erasing the disk is a separate action and deletes its contents.

Should I keep restarting after every kernel panic?

Restart once to determine whether the problem was temporary. If the Mac repeatedly panics during startup, stop repeated restart attempts and use Safe Mode or macOS Recovery. Repeated forced shutdowns are especially risky when the internal disk is failing.

Do I need to reset NVRAM on every Mac?

No. The familiar NVRAM key combination applies to Intel-based Macs. Apple silicon Macs handle startup settings differently, so use Recovery and standard troubleshooting steps instead.

When should I take the Mac to a repair professional?

Seek professional help if the internal disk is not detected, Apple Diagnostics returns a reference code, Recovery will not load, the Mac panics with no accessories connected, or the problem continues after reinstalling macOS. If your files are not backed up, mention that before any repair or erase operation.

Final Thoughts

Fix a startup kernel panic by working from least destructive to most involved: disconnect accessories, try Safe Mode, check software, run Disk Utility First Aid, and reinstall macOS if necessary.