Thermal energy is the total kinetic and potential energy of particles in a substance. Thermal energy increases with temperature and mass. Thermal power plants convert heat energy from combustion of fuels like coal into electrical energy. They are major sources of electricity but also pollute the environment. Improving efficiency and using techniques like flue gas heat recovery and dry coal can reduce their environmental impact.