Physics
High Schoolstatistical-mechanics

Kinetic Theory of Gases

Gas pressure explained as nothing but countless tiny elastic collisions against a wall — and temperature unmasked as a name for how fast, on average, the molecules are actually moving.

Before this, you should know:

Push on the plunger of a bicycle pump with the outlet blocked, and you feel the air pushing back, harder and harder the more you compress it. Where is that push coming from? There's no spring inside the pump, no elastic material doing the resisting — just air, which is to say, practically nothing: molecules so small and so sparse that the pump feels empty to the eye. And yet something in there is shoving back on your hand with real, measurable force.

Here's the strange part: that force is completely steady. It doesn't flicker or pulse — it feels exactly like pushing against a spring. But a gas has no spring in it. What it has, instead, is an enormous number of molecules, each one utterly indifferent to your hand, doing nothing but flying in a straight line until it hits something. The steady push you feel is an illusion of scale: billions of individually violent, individually brief impacts per second, arriving so fast and so densely that they blur into what feels like one continuous force. This topic is about taking that picture completely literally, and following it all the way to a formula.

A gas as a swarm of elastic collisions

Model a gas the simplest way physically possible: a huge number of identical particles, each with mass mm, flying around inside a container in straight lines at various speeds and in various directions, only changing course when they collide — with each other, or with a wall.

Assume every one of these collisions is elastic, in the exact sense built in momentum and collisions: momentum is conserved, and so is kinetic energy — nothing is lost to heat, sound, or deformation. This isn't an approximation we're apologizing for; for point-like molecules bouncing off a rigid wall, it's an extremely good one. And it has a clean consequence for a particle hitting a flat, immovable wall: since the wall doesn't move (in the same way an object of much greater mass barely recoils in a collision), the only way for both momentum and kinetic energy to balance is for the particle to bounce straight back with its speed unchanged — the component of velocity perpendicular to the wall simply reverses sign, while the components parallel to the wall aren't touched at all, since the wall can't push sideways on something hitting it head-on.

That reversal is the entire engine of this topic. Every one of those collisions delivers a tiny kick of momentum to the wall. Pressure is nothing more than the accumulated effect of an astronomical number of those kicks per second, spread over the wall's area.

Left panel: a box containing many small dots representing gas particles, each with a short gray arrow showing its individual velocity in a random direction. Right panel: a zoomed inset of one particle approaching the right-hand wall with velocity component v-x shown in blue, bouncing back with velocity component minus v-x shown in amber, and a short purple arrow on the wall labeled delta p equals two m v-x indicating the recoil momentum delivered to the wall.

Every molecule that hits a wall bounces straight back, delivering a small momentum kick. Pressure is the sum of an enormous number of these kicks per second, per unit area.

From one collision to a macroscopic pressure

To turn "lots of little kicks" into a number, we need to add up the momentum delivered by every particle, over some interval of time, and divide by the wall's area — because pressure is defined as force per unit area, and force is the rate at which momentum is delivered, F=dp/dtF = dp/dt, straight from Newton's second law in the form used to derive momentum conservation in the previous topic.

The full bookkeeping — tracking one particle's round trips across the box, then summing over all NN of them, then using the fact that a gas has no preferred direction to relate the sideways motion to the total speed — is carried out in complete detail below. It ends in one of the most useful equations in all of physics:

PV=13Nmv2PV = \frac{1}{3}Nm\langle v^2\rangle

where v2\langle v^2 \rangle is the average of the squared speed, averaged over all NN particles in the gas — not the square of the average speed, a distinction that will matter a great deal in the next topic.

Worked example

Derive PV=13Nmv2PV = \frac{1}{3}Nm\langle v^2\rangle from first principles, using only the wall-collision picture above. (click to reveal the solution)

Setting up: put NN identical particles of mass mm in a cubical box of side LL, so the volume is V=L3V = L^3. Focus on the wall at x=Lx = L, perpendicular to the xx-axis, with area A=L2A = L^2. Track one particle with velocity components (vx,vy,vz)(v_x, v_y, v_z).

Momentum delivered in a single collision: the particle hits the wall at x=Lx=L, and by the elastic-collision argument above, bounces straight back with its xx-velocity reversed: vxvxv_x \to -v_x, while vyv_y and vzv_z are unaffected. The particle's own momentum change is Δpparticle=m(vx)m(vx)=2mvx\Delta p_{\text{particle}} = m(-v_x) - m(v_x) = -2mv_x. By Newton's third law, the wall receives the opposite: +2mvx+2mv_x per collision.

Time between collisions with this wall: after bouncing off the wall at x=Lx=L, the particle travels to the opposite wall at x=0x=0 and back before it can strike the wall at x=Lx=L again — a round trip of distance 2L2L at speed vxv_x (its xx-velocity doesn't change in magnitude between wall hits, since the only walls that touch vxv_x at all are the two perpendicular to xx). So the time between successive hits on this one wall is:

Δt=2Lvx\Delta t = \frac{2L}{v_x}

Average force from one particle: force is momentum delivered per unit time, so this single particle's average contribution to the force on the wall is:

F1=ΔpΔt=2mvx2L/vx=mvx2LF_1 = \frac{\Delta p}{\Delta t} = \frac{2mv_x}{2L/v_x} = \frac{mv_x^2}{L}

Summing over all NN particles: every particle in the box makes the same kind of contribution, with its own value of vxv_x. Adding them all up:

F=i=1Nmvx,i2L=mLi=1Nvx,i2=NmLvx2F = \sum_{i=1}^{N} \frac{mv_{x,i}^2}{L} = \frac{m}{L}\sum_{i=1}^N v_{x,i}^2 = \frac{Nm}{L}\langle v_x^2\rangle

where vx21Nivx,i2\langle v_x^2\rangle \equiv \frac{1}{N}\sum_i v_{x,i}^2 is the average of the squared xx-velocity over all the particles.

Turning force into pressure: divide by the wall's area, A=L2A = L^2:

P=FA=Nmvx2L3=Nmvx2VP = \frac{F}{A} = \frac{Nm\langle v_x^2\rangle}{L^3} = \frac{Nm\langle v_x^2\rangle}{V}

Removing the special direction xx: nothing in this problem actually singles out the xx-axis — the gas doesn't know which wall we happened to analyze first, so by symmetry vx2=vy2=vz2\langle v_x^2\rangle = \langle v_y^2\rangle = \langle v_z^2\rangle. Since v2=vx2+vy2+vz2v^2 = v_x^2+v_y^2+v_z^2 for every particle, averaging both sides gives v2=vx2+vy2+vz2=3vx2\langle v^2\rangle = \langle v_x^2\rangle + \langle v_y^2\rangle + \langle v_z^2\rangle = 3\langle v_x^2\rangle, so:

vx2=13v2\langle v_x^2\rangle = \frac{1}{3}\langle v^2\rangle

Substituting back:

P=NmV13v2PV=13Nmv2P = \frac{Nm}{V}\cdot\frac{1}{3}\langle v^2\rangle \quad\Longrightarrow\quad PV = \frac{1}{3}Nm\langle v^2\rangle

Every step used only Newton's laws, the definition of an elastic wall collision, and a symmetry argument — no new physical assumption was smuggled in anywhere. A quantity that felt like it belonged to thermodynamics has been produced entirely out of mechanics.

Temperature unmasked

Here's where this pays off completely. You likely already know the ideal gas law from chemistry, PV=NkBTPV = Nk_BT, where kBk_B is Boltzmann's constant and TT is the absolute temperature — an empirical relation, discovered from measurements on real gases long before anyone knew why it should be true. Compare it directly to what we just derived:

PV=13Nmv2=NkBTPV = \frac{1}{3}Nm\langle v^2\rangle = Nk_BT

The NN cancels immediately, and a small rearrangement gives:

12mv2=32kBT\frac{1}{2}m\langle v^2\rangle = \frac{3}{2}k_BT

The left-hand side is exactly the average translational kinetic energy of one molecule. Temperature, in other words, is not some separate, mysterious quantity that happens to correlate with molecular motion — temperature is a direct measure of the average kinetic energy per molecule, up to the fixed conversion factor 32kB\frac32 k_B. Heat a gas, and you are, quite literally, making its molecules move faster on average. Cool it toward absolute zero, and you are asking v20\langle v^2\rangle \to 0 — every molecule's random motion draining away, at least in this classical picture.

Notice what's still hiding inside that innocent-looking angle bracket, v2\langle v^2\rangle. It's an average over NN molecules that are, in general, moving at wildly different individual speeds — some fast, some slow, colliding and exchanging energy constantly. We derived a fact about the average without ever asking what the full spread of speeds around that average actually looks like. That question — how many molecules move at exactly 200 m/s200\text{ m/s}, versus 2000 m/s2000\text{ m/s} — turns out to have a precise mathematical answer, and it is the very next thing this track builds.

Where this leads

Nothing here required anything beyond Newton's laws and the elastic-collision reasoning from momentum and collisions — pressure and temperature, concepts that feel like they belong to an entirely different branch of physics, fell directly out of mechanics once we agreed to track an enormous number of particles at once instead of just one or two. That shift in perspective — from "solve for this one object's motion" to "reason statistically about billions of them" — is the entire method of statistical mechanics, and this was only its first payoff. The next topic confronts the loose end left dangling above: not every molecule moves at v2\sqrt{\langle v^2\rangle}, so what fraction move at any given speed?