
For any dynamical system in thermal equilibrium, the total energy is equally divided among the degrees of freedom.
The energy associated with a molecule of one degree of freedom is ½ kT where k is the Boltzman constant and T is the temperature.
For monoatomic gases, there are 3 degrees of freedom and in diatomic gas there are 5 degrees of freedom.