🧪 SciSim.co.uk

Gas Laws Simulation

300 K
60%
40
Temperature:300 K
Volume:60%
Pressure:0.00 kPa
N₂ RMS Speed:0 m/s
Ideal Gas Law
PV = nRT
P = pressure   V = volume   n = moles   R = gas constant   T = temperature
Adjust controls to explore how pressure changes with temperature and volume. Particle colour shows speed: blue = slow, green = medium, red = fast.

How to use this simulation

The box contains an ideal gas, drawn as nitrogen particles with no volume of their own and no forces between them. Temperature is in kelvin. Volume is the width of the container on a relative scale, not a litre measurement. Pressure is calculated from the ideal gas law, PV = nRT, and the particle colours show speed: slower particles are cooler colours, faster particles are warmer colours.

  1. Stay on Free explore. Raise the temperature and watch the particles move faster. The N₂ RMS speed readout is √(3RT/M) for nitrogen, which follows from the average kinetic energy ½m⟨c²⟩ = 3/2 kT.
  2. Open Boyle’s law. Temperature is locked. Decrease the volume. Pressure should rise so that P₁V₁ = P₂V₂. The graph is drawn so that pressure against 1/volume is a straight line.
  3. Open Charles’s law. Pressure is held constant and the piston moves. Increase the temperature in kelvin and the volume increases, with V₁/T₁ = V₂/T₂. The temperature must be absolute temperature, not Celsius.
  4. Open the Pressure law. Volume is locked. Increasing the temperature increases the pressure, with P₁/T₁ = P₂/T₂. Putting the three locked cases together gives PV = nRT.

Key ideas

Boyle’s law

At constant temperature, pressure is inversely proportional to volume: P ∝ 1/V, or P₁V₁ = P₂V₂. Squashing the gas gives the particles less distance between collisions with the walls, so the collisions are more frequent and the pressure is higher.

Charles’s law

At constant pressure, volume is proportional to absolute temperature: V₁/T₁ = V₂/T₂. Faster particles hit the piston harder. The piston moves out until the collisions are spread over a larger area and the pressure is back to its original value.

The pressure law

At constant volume, pressure is proportional to absolute temperature: P₁/T₁ = P₂/T₂. The container cannot expand, so faster, more frequent collisions raise the pressure. A temperature in Celsius does not give a proportional graph through the origin; kelvin does.

The particle picture

Pressure comes from particles colliding with the walls. Temperature is a measure of their average kinetic energy. In an ideal gas that energy is proportional to the kelvin temperature, which is why the RMS speed rises with the square root of T.

Where this sits in the course

GCSE and IGCSE use Boyle’s law, and often the qualitative effect of temperature on pressure and volume. A level and IB combine them as the ideal gas equation and use the kinetic model to explain the three proportionalities. The mode tabs are the three constant-quantity experiments.

What the model leaves out

Particles are points, and forces between them are ignored, so this is an ideal gas rather than a real gas near liquefaction. The volume slider is a relative container scale. It is for comparing P, V and T, not for reading a laboratory burette.