Physics

Boyle’s Law Calculator

Calculate gas pressure or volume using Boyle's Law.


Boyle’s Law Calculator

Advertisement

Calculates how a gas’s pressure and volume relate at constant temperature, using Boyle’s Law.

How it works

The product of initial pressure and volume equals the product of final pressure and volume, solved here for the final pressure.

What this does not include

This does not include temperature or the amount of gas changing — for the full pressure-volume-temperature relationship, use this site’s ideal gas law calculator instead.

How to use this calculator

  1. Enter the initial pressure and volume, and the final volume.

A worked example

A gas at pressure 1 atm and volume 2 L, compressed to 1 L: new pressure = (P1×V1)/V2 = (1×2)/1 = 2 atm — halving the volume doubles the pressure.

Pressure 2 atm, volume 3 L, expanded to 6 L: new pressure = 1 atm.

What the variables mean

Variable Meaning
P1, V1 Initial pressure and volume
V2 New volume

Edge cases worth knowing

Pressure and volume move in opposite directions at constant temperature — compress the gas, pressure rises; expand it, pressure falls, exactly as both examples above show.

A final volume of zero makes the new pressure infinite, which has no physical meaning, so the calculator declines to show a result.

Frequently asked questions

Why does volume decrease as pressure increases?

At constant temperature, squeezing a gas into a smaller space forces its molecules closer together, which increases the pressure they exert — the two change in inverse proportion.

Does Boyle’s Law apply to any gas?

It’s an accurate approximation for ideal gases under typical conditions — real gases deviate somewhat at very high pressures or low temperatures.

What’s the difference between Boyle’s Law and the ideal gas law?

Boyle’s Law is the special case of the ideal gas law where temperature and the amount of gas are both held constant — the ideal gas law handles all four variables changing together.

Be the first to rate this

Written by

R. Solano

Physics writer

R. Solano writes the physics calculators, spanning mechanics, electricity, optics and thermodynamics. Each page names the physical model it uses and the conditions under which that model holds — ideal gas, no air resistance, small-angle approximation — because a physics result without its assumptions is a number without a meaning. Formulas are given in symbols first, then in the calculator.

Reviewed by

V. Kowalski

Calculator reviewer — physics and engineering

V. Kowalski reviews the physics and engineering calculators, checking that each page states the physical model it assumes and that the stated model matches the formula actually implemented. Review covers unit consistency throughout a calculation and whether approximations are flagged where the underlying physics is more complicated than the formula suggests.

How we write and review

Related calculators