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
- Select the unknown from the Solve for dropdown: P1, V1, P2, or V2.
- The matching row greys out and shows (unknown); leave it empty.
- Enter the three known values, keeping one unit for both pressures and one unit for both volumes.
- Read the highlighted cell in the P1, V1, P2, V2 result grid.
- 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
- Boyle's Law in Breathing and Diving
How the inverse pressure-volume link explains lungs, syringes, and why divers must never hold their breath while ascending.
Related tools
Charles's Law Calculator
Solve Charles's Law V1/T1 = V2/T2 for the missing volume or temperature at constant pressure. Enter any three values, set Kelvin or Celsius, get the fourth.
Gay-Lussac's Law Calculator
Solve Gay-Lussac's Law P1/T1 = P2/T2 for the missing pressure or temperature at constant volume. Enter any three values, set Kelvin or Celsius, get the fourth.
Combined Gas Law Calculator
Solve the combined gas law P1V1/T1 = P2V2/T2 for any missing value. Enter five of the six, set Kelvin or Celsius, and get the sixth instantly.
Ideal Gas Law Calculator
Solve the ideal gas law PV = nRT for pressure, volume, moles or temperature. Enter any three values, pick your units in atm, kPa, L, m3, K or C.
555 Timer Calculator
Calculate 555 timer astable frequency, period, high and low times and duty cycle from R1, R2 and the timing capacitor. Free oscillator design helper.
Absolute Humidity Calculator
Calculate absolute humidity in grams of water vapor per cubic meter from air temperature and relative humidity. Fast, free and works in your browser.