How to use Apple Hardware Test on your Mac

Apple Hardware Test (AHT) contains a suite of diagnostics that can test the hardware of your Mac.

This article has been archived and is no longer updated by Apple.

After isolating an issue on your Mac to a probable hardware issue, you can use Apple Hardware Test to help determine which hardware component may be causing the issue.

If your Mac was introduced after June 2013, follow the steps for using Apple Diagnostics instead. 

How to use Apple Hardware Test

  1. Disconnect all external devices except your keyboard, mouse, display, Ethernet connection (if applicable) and connection to mains power. Apple Hardware Test may display an error message if you haven't disconnected all other devices. 
  2. Make sure your Mac is on a hard, flat, stable, well-ventilated work surface.
  3. Shut down your Mac.
  4. Turn on your Mac, then immediately press and hold the D key on your keyboard. Keep holding the D key until you see the Apple Hardware Test icon:
  5. Select your language and click the right arrow. If you aren't using a mouse, you can use the up and down arrows to select a language, and then press the Return key.
  6. To begin testing, click the Test button, press T, or press Return. Optionally select "Perform extended testing" before beginning the test. This performs a more thorough test that takes longer to complete.
  7. When the test has been completed, review your test results in the lower-right section of the window.
  8. To quit Apple Hardware Test, click Restart or Shut Down at the bottom of the window.

Learn more

  • Some Mac computers that were produced with OS X Lion v10.7 or later will start up from AHT over the Internet if your startup disc doesn't contain AHT, or if you hold down Option-D at startup. This requires an Internet connection over Ethernet or Wi-Fi.
  • If you're using OS X Lion v10.7 or earlier and you can't get AHT to start, see if you have an OS X installation disc named “Applications Install Disc 2”. Insert the disc in your internal optical drive or external Apple SuperDrive before following the steps above. Or, if you're using a MacBook Air (Late 2010), plug the MacBook Air Software Reinstall thumb drive into your USB port instead.
Published Date: