The average thermal energy of a molecule of a diatomic gas is (temperature of gas is T and Boltzmann's constant is K).
By law of equipartition of energy, average energy possessed by an ideal gas molecule for each degree of freedom is . Number of degrees of freedom of a diatomic gas molecule is 5.
Hence average energy of a molecule is .