My experience was a bad battery. It was telling Windows that it had 30% Power left, but it actually had 0% left; consequently the computer shut down.
When plugged in and charging, it would never pass 80%.
I removed the battery and just ran it off the wall plug, so I knew the charger was OK...