Laptop computer is not charging battery
If your laptop works fine while plugged in but stops working after it is unplugged your laptop battery is bad, or your laptop is not charging the battery. Below are steps that can be taken to help identify the cause of this issue.
Leave power plugged in
Make sure the computer has been charging from the power plug for at least two hours before it is unplugged.
Connect laptop directly to wall
If you are using a power strip, surge protector, or UPS disconnect the laptop from it and plug it directly into the wall. In some cases if the power strip or other devices may be bad and is preventing the battery from being charged.
Remove and reconnect battery
In some situations, the battery can become loose. If your battery is removable try removing it and then put it back into the laptop.
Use a third-party battery utility to determine the total capacity of the battery. For example, BatteryCare is a free software utility capable of doing this.
Some laptop manufacturers have a feature in CMOS setup to refresh the battery. Try this option if it is available for your computer.
Replace battery or AC adapter
Tip: If your computer is still in warranty, skip to the next step.
If the above steps have been completed, we suggest replacing the battery in the computer or AC adapter. In most situations it's a bad battery.
If after following the above steps the computer is still unable to charge the battery a component within the laptop has failed and needs to be replaced. Contact the computer manufacturer for information on getting the laptop serviced. Most likely the charger or inverter board needs to be replaced.