Intermediate

Boyle's Law Calculator — P₁V₁ = P₂V₂

Boyle's Law states that at constant temperature the pressure and volume of a fixed amount of ideal gas are inversely proportional: P₁V₁ = P₂V₂. Enter any three of the four values — initial pressure, initial volume, final pressure and final volume — and the calculator solves for the fourth.

kPa

Leave blank to solve for P₁

L

Leave blank to solve for V₁

kPa

Leave blank to solve for P₂

L

Leave blank to solve for V₂
Final volume V₂
1L

At constant temperature: P₁V₁ = P₂V₂ = 200 kPa·L

P₁
100 kPa
V₁
2 L
P₂
200 kPa
V₂
1 L
Constant k = P·V
200 kPa·L
Pressure ratio P₂/P₁
Volume ratio V₂/V₁
0.5×
Gas molecules at final state — higher pressure → more particles per unit volume
Step by step
  1. 1

    Constant k = P₁ × V₁

    100 × 2 = 200
    At constant temperature, P × V is the same before and after compression.
  2. 2

    Final volume V₂ = k ÷ P₂

    200 ÷ 200 = 1
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Boyle's Law: P₁V₁ = P₂V₂ at constant temperature. Doubling pressure halves volume, and vice versa. Enter any three of the four values (P₁, V₁, P₂, V₂) in any consistent units and the calculator solves for the fourth. The product P·V stays constant throughout the process.

Formula
P₁V₁ = P₂V₂ (constant temperature and amount of gas)
How this is calculated

Boyle's Law (1662) describes how an ideal gas behaves when compressed or expanded at constant temperature (an isothermal process). Because the product P × V is constant throughout, doubling the pressure halves the volume and vice versa. The relationship is strictly valid for ideal gases — real gases deviate at high pressures or near the liquefaction point.

This calculator accepts any consistent pressure unit (kPa by default, but atm, Pa, psi or bar work equally well as long as both pressure inputs use the same unit) and any volume unit for both volumes. Solving for any of the four variables is equivalent — rearrange P₁V₁ = P₂V₂: P₁ = P₂V₂/V₁, V₁ = P₂V₂/P₁, P₂ = P₁V₁/V₂, V₂ = P₁V₁/P₂.

The particle animation scales the displayed density with the computed final pressure relative to the initial pressure, illustrating how the same number of molecules occupy less space at higher pressure. The calculation assumes a sealed container (constant amount of gas, n = const) and a thermostatic environment (constant temperature, T = const). For processes where temperature changes, use the combined gas law P₁V₁/T₁ = P₂V₂/T₂ instead.

Frequently asked questions

If you squeeze a gas into half the volume (and keep the temperature the same), its pressure doubles. Expand it to twice the volume and the pressure halves. Pressure and volume are inversely proportional: P × V = constant.

No, as long as you use the same unit for both pressure values and the same unit for both volume values. The constant k = P·V will carry the combined units (e.g. kPa·L or atm·mL), but the ratio P₂/P₁ and V₂/V₁ are dimensionless.

Boyle's Law is accurate for ideal gases at moderate pressures and temperatures well above the boiling point. At very high pressures, real gas molecules interact with each other and the law overestimates compressibility. Near the liquefaction temperature, the gas begins to condense and the law no longer applies.

Also known as

boyles law calculator
p1v1 p2v2 calculator
gas pressure volume calculator
isothermal process calculator
ideal gas boyle law
pressure volume relationship
gas compression expansion

APA

TG we-Calculate Editorial Team. (2026). Boyle's Law Calculator — P₁V₁ = P₂V₂ [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/boyles-law-calculator

Chicago

TG we-Calculate Editorial Team. "Boyle's Law Calculator — P₁V₁ = P₂V₂." TG we-Calculate. 2026. https://we-calculate.com/calculator/boyles-law-calculator.

IEEE

TG we-Calculate Editorial Team, "Boyle's Law Calculator — P₁V₁ = P₂V₂," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/boyles-law-calculator

BibTeX

@misc{wecalculate_boyles_law_calculator, title = {Boyle's Law Calculator — P₁V₁ = P₂V₂}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/boyles-law-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?