Calculate a gas’s new pressure when its volume changes using Boyle’s law, or find the new volume, with options for a temperature change and moles of gas.

Boyle’s law (P₁V₁ = P₂V₂). Use absolute pressure: gauge reading + 1 atm.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Final pressure, fixed TFinds the pressure of a gas after its volume changes at constant temperatureRequires the initial absolute pressure, the initial volume and the final volume
Final volume, fixed TFinds the volume of a gas after its pressure changes at constant temperatureRequires the initial absolute pressure, the initial volume and the final absolute pressure
Pressure, new temperatureFinds the pressure after both the volume and the temperature changeRequires the initial absolute pressure, the initial and final volumes and the initial and final temperatures
Pressure from molesFinds the pressure of an amount of gas held in a volume at a temperatureRequires the amount of gas, the gas volume and the gas temperature

Pressure is entered in atm, kPa, Pa, bar, psi or mmHg, volume in L, mL, m³, ft³ or in³, and temperature in K, °C or °F. The amount of gas is in mol, mmol or kmol. Each function has a result unit setting.

Volume to Pressure Formulas

P₁ × V₁ = P₂ × V₂ [1]
P₁Initial absolute pressure
V₁Initial volume
P₂Final absolute pressure
V₂Final volume

For a fixed amount of an ideal gas at constant temperature, pressure multiplied by volume stays constant, which is Boyle’s law [1]. Halving the volume doubles the pressure. Inputs are converted to pascals and cubic meters, with 1 atm = 101,325 Pa, 1 bar = 100,000 Pa, 1 psi = 6,894.757 Pa and 1 mmHg = 133.3224 Pa [4].

Final pressure, fixed T

P₂ = P₁ × V₁ ÷ V₂

A gas at 1 atm squeezed from 4 L to 3 L ends at 1 × 4 ÷ 3 = 1.3333 atm. A 750 mL bottle at 110,000 Pa compressed to 625 mL ends at 110,000 × 750 ÷ 625 = 132,000 Pa. The details also list the pressure at 75% and 125% of the final volume.

Final volume, fixed T

V₂ = P₁ × V₁ ÷ P₂

Two liters of gas at 1 atm raised to 4 atm shrink to 1 × 2 ÷ 4 = 0.5 L.

Pressure, new temperature

P₂ = P₁ × (V₁ ÷ V₂) ×
(T₂ ÷ T₁) [2]

For a fixed amount of gas, P × V ÷ T stays constant [2]. The temperatures must be absolute, so °C and °F are converted to kelvin first. A gas at 1 atm compressed from 10 L to 5 L while it warms from 300 K to 360 K ends at 1 × 2 × 1.2 = 2.4 atm.

Pressure from moles

P = n × R × T ÷ V [2]

n is the amount of gas in moles, T is the temperature in kelvin, V is the volume in m³ and R is the molar gas constant, 8.314462618 J/(mol·K) [3]. One mole in 22.4 L at 273.15 K gives 1 × 8.314462618 × 273.15 ÷ 0.0224 = 101,388 Pa, which is 1.0006 atm. Two moles in 10 L at 25 °C give 495.79 kPa.

Limits of This Estimate

  • Every function treats the gas as ideal [2]. Gases at high pressure or near the point where they turn liquid depart from it, and a phase change is not modeled.
  • Pressures are absolute. A gauge reading needs atmospheric pressure, about 1 atm at sea level, added to it first.
  • The first three functions assume no gas enters or leaves. The result is a gas pressure, not a pressure rating for a tank or vessel.

Sources

  1. NASA Glenn Research Center, Boyle’s Law: constant product of pressure and volume at fixed temperature
  2. NASA Glenn Research Center, Equation of State: the ideal gas law and the need for absolute temperature
  3. NIST, CODATA Value: molar gas constant: value of R
  4. NIST, Guide for the Use of the International System of Units (SP 811), Appendix B.8: pressure unit factors