Lab-in-a-Tab

The Gas Laws

Squeeze a gas and it pushes back; heat it and it strains to escape. Three simple laws — and one equation — capture how pressure, volume and temperature dance together.

PressureIdeal GasKinetic Theory
Try thisKeep Temperature the same and slide Container size to make the box smaller. Watch Pressure. Then make the box big again and turn Temperature up instead.
What you're seeingThe dots bouncing inside the box are gas particles. The right wall is a piston you can slide to change the container size. Every time a dot hits a wall it pushes — and all those pushes together are the pressure shown in the pill.
What to notice
Squeeze the box and the pressure rises; heat the gas and it rises too. Smaller space means the same particles hit the walls more often; higher temperature means they fly faster and hit harder. Notice that "Pressure × size" stays about constant when you only change the size — that's Boyle's law.

Why gases push, squeeze and swell

Junior level — plain language, no maths

A gas has no shape of its own — it spreads out to fill whatever container you put it in, be it a balloon, a tyre or a whole room. That's because a gas is really a swarm of unimaginably tiny particles, zipping about at hundreds of metres per second and bouncing off everything they hit. Every time one of those particles bangs into a wall it gives a tiny push, and the constant drumbeat of billions of them is what we feel as pressure.

Now play with the swarm. Squeeze the container smaller and the same particles are crammed into less space, so they hit the walls more often — the pressure shoots up. That's why a bike pump gets harder to push the further down you go. Heat the gas instead and the particles speed up, slamming into the walls harder and more often — pressure rises again, which is why a sealed can thrown on a fire eventually bursts.

These simple rules run a surprising amount of the world: they inflate your lungs, lift hot-air balloons, fire car engines and pop a bag of popcorn. In the simulation below, change the temperature and the size of the box and watch the particles — and the pressure — respond.

Things worth knowing

  • A helium balloon shrinks in the cold and swells in the heat: cool the gas and its particles slow down and huddle closer, warm it and they spread out.
  • Your ears "pop" on a plane because the air pressure outside drops with altitude while the air trapped behind your eardrum stays put — until it escapes with a click.
  • Popcorn explodes because water inside each kernel turns to steam and its pressure builds until the hull can't hold it — a gas law in your kitchen.

The ideal gas law and where it comes from

Student level — the core equations

Three centuries of experiments distilled the behaviour of gases into a handful of relationships. Boyle's law: at fixed temperature, pressure and volume are inversely linked, \(P \propto 1/V\) — halve the volume, double the pressure. Charles's law: at fixed pressure, volume grows with absolute temperature, \(V \propto T\). Gay-Lussac's law: at fixed volume, pressure grows with temperature, \(P \propto T\). Crucially, the \(T\) here is measured from absolute zero — the Kelvin scale — because that is where a gas's pressure would, in principle, vanish.

Stitch these together with Avogadro's insight — equal volumes of any gas hold equal numbers of particles — and they collapse into one clean statement, the ideal gas law \(PV = nRT\). Here \(n\) is the amount in moles and \(R\) is the universal gas constant, \(8.314\ \text{J mol}^{-1}\text{K}^{-1}\). Every earlier law is just this equation with one variable held still.

Where does it come from? From the particles themselves. The kinetic theory of gases pictures pressure as the collective recoil of countless molecular impacts on the walls, and links the temperature directly to how fast they move: the average kinetic energy of a particle is \(\tfrac{3}{2}k_B T\). Temperature, in other words, is molecular motion — heat a gas and you are literally speeding up its particles.

Key Formulas

Boyle's law\(P \propto 1/V\)T constant
Charles's law\(V \propto T\)P constant
Gay-Lussac\(P \propto T\)V constant
Ideal gas law\(PV = nRT\)R = 8.314 J mol⁻¹K⁻¹
Combined gas law\(\dfrac{P_1V_1}{T_1} = \dfrac{P_2V_2}{T_2}\)
Mean kinetic energy\(\langle E_k\rangle = \tfrac{3}{2}k_B T\)

Things worth knowing

  • Absolute zero is −273.15°C: extrapolate a gas's shrinking volume down a Charles's-law line and it would hit zero exactly there — the coldest anything can be.
  • One mole of any ideal gas fills 22.4 litres at 0°C and 1 atm — the same volume whether it's hydrogen or carbon dioxide, because only the particle count matters.
  • You breathe by Boyle's law: your diaphragm enlarges your chest, dropping the pressure inside your lungs below the outside air, which then rushes in.

Kinetic theory, distributions and real gases

Scholar level — full mathematical depth

01Pressure, derived from first principles

The ideal gas law is not an axiom — it falls out of mechanics. Treat the gas as point particles in elastic, random motion and count the momentum they deliver to a wall: pressure works out to \(P = \tfrac{1}{3}\dfrac{N}{V}m\langle v^2\rangle\). Compare that with \(PV = Nk_B T\) and you are forced to identify \(\tfrac{1}{2}m\langle v^2\rangle = \tfrac{3}{2}k_B T\). Temperature emerges as nothing more than the mean translational kinetic energy per particle — a bridge from Newton's laws straight to thermodynamics.

02Not one speed but a spectrum

The particles do not share a single speed; they follow the Maxwell-Boltzmann distribution, \(f(v) \propto v^2 e^{-mv^2/2k_B T}\), a lopsided curve with a long fast tail. It yields three distinct "average" speeds — most-probable, mean and root-mean-square — and the curve broadens and shifts right as \(T\) climbs. That high-speed tail matters enormously: it is the rare, fast molecules that clear reaction barriers, so it underlies the exponential temperature dependence of chemistry itself.

03Energy shared out: equipartition

Why \(\tfrac{3}{2}k_B T\)? The equipartition theorem hands each quadratic degree of freedom exactly \(\tfrac{1}{2}k_B T\) of energy. A monatomic gas has three (motion in x, y, z), giving \(C_V = \tfrac{3}{2}R\); a diatomic gas adds two rotational modes for \(\tfrac{5}{2}R\). The startling part is that vibrational modes stay silent until the gas is hot enough — a purely quantum effect that classical physics could never explain, and an early crack in the classical world.

04When real gases misbehave

The ideal law assumes particles are points that never attract each other — false on both counts. Real molecules take up space and feel weak long-range pulls, so van der Waals patched the equation, \(\left(P + \dfrac{an^2}{V^2}\right)(V - nb) = nRT\): the \(a\) term corrects for attraction, the \(b\) term for finite size. This single fix predicts something the ideal law never could — that a gas can condense into a liquid, complete with a critical point beyond which the two states become indistinguishable.

05How far, how fast: transport

Between collisions a molecule travels a mean free path \(\lambda = 1/(\sqrt{2}\,n\sigma)\) — at room pressure only about 70 nanometres, so a molecule collides billions of times a second. This microscopic zig-zag sets the gas's viscosity, thermal conductivity and diffusion rate, and explains Graham's law: lighter molecules move faster and effuse more quickly, exactly the principle once used to separate uranium isotopes for the first atomic bombs.

06The limits of the picture

Cool a gas far enough and even van der Waals fails, because quantum statistics take over. Once the thermal de Broglie wavelength rivals the particle spacing, identical particles can no longer be treated as independent: bosons crowd into a single state to form a Bose-Einstein condensate, while fermions are forced apart by the Pauli principle, propping up white dwarfs and neutron stars against gravity. The humble gas laws are the high-temperature, low-density corner of a much stranger quantum landscape.

Key Formulas

Kinetic pressure\(P = \tfrac{1}{3}\dfrac{N}{V}m\langle v^2\rangle\)
Temperature link\(\tfrac{1}{2}m\langle v^2\rangle = \tfrac{3}{2}k_B T\)
Maxwell-Boltzmann\(f(v) \propto v^2 e^{-mv^2/2k_B T}\)
RMS speed\(v_{\text{rms}} = \sqrt{3k_B T/m}\)
Van der Waals\(\left(P + \dfrac{an^2}{V^2}\right)(V - nb) = nRT\)
Mean free path\(\lambda = \dfrac{1}{\sqrt{2}\,n\sigma}\)

Things worth knowing

  • In 1995 physicists cooled a gas to under a millionth of a degree above absolute zero, forming a Bose-Einstein condensate — thousands of atoms sharing one quantum state (Nobel Prize 2001).
  • Graham's law of effusion separated uranium-235 from uranium-238 for the first nuclear weapons: the lighter isotope diffuses very slightly faster through a porous barrier.
  • At room temperature air molecules average ~500 m/s — faster than a jet — yet a scent crosses a room slowly because each molecule collides billions of times per second.

Sources

Full article on Wikipedia ↗