Boyle's Law Calculator
Solve P₁V₁ = P₂V₂ for any missing pressure or volume at constant temperature. Leave one field blank, enter the other three, and get an instant result with full step-by-step working. No formula rearranging required.
Boyle's Law Solver
What Is Boyle's Law?
Boyle's Law, published by Robert Boyle in 1662, describes one of the simplest and most reliable relationships in gas behavior: at constant temperature, the pressure and volume of a fixed quantity of gas are inversely proportional. Squeeze a gas into half its volume and its pressure doubles; let it expand to twice the volume and pressure falls by half.
Mathematically, this is written as P₁V₁ = P₂V₂, where the subscript 1 marks the initial state and 2 marks the final state. Because the product of pressure and volume stays constant, a plot of pressure against volume traces a hyperbola, the classic "PV isotherm" shown in the diagram alongside this text.
Boyle's Law is a special case of the combined gas law, P₁V₁/T₁ = P₂V₂/T₂, that applies specifically when temperature does not change. If your problem also involves a temperature change, use the full combined gas law calculator instead.
As volume increases, pressure falls along a smooth curve so that P·V never changes.
Real-World Examples of Boyle's Law
Pushing a syringe's plunger shrinks the trapped air's volume, so its pressure climbs.
Boyle's Law shows up constantly outside the classroom. A syringe with its tip blocked feels stiffer to push the further in the plunger goes, because the trapped air is being squeezed into an ever-smaller volume and pushing back with rising pressure.
Scuba divers rely on Boyle's Law for safety: as a diver descends, surrounding water pressure rises and compresses the air in their lungs and equipment; on ascent, that same air expands again, which is why divers are trained to ascend slowly and exhale continuously to avoid lung overexpansion injury.
A bicycle pump works the same way in reverse of the syringe, each stroke reduces the air's volume inside the pump barrel, raising its pressure until it exceeds the tire's internal pressure and flows in. In every case, the same rule governs the outcome: P₁V₁ = P₂V₂, as long as temperature does not change much during the process.
How the Calculator Works
Worked Example: Boyle's Law in Practice
Problem: A diver's lungs hold 6.00 L of air at 3.00 atm (20 m depth). What volume would that air occupy at the surface (1.00 atm) if exhaled fully during ascent?
That same lungful of air would triple in volume by the time it reached the surface. Exactly why divers are trained to exhale continuously and never hold their breath while ascending. Try changing the depth (pressure) in the calculator above to see how dramatically volume responds near the surface, where the pressure ratio changes fastest.
Common Mistakes When Applying Boyle's Law
The single most frequent error is forgetting that Boyle's Law only applies when temperature truly stays constant. Students often apply P₁V₁ = P₂V₂ to a problem where a gas is both compressed and heated, getting a plausible-looking but wrong answer because the formula silently ignores the temperature term. Before reaching for Boyle's Law, always check the problem statement for any mention of temperature change. If there is one, you need the combined gas law instead.
A second common mistake is mixing pressure units mid-calculation, for instance, entering P₁ in atmospheres and P₂ in kPa without converting one to match the other first. Because Boyle's Law is a direct algebraic relationship between the two pressures, both must be expressed in the same unit before you multiply or divide; the same rule applies to V₁ and V₂. This calculator handles that conversion automatically, but if you're solving by hand, always convert to a common unit as your first step.
A third, subtler mistake is applying Boyle's Law to a gas sample where the amount of gas itself is changing. For example, gas escaping slowly from a leaking container while it is also being compressed. Boyle's Law assumes a fixed, sealed quantity of gas; if moles are changing too, you need the ideal gas law's more general treatment instead.