As Dan stated above, it could be the charger. Does it charge when the Macbook is powered off? If you’ve checked that, i’d say the battery is at fault.
open