Mihsaba›Chemistry›Boyle’s Law Calculator

Boyle’s Law Calculator

Calculate final pressure or volume for an ideal gas at constant temperature using P₁V₁=P₂V₂.

These are ideal thermal/gas models. Real material properties and gases can vary with temperature, pressure and phase.

Share this free calculator

Send this tool to someone who needs the calculation.

How to use

Boyle's law relates the pressure and volume of a fixed quantity of gas when its absolute temperature stays approximately constant: P₁V₁=P₂V₂. This calculator solves for final pressure P₂ when final volume is known, or for final volume V₂ when final pressure is known. Use absolute pressure, not pressure measured relative to local air pressure. Keep the same pressure units at both states and the same volume units at both states. Pa, kPa or bar can work if used consistently; litres or m³ can also work if not mixed. This ideal-gas approximation is not intended for rapid compression with significant heating or cooling.

  1. Choose whether the unknown is final pressure P₂ or final volume V₂, and enter the initial pressure P₁ and volume V₁.
  2. Convert gauge pressure to absolute pressure when necessary by adding the local atmospheric reference pressure before calculating.
  3. Provide final volume V₂ to calculate P₂, or final pressure P₂ to calculate V₂; keep both pressure and volume units consistent.
  4. Check that P₁×V₁ equals P₂×V₂, within rounding, under the constant-temperature and fixed-amount assumptions.

How it is calculated

P₁V₁=P₂V₂

Example

Take a hypothetical gas at an initial absolute pressure of 100 kPa and volume 2 L. If it is compressed isothermally to 1 L, the final absolute pressure is P₂=(100×2)/1=200 kPa. Conversely, if the final pressure is known to be 200 kPa, then V₂=(100×2)/200=1 L. Both states give PV=200 kPa·L. There is no need to convert litres to cubic metres when the volume unit remains litres throughout. The same numbers must not be reused unchanged when the input is a 100 kPa gauge reading.

Important notes

The calculation assumes unchanged gas amount and temperature, with behaviour sufficiently close to an ideal gas. Zero gauge pressure usually corresponds to local ambient pressure, not physical zero pressure. This tool cannot estimate heating during rapid compression, leakage, or real-gas deviations at high densities and near condensation. It solves one unknown in the two-state relation; it does not model gas mixtures, changing composition, compressibility factors or pressure losses. Convert any mismatched units first: for instance, 1 bar is 100 kPa, and 1 m³ is 1,000 litres. Do not interpret the numeric output as a safety rating for a pressure vessel.

Worked examples and interpreting results

A gas initially at 100 kPa absolute and 2 L is compressed to 1 L at constant temperature and amount. The ideal-model pressure becomes 200 kPa.

Worked examples and interpreting results
CaseCalculationResult
Pressure after halving volume100 × 2 ÷ 1200 kPa
Pressure after doubling volume100 × 2 ÷ 450 kPa

How to check the result

Use absolute pressure and consistent pressure and volume units. Select final pressure and enter final volume; the final-pressure input is unused in that mode.

Frequently asked questions

Should I enter gauge or absolute pressure?

Enter absolute pressure for both states. Add the local atmospheric reference pressure to any gauge reading before using Boyle's law.

Why does pressure double when volume halves?

With fixed gas amount and temperature, the product PV stays constant, so halving V doubles absolute P in the ideal model.

Can I use kPa and litres together?

Yes. Both pressures may use kPa and both volumes may use L. Do not mix kPa with bar or litres with m³ across states without converting.