A gas is a crowd of tiny molecules flying about and bouncing off the walls. Their impacts make the pressure, p = Nm⟨v²⟩/(3V), and comparing this with the ideal gas law shows what temperature really is: the average kinetic energy of a molecule, E_k,avg = (3/2) k_B T. From it follow the rms speed √(3k_BT/m), 511 m/s for the nitrogen in a room at 20 °C, and the Maxwell spread of speeds.
A room full of air looks perfectly still. Yet the gas in it is a swarm of about 2.5×1025 molecules in every cubic metre, each racing along faster than a jet airliner, crashing into the others and into the walls billions of times a second. Lessons 4.1 to 4.3 described a gas by its pressure, volume and temperature. This lesson looks inside: it explains pressure as the drumming of molecules on the walls, and shows that temperature is nothing other than the energy of their motion.
The kinetic theory of matter starts from one idea: all matter is made of particles (atoms or molecules) that are always moving, and they move faster the hotter the matter is (reading 1, Sec. 3.2). In a solid the particles stay in place and vibrate about fixed points; in a liquid they slide past each other; in a gas they fly freely through the space between them.
For a gas the model is made precise with a few assumptions (Siyavula, Sec. 7.1, "The kinetic theory of gases"):
The gas is made of a very large number of particles (molecules, or single atoms).
The particles are tiny compared with the distances between them, so almost all of a gas is empty space.
They move all the time, in straight lines, in random directions and with different speeds.
The forces between them are very weak, except at the moment two of them collide.
Collisions with each other and with the walls do not change the total kinetic energy: the molecules bounce like perfect billiard balls.
A gas that fits these assumptions exactly is an ideal gas. Real gases behave almost like it, except at very high pressure (when the molecules themselves take up a real share of the space) and at low temperature (when their attraction starts to matter and the gas is close to turning liquid) (Siyavula, Sec. 7.1, "Ideal gases and non-ideal gas behaviour"). Air at everyday pressure and temperature is very nearly ideal.
Why does a gas push on its container? Every molecule that bounces off a wall gives the wall a tiny kick, and the kicks of many molecules add up to a steady force (NASA Glenn, "Kinetic Theory of Gases"). Lesson 3.6 has the tools to turn that into a formula.
Put N molecules, each of mass m, in a cube with side L, so that the volume is V=L3. Follow one molecule, and look only at its velocity component vx towards the right-hand wall.
One hit. The molecule arrives with momentum+mvx and bounces back with −mvx. Its momentum changes by −2mvx, so by Newton's third law the wall receives the opposite change, as for any object bouncing off a wall (lessons 2.4 and 3.6). The momentum given to the wall is minus the molecule's change:
Momentum given to the wall in one hit
−Δ(mvx)=2mvx
In words
minus capital delta (m v sub x ) equals 2 m v sub x
How often. Between two hits on the same wall the molecule crosses to the far wall and back, a distance 2L, which takes a time Δt=2L/vx. (Collisions with other molecules on the way do not change the result on average, because they only pass momentum on from one molecule to another.)
Average force. Force is momentum passed on per second (lesson 3.6), so this one molecule pushes on the wall with an average force F=2mvx/(2L/vx)=mvx2/L.
All the molecules. The molecules have different speeds, so add up their forces: the total is N times the average, F=Nm⟨vx2⟩/L. The brackets ⟨⟩ mean "the average of": ⟨vx2⟩ is the average of the squares of vx over all molecules. Dividing by the area of the wall, L2, gives the pressure (lesson 4.1): p=Nm⟨vx2⟩/L3=Nm⟨vx2⟩/V.
Three directions. By Pythagoras in three dimensions, v2=vx2+vy2+vz2 (use Pythagoras twice: first for vx and vy, then for that result and vz). The motion is random, with no direction preferred, so on average each of the three components has the same share: ⟨vx2⟩=31⟨v2⟩. That gives
Pressure of a gas from molecular impacts
p=3VNm⟨v2⟩
In words
p equals N m the average of v squared over the quantity 3 capital V
This derivation is the page's own, built on the momentum change of a bounce (Siyavula Grade 12, Sec. 2.2) and the picture of molecules passing momentum to the walls (NASA Glenn). The university course reaches the same formula another way: in 8.044 the average squared momentum of an atom, 3mkBT (slide 5), combined with p=NkBT/V (slide 8) gives it too.
The pressure grows with the number of molecules per cubic metre, N/V, and with m⟨v2⟩: faster molecules hit the walls both more often and harder, which is why v appears squared.
Here kB=1.38×10−23J/K is Boltzmann's constant, the gas constant for a single molecule. This law comes from measurements on gases; by itself it says nothing about what molecules do. The kinetic model now explains it.
Now we have two expressions for pV: from the molecules, pV=31Nm⟨v2⟩, and from experiment, pV=NkBT. Setting them equal and dividing by N gives 31m⟨v2⟩=kBT. Multiply both sides by 23: on the left stands 21m⟨v2⟩, the average kinetic energy of one molecule (lesson 3.2).
Average kinetic energy of a molecule
Ek,avg=23kBT
In words
capital E k average equals three halves k B capital T
This is what "temperature is motion" means (Siyavula, Sec. 7.1, "Temperature"). It also explains three things you met earlier:
Why the kelvin scale (lesson 4.2). The formula only works with the absolute temperature. At 0K the average kinetic energy would be zero: in this model the molecules would stop. (Quantum physics says that a little motion always remains; this model is for ordinary temperatures.)
The mass does not appear. At the same temperature, a light helium atom and a heavy carbon dioxide molecule have the same average kinetic energy. The light one simply moves faster.
Thermal equilibrium (lesson 4.2). When fast molecules of a hot object collide with slower ones of a cold object, they share out their energy until the average is the same on both sides: equal temperatures.
The formula gives the energy of the motion from place to place. Molecules made of two or more atoms can also spin and vibrate, which stores extra energy; that is why the total energy of a gas of such molecules is more than 23NkBT. The university course (8.044) works this out.
Worked example
The energy of one molecule of air
What is the average kinetic energy of a molecule in a room at 20∘C?
Temperature in kelvin
T=20+273=293K.
Average kinetic energy
Ek,avg=23kBT=1.5×1.38×10−23×293=6.07×10−21J.
Is that a lot?
For one molecule it is tiny: a raindrop of 0.1g falling at 1m/s has about 1016 times more kinetic energy. But a cubic metre of air holds about 2.5×1025 molecules (N/V=p/(kBT)), and together they carry 23pV=1.5×1.01×105×1=1.5×105J of kinetic energy.
Since 21m⟨v2⟩=23kBT, the average of v2 is 3kBT/m. Its square root is a typical speed, called the root-mean-square speed or rms speed: take the square of every speed, average (the mean), then take the square root.
The rms speed
vrms=⟨v2⟩=m3kBT
In words
v r m s equals the square root of the average of v squared equals the square root of 3 k B capital T over m, end of root
That is about 1.5 times the speed of sound in air, 343m/s (you will meet it in lesson 5.5). This is no coincidence: sound is passed on by the molecules themselves, so it cannot travel much faster than they move.
Worked example
Hydrogen in the same room
A balloon of hydrogen gas, H₂ (2u), is in the same room at 293K. How fast are its molecules?
Rms speed
m=2×1.66×10−27=3.32×10−27kg, so vrms=3×1.38×10−23×293/(3.32×10−27)=1.91×103m/s.
Check with a ratio
At the same temperature vrms∝1/m, so hydrogen is 28/2=14=3.74 times faster than nitrogen: 3.74×511=1.91×103m/s. Each hydrogen molecule has the same average kinetic energy as a nitrogen molecule, but a fourteenth of the mass.
Worked example
Hydrogen atoms at the surface of the Sun
The visible surface of the Sun has a temperature of 5772K (NASA Sun Fact Sheet), and most of its gas is hydrogen. Find the rms speed of a hydrogen atom (m=1.67×10−27kg) there.
Rms speed
vrms=3×1.38×10−23×5772/(1.67×10−27)=1.43×108=1.20×104m/s, about 12km/s.
Can it escape?
That is more than the 11.2km/s needed to escape from the Earth (lesson 3.11), but far less than the 618km/s needed to escape from the Sun (NASA Sun Fact Sheet). The Sun's enormous gravity holds on to its hot hydrogen.
The rms speed is only a typical value. In a real gas the collisions constantly speed molecules up and slow them down, so at any moment some are almost at rest and a few are very fast. (Some school books give every molecule of an ideal gas the same speed, to keep things simple; collisions in fact always spread the speeds out, ideal gas or not.) The share of molecules with a speed close to v is given by the Maxwell distribution:
Maxwell distribution of speeds
f(v)∝v2e−mv2/(2kBT)
In words
f(v) is proportional to v squared e to the power minus m v squared over (2 k B capital T ), end of power
The exponential factor (lesson 0.9) makes high speeds rare. The exponent is a kinetic energy, 21mv2, divided by kBT: a molecule with much more energy than kBT is very unlikely, because it would need to collect energy from many collisions in a row.
The factor v2 makes very low speeds rare. A speed close to zero needs all three velocity components to be close to zero at the same time, while a larger speed can be reached with many combinations of directions.
So the curve starts at zero, rises to a peak and dies away in a long tail. The number in front of the formula (left out above) is chosen so that the total area under the curve is 1: all the molecules together (lesson 0.10). The peak, the most likely speed, lies at 2kBT/m, which is 2/3=0.82 times vrms: for the nitrogen in the room, at about 417m/s.
Drag the temperature and watch the curve for nitrogen change.
Loading graph…
Maxwell distribution of speeds for nitrogen molecules (m=4.65×10−26 kg), computed from f(v)=4π(m/2πkBT)3/2v2e−mv2/(2kBT), as the share of molecules per km/s of speed. The dashed curve is room temperature, 293 K. Heating moves the peak to higher speeds and makes the curve lower and wider; the area under every curve is 1.
The tail matters. In the upper atmosphere a few molecules in the tail are fast enough to escape from the Earth. Over billions of years this has let the lightest gas, hydrogen, leak away almost completely, while heavier nitrogen and oxygen stay. The fast tail also explains why water evaporates below its boiling point: the fastest molecules at the surface can break free (lesson 4.6).
Pump gas molecules into the box, heat it and cool it. On the "Energy" screen, open the speed histogram and the average speed: the histogram has a shape like the Maxwell distribution (the simulation moves its particles in a flat box, so the shape is close to, not exactly, the one for three dimensions), and its peak moves to the right when you heat the gas. Add heavy and light particles at the same temperature and compare their speeds.
Kinetic model: a gas is a huge number of tiny molecules, far apart, in fast random motion, bouncing off each other and the walls without losing kinetic energy.
Pressure is the total effect of molecules hitting the walls. Each hit gives the wall a momentum2mvx, and adding all hits gives p=Nm⟨v2⟩/(3V).
With the ideal gas law pV=NkBT, this shows that temperature measures the average kinetic energy of a molecule: Ek,avg=23kBT, with kB=1.38×10−23J/K, the same for every kind of molecule at the same temperature.
Rms speed:vrms=3kBT/m, about 511m/s for nitrogen at room temperature; lighter molecules and hotter gases are faster.
Maxwell distribution: speeds are spread out as f(v)∝v2e−mv2/(2kBT), with a peak at 0.82vrms and a tail of fast molecules; heating shifts the peak to higher speeds.
A quantity, measured in joules, that a body or field has because of its motion, position or state; a closed system keeps its total. Explained in Conservation of energy.
Mass times velocity: a vector that measures a body's quantity of motion and keeps its total when no outside force acts. Explained in Momentum and impulse.
When one body pushes or pulls on another, the second pushes or pulls back on the first equally hard, in the opposite direction. Explained in Newton's third law.
The number of independent directions in a space: one for a line, two for a plane, three for ordinary space. Explained in Position and velocity in one dimension.
A state in which energy is shared out evenly and nothing changes on average, so the system can be described by a single temperature. Explained in Temperature and thermal energy.
The built-in angular momentum of a particle such as an electron, which it has even at rest: a whole or half-whole multiple of ħ. Explained in Central potentials and angular momentum.
Energy that passes between bodies because their temperatures differ, rather than by one doing mechanical work on the other. Explained in Temperature and thermal energy.
A striking agreement between two things that seems to happen by chance, with no known reason.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).