01

Boyle's law and its inverse

At constant temperature, the pressure and volume of a fixed amount of gas are inversely proportional. Double the pressure and the volume halves; halve the pressure and it doubles. The product P·V stays constant throughout.

Boyle's law, four rearrangementsP₁V₁ = P₂V₂
P₁ = P₂V₂/V₁ V₁ = P₂V₂/P₁
P₂ = P₁V₁/V₂ V₂ = P₁V₁/P₂

All four are the same equation solved for a different variable, which is exactly what the calculator does when you leave one field blank. The physics is one line; the arithmetic is bookkeeping.

02

Worked example: halving the volume

A gas at 100 kPa occupies 2 litres. Squeeze it to 1 litre and the pressure doubles to 200 kPa, because P₂ = P₁V₁/V₂ = (100 × 2)/1 = 200.

Compressing 100 kPa at 2 L
Final volumeFinal pressureCompression ratioP·V
2 L100 kPa1.0200
1 L200 kPa2.0200
0.5 L400 kPa4.0200
4 L50 kPa0.5200

The product column is the check. It never changes, and the tool reports both products side by side so you can see that for yourself. If they disagree, one of your inputs is inconsistent.

03

Why temperature has to be held constant

Boyle's law is the isothermal special case of the ideal gas law PV = nRT. Compressing a gas does work on it, and that work becomes heat, so in practice the temperature rises unless you remove it. A bicycle pump gets warm for exactly this reason.

When the temperature does change, use the combined gas law instead: P₁V₁/T₁ = P₂V₂/T₂, with T in kelvin. Adding the temperature ratio is the only correction needed, and it is not optional — compressing air from 300 K to 400 K changes the answer by a third.

Kelvin, not Celsius. Any gas-law calculation that involves temperature must use absolute temperature. Doubling 20 °C to 40 °C is not a doubling in kelvin — it goes from 293 K to 313 K, an increase of only 7%.

04

Real gases and the limits of the law

Boyle's law assumes point particles with no intermolecular forces. Real gases deviate, and the deviation grows as pressure rises and temperature falls. The van der Waals equation adds two corrections — a volume excluded by the molecules themselves and an attractive pressure term — and is accurate over a much wider range.

When the simple law is good enough
ConditionDeviation from Boyle's lawVerdict
Near atmospheric pressure, room temperatureUnder 1%Fine
A few atmospheres1–3%Usually fine
Tens of atmospheresSeveral percentUse van der Waals
Near condensation pointLargeNot applicable
Supercritical fluidVery largeNot applicable

For a bicycle tyre, a syringe or a scuba tank at moderate pressure, the ideal approximation is well within engineering tolerance. For refrigeration cycles and gas pipelines it is not, and the design uses tabulated properties rather than a formula.

05

Where the inverse form is used

  • Scuba diving — the gas in a tank is compressed to 200 bar or more; knowing the surface-equivalent volume is a safety calculation, not an academic one.
  • Medical ventilation — tidal volume and airway pressure trade off exactly this way, and the compliance of the lung is the constant of proportionality.
  • Hydraulic accumulators — a trapped gas cushion absorbs pressure spikes, and its stiffness follows P₁V₁ = P₂V₂.
  • Weather balloons — a balloon expands as it rises into thinner air, which is the same law read in the other direction.
  • Diesel engines — compression raises both pressure and temperature, so the combined law applies rather than Boyle's alone.

In each case you know three of the four quantities and need the fourth. That is precisely the shape of this calculator.

?

Frequently asked questions

What happens to pressure when volume is halved?

It doubles, provided the temperature is constant. Boyle's law says the product P·V is fixed, so halving V must double P.

Can I use this if the temperature changes?

Not directly. Use the combined gas law P₁V₁/T₁ = P₂V₂/T₂ with absolute temperatures in kelvin. This tool implements the isothermal case only and says so in the result note.

What units should I use?

Any consistent units. Because the equation is a ratio, pascals with cubic metres works as well as bar with litres — as long as the same unit is used on both sides of the equation.

Why does my bicycle pump get hot?

Compression does work on the gas, and that work appears as internal energy. Without time to lose the heat, the temperature rises — which is why the process is closer to adiabatic than isothermal.

Is Boyle's law exact?

No. It is the low-pressure limit of the ideal gas law. Real gases deviate as pressure rises or temperature falls toward condensation, and the van der Waals equation is the standard first correction.

Why must exactly one field be empty?

The equation has four variables, so three known values determine the fourth. With two blanks the system is underdetermined; with none there is nothing to solve.