This wikiHow teaches you how to run a diagnostics test on a Mac computer. All modern Mac computers can access the Apple diagnostic tool which can be used to diagnose problems with your Mac's hardware. This can help pinpoint any issues you...
Method 1 of 2:
On Macs Released After June 2013
Unplug external connections. If you have anything non-essential plugged into your Mac (such as USB flash drives), unplug them before you begin the test.
Restart your Mac. You can only access Apple Diagnostics as your computer is starting up.
.
Press and hold D before the screen displays anything. If your Mac still plays the startup chime, press and hold D before the chime plays.Click on your language. Once you've selected your language, the diagnostics scan will start.
Allow the diagnostics scan to take place. This may take several minutes, and your computer may run loudly and seemingly erratically. This is normal - it's testing the hardware to make sure it works.
EXPERT TIP
Typically, you don't need to run your diagnostics unless you're having some kind of problem like slow performance or connectivity issues.

Chiara Corsaro
General Manager of macVolks, Inc. Chiara Corsaro is the General Manager and Apple Certified Mac & iOS Technician for macVolks, Inc., an Apple Authorized Service Provider located in the San Francisco Bay Area. macVolks, Inc. was founded in 1990, is accredited by the Better Business Bureau (BBB) with an A+ rating, and is part of the Apple Consultants Network (ACN).
Chiara Corsaro
General Manager of macVolks, Inc.
Method 2 of 2:
On Macs Released Before June 2013
Unplug external connections. If you have anything non-essential plugged into your Mac (such as USB flash drives), unplug them before you begin the test.
Restart your Mac. You can only access the Apple Hardware Test as your computer is starting up.
.
Press and hold D before the screen displays anything. If your Mac still plays the startup chime, press and hold D before the startup chime plays.
Select your language. Click on → or press → on your keyboard.
Wait for the Apple Hardware Test window to come up. The Hardware Test will do a quick "probe" of the machine before it does any testing; let it complete the probe.
Click Test, press T, or hit ↵ Enter to start the hardware test. The test may take an hour or more, and your computer may run loudly and seemingly erratically. This is normal - it's testing the hardware to make sure it works.Perform extended testing (but be aware this will significantly increase the time it takes for the scan to complete).Update 04 March 2020
ncG1vNJzZmismaXArq3KnmWcp51ktbDDjK2mZqqlo3qltcCgpairpJ6wtHnOp2SmmZM%3D