Thermal energy is the total energy of all the molecules in an object. The thermal energy of an object depends on three things: 4 the number of molecules in the object 4 the temperature of the object (average molecular motion) 4 the arrangement of the object's molecules (states of matter).
Hope this helps