CalcSeed

Boyle's Law Calculator

Solve Boyle’s law for any one of the four quantities, given the other three.

=
Quick answer: with the default inputs (100 kPa, 2 L, 200 kPa), the final volume is 1 L. Change any input to update the result.
Final volume
—

What Boyle’s law lets you solve

Boyle’s law applies to a sealed amount of gas held at a steady temperature. Change the pressure and the volume moves the other way, and this calculator returns whichever of the four quantities you leave blank. The default output is the final volume in litres, given both pressures and the starting volume.

P1V1=P2V2P_1 V_1 = P_2 V_2

The product of pressure and volume stays the same before and after the change, so the whole calculation is one division. If pressure doubles, volume halves to the same product; there is nothing else to remember once you trust that invariant.

Rearrange for whichever variable is missing. For the final volume, V&sub2; = P&sub1;V&sub1; ÷ P&sub2;. For the final pressure, P&sub2; = P&sub1;V&sub1; ÷ V&sub2;. The two initial-state forms follow the same pattern with the subscripts swapped.

Why the product stays constant

Pressure comes from gas molecules striking the walls. Pack the same molecules into half the space and each square centimetre of wall gets hit twice as often, so the pressure doubles. The count of molecules and their average speed are fixed by the constant temperature, which is why only the geometry changes.

That is also why temperature must not drift during the change. Warm the gas while compressing it and the molecules hit harder as well as more often, so the pressure rises by more than Boyle’s law predicts. The relationship is exact only along an isotherm, a path of constant temperature.

Worked example at the defaults

The defaults are 100 kPa at 2 L, compressed to 200 kPa. The starting product is 100 × 2 = 200 kPa·L. Dividing by the new pressure gives V&sub2; = 200 ÷ 200 = 1 L, and the output confirms the gas has been squeezed to half its volume.

Note the symmetry: the pressure doubled and the volume halved, so the product on the right is also 200 kPa·L. Any pair of states on that isotherm satisfies the same product, whether you move from 1 to 4 or back again.

Compress further, to 0.5 L, and the pressure must reach 200 ÷ 0.5 = 400 kPa. Fourfold compression from the original 2 L gives four times the pressure, exactly as the inverse relationship requires.

The isotherm in numbers

Volume (L)Pressure (kPa)Product P×V
0.5400200
1200200
2100200
450200
825200
1020200

Every row carries the same 200 kPa·L, which is the constant for this sample. Plot the first two columns and you get the hyperbola that textbooks call the Boyle isotherm. The last row is a useful sanity check: ten litres at 20 kPa is the same amount of gas as half a litre at 400 kPa.

Where the law does real work

  • Scuba and breathing apparatus: a 12 L cylinder at 200 bar holds 12 × 20,000 = 240,000 kPa·L, which is about 2,370 L of air at surface pressure.
  • Syringes and vacuum chambers: pulling a plunger to double the volume halves the pressure inside.
  • Compressed air storage: sizing a receiver for a given draw-down means comparing P×V at the start and end of the draw.
  • Diving physics: at 10 m depth the absolute pressure is about 200 kPa, so a lungful taken at the surface would occupy half its volume there.
  • Packaging: a sealed bag of crisps puffs up on a flight because cabin pressure falls while the trapped volume wants to grow.

Absolute pressure versus gauge pressure

This is the mistake that ruins more Boyle calculations than any other. A tyre gauge reading 200 kPa is measuring above atmosphere, so the absolute pressure inside is 200 + 101.3 ≈ 301 kPa. Halving the tyre volume would take the absolute pressure to 602 kPa, which shows on a gauge as 501 kPa — not the 400 kPa a naive doubling of the gauge reading suggests.

The same trap appears in vacuum work. A chamber pulled to −90 kPa gauge sits at about 11 kPa absolute, and that factor of nine difference is the whole calculation. Convert every pressure to absolute before you put it into P&sub1;V&sub1; = P&sub2;V&sub2;, then convert back at the end if the answer has to be a gauge value.

Units only need to match, not be SI

Pressure in atm against volume in litres works exactly as well as kPa against litres, because the units appear on both sides and cancel. What fails is mixing them: 2 atm on the left with 100 kPa on the right gives a wrong answer by a factor of about 2.03. Pick one pressure unit and one volume unit and keep them for all four inputs.

When the law stops being accurate

Boyle’s law describes an ideal gas. Real gases follow it closely near room temperature and a few atmospheres, and drift away at high pressure or near condensation. Compress air to 200 bar and the product P×V is about 6% smaller than the ideal prediction, which matters when you are calculating how long a scuba cylinder will last.

Why compressing a gas warms it

Squeeze a gas quickly and it heats up even though the law assumes constant temperature. The work you do on it has to go somewhere, and a fast compression leaves no time for that heat to escape. Slow the compression down, or let the cylinder sit, and the temperature returns to ambient and Boyle’s law describes the result again.

The law also fails if the gas can dissolve, react or leak. Carbon dioxide in water leaves the gas phase as pressure rises, so the headspace collapses faster than P×V suggests. Any process where molecules enter or leave the sealed volume is outside this calculator entirely, and the combined gas law or the ideal gas law is the right next step.

Frequently asked questions

What does Boyle’s law say?

At constant temperature, gas pressure is inversely proportional to volume, so P×V stays fixed. Doubling 100 kPa at 2 L to 200 kPa leaves 1 L, and the product is 200 kPa·L either way.

Do the units matter in Boyle’s law?

Only that they match. kPa with litres or atm with litres both work because the units cancel. Mixing atm on one side with kPa on the other is wrong by a factor of 101.3.

How do I find the final volume?

Divide the initial product by the final pressure: V&sub2; = P&sub1;V&sub1; ÷ P&sub2;. From 100 kPa and 2 L compressed to 250 kPa you get 200 ÷ 250 = 0.8 L.

Should I use gauge or absolute pressure?

Absolute, always. A gauge reading of 200 kPa is 301 kPa absolute, and using the gauge value in the formula understates the pressure by a third at that level.

What happens to volume if pressure triples?

It falls to one third. Three atmospheres on a 3 L sample leaves 1 L, since 3 × 1 equals the original 1 × 3.

Does temperature have to stay constant?

Yes for Boyle’s law specifically. Let temperature change and you need the combined gas law, P&sub1;V&sub1;/T&sub1; = P&sub2;V&sub2;/T&sub2;, where the temperature must be in kelvin.

How much air is in a 12 L scuba cylinder at 200 bar?

Twelve litres at 20,000 kPa gives 240,000 kPa·L, which at a surface pressure of 101.3 kPa is about 2,370 L. Real gas behaviour cuts that by roughly 6% at this pressure.

Why does a balloon shrink in cold water?

That is Charles’s law plus Boyle’s law working together. The water both cools the gas and adds pressure, so volume drops from both effects; the combined gas law handles the pair in one step.

When is Boyle’s law not valid?

At very high pressure or near the condensation point. Air at 200 bar deviates by about 6%, and any gas that dissolves into a liquid or reacts during the change breaks the constant-molecule assumption.

Method and sources

Calculation basis

Physical constants follow CODATA 2022 recommended values, and formulas follow standard physics definitions.

Last updated: November 17, 2026
Formula & data sources
  • Boyle’s law (P₁V₁ = P₂V₂) at constant temperature.

Cite this page

Reference formats
APA 7CalcSeed. (2026, November 17). Boyle's Law Calculator. https://calcseed.com/c/scientific/boyles-law-calculator/
MLA 9"Boyle's Law Calculator." CalcSeed, 17 Nov. 2026, calcseed.com/c/scientific/boyles-law-calculator/.
ChicagoCalcSeed. "Boyle's Law Calculator." Last modified November 17, 2026. https://calcseed.com/c/scientific/boyles-law-calculator/

Related calculators

More Science calculators