Thermal Energy Calculator

Enter the amount of gas, its temperature, and its molecular type to get the internal thermal energy from kinetic theory: U = (f/2) × n × R × T.

Quick Facts

Thermal energy formula
U = (f/2) × n × R × T
From the equipartition theorem: each degree of freedom carries ½kBT of energy per molecule on average.
Degrees of freedom (f)
3 monatomic · 5 diatomic · 6 polyatomic
Counts independent ways molecules store kinetic energy: translation and rotation.
Constants used
R = 8.3145 J/(mol·K), kB = 1.3806×10⁻²³ J/K
R = kB × Avogadro's number (6.022×10²³ /mol).

Your Results

Calculated
Total Thermal Energy
-
U = (f/2) × n × R × T, in joules
Total Thermal Energy (kJ)
-
Same value in kilojoules
Average Energy per Molecule
-
(f/2) × kB × T, in joules
Number of Molecules
-
n × Avogadro's number (6.022×10²³/mol)

Ready

Enter the amount of gas, temperature, and gas type, then press Calculate.

Formula and Method for Thermal Energy

Thermal energy — also called the internal kinetic energy of a substance — is the total energy stored in the random translational and rotational motion of its molecules. For an ideal gas, the kinetic theory of gases gives an exact result through the equipartition theorem: U = (f/2) × n × R × T, where U is thermal energy in joules, f is the number of degrees of freedom per molecule, n is the amount of gas in moles, R = 8.3145 J/(mol·K) is the ideal gas constant, and T is the absolute temperature in kelvin. This calculator also reports the average kinetic energy per molecule and the total molecule count from the same inputs.

How the calculation works

Enter the amount of gas (in moles), a temperature, and the unit that temperature is measured in. The calculator first converts the temperature to kelvin (K = °C + 273.15, or K = (°F − 32) × 5/9 + 273.15), since thermodynamic formulas require an absolute temperature scale. It then multiplies by n, R, and f/2 to get total thermal energy. The degrees of freedom f come from your gas-type choice: 3 for a monatomic gas (only x, y, z translation), 5 for a diatomic gas (translation plus rotation about two axes perpendicular to the bond), or 6 for a nonlinear polyatomic gas (translation plus rotation about all three axes). Dividing by Avogadro's number-scaled kB instead of R gives the average energy per molecule, (f/2) × kB × T.

Common mistakes

  • Using a non-absolute temperature directly: plugging °C or °F straight into U = (f/2)nRT gives a nonsensical (even negative) result — always convert to kelvin first, which this calculator does automatically.
  • Confusing thermal energy with heat: thermal energy (U) is a property of the gas at a moment in time; heat (Q) is energy transferred between two systems. Do not treat this calculator's output as the heat needed to warm a substance — that uses Q = mcΔT instead.
  • Picking the wrong degrees of freedom: using f = 3 for air (which is mostly diatomic N₂ and O₂, f = 5) will understate its thermal energy by 40%.

Real-world applications

  • Estimating the internal energy change of a gas in a piston-cylinder system for thermodynamics and engine-cycle analysis.
  • Teaching and verifying the kinetic theory of gases and the equipartition theorem in introductory physics and chemistry courses.
  • Comparing how much kinetic energy different gases (helium vs. air vs. carbon dioxide) hold at the same temperature and amount.
  • Sanity-checking simulation or computational chemistry output against the classical ideal-gas thermal energy baseline.

Frequently Asked Questions

What is thermal energy and how is it different from heat?
Thermal energy (also called internal kinetic energy) is the total energy stored in a substance's randomly moving particles at a given temperature — it is a property of the system's state. Heat (Q) is energy that is transferred between systems because of a temperature difference. Thermal energy answers "how much motion energy does this gas have right now," while heat answers "how much energy moved during a process."
Why does the number of degrees of freedom depend on the gas type?
A monatomic gas (helium, argon, neon) can only move in the x, y, and z directions, giving f = 3 translational degrees of freedom. A diatomic gas (N₂, O₂, air) can also tumble end-over-end about two axes perpendicular to its bond, adding 2 rotational degrees of freedom for f = 5. A nonlinear polyatomic gas (CO₂, CH₄, H₂O vapor) can rotate about all three axes, giving f = 6. Each degree of freedom carries an average of ½kBT of energy per molecule under the equipartition theorem.
How is average kinetic energy per molecule related to temperature?
Each active degree of freedom contributes an average of ½kBT of kinetic energy per molecule, where kB = 1.380649×10⁻²³ J/K is the Boltzmann constant and T is absolute temperature in kelvin. A monatomic gas therefore averages (3/2)kBT per molecule, purely from translational motion in three dimensions.
Does this formula include vibrational modes or real-gas effects?
No. This calculator uses the classical equipartition result for translational and rotational motion only; vibrational modes are excluded because at ordinary temperatures quantum effects "freeze out" vibration in most gases. It also assumes ideal-gas behavior with no intermolecular potential energy, so it will slightly under- or overstate the true internal energy of a real gas near condensation or at very high temperature.