Why Does Your Phone Get So Hot While Charging?
Assuming you aren't charging your phone on a heated stove or in a home over 95 degrees Fahrenheit, your device can still feel quite warm while charging for several reasons. One is that you're charging your phone within a thick case, which isn't dissipating the heat properly; two, you're using a charger that isn't a good fit for your device, so it might not be reaching safe charging levels; and three, the method of how you're charging your device matters since wireless fast-charging produces the most noticeable heat.
As a precaution (after first placing it on a room-temperature surface and removing the casing), if you want to check the cause, first check the charger to make sure it's certified and not a cheap knock-off. If you can test your device with another charger, that can indicate whether the heat is due to your charger or an issue with your battery.
Next, try disabling fast-charging, since it can raise your phone's temperature. Lastly, if your phone stays hot even when not in use during its charging cycle, you may have a bigger problem that isn't easily fixed by changing your habits.
When heat becomes a problem
Heat becomes a problem if it happens consistently and your phone stays warm for long periods. For example, it can contribute to lithium-ion wear and tear. Ideally, you don't want it to happen often. If your smartphone shows a heat warning, it can no longer operate at safe temperatures. In that case, you're advised to stop using it and unplug the charger since the warning sign prompts you to take immediate action and may also limit features (to prevent overheating and hardware damage).
Another situation is when, while charging, the percentage stays the same or increases very slowly. That usually means the device isn't getting enough wattage to charge (isn't receiving enough power). That's where you need to examine your setup: the cable, connectors, power adapter, and phone port. For example, the cable could be damaged, or there may be a mismatch between the cable/adapter and the phone. Without a proper charging setup, the energy being generated gets turned into heat. Normally, replacing the setup is enough to fix charging and heat-buildup issues, but continued exposure will speed up battery degradation and cause irreversible damage.
Finally, you should also be aware that heat can create a feedback loop with your device, since it can reduce charging current to protect itself from overheating and battery stress. In most cases, once the phone cools down, it'll resume charging at its normal rate. If it doesn't, and your device stays hot and can't return to normal, other battery-health factors may be in play.
Signs that your phone battery has gone bad
A little heat from time to time shouldn't be a problem unless it constantly feels warm to the touch and doesn't hold a charge well. As such, the heat warning on a smartphone shouldn't be too much of a concern, since it can happen for a variety of reasons, like topping up your battery in a very hot or cold environment, or when a game demands too much from the processor or GPU. The warning is there to safeguard your device from damage.
The clearest signs of a failing smartphone battery come from degradation or physical damage — swelling — that changes the device's shape. Degradation happens over time, after your device undergoes a multitude of charging and discharging cycles. As a result, battery capacity decreases, which means the battery doesn't last as long after charging to full, and can take longer to charge completely — while also getting extra hot during the process.
Degraded batteries can cause phones to shut down unexpectedly, because they can no longer maintain stable voltage under load. Plus, performance can also throttle without much warning. If you experience this consistently or notice physical changes, it's a telltale sign that you need a new smartphone or a battery replacement. With the latter, sudden expansion in the frame due to battery swelling is a safety hazard, so you'll need to dispose of it properly through an authorized recycler or repair service.