Calcady
Home / Scientific / Boyle's Law Calculator

Boyle's Law Calculator

Solve P₁V₁ = P₂V₂ for any unknown variable — initial/final pressure or volume. Includes isothermal assumption, ideal vs real gas deviations, pressure unit conversions, and real-world applications in scuba diving, syringe mechanics, and compressor design.

P₁V₁ = P₂V₂

atm
L
atm

Final Volume (V₂)

5
L

State Comparison

Initial

1 atm

10 L

Final

2 atm

5 L

Email LinkText/SMSWhatsApp

Boyle's Law

Boyle's Law describes the inversely proportional relationship between the pressure and volume of a gas at constant temperature: P₁V₁ = P₂V₂.

Key Principles

  • Inverse relationship: If pressure doubles, volume halves (and vice versa)
  • Temperature must be constant (isothermal process)
  • Amount of gas must be constant (sealed container)
  • Works best for ideal gases at moderate pressures

Practical Applications

  • Syringes: Pulling the plunger increases volume, decreasing pressure to draw in fluid
  • Scuba diving: Air compresses at depth due to increased water pressure
  • Breathing: Diaphragm changes lung volume to drive air in and out
  • Balloons: Expand at higher altitudes where atmospheric pressure is lower

Historical Note 💡

Robert Boyle published this law in 1662 based on experiments with a J-shaped tube of mercury. It was one of the first gas laws discovered and paved the way for the Ideal Gas Law.

Quick Answer: How do you use Boyle's Law?

P&sub1;V&sub1; = P&sub2;V&sub2; — pressure and volume are inversely proportional at constant temperature. Solve for any unknown: V&sub2; = P&sub1;V&sub1; / P&sub2; or P&sub2; = P&sub1;V&sub1; / V&sub2;. Critical: always use absolute pressure (not gauge). Convert: psia = psig + 14.696; kPa abs = kPa gauge + 101.325. Example: Scuba tank at 200 bar, 12 L → surface (1 bar): V&sub2; = 200 × 12 / 1 = 2,400 L. Temperature must remain constant; if temperature changes, use the combined gas law: P&sub1;V&sub1;/T&sub1; = P&sub2;V&sub2;/T&sub2; instead.

Pressure Unit Conversion Reference for Boyle’s Law

Both P&sub1; and P&sub2; must use the same unit and must be absolute pressures. Use this table to convert before entering values.

Unit = 1 atm To kPa To psi Gauge → Absolute
Atmosphere (atm)1.000101.325 kPa14.696 psiatm is always absolute
Kilopascal (kPa)0.0098690.14504 psikPa abs = kPa gauge + 101.325
Bar0.98692100.000 kPa14.504 psibar abs = bar gauge + 1.01325
PSI absolute (psia)0.0680466.8948 kPapsia = psig + 14.696
mmHg / Torr0.0013160.13332 kPa0.01934 psimmHg is always absolute
Pascal (Pa)9.869×10⊃⁻⁶0.001 kPa1.450×10⊃⁻⁴ psiPa abs = Pa gauge + 101,325
Standard atmosphere = 101,325 Pa = 101.325 kPa = 1.01325 bar = 14.696 psia = 760.00 mmHg = 760.00 torr = 29.921 inHg. Always verify absolute + gauge distinction before entering into Boyle’s Law — the most common source of calculation error.

Pro Tips & Common Boyle’s Law Mistakes

Do This

  • Sanity-check your answer using the inverse proportion: if pressure doubles, volume must halve. Boyle’s Law always produces a reciprocal ratio. If P&sub2;/P&sub1; = 3 (pressure tripled), then V&sub2;/V&sub1; = 1/3 (volume is one-third). If your calculation shows pressure tripled and volume also increased, you have an error. This quick check catches unit inconsistencies and mis-entered values before they propagate. Example verification: P&sub1;=2 atm, V&sub1;=5L, P&sub2;=10 atm (5× increase). V&sub2; must be 1× = 1 L. Calculate: V&sub2; = (2×5)/10 = 1 L. ✓ Direction correct, ratio matches.
  • When solving for scuba or industrial gas cylinder calculations, always account for residual pressure (never tank pressure reaches 0). A scuba tank is never emptied to zero absolute pressure — divers signal “low air” at 50 bar residual and surface at 30–35 bar. Usable air = (P&sub1; − P&sub2;) × V / P&sub2;(ambient). For the 12L tank example: usable air at 1 bar = (200−30) × 12 / 1 = 2,040 L, not 2,400 L if reserving 30 bar residual. For industrial cylinders, always use the final pressure as the residual cylinder pressure (typically 200–500 kPa), not zero, when calculating available volume.

Avoid This

  • Don't use gauge pressure in Boyle’s Law — the result will always be wrong. Gauge pressure is the pressure above atmospheric, not total molecular pressure. A bicycle tire at 60 psig is at 60 + 14.696 = 74.696 psia absolute. If you remove the valve core and the tire equilibrates to atmospheric (14.696 psia), the pressure DROP is 60 psi gauge, but using P&sub1;=60 and P&sub2;=0 gives division by zero. Using absolute values: P&sub1;=74.696 psia, P&sub2;=14.696 psia. V&sub2; = V&sub1; × 74.696/14.696 = V&sub1; × 5.08 — the released air expands to 5.08 times the tire volume in the open atmosphere. Gauge pressure input gives (60/0) = undefined, showing exactly why gauge pressure breaks the calculation.
  • Don't apply Boyle’s Law when temperature changes significantly — use the combined gas law instead. Boyle’s Law requires isothermal (constant temperature) conditions. When a gas is rapidly compressed (piston, compressor), temperature increases substantially (adiabatic heating). For a diesel engine cylinder compressing air from 1 atm at 300K to 1/20 volume: Boyle’s Law predicts P&sub2; = 20 atm. The actual pressure (accounting for temperature rise via adiabatic law PV¹•&sup4; = constant) ≈ 66 atm — a 3× underestimate. When temperature change is uncertain or large (>10–15°C), use P&sub1;V&sub1;/T&sub1; = P&sub2;V&sub2;/T&sub2; with temperatures in Kelvin (K = °C + 273.15). Always convert temperature to Kelvin before using gas laws.

Frequently Asked Questions

Why does Boyle’s Law require absolute pressure?

Boyle’s Law describes the total force exerted by gas molecules colliding with container walls — which includes ALL molecules, even those at atmospheric pressure. Gauge pressure measures only the excess above atmospheric and equals zero even when there is still atmospheric pressure in the container. If you use gauge pressure, you lose the atmospheric contribution. Example: a sealed syringe at 0 psig still has 14.696 psia of gas molecules exerting pressure. Pressing the plunger to halve the volume should double the pressure to 29.392 psia (or 14.696 psig). Using gauge: 0 × V = 0 ≠ 14.696 × V/2 = 7.348. The gauge equation fails. Using absolute: 14.696 × V = 29.392 × V/2 = 14.696 × V. ✓ The underlying physics requires accounting for all molecular collisions, which is only possible with absolute pressure.

When does Boyle’s Law break down for real gases?

Boyle’s Law assumes ideal gas behavior: (1) No intermolecular forces — real molecules attract each other at moderate distances and repel at very short distances. (2) Negligible molecular volume — real molecules occupy finite space. These assumptions break down at: High pressure (>10–50 atm): molecular volume becomes significant; real gas volume is LARGER than Boyle predicts (repulsion dominates). Low temperature (near condensation point): intermolecular attraction is significant; real gas pressure is LOWER than Boyle predicts (attraction pulls molecules away from walls). For most everyday applications (atmospheric to ~10 atm, temperatures above 0°C, non-polar diatomic gases like air, N&sub2;, O&sub2;), Boyle’s Law error is well under 1%. For CO&sub2; (high a-factor), NH&sub3;, or steam at high pressures, use the van der Waals equation or compressibility factor (Z = PV/nRT, where Z=1 for ideal gases) for accurate results.

How does Boyle’s Law apply to scuba diving physiology?

Water pressure increases by ~1 atm (1 bar / 101.325 kPa) for every 10 meters of depth. At 30 meters depth: ambient pressure = 1 (surface) + 3 (water column) = 4 atm absolute. Lung volume: A diver’s lung volume at the surface (6 L at 1 atm) would compress to 6/4 = 1.5 L at 30m if breath-holding (barotrauma risk). Scuba regulators prevent this by delivering air at ambient pressure, keeping lungs at natural volume. Ascent barotrauma (the critical Boyle’s Law risk): If a diver takes a breath at 30m (4 atm) and ascends without exhaling, the air in their lungs expands: V&sub2; = 4 × V&sub1; / 1 = 4× the breath volume. The lungs cannot contain 4× their normal volume — pulmonary barotrauma (lung rupture) results. This is why the cardinal diving rule is “never hold your breath while ascending.” Sinus and middle ear: The same expansion principle applies to air spaces in the sinuses and middle ear during ascent, causing “reverse squeeze” if tissues block equalization.

What is the difference between Boyle’s Law and the combined gas law?

Boyle’s Law (P&sub1;V&sub1; = P&sub2;V&sub2;): applies only when temperature is constant (isothermal). Two variables change (P and V), one is fixed (T). Charles’s Law (V&sub1;/T&sub1; = V&sub2;/T&sub2;): applies only when pressure is constant (isobaric). Temperature and volume change, pressure fixed. Gay-Lussac’s Law (P&sub1;/T&sub1; = P&sub2;/T&sub2;): applies only when volume is constant (isochoric). Temperature and pressure change, volume fixed. Combined Gas Law (P&sub1;V&sub1;/T&sub1; = P&sub2;V&sub2;/T&sub2;): all three variables can change simultaneously. Temperature MUST be in Kelvin (K = °C + 273.15). Boyle’s Law is a special case of the combined gas law when T&sub1; = T&sub2; (the T cancels). When doing real-world gas transfer problems (filling cylinders in temperature-varying environments, weather balloon ascent, engine compression), always use the combined gas law to avoid the systematic error of assuming constant temperature.

Related Calculators