Boneyard Tools

Boyle's Law Calculator

Boyle's Law says that for a fixed amount of gas at constant temperature, pressure and volume trade off inversely: P1 x V1 = P2 x V2. Select which of the four quantities is unknown, enter the other three, and the calculator returns the missing pressure or volume. Only the ratio matters, so any consistent pressure and volume units work, and the arithmetic runs locally in your browser.

How to use the Boyle's Law calculator

  1. Select the unknown from the Solve for dropdown: P1, V1, P2, or V2.
  2. The matching row greys out and shows (unknown); leave it empty.
  3. Enter the three known values, keeping one unit for both pressures and one unit for both volumes.
  4. Read the highlighted cell in the P1, V1, P2, V2 result grid.
  5. Click Copy to save all four values as labeled text.

Examples

Compress the gas, find the pressure

Solve for P2, P1 = 1, V1 = 10, V2 = 5
P2 = 2

Raise the pressure, find the volume

Solve for V2, P1 = 2, V1 = 3, P2 = 6
V2 = 1

Work back to the starting volume

Solve for V1, P1 = 4, P2 = 2, V2 = 10
V1 = 5

Frequently asked questions

What does Boyle's Law state?

For a sealed, fixed amount of gas at constant temperature, pressure and volume are inversely proportional, so P1 x V1 = P2 x V2. Squeeze the volume in half and the pressure doubles.

What units can I enter?

Any units, provided both pressures share one unit and both volumes share another. Because the law is a ratio of products, atmospheres with litres or pascals with cubic metres all give the same answer.

Why must temperature stay constant?

Boyle's Law isolates the pressure-volume relationship by holding temperature and the amount of gas fixed. If the temperature changes during the process, the combined gas law or ideal gas law is the correct tool.

How many values does it need?

Three of the four. The Solve for dropdown empties the quantity you want, and the calculator solves for it; supplying fewer than three known values returns an error.

Why are zero and negative numbers rejected?

A confined gas always has positive pressure and positive volume, so every input must be greater than zero. The engine flags any zero or negative value instead of producing a nonsensical result.

What does the inverse relationship look like?

Plotting pressure against volume traces a hyperbola: as one rises the other falls so their product stays constant. That constant product is what the calculator preserves when it solves for the missing term.

How does this relate to the ideal gas law?

The ideal gas law PV = nRT reduces to Boyle's Law when the amount of gas and the temperature are constant, leaving P and V free to vary. Boyle's Law is one face of the fuller ideal gas relationship.

How accurate is it for real gases?

The result is exact for an ideal gas. Real gases follow it closely at moderate pressures but drift at very high pressure or near condensation, where molecular volume and attractions matter; use a real-gas equation for those regimes.

Does anything leave my browser?

No. Every calculation is done on your device in JavaScript, so the pressures and volumes you type are never uploaded.

Learn more

Related tools