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.

Related Stories

studio buds family

Beats Studio Buds Debuting Today With Active Noise Cancellation, Stemless Design, and More for $150

Monday June 14, 2021 8:00 am PDT by
We've seen a lot of teasers about the Beats Studio Buds over the past month since they first showed up in Apple's beta software updates, and today they're finally official. The Beats Studio Buds are available to order today in red, white, and black ahead of a June 24 ship date, and they're priced at $149.99. The Studio Buds are the first Beats-branded earbuds to truly compete with AirPods...
gradiente iphone white

Brazilian Electronics Company Revives Long-Running iPhone Trademark Dispute

Tuesday May 19, 2020 1:06 pm PDT by
Apple has been involved in a long-running iPhone trademark dispute in Brazil, which was revived today by IGB Electronica, a Brazilian consumer electronics company that originally registered the "iPhone" name in 2000. IGB Electronica fought a multi-year battle with Apple in an attempt to get exclusive rights to the "iPhone" trademark, but ultimately lost, and now the case has been brought to...
youtube apple tv

YouTube Discontinuing 3rd-Generation Apple TV App, AirPlay Still Available

Wednesday February 3, 2021 3:09 pm PST by
YouTube is planning to stop supporting its YouTube app on the third-generation Apple TV models, where YouTube has long been available as a channel option. A 9to5Mac reader received a message about the upcoming app discontinuation, which is set to take place in March.Starting early March, the YouTube app will no longer be available on Apple TV (3rd generation). You can still watch YouTube on...
YouTube Picture in Picture Feature

YouTube Premium Subscribers Can Now Use iOS Picture-in-Picture: Here's How

Wednesday August 25, 2021 3:55 am PDT by
Google has rolled out picture-in-picture support as an "experimental" feature for YouTube premium subscribers, allowing them to watch video in a small window when the app is closed. If you're a premium YouTube subscriber looking to try out picture-in-picture, follow these steps: Launch a web browser and sign into your YouTube account at YouTube.com. Navigate to www.youtube.com/new. Scroll...
2012macpro

Apple Outlines Metal-Capable Cards Compatible With macOS Mojave on 2010 and 2012 Mac Pro Models

Monday September 24, 2018 3:26 pm PDT by
Apple's new macOS Mojave update is not compatible with mid-2010 and mid-2012 Mac Pros with stock GPUs, but it is supported on 2010 and 2012 Mac Pro models that have been upgraded with graphics cards that support Metal. Apple today shared a new support document that provides a list of graphics cards that are Metal-capable, which will be useful for 2010 and 2012 Mac Pro owners who want to...
apple privacy

Apple Publishes FAQ to Address Concerns About CSAM Detection and Messages Scanning

Monday August 9, 2021 1:50 am PDT by
Apple has published a FAQ titled "Expanded Protections for Children" which aims to allay users' privacy concerns about the new CSAM detection in iCloud Photos and communication safety for Messages features that the company announced last week. "Since we announced these features, many stakeholders including privacy organizations and child safety organizations have expressed their support of...
iphone 13 teal with text

Apple Expecting iPhone and iPad Supply Constraints in September Quarter

Tuesday July 27, 2021 2:34 pm PDT by
During today's earnings call covering the third fiscal quarter of 2021 (second calendar quarter), Apple CFO Luca Maesteri said that Apple is expecting supply constraints to affect the iPhone and the iPad in the coming quarter. "The supply constraints that we've seen in the June quarter will be higher in the September quarter," said Maestri. The constraints will impact iPhone and iPad sales...
anker lightning cable mfi

Unwrap a New Apple Device? Stock Up on Extra Certified Lightning Cables for as Little as $6

Monday December 25, 2017 5:45 am PST by
If you unwrapped an Apple product today it likely came with one of the company's first-party Lightning cables, but having an extra on hand is always a good idea, so you can place it in other rooms in your house, in your car, or in a bag when you travel. For that reason, now's a good time to shop for third-party Lightning cables that are cheaper than Apple's own accessory, but still Made For...
apple screen time screen icons

Persistent Kids Finding Loopholes in Apple's Screen Time Limits

Tuesday October 15, 2019 9:44 am PDT by
Apple is currently engaged in a cat-and-mouse game with persistent kids looking to circumvent Screen Time restrictions, but the company has been receiving some criticism for not moving quickly enough to lock down some of the loopholes, reports The Washington Post. A few of the loopholes and ways for parents to shut them down are documented on the site Protect Young Eyes, while these and...
os x mountain lion macs 16x9 2

Apple Makes OS X Lion and Mountain Lion Free to Download

Wednesday June 30, 2021 12:19 pm PDT by
Apple recently dropped the $19.99 fee for OS X Lion and Mountain Lion, making the older Mac updates free to download, reports Macworld. Apple has kept OS X 10.7 Lion and OS X 10.8 Mountain Lion available for customers who have machines limited to the older software, but until recently, Apple was charging $19.99 to get download codes for the updates. As of last week, these updates no...