A black line on your screen usually comes from a loose cable, a stuck pixel, or damage to the display itself

A vertical or horizontal black line that runs across your monitor or laptop screen has three common causes: a cable connecting the display to your computer has come loose or is failing, a row of pixels has stopped working, or the screen panel itself is cracked or damaged. The fix depends on which one it is, and you can narrow it down by looking at where the line appears and whether it moves when you restart.

If the line stays in the exact same spot no matter what you do on your computer, the problem is in the display hardware itself. If the line disappears when you restart or changes position, the issue is usually a cable or a software glitch. Start by restarting your computer — this clears temporary display errors and takes only a few minutes.

Key Takeaways

  • A black line that stays in one spot is almost always a hardware problem in the display, not something software can fix.
  • Restart your computer first; many temporary display glitches clear on their own after a reboot.
  • On a laptop, a loose cable inside the hinge is the most common cause and usually requires opening the device or visiting a repair shop.
  • On a desktop monitor, check that the cable connecting the monitor to your computer is fully plugged in on both ends.
  • If the line is thin and black and does not move, you likely have a dead pixel or a cracked screen, and the display will need replacement.

Check your cables first on a desktop setup

On a desktop computer, the display cable is the easiest thing to test. Look at the cable that runs from the back of your monitor to the back of your computer tower or graphics card. Make sure both ends are pushed in firmly — sometimes a cable works loose from vibration or being moved slightly.

If the cable is already tight, unplug it completely from both ends, wait 10 seconds, and plug it back in. This resets the connection and sometimes clears a temporary signal error. If you have a spare monitor cable or can borrow one, swap it in to test whether the cable itself is damaged. A frayed, bent, or worn cable can cause display lines even if it looks fine from the outside.

Desktop monitors also have an on-screen menu you can access with buttons on the front or side of the monitor. Look for a menu option called "Auto Adjust" or "Reset" and run it. This recalibrates the display and can sometimes clear a line caused by a signal issue rather than physical damage.

Laptop screens are harder to fix because the cable is inside

On a laptop, the cable connecting the screen to the motherboard runs through the hinge. If you have dropped the laptop, closed it too hard, or used it for several years, this cable can come loose or fray. A loose cable inside the hinge is the most common reason for a black line on a laptop screen.

You can test this by gently opening and closing the laptop lid while watching the line. If the line flickers, disappears, or changes when you move the lid, the cable is loose. If the line stays exactly the same no matter how you move the lid, the screen panel itself is probably damaged.

Fixing a loose cable inside a laptop requires opening the device, which means removing the bottom panel and sometimes the keyboard. If you are comfortable with this, you can find a guide specific to your laptop model on the manufacturer's website or YouTube. If not, a repair shop can do it in 30 minutes to an hour. A cracked screen, by contrast, requires replacing the entire display panel, which costs more and takes longer.

Dead pixels and cracked screens look different

A dead pixel is a single dot or a small cluster of dots that no longer displays color. It appears as a black, white, or colored speck and does not change. A dead pixel cannot be fixed — the display panel has to be replaced. One or two dead pixels are usually considered normal wear and do not affect the rest of the screen.

A cracked screen shows a line or web of damage that often spreads over time. The crack may be visible from the side of the screen, and the area around it may flicker or show discolored patches. Cracks are caused by physical impact and will not go away on their own. The longer you use a cracked screen, the more the damage spreads, so replacement sooner is better than later.

If you see a thin black line that is perfectly straight and does not flicker, it is most likely a dead pixel row — a line of pixels that all failed at once. This is rare but happens when the display panel ages or is damaged. The only fix is a new screen.

Try adjusting display settings and drivers on Windows or Mac

Before you assume the hardware is broken, check whether a software issue is causing the line. On Windows, right-click on your desktop and select "Display settings." Look for an option to change the resolution or refresh rate. Try lowering the resolution slightly, wait 15 seconds to see if the line clears, then change it back. Sometimes a resolution mismatch causes temporary display glitches.

You can also update your graphics driver, which is the software that tells your computer how to use your display. On Windows, open Device Manager, find "Display adapters," right-click on your graphics card, and select "Update driver." On a Mac, go to System Preferences, then Software Update, and install any available updates. A driver update sometimes fixes display problems that look like hardware failures.

If you are using an external monitor on a Mac, try unplugging the monitor cable, waiting 30 seconds, and plugging it back in. Macs sometimes need this reset to recognize a display properly. If the line is on your Mac's built-in screen, these software fixes are less likely to help, and the problem is probably in the display hardware.

Know when to replace the screen versus repair the cable

A loose cable costs $50 to $150 to fix at a repair shop, depending on your laptop model and how much work it takes to reach the cable. A cracked or dead-pixel screen costs $150 to $400 for a laptop and $100 to $300 for a desktop monitor, plus labor if you do not replace it yourself.

If your laptop is more than five years old and the screen is damaged, it may be cheaper to replace the entire laptop than to fix the screen. If the laptop is newer or you use it for work, a screen replacement is usually worth the cost. For desktop monitors, a new monitor is often cheaper than a repair, especially if the monitor is more than three years old.

Before you pay for a repair, ask the shop to diagnose the problem for free or for a small fee. They can tell you whether it is a cable, a dead pixel, or a crack, and give you a price for the fix. This lets you decide whether repair or replacement makes sense for your situation.

Frequently Asked Questions

Can I use my computer with a black line on the screen?

Yes, if the line does not cover important parts of your work. Many people use computers with one or two dead pixels or a thin line for months or years without problems. If the line is in the middle of your screen or covers text you need to read, it becomes annoying quickly, and replacement is worth considering sooner.

Will a black line get worse over time?

A dead pixel or thin line usually stays the same size. A crack spreads over time, especially if you keep using the laptop and moving the screen. If you have a cracked screen, use it as little as possible until you can replace it, because the damage will expand.

Is the black line covered by my warranty?

Most warranties cover defects that happen during normal use but not damage from drops, spills, or physical impact. If your laptop is new and the line appeared without any accident, contact the manufacturer — they may replace the screen for free. If the damage is from an accident, you will likely have to pay.

Can I fix a black line myself without opening my computer?

If it is a desktop monitor, you can check the cable and try resetting the display. If it is a laptop, you cannot fix a loose cable without opening it, and you cannot fix a cracked screen at all. Opening a laptop yourself can damage other parts if you are not careful, so a repair shop is safer unless you have done it before.

What should I do if restarting did not fix the line?

The line is probably in the display hardware. On a desktop, try a different cable and a different monitor if you can borrow one. On a laptop, the cable or screen panel needs professional attention. Contact a repair shop for a diagnosis and quote before you decide whether to fix or replace the device.