macbook pro battery gets hot when charging

me88

Distinguished
Sep 12, 2011
75
0
18,590
i've noticed lately then when I'm recharging my macbook pro the battery gets really hot and so does the charger. i was told to unplug it wait for it to cool off and then plug it back it, i'm not to sure if that can solve the problem. i turned off the machine and plugged it back in after it cooled off and it didn't get hot, the charger or the battery. does the battery and/or charger need to be replaced? thats what i'm thinking that needs to happen.