Having Mac Troubles Running Apple Diagnostics May Help Identify the Problem
If your Mac is acting up and you suspect a hardware problem, there's an easy first step that you can---and should---try before calling for tech support: Apple Diagnostics. (On Mac models released before June 2013, Apple instead included a similar set of diagnostics called Apple Hardware Test.) This diagnostic tool will help identify any potential issues with your computer's hardware and provide troubleshooting steps to resolve the problem.