Warning icon
MacPaw stands with Ukraine. Here’s how you can help our country win with just several clicks.

How to run diagnostics on a Mac with ease

6 min read

We associate a Mac with quality, capacity, speed, and reliability. But it might happen so that your Mac underperforms and unpredictable issues occur. Before taking it to the nearest Apple service, you can try to identify the problem yourself by running comprehensive MacBook diagnostics — Apple Diagnostics, to be precise. It will save you time and money, and prevent serious system crashes. Identifying whether the issue is a hardware or software one will determine the possible actions and next steps. 

What is Apple Diagnostics?

Apple Diagnostics is a built-in test that helps detect what hardware components are causing the problem, and find system failures. The test checks RAM, power controller, logic board, battery, and other wireless modules.

That was the hard part. And the easy part is that you can run Apple Diagnostics in just a few steps. The whole process will take about 2-5 minutes — but ultimately saves hours of time. 

A great feature of Apple test is that after hardware checking, it displays an error code, offers you clear solutions, and the assistance of Apple Support. You can write out the error codes (known as reference codes), and either do the research on your own or contact Apple.

When referring to Mac hardware test, you might also hear about Apple Hardware Test (AHT). This is a predecessor of Apple Diagnostics (AD), and they have some minor differences. Mainly, the results of AHT aren't conclusive and descriptive. AHT is used in Macs released in  2012 or earlier, while AD is a more advanced analog that works with newer Macs. 

When should you run diagnostics on Mac? 

If you think there’s a hardware issue on your Mac — which might be the case whenever your Mac shuts down randomly, runs extremely slow, etc. — you should consider Apple Diagnostics Mac test. 

Essentially, a Mac hardware test is a great tool to help you understand the problem. And if it doesn't have a fix for it — there are more advanced tools that you can use to troubleshoot Mac issues. More about that in a moment.

How to run Apple Diagnostics on M1&M2 Macs

The instructions you should follow to run a Mac health check will slightly differ, based on whether you have an Intel or Apple Silicon Mac. 

Here’s how to run diagnostics on Mac with an Apple Silicon chip: 

  1. Disconnect all the peripherals except keyboard, mouse, Ethernet cable, display, and connection to power
  2. Shut down your Mac
  3. Turn on your Mac and continue pressing the power button until you see the startup options screen with the Options icon 
  4. Press Command+D. 

apple silicon mac startup recovery screen

image: MacRumors

How to run diagnostics on Intel Macs from 2013 or later

Running a hardware test on Mac with an Intel chip is just as easy: 

  1. Disconnect all the peripherals except keyboard, mouse, Ethernet cable, display, and connection to power
  2. Go to the Apple Menu > Restart
  3. Press and hold the D key until you see a list of different languages on the screen
  4. Select a language. Apple Diagnostics starts automatically
  5. Wait for about 2-5 minutes until the checking is completed. If any problems are found, you'll see the options of solutions and an error code. 

After that, you can either repeat the test, get more information, restart or shut down the Mac. That's it — an easy 5-step process, as promised.

Apple recommends to print out the instructions to keep them close at hand and make sure you don't miss any step. Or, you can take a photo. 

What are the common Apple Diagnostics results?

After performing a Mac hardware test, you'll get the list of found issues with detailed descriptions and related reference codes. Each code stands for a particular error and helps you quickly figure out the next steps. Usually, an error description will suggest possible solutions. However, to fix a specific problem, Apple Diagnostics might recommend you to contact Apple or take your Mac to an Apple Authorized Service Provider or Apple Store.

There could be the case that the system testing doesn't find any issues. If that happens, you have a few options. Please note that they are mutually exclusive, which means you should choose the best option for you:

  • Repeat the process by hitting Run the test again

  • Because well, sometimes a small mistake might hamper it all. Maybe the first time you tried to run Apple Diagnostics, your Mac wasn’t connected to power. Connect it and try again — this will help fix the problem. To get more information on support and service options, click on Get started:

  • The macOS X recovery will start

    Send your serial number and reference codes to Apple by clicking Agree to send

    Follow the on-screen instructions.

  • Restart your Mac 

  • Hit the Shut Down button.

What if you can't run diagnostics?

You can face the problem when Apple Diagnostics simply doesn't work. Don't worry, it's solvable. There might be a couple of reasons why this happens:

  • Some external devices are plugged in. Double-check you've disconnected everything except the keyboard, mouse, display, Ethernet, and power
  • A part of the diagnostics system can be damaged. You can solve the problem by restarting the Mac while holding down Option+D. This will start an internet-based hardware test
  • Firmware password might be the problem. Make sure you turn it off while performing hardware diagnostic Mac test.

What if diagnostics found no issues? 

In case Apple Diagnostics identifies no hardware issues — but your Mac still misbehaves —  maybe, software is the problem.

Often, Macs are slowing down, freezing, or behaving strangely due to full storage, malware, leftovers from uninstalled apps, large and old files. The good news is you don't have to guess, or install many applications to fix each problem separately. An all-in-one tool called CleanMyMac X has all the required functions to test your Mac from a to z. It cleans up, protects, and speeds up your Mac.

Just one click to optimize your Mac — CleanMyMac X makes it fly like a rocket.

Here's how CleanMyMac X optimization works:

  1. Go to the Maintenance tab
  2. Specify what should be done. For example, if you want to speed up your Mac by freeing up some space, check the box next to  Free Up Ram. You can select all the tasks at a time, or choose the particular ones
  3. Click Run.

free ram mac

Yay, you launched a rocket!

The most common problem that impairs system performance is the junk files that clutter your Mac. You might not even know about them. Luckily, CleanMyMac X has a solution for this, too. Resolve various errors with a great feature called System Junk:

  1. Hit Scan
  2. Once you see the results, press Review Details

cmm junk

You'll see the list of all items that should be cleaned or fixed. You can review the results  and deselect those items you're not ready to let go. CleanMyMac X will omit them while cleaning up your Mac. Once you're ready, hit Clean.

cmm caches

Wow, your Mac feels much better now.

Know the reason behind Mac issues

Running Apple Diagnostics is a bit like a shot in the dark. You’re trying to fix something you have no idea about. In some cases, it will work, but you can achieve better results if you know why the issues occur. 

iStat Menus is a utility that sits in the menu bar, with tons of useful real-time insights about your Mac. Check your CPU and GPU usage, memory load, fan speeds, and more in one click. Whenever your Mac is freezing, getting slow, or making loud fan noise, iStat Menus will tell you why it happens. 

istat mac

App Tamer is another utility similar to iStat, but with more focus on idle apps hogging your CPU. See which apps are putting pressure on your Mac and force quit or uninstall them to optimize performance. A nice touch: App Tamer changes its menu icon color when CPU use goes beyond normal. 

app tamer mac

System performance testing is a handy tool that keeps your Mac healthy, and saves you time and money. The primary step is to understand whether the issue is a hardware or software one. While Apple Diagnostics deals with hardware breakdowns, CleanMyMac can fix the software problems.

Running Apple Diagnostics and optimizing performance with CleanMyMac X, iStat Menus, and App Tamer prolongs the life of your Mac. These three apps are free for 7 days on Setapp, a subscription for macOS, iOS, and web apps, covering professionally curated software. 


How long does it take to run diagnostics on MacBook?

On average, the MacBook or iMac diagnostics process takes around 2-5 minutes. In some cases, up to ten. 

How to run diagnostics on Mac through Terminal?

There’s no Terminal command that could fully replicate a comprehensive system diagnostics Mac test such as Apple Diagnostics. However, power users are acquainted with the sysdiagnose command that collects logs from different systems and reports, which can give you insights into your Mac’s performance. You can read about this command online but we urge you not to run it unless you have solid tech expertise. 

How to run diagnostics on a dead Mac?

It’s not always possible to run MacBook diagnostics if your Mac won’t even turn on, however you can try it by holding down the D key. Hopefully, you can get hardware diagnostic Mac test running. 

Get 240+ Mac apps for any job

Sign up to Setapp and try them for free.