Using the Apple Hardware Test to Diagnose Problems

The Apple Hardware Test has been replaced by Apple Diagnostics

The Apple Hardware Test has been replaced by Apple Diagnostics. Apple Diagnostics is a new service that works differently from the Apple Hardware Test. Depending on your Mac, there are different instructions for using Apple Diagnostics, so be sure to consult the Apple support page.

You can use the Apple Hardware Test (AHT) to diagnose issues with your Mac's hardware. This can include problems with a Mac's display, graphics, processor, memory, and storage. You can use the Apple Hardware Test to rule out most hardware issues when troubleshooting problems with a Mac.

Actual hardware failure is rare, but it happens from time to time. A common hardware failure is random-access memory (RAM). The Apple Hardware Test can check your Mac's RAM and let you know if there are any issues. Some Mac models allow you to upgrade the RAM yourself, but in general, the newer your Mac, the less likely this feature will be supported.

Computer hardware test

Jane Kelly / Shutterstock


Apple Hardware Tests on Newer Macs

Not all Macs can use the internet-based AHT. Some must use a local version that's either installed on the Mac's startup drive or included on the OS X install DVD.​

Macs made after 2013 must use a newer version of the hardware test, called Apple Diagnostics. You'll find instructions for testing newer Macs using Apple Diagnostics at Using Apple Diagnostics to Troubleshoot Your Mac's Hardware.

Macs That Can Use Internet Version of AHT

11-inch MacBook Air  MacBookAir 3 Late 2010 through 2012 13-inch MacBook Air
MacBookAir 3 Late 2010 through 2012 13-inch MacBook Pro MacBookPro 8
Early 2011 through 2012 15-inch MacBook Pro MacBookPro 6 Mid 2010 through 2012 17-inch MacBook Pro
Mid 2010 through 2012 MacBook MacBook 7 Mid 2010 Mac Mini
Mac Mini 4 Mid 2010 through 2012 21.5-inch iMac iMac 11
Mid 2010 through 2012 27-inch iMac

Note: Mid 2010 and early 2011 models may require an EFI firmware update before you can use Apple Hardware Test over the internet. You can check to see if your Mac needs the EFI update by doing the following:

  1. From the Apple menu, select About This Mac.
  2. In the window that opens, click the More Info button.
  3. If you're running OS X Lion or later, click the System Report button; otherwise, continue with the next step.
  4. In the window that opens, make sure Hardware is highlighted in the left-hand pane.
  5. From the right pane, make a note of the boot ROM Version number, as well as the SMC version number (if present).
  6. With the version numbers in hand, go to the Apple EFI and SMC Firmware update website and compare your version against the latest available. If your Mac has an older version, you can download the latest version using the links on the above webpage.
  7. When you finish using the Apple Hardware Test, quit the test by clicking either the Restart or Shut Down button.

Use the Apple Hardware Test Over the Internet

Now that you know your Mac is capable of using the AHT over the internet, it's time to run the test. To do this, you need a wired or Wi-Fi connection to the internet.

  1. Make sure your Mac is turned off.
  2. If you're testing a Mac portable, connect it to an AC power source. Do not run the hardware test using only your Mac's battery.
  3. Press the power button to start the power-on process.
  4. Immediately hold down the Option and D keys.
  5. Continue to hold the Option and D keys until you see a Starting Internet Recovery message on your Mac's display. Once you see the message, you can release the Option and D keys.
  6. After a short time, the display asks you to choose a network. Use the drop-down menu to select from the available network connections.
  7. If you chose a wireless network connection, enter the password and then press Enter or Return, or click the checkmark button on the display.
  8. Once you have connected to your network, you'll see a message that says "Starting Internet Recovery," which might take a while.
  9. During this time, the Apple Hardware Test is downloaded to your Mac. Once the download is complete, you will see the option to select a language.
  10. Use the mouse cursor or the Up/Down arrow keys to highlight a language to use, and then click the button in the lower-right corner (the one with the right-facing arrow).
  11. The Apple Hardware Test checks to see what hardware is installed in your Mac. This process can take a little bit of time. Once it's complete, the Test button is highlighted.
  12. Before you press the Test button, you can check what hardware the test found by clicking the Hardware Profile tab. It's a good idea to take a cursory look at this, just to make sure that all of your Mac's major components show up correctly. Verify that the correct amount of memory is reported, along with the correct CPU and graphics. If anything appears to be wrong, verify what your Mac's configuration should be. You can do this by checking the Apple support site for the specifications on the Mac you are using. If the configuration information doesn't match up, you may have a failed device.
  13. If the configuration information appears to be correct, you can proceed to the testing.
  14. Click the Hardware Test tab.
  15. The Apple Hardware Test supports two types of testing: a standard test and an extended test. The extended test is a good option if you suspect an issue with the RAM or video/graphics. Generally, though, starting with the shorter, standard test is a good idea.
  16. Click the Test button.
  17. The hardware test starts, displaying a status bar and any error messages that result. The test can take a bit of time, so be patient. You may hear your Mac's fans rev up and down; this is normal during the testing process.
  18. When the test is complete, the status bar disappears. The Test Results area of the window displays either a "No trouble found" message or a list of problems. If you see an error in the test results, take a look at the error code section below for a list of common error codes and what they mean.
  19. If no trouble was found, you may still want to run the extended test, which is better at finding memory and graphics problems. To do so, place a checkmark in the Perform Extended Testing (takes considerably more time) box, and then click the Test button.
  20. When you finish using the Apple Hardware Test, quit the test by clicking either the Restart or Shut Down button.

End an Apple Hardware Test in Progress

You can stop any test in process by clicking the Stop Testing button.


Apple Hardware Test Error Codes

The error codes generated by the Apple Hardware Test tend to be cryptic at best and are meant for Apple service technicians. Many of the error codes have become well known, however, and the following list should be helpful:

Error Code Description
4AIR AirPort wireless card
4ETH Ethernet
4HDD Hard disk (includes SSD)
4IRP Logic board
4MEM Memory module (RAM)
4MHD External disk
4MLB Logic board controller
4MOT Fans
4PRC Processor
4SNS Failed sensor
4YDC Video/Graphics card
Apple Hardware Test Error Codes

Most of the above error codes indicate a failure of the related component and may require a technician's help to determine the cause and the cost of a repair. Before you send your Mac off to a shop, though, try resetting the PRAM as well as resetting the SMC. This can be helpful for some errors, including logic board and fan problems.

Perform Additional Troubleshooting

You can perform additional troubleshooting for RAM, hard disk, and external disk problems. In the case of a drive, whether internal or external, you can repair it using Disk Utility (which is included with OS X), or a third-party app, such as Drive Genius.

If your Mac has user-serviceable RAM modules, clean and reseat the modules. Remove the RAM, use a clean pencil eraser to clean the RAM modules' contacts, and then reinstall the RAM. Once the RAM is reinstalled, run the Apple Hardware Test again, using the extended testing option. If you still have memory issues, you may need to replace the RAM.

Was this page helpful?