TSE.
MathematicsFinanceHealthPhysicsEngineeringBrowse all

Physics · Thermodynamics · Gas Laws

Boyle's Law Calculator

Calculates the unknown pressure or volume of a gas undergoing an isothermal process using Boyle's Law.

Calculator

Advertisement

Formula

P₁ is the initial absolute pressure of the gas, V₁ is the initial volume, P₂ is the final absolute pressure, and V₂ is the final volume. The relationship holds at constant temperature (isothermal process) for an ideal gas. Any one unknown can be solved given the other three: P₂ = P₁V₁/V₂, or V₂ = P₁V₁/P₂.

Source: Robert Boyle, 'New Experiments Physico-Mechanicall', 1660; NIST Chemistry WebBook, Ideal Gas Law.

How it works

Boyle's Law is a special case of the ideal gas law that applies when temperature and the amount of gas remain constant — an isothermal process. Under these conditions, if you compress a gas (decrease its volume), the pressure rises proportionally, and vice versa. This is because the gas molecules are confined to a smaller space and collide with the container walls more frequently. The product of pressure and volume, P × V, always remains constant for a given sample of ideal gas at fixed temperature.

The mathematical statement of Boyle's Law is P₁V₁ = P₂V₂, where P₁ and V₁ are the initial pressure and volume, and P₂ and V₂ are the final pressure and volume after a change of state. All pressures must be expressed as absolute pressures (not gauge pressures) for the equation to be valid. Any of the four variables can be isolated: P₂ = P₁V₁/V₂, V₂ = P₁V₁/P₂, P₁ = P₂V₂/V₁, and V₁ = P₂V₂/P₁.

Practical applications span a wide range of fields. In scuba diving, Boyle's Law explains why a diver's lungs can be damaged if they hold their breath while ascending — the decreasing water pressure causes the air in the lungs to expand. In medicine, syringes and manual resuscitators rely on Boyle's Law: pulling back the plunger increases volume and decreases pressure, drawing fluid or air inward. Industrial pneumatic systems, hydraulic presses, and gas storage cylinders are also engineered using this fundamental relationship.

Worked example

Problem: A gas occupies a volume of 4.0 L at a pressure of 150 kPa. The gas is compressed at constant temperature until its volume decreases to 1.5 L. What is the new pressure?

Step 1 — Identify known values:
P₁ = 150 kPa, V₁ = 4.0 L, V₂ = 1.5 L, P₂ = ?

Step 2 — Apply Boyle's Law:
P₁V₁ = P₂V₂
P₂ = P₁V₁ / V₂

Step 3 — Substitute and calculate:
P₂ = (150 kPa × 4.0 L) / 1.5 L
P₂ = 600 / 1.5
P₂ = 400 kPa

Interpretation: Compressing the gas to 37.5% of its original volume caused the pressure to increase by a factor of 2.67, consistent with the inverse relationship described by Boyle's Law. This result assumes ideal gas behavior and that temperature remained exactly constant throughout the compression.

Limitations & notes

Boyle's Law assumes the gas behaves as an ideal gas — meaning gas molecules have no intermolecular forces and occupy negligible volume themselves. Real gases deviate from this model at high pressures (above ~10 atm) and low temperatures, where van der Waals forces become significant. Near the critical point or during phase transitions (e.g., condensation), the law breaks down entirely. Additionally, the relationship is only valid under strictly isothermal conditions; any heat exchange with the surroundings introduces errors. For more accurate modeling of real gases, the van der Waals equation or the Peng-Robinson equation of state should be used. Gauge pressure must always be converted to absolute pressure before applying the formula, as using gauge values will produce incorrect results.

Frequently asked questions

What does Boyle's Law state in simple terms?

Boyle's Law states that the pressure of a gas is inversely proportional to its volume when temperature and the amount of gas are kept constant. If you double the pressure, the volume is halved, and if you halve the pressure, the volume doubles.

Should I use absolute pressure or gauge pressure in Boyle's Law?

You must always use absolute pressure (gauge pressure + atmospheric pressure) in Boyle's Law calculations. Using gauge pressure directly will yield incorrect results because the law is derived from the absolute thermodynamic pressure of the gas.

What are the units for Boyle's Law?

Any consistent unit of pressure (kPa, atm, mmHg, psi) and any consistent unit of volume (L, mL, m³, cm³) can be used, as long as both sides of the equation use the same units. The units cancel out in the equation P₁V₁ = P₂V₂.

At what conditions does Boyle's Law fail?

Boyle's Law is an idealization that fails at very high pressures, very low temperatures, and near phase transitions. Real gases deviate significantly from ideal behavior under these conditions due to intermolecular attractions and the finite volume of gas molecules.

How is Boyle's Law related to the ideal gas law?

Boyle's Law is a special case of the ideal gas law PV = nRT. When n (moles of gas) and T (temperature) are held constant, the product nRT is constant, which means PV = constant — exactly the statement of Boyle's Law. The ideal gas law is the more general form that also encompasses Charles's Law and Gay-Lussac's Law.

Last updated: 2025-01-15 · Formula verified against primary sources.