Temperature measures hotness/coldness of a body while heat is a type of energy.
We calculate heat (thermal energy, unit joule (J)) transferred to change an object’s temperature. Temperature change depends on the object’s mass and a property called ‘specific heat capacity’.