A Mac that freezes, shuts down, won't charge or has a flaky Wi-Fi, camera or keyboard is not always a software problem. Every Mac has a built-in hardware test called Apple Diagnostics. It takes a few minutes, it does not touch your files, and it gives you a reference code you can hand to a technician. Most people have never run it.
Apple describes it as a way to help determine which hardware component might be at fault. Here is how to run it properly, and how to read the result.
Before You Start
Apple's own checklist for preparing your Mac:
- Install the latest macOS updates first, if you can.
- Shut the Mac down. If it will not shut down normally, hold the power button for up to 10 seconds until it turns off.
- Disconnect everything except the keyboard, mouse, display, Ethernet (if you use it) and AC power. A bad USB hub or dock can otherwise show up as a Mac fault.
- Put the Mac on a hard, flat, stable surface with good ventilation.
How to Start Apple Diagnostics
Mac with Apple silicon (M-series)
- Press and hold the power button (on laptops with Touch ID, hold the Touch ID button).
- Keep holding while the Mac turns on and loads startup options. When you see Options, let go.
- Press and hold Command (β) + D until the Mac restarts into the test.
Mac with an Intel processor
- Turn the Mac on and immediately press and hold the D key.
- If that does not work, use Option (β₯) + D instead.
- Let go when you see a progress bar or are asked to choose a language.
Running the Test
Follow the on-screen instructions, which vary by Mac and macOS version. A few things Apple notes:
- If the Mac is not online, it may ask you to pick a Wi-Fi network or use Ethernet.
- If asked to review terms, you may be offered Run Offline. Apple says to choose that unless Apple Support or a repair technician has started an online session for this Mac.
- In macOS Tahoe 26 and later, you choose a specific diagnostic to run, such as the built-in display, keyboard or trackpad. In earlier versions the test runs automatically.
How to Read the Result
When the test finishes, you get a result and sometimes one or more reference codes. Write the code down or take a photo. Apple publishes a reference-code list; a few examples from it:
| Code | What Apple says it means |
|---|---|
| ADP000 | No issues found. |
| PPT002 / PPT003 | The battery will need to be replaced soon. It is functioning normally but holds less charge than when new. |
| PPT007 | The battery needs to be replaced. It works but holds significantly less charge than when new. |
| PPM001 | There may be an issue with a memory module. |
| VDH001 to VDH004 | There may be an issue with a storage device. |
| PPP001 to PPP008 | There may be an issue with the power adapter. Apple says to check you are using the correct adapter, unplug it from the Mac and the wall, reconnect, and run the test again. |
| NDD001 | There may be an issue with the USB hardware. Disconnect external devices except keyboard, mouse and Ethernet adapter, then run it again. |
For many other codes, Apple's guidance is to contact Apple or an authorized service provider. Apple also says to give the reference code to whoever repairs the Mac, whether that is an Apple Store, an Apple Authorized Service Provider or an Independent Repair Provider.
What To Do Next
- Run it twice if you get a code. If the code disappears after unplugging accessories, the accessory was the problem. If the same code comes back, take it seriously.
- "No issues found" is good news, not a guarantee. It means the tested hardware reported no fault. Intermittent faults and software problems can still exist, so update macOS and your apps, and try a new user account to rule out settings.
- Back up before any repair. Use Time Machine or another backup. If the code points to storage (VDH), a failing drive, or the battery, back up first and do not wait.
- Bring the code with you. It saves diagnostic time and gets you a faster, more accurate quote.
How MediaVision Can Help
If Apple Diagnostics shows a code, or your Mac is slow, overheating, not charging or randomly shutting down and you are not sure why, bring it to the MediaVision workshop in Anaheim. We can:
- Run the Apple tests and go further, checking storage health, temperatures, battery and power delivery
- Back up and protect your data before any repair
- Replace worn batteries and fix common hardware faults where parts are available
- Give you a clear, honest recommendation before any work starts
MediaVision Computer Repair
800 S Brookhurst St, Suite 1B3, Anaheim, CA 92804
Phone: (714) 888-5959
Book Now
Frequently Asked Questions
Will Apple Diagnostics erase or change my files?
It is a hardware test, not a repair or reset tool, and Apple's instructions do not involve changing your files. Even so, keep a current backup of anything important.
Why disconnect everything first?
Apple's instructions say to disconnect all external devices except keyboard, mouse, display, Ethernet and power, so a faulty accessory is not mistaken for a Mac problem.
My Mac won't start Diagnostics. What now?
Apple suggests reviewing its startup key-combination guidance. If the Mac will not start at all, bring it in and we can check it.
Does this work on older Macs?
Apple's support page gives separate steps for Apple silicon and Intel Macs, which are the two sets listed above.