Start with the cable and power adapter

The most common reason a computer stops charging is a damaged cable or adapter, not a problem with the battery itself. Before you assume the worst, physically inspect the cable from the wall outlet to your computer — look for visible cracks, kinks, or fraying. Bend the cable gently near both ends where it connects; if the light on the adapter flickers or goes out, the cable is broken and needs replacement.

Next, check that the power adapter is actually plugged into a working outlet. Plug a lamp or phone charger into the same outlet to confirm it has power. Many people discover the outlet itself is dead, not the computer. If the outlet works but your adapter has no light indicator, the adapter may have failed internally — this happens without visible damage and usually means you need a replacement.

Key Takeaways

  • A damaged charging cable or failed power adapter causes most charging problems, and you can test both without opening your computer.
  • The charging port on your computer can accumulate dust and lint that blocks the connection, and cleaning it with compressed air often restores charging.
  • Some computers stop accepting a charge when the battery itself fails, but this is less common than cable or adapter failure.
  • If your computer charges only when held at a specific angle, the charging port is likely damaged and will need professional repair.
  • Restarting your computer and checking the battery settings in your operating system can reveal whether the hardware is working but the software is confused.

Clean the charging port on your computer

Dust and lint accumulate inside the charging port over months of use, and this buildup can prevent the connector from making full contact. Shut down your computer completely, then use a can of compressed air to blow short bursts into the charging port. Hold the can upright and use the thin straw attachment to direct air into the port opening — do not shake the can, as this can spray liquid.

After cleaning, wait a few seconds and plug the charger back in. You should hear or feel a click as the connector seats fully. If cleaning the port restores charging, you have solved the problem. If it does not work, try a different charging cable if you have one available — borrowing a cable from a friend with the same computer model is a quick way to rule out cable failure.

Restart your computer and check battery settings

Sometimes the operating system loses track of the battery status even though the hardware is working. Shut down your computer completely — not sleep mode, but a full shutdown — and leave it off for 30 seconds. Then power it back on and plug in the charger.

Once the computer is running, check the battery settings. On Windows, right-click the battery icon in the system tray and select "Battery settings" to see what the system reports. On Mac, hold Option and click the battery icon in the menu bar to view detailed battery information. If the system shows "Not charging" or "Not available" even though the charger is plugged in, the battery itself may have failed or the charging circuit inside the computer may be damaged.

Determine if the charging port is physically damaged

If your computer charges only when you hold the cable at a specific angle, or if the connector feels loose when plugged in, the charging port itself is damaged. This is different from a bad cable — the port is the socket built into your computer where the connector sits. Damaged ports cannot be repaired with a replacement cable and require opening the computer or sending it for professional repair.

You can test this by trying a different charger if one is available. If the second charger also only works at an angle, the port is the problem. If the second charger works normally, the original cable or adapter was faulty. Document which angle works best and avoid moving the cable until you can have the port inspected, as continued stress can worsen the damage.

Replace the battery if the hardware is working

If the cable, adapter, and charging port are all functioning but your computer still will not charge, the battery itself has likely reached the end of its lifespan. Computer batteries degrade over time — after 500 to 1,000 charge cycles (roughly two to four years of normal use), they lose the ability to hold a charge or accept new charge.

You can confirm this by checking the battery report. On Windows, open Command Prompt as administrator, type powercfg /batteryreport, and press Enter — this generates a detailed report showing the battery's design capacity versus current capacity. On Mac, hold Option, click the battery icon, and look for "Condition" — if it says anything other than "Normal", the battery needs replacement. A battery showing significantly reduced capacity compared to its original design is worn out and should be replaced.

When to seek professional repair

If you have ruled out cable, adapter, and port damage, and the battery report shows the battery is failing, you have two paths: replace the battery yourself if your computer model allows it, or take the computer to a repair shop. Some laptops have user-replaceable batteries accessible from the bottom panel; others require disassembly by a technician.

Check your computer's manual or manufacturer website to see whether the battery is user-replaceable. If it is, you can order a replacement battery online and install it yourself — this usually takes 10 to 15 minutes. If the battery is soldered to the motherboard or requires disassembly, professional repair is the safer option. A repair shop can also diagnose charging circuit failure, which is rare but possible and requires component-level repair.

Prevent future charging problems

Once your computer is charging again, you can extend the life of both the battery and the charging hardware. Keep the charging port clean by storing your computer in a dust-free space and using a protective case if you travel with it. Avoid wrapping the cable tightly around the adapter, as this stresses the connection point and can cause internal wire breaks that do not show on the outside.

When you are not using your computer for extended periods, store it with the battery at roughly 50 percent charge rather than fully charged or completely drained. Extreme charge states stress the battery chemistry. If you use your computer plugged in most of the time, some operating systems offer a "battery health" or "optimized charging" mode that slows charging to reduce wear — enable this in your battery settings if available.

Frequently Asked Questions

Why does my computer charge when I wiggle the cable?

The charging port inside your computer is loose or damaged, and moving the cable shifts the connector into contact. This is a temporary fix only — continued flexing will worsen the damage. Have the port inspected by a technician before it fails completely and stops charging at any angle.

Can I use a different brand charger if it has the same voltage?

Voltage alone is not enough — the connector shape, current rating, and polarity must all match your computer's specifications. Using the wrong charger can damage the charging circuit or battery. Stick with the original adapter or a replacement certified for your exact computer model.

Is it normal for my computer to get hot while charging?

Mild warmth is normal, but the adapter or computer should not be too hot to touch. Excessive heat suggests the adapter is failing or the battery is damaged. Unplug the charger and let everything cool, then try again. If heat returns when ready, stop using that charger and have the computer inspected.

Will my computer work if I remove the battery and plug it in?

On most laptops, yes — the computer will run on adapter power alone. This is a useful test: if the computer runs fine without the battery but will not charge with the battery installed, the battery itself is the problem. If the computer will not run on adapter power alone, the charging circuit or adapter is faulty.

How long does a replacement battery take to arrive?

Replacement batteries ordered online typically arrive within three to seven business days, depending on your location and the retailer. OEM (original manufacturer) batteries are more expensive but may provide compatible; third-party batteries are cheaper but vary in quality. Check reviews before ordering a third-party battery for your specific model.