The average kinetic energy of a gas can be calculated using the formula (3/2)*(R/N)*T for ideal gases only.