Mac issues can occur for a variety of reasons, but in general most errors can be traced back to unstable software. The best way to prevent problems from cropping up is to make sure you are using the latest versions of Apple's programs and third-party applications.

macbookairtrio
However, if you've troubleshooted software and the problem persists, it's time to consider whether it's your Mac's hardware that's at fault.

Disk Utility is the first program you should fire up if you suspect disk errors or permission issues, but if that fails to identify the problem or you can't even get your Mac to boot up into the operating system, you can try using Apple's integrated Mac diagnostics tool.

Apple Diagnostics is built into every Mac released since June 2013. If you have an earlier Mac, the equivalent is called an Apple Hardware Test (AHT), but the basic principles are the same.

thunderbolt3ports
To start using Apple Diagnostics or AHT, first turn off any firmware password if you're using one. Next, shut down your Mac, disconnect all external devices except keyboard, mouse, display, and any Ethernet connection, and then follow the steps below.

  1. Press the power button on your Mac and then immediately press and hold down the D key on the keyboard. (To start Apple Diagnostics over the internet, hold down Option-D.)
  2. Release the D key when the prompt appears on the screen asking you to choose your language using the arrow keys.
  3. Join a local Wi-Fi network if prompted.
  4. If your Mac is a pre-2013 model, you'll be given the option to "Perform extended testing," which essentially checks every block of your Mac's memory. Select this option if desired and click the Test button. On post-2013 Macs, simply select the Test option.
  5. Wait for the progress bar to fill while a scan of your Mac's hardware is performed. On newer Macs this usually takes at least a couple of minutes, but AHT can take a lot longer, especially if you chose extended testing.
    checking mac

  6. Once the scan is complete, a list of any potential hardware issues will appear on the screen or a "No issues found" message will be displayed. Note any issue reference codes before continuing.
    diagnostics issues

  7. To repeat the test, click Run test again. For more information about an issue, click Get Started. Otherwise you can click Restart or Shut Down to exit diagnostics.

If you click Get Started for more information about an issue that Apple Diagnostics has identified, your Mac will boot into macOS Recovery Mode and display a web page asking you to choose your country or region.

Click Agree to send to send your serial number and reference codes to Apple, and follow the onscreen service and support instructions. You can also check any reference codes you noted down against Apple's official code table for more information.

Popular Stories

MacRumors x Bloomberg Banner Cool

Apple Reportedly Plans to Unveil at Least Five New Products Next Week

Sunday February 22, 2026 9:48 am PST by
In his Power On newsletter today, Bloomberg's Mark Gurman said Apple will have a three-day stretch of product announcements from Monday, March 2 through Wednesday, March 4. In total, he expects Apple to introduce "at least five products." Subscribe to the MacRumors YouTube channel for more videos. A week ago, Apple invited selected journalists and content creators to an "Apple Experience" in...
iOS 26

iOS 26.3.1 Update for iPhones Coming Soon as 'Apple Experience' Nears

Sunday February 22, 2026 5:29 pm PST by
Apple's software engineers are testing iOS 26.3.1, according to the MacRumors visitor logs, which have been a reliable indicator of upcoming iOS versions. iOS 26.3.1 should be a minor update that fixes bugs and/or security vulnerabilities, and it will likely be released within the next two weeks. Last month, Apple released iOS 26.2.1 with bug fixes and support for the second-generation...
maxresdefault

iPhone Fold: Launch, Pricing, and What to Expect From Apple's Foldable

Friday February 20, 2026 3:21 am PST by
Apple is expected to launch a new foldable iPhone this year, based on multiple rumors and credible sources. The long-awaited device has been rumored for years now, but signs increasingly suggest that Apple will release its first foldable device in 2026. Subscribe to the MacRumors YouTube channel for more videos. Below, we've collated an updated set of key details that have been leaked about ...
iPhone 18 Pro Deep Red Feature

Apple is Testing These iPhone 18 Pro and Foldable iPhone Colors

Sunday February 22, 2026 8:41 am PST by
The special new color that Apple is considering for the iPhone 18 Pro and iPhone 18 Pro Max this year is red, according to Bloomberg's Mark Gurman. Specifically, he said that Apple is testing a "deep red" finish for the two devices. If this rumor materializes, it would be the first time that the Pro and Pro Max models ever come in red, and the iPhone 18 Pro models would be the first...
tim cook data privacy day

Tim Cook Warned by CIA That China Could Move on Taiwan by 2027

Tuesday February 24, 2026 4:03 am PST by
Apple CEO Tim Cook was among a handful of top tech executives who attended a classified CIA briefing warning that China could attack Taiwan by 2027, according to a sweeping investigative report by The New York Times ($). The previously unreported briefing was apparently held in a secure room in Silicon Valley in July 2023. The meeting is said to have been arranged at the request of the...