Start with the power adapter and cable

A computer that won't charge almost always points to the adapter, cable, or charging port—not the battery itself. The power adapter is the brick that plugs into the wall; the cable runs from that brick to your computer. Either one can fail without warning, and both are cheaper to replace than a new battery or motherboard.

First, check that the adapter is plugged firmly into a working wall outlet. Plug a lamp or phone charger into the same outlet to confirm the outlet has power. Then inspect the cable where it connects to both the adapter and the computer—look for visible damage, kinks, or fraying. If the cable looks intact, try wiggling it gently at both connection points while watching the charging light on your computer. If the light flickers on and off, the cable has an internal break and needs replacement.

If you have access to another compatible adapter and cable (from a friend, family member, or a store that will let you test one), borrow it and try charging your computer. If your computer charges with the borrowed adapter, your original adapter or cable is the problem. If it still won't charge, move to the next step.

Key Takeaways

  • The power adapter and cable are the most common culprits—test with a borrowed adapter if possible before assuming the battery is dead.
  • A charging light that flickers when you move the cable means the cable has an internal break and should be replaced.
  • Dirt or corrosion inside the charging port can block the connection; use a dry cotton swab or compressed air to clean it gently.
  • If your computer is very hot or the adapter feels warm even when unplugged, stop charging when ready and let it cool before troubleshooting further.
  • A battery that won't hold a charge after years of use is normal wear—replacement batteries are available for most laptop models.

Clean the charging port on your computer

The charging port—the socket where the cable plugs in—can accumulate dust, lint, or corrosion over time. This buildup blocks the electrical connection even when the cable is inserted. You can often see debris inside the port if you shine a light into it and look closely.

To clean the port safely, power off your computer completely and unplug the adapter. Use a dry cotton swab or a small, soft brush to gently wipe inside the port. Do not use water, rubbing alcohol, or compressed air directly into the port, as moisture can damage the internal components. If you have compressed air, hold the can upright and use short bursts from a distance of several inches, angling the nozzle to blow debris out rather than deeper in.

After cleaning, wait a few minutes for any dust to settle, then plug the adapter back in and check whether the charging light comes on. If the port looks corroded (green or white discoloration inside), the port itself may be damaged and will likely need professional repair.

Check the battery and power settings

Some computers have a built-in safety feature that stops charging if the battery gets too hot. If your computer feels warm to the touch or the adapter is hot even when unplugged, turn off your computer and let it cool for at least 30 minutes before trying again. Charging in a cool room, away from direct sunlight or heat sources, can help.

On Windows, you can check your battery's reported health by opening Command Prompt (search for "cmd" in the Start menu), typing powercfg /batteryreport, and pressing Enter. This creates a file that shows whether Windows detects the battery as healthy or degraded. On Mac, hold Option and click the battery icon in the menu bar to see the battery's condition listed as "Normal", "Replace Soon", or "Replace Now".

If the battery is listed as degraded or needs replacement, the battery itself has reached the end of its useful life. This is normal after several years of use. Replacement batteries are available for most laptop models and cost between $30 and $150 depending on the computer.

Inspect the charging port for physical damage

If cleaning the port did not help, look closely at the port itself for bent pins, cracks, or loose parts. On many laptops, the charging port has small metal pins or contacts inside. If any of these are bent, broken, or missing, the port cannot make a proper electrical connection.

You can sometimes straighten a slightly bent pin using a very small, non-conductive tool (like a wooden toothpick), but this is delicate work and carries a risk of breaking the pin further. If the port looks physically damaged, professional repair is the safer choice. A technician can replace the charging port, which typically costs $50 to $150 in labor plus parts.

Do not attempt to force the cable into a port that feels loose or does not sit flush. Forcing it can damage the port further and create a fire hazard.

Test with a different power outlet and power strip

Occasionally the problem is not your computer or adapter, but the outlet itself. A circuit breaker may have tripped, or the outlet may be controlled by a wall switch that someone turned off. Try plugging the adapter into a different outlet in a different room, preferably one you know is working (test it with a lamp first).

If you normally use a power strip, plug the adapter directly into the wall outlet instead. Power strips can fail or have their own on/off switch, and a faulty power strip can prevent charging even if the outlet is fine. If your computer charges when plugged directly into the wall but not through the power strip, the power strip needs replacement.

When to seek professional repair

If you have tested a borrowed adapter, cleaned the charging port, confirmed the outlet works, and your computer still will not charge, the problem likely lies inside the computer itself—either the battery, the charging circuit on the motherboard, or the port itself. At this point, professional diagnosis is the most cost-effective next step.

Before taking your computer to a repair shop, back up your important files if possible. Most repair shops can run diagnostics for free or for a small fee ($20 to $50) and will tell you what the problem is and what it will cost to fix. If the repair cost is close to the value of the computer, you may decide to replace the computer instead.

Frequently Asked Questions

Why does my charging light flicker on and off?

A flickering light almost always means the cable has a broken wire inside the insulation. The connection works intermittently as the cable moves. Replace the cable with a new one compatible with your computer model. Do not continue using a flickering cable, as it can overheat and pose a fire risk.

Can I use a different brand adapter if it has the same connector?

Not safely. Even if the connector fits, adapters vary in voltage and amperage. Using the wrong adapter can damage your computer's charging circuit or battery. Always use an adapter made for your specific computer model, or a certified third-party replacement designed for that model.

Is it normal for the adapter to get warm while charging?

Slight warmth is normal, but the adapter should not be too hot to touch. If it is very hot or you smell burning plastic, unplug it when ready and do not use it again. A dangerously hot adapter indicates an internal failure and is a fire hazard.

How long does a laptop battery usually last before it stops charging?

Most laptop batteries remain functional for three to five years of regular use. After that, the battery's ability to hold a charge degrades naturally. If your computer is older than three years and won't charge, battery replacement is a common and affordable fix.

What if my computer charges when it is off but not when it is on?

This usually means the power adapter cannot supply enough current to both run the computer and charge the battery at the same time. You may have a weaker adapter than the original, or the battery may be drawing more power than normal. Try using the computer in low-power mode (search "battery saver" on Windows or "low power mode" on Mac) while charging, or contact the manufacturer to confirm you have the correct wattage adapter.