THE IDEAL GAS LAW
Three centuries of laboratory arithmetic, collapsed into one line.
A spring in the air
In 1662 , working at Oxford with his young assistant Robert Hooke, bent a glass tube into the shape of a J, sealed the short arm, and poured mercury into the long one. The trapped air in the short arm was squeezed as he added mercury; he measured how its length shrank as the weight of mercury above it grew. The numbers were clean: double the pressure, halve the volume. Boyle called the trapped air a "spring," and the relation he found — that pressure and volume trade off in exact inverse proportion at fixed temperature — was the first quantitative law of a gas.
In words: at a fixed temperature, squeezing a gas into half the volume exactly doubles its pressure. This is Boyle's law. Plot pressure against and you get a straight line through the origin — the cleanest possible signature of an inverse law, and the left-hand panel of the scene below.
The line that points at absolute zero
A century and a quarter later the second variable came loose. , a French physicist and pioneering balloonist, noticed around 1787 that at fixed pressure a gas expands in direct proportion to its temperature. He never published; rediscovered and printed the result in 1802, and it is sometimes called Gay-Lussac's law for that reason.
In words: warm a gas at constant pressure and its volume grows in lockstep with its absolute temperature. The hidden gift in Charles's law is what happens when you run the straight line of versus temperature backward. Every gas, extrapolated, reaches zero volume at the same place: . A volume cannot go negative, so this is a floor — the first hint, decades before the laws of thermodynamics, that temperature has an absolute bottom. The middle panel of the scene shows that extrapolation striking at .
Equal volumes, equal counts
The third idea was the hardest to swallow. In 1811 proposed that equal volumes of any gas, at the same temperature and pressure, contain equal numbers of molecules — regardless of what the gas is. It was pure theory, with no way to count molecules, and the chemistry establishment ignored it for half a century. Only at the 1860 Karlsruhe Congress, four years after Avogadro's death, did Stanislao Cannizzaro show that his hypothesis untangled the era's confusion over atomic weights.
The number of molecules in one mole — a sample whose mass in grams equals its molecular weight — is now fixed by definition:
In words: one mole of any substance contains just over six hundred thousand billion billion molecules — Avogadro's number. It is the conversion factor between the human scale of grams and litres and the molecular scale of individual collisions, and it is the bridge the rest of this module is built on.
One line for all three
Boyle (), Charles (), and Avogadro () are three faces of a single relation. Multiply them together and the proportionality constant turns out to be universal — the same number for every gas, dilute enough:
In words: the pressure of a gas times its volume equals the amount of gas (in moles) times its absolute temperature times one fixed constant of nature. That constant, the Gas constant , does not care whether the gas is hydrogen or carbon dioxide. The right-hand panel of the scene above makes the universality visible: plot against and every gas falls onto the same line. Three centuries of separate laboratory arithmetic collapse into one equation.
Counting molecules instead of moles
Chemists count in moles; the kinetic theory that follows counts individual molecules. Swapping rewrites the same law in the form statistical mechanics prefers:
In words: pressure times volume equals the number of molecules times Boltzmann's constant times temperature. The Boltzmann constant is simply the gas constant rationed out one molecule at a time. This form carries no chemistry in it at all — just a count of particles and a temperature — which is exactly why the next topic can derive it from nothing but molecules bouncing off a wall.
Where ideal breaks
The word ideal hides an assumption: that molecules are dimensionless points exerting no force on one another except at the instant of collision. Real molecules have size, and they attract. So real gases deviate, and the cleanest way to measure the deviation is the Compressibility factor:
In words: is the ratio of a real gas's to what the ideal gas law predicts. For a perfect gas exactly, at every pressure. A real gas tells a two-part story. At moderate pressure the molecules' mutual attraction helps them crowd together, so the gas compresses more than ideal and dips below 1. Squeeze harder and the molecules' own volume starts to resist — they cannot overlap — so climbs back through 1 and above it. The van der Waals equation, , captures both effects: for the pull, for the bulk.
Why does it work at all?
The remarkable thing is not that the ideal gas law fails near condensation — it is that it works so well everywhere else. A single line, , predicts the behaviour of every dilute gas across enormous ranges of pressure and temperature, and does it without any reference to what the gas is made of or how its molecules interact.
That universality is a clue. It tells us the law cannot depend on the chemical details; it must come from something every gas shares. The next topic supplies the answer: pressure is nothing but the drumbeat of molecular collisions on the container walls, and temperature is nothing but the average kinetic energy of those molecules. Derive from that picture and the ideal gas law stops being an empirical summary of three centuries of measurement and becomes a theorem. From there the road runs to the distribution of molecular speeds and the equipartition of energy.