Boyle's Law Calculator
Boyle's law calculator: solve P1 V1 = P2 V2 for pressure or volume in atm, kPa, bar, mmHg, psi, L, mL or m3, with gauge pressure and examples.
Published
Last updated
How the Boyle's Law Calculator Formula Works
Boyle's law says that for a fixed amount of gas at a constant temperature, pressure times volume stays the same. If the gas is squeezed into a smaller space, the pressure goes up by the same factor. If it is allowed to expand, the pressure goes down.
Write the law as P1 times V1 equals P2 times V2, where 1 is the starting state and 2 is the final state. Three of the four numbers give the fourth. To find the final volume, multiply the starting pressure by the starting volume and divide by the final pressure. The other three versions follow the same pattern.
The pressures must be absolute, not gauge, and both pressures must use the same unit, as must both volumes. The calculator converts everything to pascals and litres, solves, then converts back to your units. It can add one atmosphere to a gauge reading for you, and it also reports the constant k, the pressure ratio, the volume ratio and the percentage change in volume.
P1 × V1 = P2 × V2; V2 = P1 × V1 / P2; V1 = P2 × V2 / P1; P2 = P1 × V1 / V2; P1 = P2 × V2 / V1- P1atm, kPa, bar, mmHg, psi or PaStarting absolute pressure of the gas.
- V1L, mL or m3Starting volume of the gas.
- P2same as P1Final absolute pressure.
- V2same as V1Final volume.
- kpressure x volumeThe constant product P x V while temperature and amount stay fixed.
- P1
- atm, kPa, bar, mmHg, psi or Pa
- Starting absolute pressure of the gas.
- V1
- L, mL or m3
- Starting volume of the gas.
- P2
- same as P1
- Final absolute pressure.
- V2
- same as V1
- Final volume.
- k
- pressure x volume
- The constant product P x V while temperature and amount stay fixed.
Using the Boyle's Law Calculator
Enter solve for
Choose from Final volume (V2), Final pressure (P2), Initial volume (V1), Initial pressure (P1).
Enter pressure type
Choose from Absolute pressure, Gauge pressure (adds 1 atm).
Enter pressure unit
Choose from atm, kPa, bar, mmHg, psi, Pa.
Enter volume unit
Choose from litres (L), millilitres (mL), cubic metres (m3).
Enter initial pressure p1 (ignored when solving for p1)
Type the figure you already have, then press Calculate.
Enter initial volume v1 (ignored when solving for v1)
Type the figure you already have, then press Calculate.
Enter final pressure p2 (ignored when solving for p2)
Type the figure you already have, then press Calculate.
Enter final volume v2 (ignored when solving for v2)
Type the figure you already have, then press Calculate.
Read the result
Press Calculate to update the result. Until you do, the last result is dimmed and marked as out of date, so you always know which numbers belong to the values in the boxes.
A Real Worked Example
A gas is 10 L at 1 atm and is compressed to 2.5 atm. Solve for V2. V2 = P1 x V1 / P2 = 1 × 10 / 2.5 = 4 L.
The pressure rose by a factor of 2.5, so the volume fell to 0.4 of its original size, a drop of 60 percent. The constant P x V is 10 atm L both before and after, as it must be.
Final pressure of 500 mL squeezed to 125 mL
A sample is 500 mL at 760 mmHg and is squeezed into 125 mL. Solve for P2 in mmHg with the volume unit in millilitres. P2 = 760 × 500 / 125 = 3,040 mmHg.
That is 4 atm, or 405.3 kPa. The volume is a quarter of the start, so the pressure is four times higher.
Initial volume before compression to 250 kPa
A gas ends at 250 kPa in 2 L, and it started at 100 kPa. Solve for V1. V1 = P2 x V2 / P1 = 250 × 2 / 100 = 5 L.
The starting gas filled 5 L, so compression to 2 L raised the pressure by a factor of 2.5. This is the case to use when only the final state was measured.
Initial pressure from a volume that shrank to a third
A 6 L sample is reduced to 2 L and reads 3 atm at the end. Solve for P1. P1 = P2 x V2 / V1 = 3 × 2 / 6 = 1 atm.
The volume fell to one third, so the pressure tripled. The starting pressure was therefore one third of 3 atm, which is ordinary atmospheric pressure.
Gauge pressure: 2 bar to 4 bar gauge on 10 L
A 10 L gas is at 2 bar gauge and is compressed to 4 bar gauge. Set the pressure type to gauge and the unit to bar. The calculator adds 1.01325 bar to each reading, giving 3.01325 and 5.01325 bar absolute.
V2 = 3.01325 × 10 / 5.01325 = 6.0106 L. Using gauge values directly would give 5 L, which is wrong by about a litre.
Cubic metres and psi: 0.05 m3 at 30 psi to 90 psi
A 0.05 cubic metre vessel of gas at 30 psi is taken to 90 psi absolute. Choose psi and cubic metres. V2 = 30 × 0.05 / 90 = 0.01667 m3.
That is 16.67 litres. The pressure tripled and the volume fell to a third, a change of about 66.67 percent. The same answer comes out in litres or millilitres.
What Else to Know
What Boyle's Law Says
Boyle's law describes how a trapped gas responds to being squeezed or stretched. At a constant temperature, with no gas added or lost, the pressure and the volume are inversely proportional. Halve the volume and the pressure doubles. Double the volume and the pressure halves.

In symbols, P1 x V1 = P2 x V2. The 1 marks the starting state and the 2 marks the final state. Robert Boyle published the relationship in 1662, and the French physicist Edme Mariotte found it independently, which is why it is sometimes called the Boyle-Mariotte law.
The calculator solves for any one of the four values. Pick the unknown, enter the other three, choose the units, and read the answer. It also shows the constant P x V, the pressure ratio, the volume ratio and the percentage change in volume.

Boyle's Law Formula for V2, V1, P2 and P1
To solve by hand, isolate the unknown. The formula for V2 is V2 = P1 x V1 / P2. For V1 it is V1 = P2 x V2 / P1. For P2 it is P2 = P1 x V1 / V2, and for P1 it is P1 = P2 x V2 / V1. The rearranged formula table shows all four with a worked check.
The steps never change. Convert to one pressure unit and one volume unit, multiply the two known values that sit on the same side of the equation, and divide by the remaining known value. Then ask whether the answer makes sense: if pressure went up, the volume should have gone down.

A useful shortcut is the ratio form. The new volume is the old volume times P1 / P2. Doubling the pressure multiplies the volume by one half.
Units, Gauge Pressure and Absolute Pressure
Boyle's law uses absolute pressure, measured from a perfect vacuum. Most gauges show pressure above the surrounding air, so a reading of zero on a tyre gauge still means about 1 atm absolute. Adding the atmosphere before using the formula matters: a tyre at 32 psi gauge is 46.7 psi absolute.
The pressure type box handles this. Choose gauge and the calculator adds exactly one standard atmosphere, 101,325 Pa, to each pressure you enter, then subtracts it from any pressure it solves. A gauge reading cannot go below minus one atmosphere, which would be a perfect vacuum.

Pressure can be in atm, kPa, bar, mmHg, psi or Pa, and volume in litres, millilitres or cubic metres. The unit table lists the factors. The calculator treats mmHg as the torr, so 760 mmHg is exactly 1 atm. Both pressures must share a unit and both volumes must share a unit.
Compression, Expansion and Everyday Examples
Compressing a gas raises its pressure. A syringe sealed at the tip, a bicycle pump and a squeezed balloon all show it. The compression table starts with 10 L at 1 atm and lists the volume at several final pressures. At 4 atm the gas takes 2.5 L, a drop of 75 percent.

Expansion is the reverse. The expansion table starts with 1 L at 101.325 kPa and shows the volume when the pressure falls to 90, 80, 70, 60, 50 and 30 kPa. Halving the pressure doubles the volume.

A bubble rising in water is a classic case. Because pressure increases by about 1 atm for every 10 m of seawater depth, a bubble is larger near the surface. The bubble table assumes a seawater density of 1,025 kg per cubic metre and a constant temperature. It is physics practice, not guidance for diving or for any pressure equipment.

Boyle's Law, Charles's Law and the Combined Gas Law
Boyle's law fixes the temperature. When the temperature changes too, other gas laws take over. Charles's law, V1/T1 = V2/T2, links volume and temperature at constant pressure. Gay-Lussac's law, P1/T1 = P2/T2, links pressure and temperature at constant volume. In both, temperatures must be in kelvin.
The combined gas law, P1V1/T1 = P2V2/T2, merges them for a fixed amount of gas. If the two temperatures are equal, the T terms cancel and you get Boyle's law. All of them are special cases of the ideal gas law, PV = nRT, which also lets the amount of gas change.

The gas laws table lists each law and what it holds constant. If you only know temperatures in Celsius or Fahrenheit, convert them to kelvin first, for example with the temperature converter linked at the bottom of this page.
When Boyle's Law Holds
The law assumes a fixed amount of gas, a constant temperature and ideal behaviour. A leak, a gas that dissolves into a liquid, or a chemical reaction breaks the first assumption. Squeezing a gas quickly warms it, so a fast compression ends at a higher pressure than the formula predicts, and a fast expansion cools it. Slow changes in a bath that holds the temperature are the best match.
Real gases follow Boyle's law closely at ordinary pressures. At high pressure, molecule size and attractions matter, and the product P x V drifts. Near the point where the gas condenses, the law fails altogether.
For most classroom and planning work, the law is accurate to a small percentage. For anything where a pressure limit matters, use a method intended for the equipment.
Limits of the Estimate and Related Calculators
The result is an estimate for education and planning. It does not know about leaks, temperature changes during the process, vessel flexing or non-ideal gas behaviour. Compressed gas can be dangerous, so use containers and equipment rated for the pressure, follow the manufacturer's instructions and any safety data sheet, and have a qualified person check a pressure system.

To compare two values as a percentage, try the percentage calculator. To convert Celsius or Fahrenheit to kelvin before using the combined gas law, use the temperature converter. For values between two entries of a table, the linear interpolation calculator can help.
Reference Tables
| Unknown | Formula | Numbers | Answer |
|---|---|---|---|
| V2 (final volume) | V2 = P1 x V1 / P2 | 1 × 10 / 2.5 | 4 L |
| V1 (initial volume) | V1 = P2 x V2 / P1 | 2.5 × 4 / 1 | 10 L |
| P2 (final pressure) | P2 = P1 x V1 / V2 | 1 × 10 / 4 | 2.5 atm |
| P1 (initial pressure) | P1 = P2 x V2 / V1 | 2.5 × 4 / 10 | 1 atm |
| Symbol | Meaning | Units in the calculator |
|---|---|---|
| P1 | Starting absolute pressure | atm, kPa, bar, mmHg, psi, Pa |
| V1 | Starting volume | L, mL, m3 |
| P2 | Final absolute pressure | Same unit as P1 |
| V2 | Final volume | Same unit as V1 |
| k | Constant product P x V for a fixed amount of gas at fixed temperature | Pressure unit x volume unit |
| Unit | Pascals | kPa | atm |
|---|---|---|---|
| 1 atm | 101,325 | 101.325 | 1 |
| 1 kPa | 1,000 | 1 | 0.00987 |
| 1 bar | 100,000 | 100 | 0.98692 |
| 1 mmHg (torr) | 133.322 | 0.1333 | 0.001316 |
| 1 psi | 6,894.757 | 6.8948 | 0.06805 |
| Volume (L) | Pressure (atm) | Pressure (kPa) | P x V (atm L) |
|---|---|---|---|
| 1.0 | 10.000 | 1,013.2 | 10.0 |
| 2.0 | 5.000 | 506.6 | 10.0 |
| 2.5 | 4.000 | 405.3 | 10.0 |
| 4.0 | 2.500 | 253.3 | 10.0 |
| 5.0 | 2.000 | 202.7 | 10.0 |
| 10.0 | 1.000 | 101.3 | 10.0 |
| 20.0 | 0.500 | 50.7 | 10.0 |
| 40.0 | 0.250 | 25.3 | 10.0 |
| Final pressure (atm) | Final pressure (kPa) | Final volume (L) | Volume change |
|---|---|---|---|
| 0.25 | 25.3 | 40.000 | 300.0 % |
| 0.50 | 50.7 | 20.000 | 100.0 % |
| 0.80 | 81.1 | 12.500 | 25.0 % |
| 1.50 | 152.0 | 6.667 | -33.3 % |
| 2.00 | 202.7 | 5.000 | -50.0 % |
| 3.00 | 304.0 | 3.333 | -66.7 % |
| 4.00 | 405.3 | 2.500 | -75.0 % |
| 5.00 | 506.6 | 2.000 | -80.0 % |
| Gauge reading (psi) | Absolute (psi) | Absolute (kPa) | Absolute (atm) |
|---|---|---|---|
| 0 | 14.70 | 101.3 | 1.000 |
| 5 | 19.70 | 135.8 | 1.340 |
| 15 | 29.70 | 204.7 | 2.021 |
| 30 | 44.70 | 308.2 | 3.041 |
| 32 | 46.70 | 322.0 | 3.177 |
| 35 | 49.70 | 342.6 | 3.382 |
| 60 | 74.70 | 515.0 | 5.083 |
| 100 | 114.70 | 790.8 | 7.805 |
| Final pressure (kPa) | Final volume (L) | Pressure change | Volume change |
|---|---|---|---|
| 90.0 | 1.126 | -11.2 % | 12.6 % |
| 80.0 | 1.267 | -21.0 % | 26.7 % |
| 70.0 | 1.448 | -30.9 % | 44.8 % |
| 60.0 | 1.689 | -40.8 % | 68.9 % |
| 50.0 | 2.026 | -50.7 % | 102.6 % |
| 30.0 | 3.377 | -70.4 % | 237.8 % |
| Depth (m) | Absolute pressure (atm) | Volume of the bubble (L) | Compared with 30 m |
|---|---|---|---|
| 30 | 3.976 | 10.00 | 1.00 times |
| 20 | 2.984 | 13.32 | 1.33 times |
| 10 | 1.992 | 19.96 | 2.00 times |
| 5 | 1.496 | 26.58 | 2.66 times |
| 0 | 1.000 | 39.76 | 3.98 times |
| Law | Formula | Held constant | Relationship |
|---|---|---|---|
| Boyle's law | P1 V1 = P2 V2 | Temperature, amount | P and V inverse |
| Charles's law | V1 / T1 = V2 / T2 | Pressure, amount | V and T direct (kelvin) |
| Gay-Lussac's law | P1 / T1 = P2 / T2 | Volume, amount | P and T direct (kelvin) |
| Avogadro's law | V1 / n1 = V2 / n2 | Pressure, temperature | V and n direct |
| Combined gas law | P1 V1 / T1 = P2 V2 / T2 | Amount | All three together |
| Mistake | Effect | Fix |
|---|---|---|
| Using gauge pressure | Answer off by about one atmosphere | Switch the calculator to gauge or add 1 atm yourself |
| Mixing units for P1 and P2 | Wrong by the conversion factor | Use the same pressure unit for both, as the calculator does |
| Mixing litres and millilitres | Off by a factor of 1,000 | Pick one volume unit for V1 and V2 |
| Forgetting temperature must stay the same | Result misses the heating or cooling effect | Use the combined gas law when temperature changes |
| Treating a leaky container as closed | The amount of gas changes | Boyle's law needs a fixed amount of gas |
Frequently Asked Questions About the Boyle's Law Calculator
How do you calculate Boyle's law?
Multiply the starting pressure by the starting volume, then divide by whichever final value you know. P1 x V1 = P2 x V2, so V2 = P1 x V1 / P2. With 1 atm, 10 L and a final pressure of 2.5 atm, V2 = 1 × 10 / 2.5 = 4 L. Use absolute pressure and keep the temperature constant.
What is the Boyle's law formula for V2?
V2 = P1 x V1 / P2. The new volume is the old volume multiplied by the ratio of the old pressure to the new one. If the pressure triples, V2 is a third of V1. Starting from 6 L at 1 atm and rising to 3 atm, V2 = 1 × 6 / 3 = 2 L.
What is the Boyle's law formula for V1?
V1 = P2 x V2 / P1. Use it when the final state is known and the starting volume is not. For a final state of 250 kPa and 2 L, with a start of 100 kPa, V1 = 250 × 2 / 100 = 5 L. Choose V1 in the Solve for list and enter the other three values.
How do I find the pressure in Boyle's law?
Rearrange to P2 = P1 x V1 / V2, or P1 = P2 x V2 / V1. A gas at 760 mmHg in 500 mL squeezed into 125 mL ends at 760 × 500 / 125 = 3,040 mmHg, which is 4 atm. The pressure rises by the same factor that the volume falls.
Boyle's law formula example: how does it work?
A syringe holds 20 mL of air at 1 atm. Pushing the plunger until the volume is 5 mL gives P2 = 1 × 20 / 5 = 4 atm, assuming the temperature stays the same. The pressure rises fourfold because the volume is a quarter of what it was. The calculator gives the same result in any unit.
How do you solve Boyle's law step by step?
Write P1 x V1 = P2 x V2. Convert the pressures to one absolute unit and the volumes to one unit. Identify the unknown and rearrange the formula to isolate it. Substitute, calculate, and check that the sign makes sense: a higher pressure should give a smaller volume. The calculator follows exactly these steps.
What is Boyle's law in simple terms?
For a fixed amount of gas at a constant temperature, pressure and volume are inversely proportional: squeeze the gas to half the volume and the pressure doubles. Robert Boyle published the relationship in 1662. The product of pressure and volume stays the same, which is why the graph of P against V is a curve.
What must stay constant for Boyle's law?
The temperature and the amount of gas. If gas leaks out or heat is added, the product P x V changes, and Boyle's law no longer applies on its own. When the temperature changes as well, use the combined gas law, P1V1/T1 = P2V2/T2, with the temperatures in kelvin.
Do I use gauge or absolute pressure?
Boyle's law needs absolute pressure. A gauge shows the pressure above the atmosphere, so add about 1 atm. A tyre at 32 psi gauge is 46.7 psi absolute. Set the Pressure type to gauge and the calculator adds the atmosphere for you, then subtracts it from any pressure it solves.
Which units can the Boyle's law calculator use?
Pressure can be atm, kPa, bar, mmHg, psi or Pa, and volume can be litres, millilitres or cubic metres. Both pressures share one unit and both volumes share one unit, so the answer comes back in the units you chose. Any pair of units gives the same physical result.
Is there a Boyle's law calculator app?
You do not need to install anything. This calculator runs in the browser on a phone, tablet or computer, and it updates as you type. Choose what to solve for, enter three values with their units, and the fourth appears. It works without an account or a download.
What is Charles's law and is there a calculator for it?
Charles's law says volume is proportional to kelvin temperature at constant pressure, V1/T1 = V2/T2. A gas of 10 L at 300 K reaches 11.67 L at 350 K. Boyle's law covers a pressure change at constant temperature, and the two combine into the combined gas law.
Why are pressure and volume inversely related?
Gas pressure comes from molecules hitting the walls. Halve the volume and the same molecules hit the walls twice as often, so the pressure doubles, provided the temperature, and so the average speed of the molecules, is unchanged. That is why the product P x V stays the same.
What does a Boyle's law graph look like?
Pressure plotted against volume is a curve that falls steeply and then flattens, called a hyperbola. A plot of pressure against 1/V is a straight line through the origin. With P x V = 10 atm L, the point (2 L, 5.0 atm) and (5 L, 2.0 atm) both lie on the same curve.
How does Boyle's law apply to a syringe or pump?
Moving the plunger changes the volume, so the pressure of the trapped air changes the opposite way. Pushing in raises the pressure, pulling out lowers it. The effect is largest for small trapped volumes. In a real pump the air also warms when compressed quickly, so the result is an approximation.
How much does a bubble grow as it rises?
Pressure falls as depth falls, so the bubble expands. In seawater the pressure drops by about 1 atm for every 10 m. A bubble that is 10 L at 30 m grows to 20.0 L at 10 m and 39.8 L at the surface, if its temperature is constant. This is for physics practice only.
What happens to volume when pressure is halved?
The volume doubles, at constant temperature. From 1 L at 101.325 kPa, dropping to 50.6625 kPa gives 2 L. A pressure cut to a quarter makes the volume four times larger. The expansion table lists several pressures and the volume each one gives.
Is Boyle's law the same as the ideal gas law?
It is a special case. The ideal gas law, PV = nRT, includes the amount of gas and the temperature. Hold n and T fixed and PV is a constant, which is Boyle's law. Real gases follow Boyle's law closely near normal pressure and temperature, and drift away at high pressure.
When does Boyle's law stop being accurate?
It becomes less accurate at high pressure, at low temperature close to condensation, and for gases with strong attractions between molecules. Rapid compression also warms the gas, which breaks the constant temperature condition. Treat results from very large pressure changes as rough estimates and follow equipment ratings.
Is it safe to compress gas based on these results?
The calculation is an estimate for education and planning. Compressing or storing gas is hazardous. Use containers rated for the pressure, follow the manufacturer's instructions and safety data sheets, and have a qualified person check any pressure system. Never rely on a web calculator for safety limits.
References
- [1] Wikipedia contributors. “Boyle's law.” Wikipedia. Accessed 2026-10-07.
- [2] Wikipedia contributors. “Gas laws.” Wikipedia. Accessed 2026-10-07.
- [3] Wikipedia contributors. “Pressure measurement (gauge pressure).” Wikipedia. Accessed 2026-10-07.
- [4] Wikipedia contributors. “Standard atmosphere (unit).” Wikipedia. Accessed 2026-10-07.
Related calculators
- Amps to Kilowatts CalculatorConvert amps to kilowatts for DC, single-phase and three-phase circuits, with power factor, kVA, kWh per day or month and an optional energy cost.Open
- Binomial Distribution CalculatorBinomial distribution calculator. Enter trials, success probability and successes for exact, at most, at least and between probabilities, plus mean.Open
- Box Plot CalculatorBox plot calculator with steps: get Q1, median, Q3, whiskers, fences and outliers from data or five numbers, with a text box and whisker plot.Open
- Coefficient of Variation CalculatorCoefficient of variation calculator with steps. Enter data or a mean and SD to get CV%, standard deviation and variance, sample or population.Open
