QuickCalci Formulas
chemistry
intermediate

Ideal Gas Law

Pressure, volume, temperature — the three faces of a gas

Open live visualizer

Beginner explanation

Blow up a balloon and sit on it — when you squish the space (V), the air pushes harder (P). Heat makes molecules bounce faster and also push harder. This formula captures all three relationships in one equation.

Real-world analogy

Imagine molecules as bouncy balls inside a box. More heat makes them bounce faster and hit the walls harder (higher pressure). Shrink the box and they hit the walls more often (even higher pressure). This is PV = nRT in action.

Where it appears in the real world

  • 1Scuba divers calculate how long a tank will last at depth using PV = nRT and Boyle's law.
  • 2Automotive engineers compute the pressure inside a cylinder after fuel combustion to optimise engine efficiency.
  • 3Weather balloons expand as they rise because pressure drops with altitude, following the ideal gas law.

How to use the visualizer

  1. 1

    Set the number of moles n of gas (more molecules = more pressure).

  2. 2

    Adjust temperature T in Kelvin — higher temperature means faster-moving molecules and higher pressure.

  3. 3

    Change the volume V — a smaller container means more frequent wall collisions (higher pressure).

  4. 4

    The 3D visualizer shows bouncing molecules: hot molecules move faster and glow brighter.

  5. 5

    Click any molecule to see its velocity vector arrow.

Common questions

Why is temperature in Kelvin, not Celsius?

The ideal gas law requires absolute temperature. Kelvin starts at absolute zero (−273.15°C), where molecular motion ceases. Using Celsius would give wrong (or negative) results.

What is an 'ideal' gas?

An ideal gas assumes molecules have no volume and no intermolecular forces. Real gases deviate at high pressure and low temperature, but PV=nRT is an excellent approximation for most everyday conditions.

Where is the ideal gas law used in practice?

HVAC engineers calculate air volumes, divers compute gas consumption at depth, meteorologists model atmosphere layers, and engine designers optimise combustion chamber pressure.

Related formulas