Internal energy (U) is the total kinetic and potential energy of all molecules in a system. For an ideal gas, U depends only on temperature and is related to molecular motion: U = (f/2)nRT, where f is the degrees of freedom. Internal energy is a state function—it depends only on current state, not the path taken.
Relate molecular kinetic energy directly to temperature using equipartition theorem. Compare ideal gas internal energy with kinetic theory predictions.
From your study of kinetic energy, you know that a moving object has energy (1/2)mv². Now scale that idea to an entire gas: a container holding 10²³ molecules, each jittering at hundreds of meters per second. Internal energy U is the sum of all those microscopic kinetic energies, plus any potential energy stored in the interactions between molecules. It is the "hidden" mechanical energy of matter — hidden because we cannot track individual molecules, but real enough to heat your hand on a warm object.
For an ideal gas, molecular interactions are negligible (that is the definition of "ideal"), so U contains only kinetic energy. The equipartition theorem distributes (1/2)k_BT of energy equally among each quadratic degree of freedom. A monatomic ideal gas (like helium) has three translational degrees of freedom — one for each spatial direction — giving U = (3/2)Nk_BT = (3/2)nRT. A diatomic gas at moderate temperatures also has two rotational degrees of freedom, adding to U = (5/2)nRT. This is why diatomic gases have higher heat capacities: more modes absorb energy per degree of temperature rise.
The phrase "state function" deserves emphasis. Internal energy U depends only on the current thermodynamic state (temperature, for an ideal gas), not on how the system got there. This is fundamentally different from heat Q or work W, which are not state functions — they are the two ways energy crosses a system boundary, and they depend on the path taken. The first law of thermodynamics, ΔU = Q − W, is precisely the statement that even though Q and W individually depend on path, their difference does not: U is uniquely determined by the state. This is what makes internal energy a foundational concept for thermodynamics, even though it emerges from molecular mechanics.
A concrete contrast sharpens the misconception note: when you heat a gas at constant volume, all the heat goes into internal energy (ΔU = Q, since W = 0). When you heat it at constant pressure, some energy does work expanding against the environment, so ΔU < Q for the same temperature rise. Yet in both cases ΔU is the same for the same temperature change, because U depends only on T. The heat Q is different along the two paths — heat is not stored in the gas, it is exchanged. What is stored is internal energy, which you now understand as the total microscopic kinetic (and, in real gases, potential) energy of all the molecules.