Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

States of matter & gas laws lab

Heat and squeeze a box of gas particles, solve PV = nRT and Boyle's, Charles's and the combined gas laws, and find where water boils at any altitude.

The particle box needs a browser that can draw.

Temperature
Pressure from wall hits

How to use

  1. Particle box: press Play, then move the temperature and box-width sliders. Watch how the measured pressure stays close to what the ideal gas law predicts.
  2. PV = nRT: fill in three of pressure, volume, amount and temperature, leave one empty, and press the button.
  3. Gas laws: choose Boyle, Charles, Gay-Lussac or the combined law, fill in the before and after values, and leave the unknown empty.
  4. Water & boiling: slide the temperature to see ice, water and steam as particles, and find where water boils at an altitude or pressure.

Keyboard and touch

TabMove between sliders, boxes and buttons
Arrow keysMove a focused slider
EnterWork out the answer after typing

Tips

  • Gas-law temperatures must be absolute (kelvin). This lab converts °C and °F for you; 0 °C is 273.15 K.
  • Double the temperature in kelvin and the particles' average energy doubles; their speed goes up by about 1.4 times (the square root of 2).
  • One mole of gas at 0 °C fills 22.41 L at 1 atm, or 22.71 L at 100 kPa (the two common "standard" conditions).
  • Water boils at about 90 °C at 3,000 m, which is why pasta takes longer to cook in the mountains, and at about 121 °C in a pressure cooker at 2 atm.
  • Real gases differ from the ideal law at high pressure and low temperature, near the point where they turn liquid.

About this lab

The gas constant R = 8.314462618… J/(mol·K) is exact, the product of the Avogadro and Boltzmann constants fixed by the 2019 SI. Unit factors (atmosphere, bar, psi, cubic foot, US gallon) are the exact NIST definitions; mmHg here means the torr, 1/760 of an atmosphere.

The particle box is a two-dimensional ideal gas: particles bounce off the walls but not off each other, and their speeds start with the Maxwell–Boltzmann spread for the chosen temperature. The pressure shown is measured from the push of every wall hit, then compared with the ideal gas law for two dimensions.

Boiling points use the Antoine equation with the widely published constants for water (one set below 100 °C, another above) and the standard atmosphere for altitude (up to 11 km). They are accurate to within about half a degree; weather changes air pressure, and with it the boiling point, by a degree or two.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product