Explore pressure, volume, temperature, and the Ideal Gas Law
The Ideal Gas Law PV = nRT relates pressure, volume, amount (moles), and temperature of an ideal gas. Boyle's Law (constant T): pressure and volume are inversely proportional. Charles's Law (constant P): volume and temperature are directly proportional. Real gases deviate from ideal behavior at high pressures and low temperatures when intermolecular forces become significant.
Plus 148+ other Pro labs covering AP Physics, Biology, Chemistry, Earth Science, and Math — with unlimited simulation time, advanced parameters, and detailed analytics.
Already have an account?
Sign in →Pump up a bike tire on a hot day and the gauge climbs before you start riding. Watch a balloon shrivel when you carry it from the porch into the freezer. Every such observation is the same equation in disguise: PV = nRT. Pressure, volume, and absolute temperature of any low-pressure gas are locked together by the number of molecules and a single constant R = 8.314 J/(mol·K). Squeeze the container and pressure rises (Boyle). Heat at constant pressure and volume rises (Charles). Add more molecules at fixed volume and pressure rises. This lab lets you pump molecules into a transparent box, drag the wall to change volume, and click a heater to change temperature, while watching the pressure gauge respond. Hold any one of P, V, T, or n constant and see what the others do — rebuilding Boyle, Charles, Gay-Lussac, and Avogadro from molecular collisions.
MisconceptionPressure comes from the gas pushing harder when it gets denser, like a spring.
CorrectPressure comes from molecular collisions. Each molecule that bounces off the wall delivers a tiny impulse; pressure is the time-averaged sum of those impulses divided by area. Denser gas has more molecules to collide more often, so pressure rises — but the mechanism is collisions, not spring-like compression.
MisconceptionGas temperature is just how hot the container feels.
CorrectTemperature is the average kinetic energy per molecule, KE_avg = (3/2) k_B T. Two boxes with different gases at the same T have molecules with the same average KE, but the heavier gas moves slower because KE = ½mv². The container 'feels hot' only because heat (energy in transit) is flowing from the gas to your hand.
MisconceptionHeat and temperature mean the same thing — a hotter gas has more heat.
CorrectTemperature is the average KE per molecule (intensive); heat is the energy transferred between systems (extensive). A small balloon at 350 K and a swimming pool of air at 350 K are at the same temperature, but the pool contains far more thermal energy. PV = nRT uses temperature because that is what controls pressure per molecule, not total heat content.
MisconceptionIf you heat a sealed balloon, the volume stays the same because it can't expand.
CorrectA balloon's wall is flexible and pushes back at roughly atmospheric pressure. As you heat it, P would rise at fixed V — but the balloon expands until P drops back to atmospheric. So at constant external pressure, V ∝ T (Charles's Law). A truly rigid sealed steel cylinder would keep V fixed; in that case P would rise with T (Gay-Lussac's Law).
MisconceptionPV = nRT works only at exactly 1 atm and 25 °C.
CorrectIt works over an enormous range of conditions for any gas whose molecules are sparse enough to ignore intermolecular forces. Real gases deviate noticeably at high pressure (above ~10 atm) or near condensation temperatures, but at typical atmospheric and laboratory conditions PV = nRT is accurate to better than 1% for most gases.
At constant T and n, the molecules are still moving at the same average speed, but they only have half the room. Each molecule hits the walls twice as often, so the pressure (force per area, time-averaged) doubles. Mathematically, PV = const for fixed T and n — that's Boyle's Law, derived directly from collision counting.
Because the equation says P is proportional to T, and that proportionality only works from absolute zero. At 0 K molecules have minimum kinetic energy, so PV would be zero — fine in kelvin, but in Celsius it would mean PV → 0 at 0 °C, which is nonsense (gases at 0 °C definitely have pressure). Always convert: T(K) = T(°C) + 273.15.
A balloon adjusts its volume to keep internal pressure equal to atmospheric pressure. With n and P fixed, V is proportional to T — that's Charles's Law. Cool from 295 K (room) to 250 K (cold cellar) and the volume drops by about 15%. Pop one in liquid nitrogen at 77 K and the balloon all but disappears, then re-inflates as it warms.
Two regimes: very high pressures (where finite molecular volume matters — molecules can't be compressed past their own size) and very low temperatures (where intermolecular attractions become comparable to kinetic energy). Real gases obey corrections like the van der Waals equation (P + an²/V²)(V − nb) = nRT in those regimes. For typical AP problems near room temperature and 1 atm the ideal gas law is accurate to within a percent or two.
Average translational kinetic energy is (3/2) k_B T. So at the same T, lighter molecules move faster (KE = ½mv² → v_avg ∝ 1/√m). Hydrogen at room temperature averages ~1900 m/s; oxygen averages ~480 m/s. This is also why hot air balloons work and why hydrogen leaks out of containers faster than nitrogen.
AP Physics 2 TDE-1.A asks students to relate macroscopic state variables (P, V, T, n) using PV = nRT. TDE-1.B asks them to derive Boyle's, Charles's, and Avogadro's Laws as special cases. TDE-1.C asks them to connect macroscopic pressure to microscopic collisions via kinetic theory. NGSS HS-PS3-2 also expects students to develop and use models that relate energy transfer to motion of particles. This lab makes the macroscopic and microscopic views visible side by side.