The Ideal Gas Law

Gases aren't sitting still — they're made of countless tiny particles zipping around in random directions, constantly colliding with each other and with the walls of whatever contains them. The hotter the gas, the faster those particles move. This is the core idea of kinetic molecular theory, and it's exactly what's happening inside the flask below.

Pressure is just force spread over an area — how hard something pushes divided by how much surface it's pushing on. In a gas, that "push" comes from countless tiny collisions: every time a particle slams into the container wall, it transfers a little momentum. The more often that happens, and the harder each hit lands, the more total force is stacking up on the surface — and that's what you're seeing measured live as pressure.

Kinetic theory · interactive

P = nRT / V

Atoms bounce around a round-bottom flask. Every wall impact contributes to the pressure. Drag the flask to spin it, and use the sliders to see what pressure actually depends on.

slow
fast
Flask radius (r)
Number of atoms (n)
Temperature (T)
Pressure — measured vs. predicted
measured
(instant)
0.00
10s average
(wall impacts)
0.00
predicted
(nT / 3V)
0.00

The instant bar is jumpy — it's just the last fraction of a second. The 10s average smooths that out over real time, which is what actually converges onto the prediction as n grows.

Arbitrary simulation units, kB = m = 1. Kinetic theory gives P = (1/3)·n·<v²>/V, matching P = nRT/V with R folded into the 1/3.

Contact Details

Department of Chemistry,
Memorial University,
St. John's, NL
Canada

Phone: 1-709-864-8745
Email: mkatz@mun.ca
Website: www.KatzResearchGroup.com