Mac Fixes

Kernel Panic on a Mac: What It Is and How to Fix It

Kernel panics are one of the last things any Mac owner wants to deal with. Your Mac will suddenly display a message, telling you there’s been a fault, and then it will restart. If you were working on anything at the time, your progress can easily be lost.  


Kernel panics happen when something goes wrong with the macOS kernel. It’s an essential part of Unix-based operating systems, including macOS. The most common cause of kernel panics is software errors, but they can be caused by hardware faults as well.  


If you find yourself faced with kernel panics on your Mac, what can you do? In this guide, we look at some of the best potential solutions.  


Before we start

Hidden processes that launch with your Mac might be the cause of kernel panics. With MacKeeper, it’s easy to find and remove them.

  1. In MacKeeper, select Login Items from the sidebar
  2. Click Start scan
  3. Select any items you want to remove
  4. Click Remove selected items

Install MacKeeper, and give it a go for yourself. You can try each of MacKeeper’s tools one time fully for free, so it’s well worth giving it a shot.

Common causes for Mac kernel panics

There are many reasons kernel panics happen on Macs. Incompatible software, for example. Or device conflicts. In many cases, these kinds of problems aren’t serious enough to cause a kernel panic, and your Mac just carries on working as normal. But if a problem is significant enough, macOS might restart to protect your Mac.  


Other reasons for Mac kernel panics include:

How to deal with kernel panics on your Mac

Check out crash reports

macOS keeps all kinds of records about its performance, including when it crashes. You can view these in the Console tool or open the crash log files from the DiagnosticReports folder in Library > Logs.


Here’s how to view macOS crash reports:

1. Open the Console app in Applications > Utilities

utilities folder console

2. Select Crash Reports from the sidebar

console crash reports

3. If there are any crash reports, click on one, then look at the text in the report

console crash reports tab

The first section of the report tells you what the process that caused the crash is. The second section informs you about the exact date and time of the crash, as well as the version of the OS.  


The next section includes Exception details. There are two types you’re interested in:

  • EXC_BAD_ACCESS/KERN_INVALID_ADDRESS caused by access to unmapped memory
  • EXC_BAD_ACCESS/KERN_PROTECTION_FAILURE caused by writing to read-only memory

The section after this tells you the backtrace information, where you can find out which thread crashed and the events that led to this. With any luck, there’ll be some clues in these reports about what caused your kernel panic.  

Restart in safe mode

Safe mode is a good way to check if your Mac has a software problem. It starts macOS with only the drivers and apps it needs to run, so if you find your Mac’s kernel panics stop when you put your Mac in safe mode, there’s a good chance it’s the result of third-party software.  

macOS safe mode

How to enter safe mode with an Intel Mac:

  1. Shut down your Mac, and wait 10 seconds
  2. Turn your Mac on, and immediately press and hold Shift
  3. Release the Shift key when you see the login screen

How to enter safe mode with an M1 Mac:

  1. Shut down your Mac, and wait 10 seconds
  2. Press and hold the power button until the startup options window appears
  3. Select the startup disk
  4. Press and hold Shift
  5. Click Continue in Safe Mode, then release Shift

Remove login items

It’s possible an app is starting up with macOS and causing problems. If that’s the case, you can stop it from automatically running, which might fix your kernel panic issue.  


Here’s how to change login items in macOS:

1. In System Preferences, open Users & Groups

system preferences users & groups

2. Click your name in the sidebar

users & groups tab

3. Select the Login Items tab

users & groups login items tab

4. Click an app in the list

users & groups login items tab

5. Click the minus button  

delete login item

It’s important to note that this list doesn’t include all startup processes, which can include LaunchAgents and LaunchDaemons. You can delete login items manually or use something like MacKeeper to do it for you.  

Check you have enough disk space

Running your Mac with a full or nearly full system disk can cause stability issues, including kernel panic.


How to check your disk space on a Mac:

1. Click the Apple icon in the menu bar, and select About This Mac

apple logo about this mac

2. Click Storage

about this mac storage tab

3. Look at how much storage is available

about this mac storage tab

4. If you want to manage your storage, click the Manage button

storage tab manage button highlighted

Run Apple Diagnostics

Formerly known as Apple Hardware Test, Apple Diagnostics is a tool built into macOS, which tests for hardware problems. This may be the cause of your Mac’s kernel panics. Before running it, disconnect everything from your Mac, other than the mouse, keyboard, monitor, power, and Ethernet cable, if you’re using one.  

run apple diagnostics

Here’s how to run Apple Diagnostics on an Intel Mac:

  1. Shut down your Mac
  2. Turn on your Mac, and immediately press and hold the D key
  3. Release the D key when you see a progress bar or are asked to choose a language

Here’s how to run Apple Diagnostics on an M1 Mac:

  1. Press and hold the power button on your Mac
  2. Release the power button when you see the startup options
  3. Press Cmd+D on your keyboard

Apple Diagnostics will now check your Mac’s hardware. You’ll see a progress bar while it’s doing this. When it’s finished, you’ll get a report, which includes reference codes. Take a look at Apple’s reference code guidance to see what they mean.

Remove third-party kernel extensions

macOS uses files called kexts (short for kernel extension) to add functionality to the operating system. These are all stored in the Library > Extensions folder. This is also where third-party extensions are installed. But you should be very careful about deleting kext files, in case you delete one that macOS relies on. It’s a good idea to check what third-party extensions you have installed, if any.  


How to use Terminal to check for third-party macOS extensions:

1. Open Terminal from the Applications > Utilities folder

utilities folder

2. Type kextstat | grep -v, and press Enter

terminal app

3. If you have any third-party extensions installed, they’ll be listed here

terminal app window

Once you’ve identified third-party extensions, you can find them in the Extensions folder and delete them. Alternatively, use a tool like MacKeeper’s Smart Uninstaller to find and remove extensions for you. This avoids the risk of deleting default system extensions – which might cause more problems on top of your Mac’s kernel panic issues.  

Run First Aid in Disk Utility

Repairing errors on your Mac’s system disk might help to fix kernel panics. You can do that easily using Disk Utility’s First Aid function.  


How to run First Aid on your Mac:

1. Open Disk Utility from Applications > Utility

utilities folder

2. Select your system disk from the sidebar

disk utility

3. Click First Aid

disk utility first aid

4. Click Run

run first aid big sur

5. Click Continue

run first aid big sur

6. Wait for First Aid to finish

running first aid big sur

If all else fails, reinstall macOS

Undoubtedly the nuclear option, but if you can’t fix your Mac’s kernel panics, you might have factory reset your Mac. If the kernel panics still happens, then your problem must be hardware-related – including third-party peripherals. To reset your Mac, you’ll need to enter Recovery mode.  

mac recovery mode

Here’s how to put an Intel Mac in Recovery mode:

  1. Turn off your Mac
  2. Turn it back on, and immediately press and hold Cmd+R
  3. Release the keys when you see the Apple logo

Here’s how to put an M1 Mac in Recovery mode:

  1. Turn off your Mac
  2. Press and hold the power button until you see Loading startup options
  3. Select Options to get into Recovery

Talk to a professional

If you’re unable to fix your Mac’s kernel panics, you might have to take it to a repair shop or talk to a professional support team like MacKeeper’s Premium Services. Whether you’ve got a MacBook, iMac, Mac mini or any other model, they can help you with any problems you might be having, including kernel panics.  


But hopefully, the tips in the guide will be enough to get your Mac up and running again, without any unexpected restarts.  


Read more:

Use your Mac to the fullest! Sign up and get:
Effective tips on how to fix Mac issues
Reliable advice on how to stay safe online
Mac-world news and updates

Thank you!

You’ll love exploring your Mac with us.

Oops, something went wrong.

Try again or reload a page.

Here’s another sign you need to upgrade your macOS ASAP:

30% off your MacKeeper subscription

Сopy the code now and use it in the MacKeeper checkout after the upgrade.

Copy Code

Please be aware that this code cannot be combined with any other discounts, offers, or promotions.


MacKeeper - your all-in-one solution for more space and maximum security.

Try Now


Don’t go! Enjoy our Black Friday deal

Add MacKeeper to your shopping list to live the event to the fullest.

Try 1 Week for $1

Run Application


Click Continue


Click Install


Your macOS version is lower than OS 10.11. We’d like to offer you MacKeeper 4 to solve the cleaning, privacy, and security issues of your macOS.