Pressure is a rate of arrival, and the gas law falls out of counting
A gas in a cylinder holds the piston up, and nothing in the gas is pushing. There is no spring, no repulsion between the molecules worth mentioning, and no contact between the gas and the piston except for brief collisions separated by long emptiness.
What holds the piston up is a rate. Molecules arrive, reverse, and depart, and each one delivers a small amount of momentum in doing so. Enough of them arrive, often enough, that the delivery averages into something a gauge reads as a steady number — and this rung is about turning that sentence into the ideal gas law without borrowing anything from thermodynamics.
What one collision delivers
Take a molecule of mass approaching a wall with velocity component perpendicular to it. It bounces elastically, so it leaves with and its other components unchanged.
Its momentum has changed by . Momentum is conserved, so the wall received exactly that much, and the direction is into the wall.
Two things about that expression matter more than the arithmetic. The factor of two is there because the molecule does not merely stop — it reverses, which is twice as much momentum transfer as stopping would be. And only the perpendicular component appears; a molecule skimming along the wall at enormous speed with a small delivers almost nothing.
Counting the arrivals
Pressure is force per area, and force is momentum delivered per second, so the question is how many molecules arrive per second and with what distribution of .
In a time , the molecules that reach a patch of wall of area are those within a distance of it and moving toward it — a slab of volume , of which half are moving the right way. With molecules per unit volume, that is arrivals, each delivering .
Multiply and divide out:
The average appears because molecules have a range of speeds, and it is the mean of the square that enters — one factor of from how hard each collision is, one from how often collisions happen. That is not a subtlety to be waved past: fast molecules count twice, and it is why pressure depends on the mean square speed rather than on the mean speed.
Where the third comes from
The final step is the one the figure is built to check.
Molecules move in three dimensions and no direction is preferred, so the mean square velocity divides equally between the three components:
giving
The figures print and for their own sample and the ratio between them. Because the drawing lays the directions out in a plane rather than in space, the expected ratio there is a half rather than a third — the energy divides between two components rather than three — and the printed number hovers near 0.5 with the scatter that a sample of a few dozen produces. Isotropy is a statement about an average, and a small sample makes that visible in a way a large one hides.
The factor of a third is therefore a statement about dimensionality, and it is the only place in the derivation where the number three appears. A gas confined to a plane would have a factor of a half; the physics is unchanged and only the counting differs, which is exactly the situation with the exponent in an inverse-square law.
What has been derived, and what has not
Comparing with the experimental gas law gives
and it is worth being careful about what that is. It is not a derivation of temperature. It is a definition of temperature in mechanical terms, made legitimate by the fact that the quantity it defines behaves the way the thermodynamic temperature behaves. The mechanics supplied ; the identification of with temperature is the bridge between two subjects, and it is the whole content of statistical mechanics in miniature.
What has genuinely been derived is more impressive than the formula. The mechanics alone, with no thermodynamics, predicts:
Pressure is proportional to density at fixed molecular speed — Boyle’s law, from counting arrivals.
Pressure is proportional to at fixed density — which, once the identification above is made, is the temperature dependence.
And pressure does not depend on the mass of the molecules at fixed temperature. Heavy molecules move more slowly by exactly the factor that keeps the same, so a mole of hydrogen and a mole of xenon at the same temperature exert the same pressure in the same volume. That is Avogadro’s hypothesis, which was an unexplained empirical rule for half a century, and here it is a consequence of two lines of counting.
The scale of what is being averaged
The numbers are worth having, because they explain why a gauge reads a steady value rather than a rattle.
Air at room temperature and atmospheric pressure has about molecules per cubic metre, moving at a mean speed of about 470 m/s. The rate at which they strike a wall is , which comes to roughly collisions per square metre per second.
On one square millimetre — the sort of area a small pressure sensor uses — that is arrivals per second. Even in a microsecond, molecules have hit it, and the relative fluctuation of a count is one over its square root, so the reading is steady to about two parts in over a microsecond.
That is why pressure is a smooth quantity. Not because anything about it is smooth, but because the averaging is over such an absurd number of discrete events that the graininess is pushed below every instrument. Reduce the density enough and the graininess returns: in a good vacuum a sensitive detector registers individual impacts, and the concept of pressure gives way to a counting rate.
The same picture, doing thermodynamic work
Having pressure as a mechanical quantity turns the whole of the gas’s thermodynamic behaviour into statements about molecules, and three of them are worth following because they answer questions the thermodynamic account can only restate.
Why a gas cools when it expands against a piston. A molecule bouncing off a receding wall comes back slower, because the wall was moving away during the collision — the same reason a ball thrown at a retreating bat returns more slowly. Every collision with a moving piston shaves a little from the molecule’s speed, so the mean square speed falls, so the temperature falls. Adiabatic cooling is a mechanical fact about bouncing off something that is going away.
Why compression heats. The identical argument with the sign reversed: an approaching wall returns molecules faster. That is why a bicycle pump warms, and it is the mechanism behind the compression stroke of every diesel engine.
And why heat flows from hot to cold at a contact. Fast molecules on one side strike the boundary and, on average, give energy to the slower ones on the other. No collision has a preferred direction; the net flow exists because there are more ways to share the energy evenly than unevenly.
Each of those is a thermodynamic law with a mechanical picture attached, and the picture makes each of them obvious in a way the phenomenology does not. That is the payoff of the whole kinetic programme, and it is why the ignored century of Bernoulli’s paper is worth dwelling on.
Two things the derivation did not need
The result is more robust than it has any right to be, and two omissions are worth pointing at.
Collisions between molecules never appeared. The derivation counted arrivals at the wall and said nothing about what happened in between. A gas whose molecules passed straight through one another would exert exactly the same pressure. What collisions do is maintain the distribution — they are why the speeds settle into the Maxwell–Boltzmann form and stay there — but the pressure, given a distribution, does not depend on them at all. This is why the ideal gas law holds so well in regimes where the mean free path is long, and it is the reason the law is nearly exact for a rarefied gas rather than being an approximation that degrades.
The wall’s material never appeared either. Steel, glass, ice or a soap film: the momentum delivered is regardless. That is a statement with real content, because it says pressure is a property of the gas alone, and it is what makes a pressure gauge a general instrument rather than one calibrated per surface.
Both omissions are the same kind of fact as the indifference of the Carnot ceiling to the working substance: an argument that never mentions a mechanism cannot be sensitive to it, and that insensitivity is where its generality comes from.
What the derivation assumes
Four assumptions, each of which fails somewhere that matters.
The collisions with the wall are elastic and specular. Real molecules stick briefly, exchange energy with the wall’s own vibrations, and leave in a direction largely unrelated to the one they arrived in. The pressure is unchanged if the wall is at the same temperature as the gas, because whatever leaves carries the same average momentum as whatever arrives. It is not unchanged if the wall is hotter or colder — which is how a radiometer’s vanes turn, and why the effect is a low-pressure phenomenon rather than a demonstration of light pressure.
The molecules have no volume. At high density, the space available to each molecule is less than the container’s volume, because the others are in the way, and the pressure is correspondingly higher than the ideal law predicts. That is the term in van der Waals’ equation.
They do not attract one another. Real molecules do, weakly, and a molecule near the wall is pulled back by the ones behind it, so it arrives with slightly less momentum than the ideal count assumes. That reduces the pressure, and it is the term — and the competition between the two corrections is what produces a critical point and a liquid phase.
And the gas is in equilibrium. The counting assumed a settled distribution with no net flow. A gas being pumped, heated at one end, or moving as a wind has a distribution shifted away from the equilibrium one, and pressure then depends on which direction the surface faces.
What the mechanical picture costs
The kinetic derivation is more satisfying than the thermodynamic one and it is not free, and the charges are worth listing next to each other.
It commits to a mechanism. Thermodynamics gets the gas law from measurements and stays silent about what a gas is made of, which is why Carnot’s engine argument survived being built on a wrong theory of heat. The kinetic derivation is specific: hard elastic particles, no internal structure, no forces between them. Every one of those commitments is a place it can be wrong, and three of them are wrong for every real gas.
It gives an average and hides the fluctuations. Pressure emerges as a mean, and the derivation says nothing about the spread. That spread is real, it falls as one over the square root of the count, and it becomes the dominant behaviour once the count is small — in a vacuum system, in a nanoscale cavity, or on a micron-scale membrane, where the pressure is not a number but a noisy signal with a measurable variance.
And it needs a distribution it does not derive. The counting used without saying why the speeds have the distribution they do. That distribution is the output of collisions, which the derivation was careful to point out it did not need — so the argument depends on a fact it deliberately excluded from its own machinery. Closing that loop takes the whole apparatus of statistical mechanics, and until it was closed the kinetic picture was assuming what it wanted to explain.
The honest summary is that the mechanical derivation buys explanation and pays in assumptions, and that the thermodynamic one buys robustness and pays in silence. Both are on this site for that reason.
Where the argument came from
Daniel Bernoulli published this derivation in 1738, in Hydrodynamica, and it was ignored for over a century.
It contains everything above: the molecules as tiny particles in ceaseless motion, the pressure as the accumulated impact, the correct dependence on speed, and the identification of heat with molecular motion. It was written before the conservation of energy was understood, before the atomic hypothesis had any chemical evidence behind it, and while heat was generally believed to be a fluid.
The reason it went nowhere is not that anybody refuted it. It is that the caloric theory was working well, that Carnot’s engine argument was about to succeed spectacularly without needing any molecules, and that an unobservable mechanism offering no new predictions is not a compelling purchase. Bernoulli’s account gave the same gas law that was already known empirically.
It became indispensable only when Clausius, Maxwell and Boltzmann used the same picture to predict things the thermodynamic account could not reach — viscosity, thermal conductivity, diffusion, the distribution of speeds itself — and when those predictions were confirmed. A mechanism earns its place by predicting something outside the range of the phenomenology it explains, and until it does, being right is not enough.
The ladder from here
Later rungs: the mean free path, and why a molecule at 470 m/s takes minutes to cross a room. Effusion through a small hole, and the separation of isotopes it permits. Viscosity, thermal conductivity and diffusion derived from the same transport picture, all three with the same mean-free-path factor. The van der Waals equation and the critical point. The equipartition theorem in general, and the heat capacities it predicts — including the ones it gets wrong, which is where quantum mechanics entered the subject. Real-gas equations of state. And the pressure of a photon gas, where the same counting with light in place of molecules gives a factor of a third replaced by a third of the energy density, and radiation pressure holds up the interiors of stars.