Heat is energy in transit, whereas temperature is a measure of the average kinetic energy of the particles within a substance. When there is a temperature difference between two objects or systems in thermal contact, energy is transferred between them, and this transferred energy is called heat.