Horizontal Lines on MacBook Pro: Apple Diagnostics vs External Display Testing

Test with an external display first, then run Apple Diagnostics. That is the fastest way to figure out why your MacBook Pro has horizontal lines. Apple says Apple Diagnostics can check your Mac for hardware issues and show reference codes [source: Apple].

TLDR: If horizontal lines show on your MacBook Pro screen but not on an external monitor, the built-in display, display cable, or screen assembly is likely the problem. If the lines show on both screens, suspect the GPU, logic board, or software. Example: if 1 screen has lines and 1 screen is clean, you just cut the guesswork by about 50%. This quick test usually takes under 10 minutes and saves a trip full of “maybe it’s this” answers.

Why those annoying horizontal lines appear

Horizontal lines on a MacBook Pro can look scary. Thin gray lines. Pink bars. Green flickers. A whole chunk of the screen may look like a broken TV from 1998.

It drives me crazy that the symptoms can all look similar. A loose display cable can mimic a dying graphics chip. A software glitch can look like cracked screen damage. Even a bad app can make the screen act weird for a few seconds.

So do not start by guessing. Run two simple checks:

  • External display testing to see if the issue leaves the MacBook screen.
  • Apple Diagnostics to scan for hardware faults.

Test 1: External display testing

This is the fun one. It is simple. It is visual. It gives you a clear clue fast.

Connect your MacBook Pro to an external monitor or TV. Use HDMI, USB C, Thunderbolt, or an adapter. Then mirror the display or extend it. Open a bright image. Move a window around. Watch both screens.

Result A: Lines appear only on the MacBook screen.

This usually points to the built-in display system. That may mean:

  • A damaged LCD or mini LED panel.
  • A weak display cable.
  • A hinge area issue.
  • Pressure damage from a bag or keyboard cover.

This is the classic “internal screen problem” pattern. The Mac itself may still be working fine. The picture going to the external screen is clean. That matters.

Result B: Lines appear on both screens.

Now the problem may be deeper. Common suspects include:

  • Graphics hardware.
  • The logic board.
  • macOS display output bugs.
  • A weird driver or app issue.

Result C: External screen is blank or flaky too.

Do not panic yet. Try another cable. Then try another port. Cheap adapters can be little gremlins. Honestly, it feels like some adapters wait until you need them most to act up.

Test 2: Apple Diagnostics

Apple Diagnostics is the built-in hardware checker. It is like a small doctor inside your Mac. A very quiet doctor. A doctor that sometimes says, “Everything looks fine,” while your screen clearly looks like a barcode.

Still, it is useful.

To run it on Apple silicon Macs:

  1. Shut down the Mac.
  2. Press and hold the power button.
  3. Wait for startup options.
  4. Press Command D.

To run it on Intel Macs:

  1. Shut down the Mac.
  2. Turn it on.
  3. Immediately press and hold D.
  4. Wait for the test screen.

Apple Diagnostics may show a reference code. Write it down. Take a photo with your phone. Do not trust your memory. Repair codes are not cute names. They look like serial numbers had a bad day.

Which test is better?

External display testing is better for screen line clues. It tells you if the lines are tied to the built-in display or the whole graphics system.

Apple Diagnostics is better for hardware warnings. It can catch some logic board, memory, power, and sensor issues. But it may miss a display panel problem. A clean result does not always mean the screen is healthy.

Test Best for Weak spot
External display Finding out if the built-in screen is the issue Needs a monitor, TV, cable, or adapter
Apple Diagnostics Checking for hardware reference codes Can miss screen panel or cable faults

A simple decision tree

Use this quick path. No tech degree needed.

  • Lines only on MacBook screen: likely display panel, cable, or hinge area.
  • Lines on MacBook and external screen: likely graphics, logic board, or software.
  • No lines in Safe Mode: likely software, login item, or graphics setting.
  • Lines appear before macOS loads: more likely hardware.
  • Lines change when you move the lid: suspect cable or hinge area.

Quick fixes to try before repair

Try these before booking service. They are safe and fast.

  • Restart the Mac.
  • Update macOS.
  • Unplug all accessories.
  • Turn off True Tone and Night Shift for a test.
  • Boot into Safe Mode.
  • Try a different user account.
  • Check if the lines show on screenshots.

That last one is useful. Take a screenshot. View it on another device. If the lines appear in the screenshot, the problem may be graphics or software. If the screenshot is clean, the built-in display is more likely at fault.

When to stop testing

Stop if the screen flickers badly. Stop if the Mac gets very hot. Stop if the lines get worse when you move the lid. Do not keep opening and closing it like a stubborn detective. You may make a cable issue worse.

The best order is simple. First, test with an external display. Second, run Apple Diagnostics. Third, try Safe Mode and screenshots. After that, you have real clues. Not guesses. And that makes the repair talk much less painful.