Ideal Gas Law

Relates the pressure P, volume V, amount n and absolute temperature T of a gas.

Textbook model

PV = nRT

the ideal gas ignores molecule size and attraction between molecules; real gases deviate at high pressure or low temperature.

Simplified game model

Particles never hit each other, only the walls

particle effects skip particle–particle collisions and only bounce off walls. The simulator’s particles work this way and count pressure from wall hits.

The textbook model is also an idealization with simplified conditions; real phenomena have more factors.

Simulator

The gas constant R is 8.314462618… J/(mol·K) (CODATA 2022). Use absolute temperature in kelvin (0 °C = 273.15 K).

Heating makes molecules move faster, hitting the walls more often and harder, so pressure rises. Squeezing the volume also raises the hit rate and the pressure.

How games use it

Balloons, engines, temperature puzzles, smoke and bubble effects.

More laws in this category

Physics Laws Quiz Heat & Thermodynamics

Sources

Checked: 2026-11-29