Popcorn scent jet-setters
At room temperature, air molecules zip around at roughly 500 m/s. That’s why you smell popcorn seconds after it starts popping—the gas’s kinetic energy (½mv²) is what “temperature” really measures.
Assumes constant temperature and moles (isothermal). Uses the same unit conversions as PV=nRT.
Assumes constant pressure and moles (isobaric). Temperatures are absolute (K).
Assumes constant volume and moles (isochoric). Temperatures are absolute (K).
The ideal gas law ties together four core variables—pressure (P), volume (V),
amount of substance (n) in moles, and absolute temperature (T)—through the compact relation
PV = nRT. In practice this means that if you know any three of the variables, you can compute
the fourth. Our calculator handles the algebra, unit conversions, and numeric precision for you. Enter values in
your preferred units (atm, kPa, bar, mmHg for pressure; L, mL, m³ for volume; K or °C for temperature), choose a
convenient gas constant R (either 0.082057 L·atm·mol⁻¹·K⁻¹ or
8.314462618 J·mol⁻¹·K⁻¹), and we convert internally to consistent units before returning results in
the units you selected.
A key detail is that temperature in gas laws is always measured on an absolute scale. If you enter
°C, the tool converts to kelvin via T(K) = T(°C) + 273.15. Values at or below 0 K are non-physical, so
the calculator alerts you if input choices would imply an impossible state. Similarly, pressure and volume must be
positive for physically meaningful results.
For quick comparisons between two states of the same sample of gas, the classic single-variable relations drop out of PV = nRT by holding two variables constant:
P₁V₁ = P₂V₂. Increasing pressure compresses volume proportionally.V₁/T₁ = V₂/T₂. Heating a gas expands its volume linearly with absolute temperature.P₁/T₁ = P₂/T₂. Heating at fixed volume raises pressure in direct proportion to temperature.Two widely referenced reference points are STP (1 atm and 273.15 K) and SATP (1 bar and 298.15 K). At STP, one mole of an ideal gas occupies approximately 22.414 L; at SATP the molar volume is about 24.465 L. Use the STP button for a quick check or classroom demonstration, then adjust to match your assignment or lab protocol.
Remember that the “ideal” model assumes point-like molecules with no intermolecular forces and perfectly elastic collisions. This approximation works best at low pressures and moderate temperatures. At high pressures, very low temperatures, or near condensation, real gases deviate: compressibility factors differ from one, and equations of state such as van der Waals may be more accurate. For typical chemistry and physics coursework, though, PV = nRT provides reliable intuition and quick, transparent calculations.
Tips: check that temperatures are in K, keep units consistent, and verify significant figures. For mixtures, Dalton’s law lets you use partial pressures in the same framework: Ptotal = ΣPi. All computations here run locally in your browser for privacy.
At room temperature, air molecules zip around at roughly 500 m/s. That’s why you smell popcorn seconds after it starts popping—the gas’s kinetic energy (½mv²) is what “temperature” really measures.
A 2 m balloon launched with only a few liters of slack gas expands to the size of a small house (~100× volume) near 30 km altitude. Outside pressure plummets, so PV = constant forces V to swell until the latex bursts.
Heating the air inside from 300 K to 360 K drops its density by ~17%. Boyle + Charles say lower density means less mass in the same volume, so the surrounding cooler air pushes the balloon skyward.
Open a can on an airplane and it foams harder: cabin pressure is only ~75% of sea level, so dissolved CO₂ suddenly occupies more volume. Boyle’s law does the math on why those bubbles rush out.
Rapidly filling a tank compresses air (raising P) faster than heat can escape, so Gay-Lussac’s law spikes temperature. During the dive, the reverse happens: expanding gas cools the regulator enough to frost.