Boyle's Law Calculator

New pressure P₂200
Constant P × V400
Volume change4 → 2
How this was calculated
  1. Boyle's law: at constant temperature, P₁V₁ = P₂V₂. The constant is 100 × 4 = 400.
  2. So P₂ = 400 ÷ 2 = 200. Squeeze the volume and the pressure rises in exact inverse proportion — double the pressure, half the volume.
  3. The catch: temperature must genuinely stay constant, and the pressures must be absolute, not gauge — a gauge reading leaves out the roughly 101 kPa of atmosphere pushing on everything.

This boyles law calculator solves the classic gas-law relationship P₁V₁ = P₂V₂, which states that at a constant temperature, the product of pressure and volume stays constant. Enter any three of the four values and the tool instantly returns the missing one. For example, 100 kPa in 4 L squeezed to 2 L reaches exactly 200 kPa. Likewise, 150 kPa × 3 L expanded against 450 kPa ends at 1 L, and 200 kPa × 0.5 L released into 2 L falls to 50 kPa. Note that pressure must be absolute, not gauge: a gauge omits the roughly 101 kPa of atmosphere pressing on everything.

Boyle published the relationship in 1662, from air-spring experiments with a J-shaped tube, and P₁V₁ = P₂V₂ remains the accepted standard for ideal-gas calculations at fixed temperature. Real gases deviate at high pressure and near condensation, but for everyday conditions the formula is reliable and exact. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result yourself.

Worked examples

Halve the volume

Primary result: 200. (New pressure P₂ · 100 kPa · 4 L · 2 L · 200 kPa)

New pressure P₂200
Constant P × V400
Volume change4 → 2

Triple the pressure

Primary result: 1. (New volume V₂ · 150 kPa · 3 L · 2 L · 450 kPa)

New volume V₂1
Constant P × V450
Pressure change150 → 450

Let it expand fourfold

Primary result: 50. (New pressure P₂ · 200 kPa · 0.5 L · 2 L · 200 kPa)

New pressure P₂50
Constant P × V100
Volume change0.5 → 2

Pressure and volume trade places

Pressure and volume trade places in a precise, inverse way: when one goes up, the other goes down by the same factor. Boyle's law states that at constant temperature, pressure multiplied by volume is constant, written as P₁V₁ = P₂V₂. Squeeze a sealed container to half its volume and the pressure inside doubles; let it expand to twice the volume and the pressure drops to half. The product of the two values never changes, so long as the temperature holds steady.

A quick example makes the trade clear. Start with air at 100 kPa in a 4 L container. Squeeze that air down to 2 L and the pressure reaches exactly 200 kPa. The volume fell by half, so the pressure rose by half in return, and the product stayed the same: 100 × 4 equals 200 × 2. The same logic works in reverse. Air at 150 kPa occupying 3 L, when expanded against a final pressure of 450 kPa, ends up at 1 L. Likewise, gas at 200 kPa in 0.5 L, released into a larger 2 L space, falls to 50 kPa. Each time, the numbers before and after multiply to the same constant.

One detail trips up many calculations: the pressure in the formula must be absolute, not gauge. A gauge reads zero at atmospheric pressure, so it omits the roughly 101 kPa of atmosphere pressing on everything. Use gauge pressure and the math breaks down; add atmospheric pressure first, then apply the formula. A boyles law calculator that handles unit conversions and absolute-pressure correction takes the guesswork out of this step.

Boyle published the relationship in 1662, based on air-spring experiments with a J-shaped tube in which a column of mercury trapped a fixed amount of air. He observed the trapped air push back as he added mercury, and the inverse pattern held as long as the temperature stayed the same. The law describes ideal gases at fixed temperature. Real gases deviate at high pressure and near condensation, where molecules crowd together and interact, so results become less exact under those conditions.

Always convert gauge pressure to absolute pressure before using P₁V₁ = P₂V₂. Gauge readings leave out the ~101 kPa of atmospheric pressure, which will throw the result off.

Worked examples

The table below shows three verified compressions and expansions that follow Boyle's law. Each row demonstrates the core relationship: at constant temperature, pressure multiplied by volume stays constant, so P₁V₁ = P₂V₂. These examples illustrate exactly what a boyles law calculator computes when you enter any two known values.

Notice that the first example doubles the pressure by halving the volume, while the second example cuts the pressure to one-third by tripling the volume. The third example shows the reverse: releasing gas from a small, high-pressure container into a larger volume causes the pressure to drop proportionally. In every case the product of pressure and volume before the change equals the product after the change.

One critical detail often trips up calculations: pressure must be expressed as absolute pressure, not gauge pressure. A standard gauge reads zero at atmospheric pressure and omits the roughly 101 kPa of atmosphere pressing on everything. If you feed gauge values into the equation, the results will be wrong. Always add atmospheric pressure to gauge readings before calculating, and subtract it afterward if you need to report a gauge value.

These examples hold for ideal gases at a fixed temperature. Real gases deviate from the relationship at high pressure and near condensation, where intermolecular forces and molecular volume become significant. Boyle himself published the relationship in 1662, based on air-spring experiments he conducted with a J-shaped tube, and his findings remain the foundation of this calculator.

Starting pressureStarting volumeFinal pressureFinal volumeChange
100 kPa4 L200 kPa2 LCompression
150 kPa3 L450 kPa1 LCompression
200 kPa0.5 L50 kPa2 LExpansion
Always use absolute pressure in Boyle's law calculations. Gauge pressure omits the ~101 kPa of atmospheric pressure, which will throw off your results.

Use absolute pressure

When you use a boyles law calculator, the most common mistake is entering gauge pressure instead of absolute pressure. A pressure gauge reads zero when it is simply open to the air, but that does not mean there is no pressure. The atmosphere is already pressing down on everything with roughly 101 kPa of pressure. A gauge ignores that background pressure and only reports the difference above or below atmospheric. Boyle's law, however, depends on absolute pressure, which is the total pressure inside the container.

Boyle's law states that at constant temperature, pressure times volume is constant: P₁V₁ = P₂V₂. Because the relationship uses absolute values, skipping the atmospheric correction throws the result off. Consider a sample at 100 kPa in 4 L. When it is squeezed to 2 L, the pressure reaches exactly 200 kPa. That calculation is straightforward because 100 kPa is already an absolute figure. But if your gauge reads 0 kPa for that same starting condition, you have to add the 101 kPa of atmospheric pressure before doing any math. Without that step, the law simply does not produce a correct answer.

The correction matters in both directions. When 150 kPa × 3 L expands against 450 kPa, the gas ends at 1 L. When 200 kPa × 0.5 L is released into 2 L, the pressure falls to 50 kPa. In every case, the pressures are absolute. A gauge reading of 50 kPa would actually correspond to about 151 kPa absolute, which is the number that belongs in the equation. The same logic applies when a container is evacuated: a gauge might show negative pressure, but the absolute pressure is what you must plug into the formula.

Boyle published this relationship in 1662, based on air-spring experiments with a J-shaped tube. The law holds for ideal gases at fixed temperature, while real gases deviate at high pressure and near condensation. Even so, the absolute-pressure rule remains the same. Whether you are compressing or expanding a gas, always convert gauge readings to absolute before calculating.

  • Absolute pressure = gauge pressure + ~101 kPa (atmospheric pressure)
  • A gauge reads zero at atmospheric pressure, but absolute pressure is never zero at sea level
  • Boyle's law requires absolute pressure on both sides of P₁V₁ = P₂V₂
  • Real gases deviate from the law at high pressure and near condensation
If your gauge reads 0 kPa, the absolute pressure is about 101 kPa. Always add atmospheric pressure before using the formula.

The constant-temperature condition

The constant-temperature condition is the single most important assumption behind Boyle's law, which states that at constant temperature, pressure multiplied by volume is constant, expressed as P₁V₁ = P₂V₂. When you use a boyles law calculator, you are relying on that assumption completely. The math is straightforward: gas at 100 kPa in 4 L squeezed to 2 L reaches exactly 200 kPa. Likewise, 150 kPa × 3 L expanded against 450 kPa ends at 1 L, and 200 kPa × 0.5 L released into 2 L falls to 50 kPa. Every one of those results depends on the gas staying at the same temperature throughout the change.

Fast compression breaks that condition in practice. When you compress a gas quickly, the work done on it shows up as heat, raising the gas temperature above its starting value. At that moment the pressure reads higher than Boyle's law predicts, and the law appears broken. The same problem occurs with rapid expansion, which cools the gas and leaves the pressure lower than expected. The fix is simple: let the gas settle. Give it time to exchange heat with its surroundings and return to the original temperature. Once it does, the relationship holds again and the calculator gives the right answer.

Boyle's law holds for ideal gases at fixed temperature, and real gases come close to that ideal under moderate conditions. Real gases deviate at high pressure and near condensation, where molecules are close enough together that their own volume and mutual attraction matter. For everyday pressures and well above the condensation point, the law works well enough that the deviation is negligible.

One more requirement is easy to overlook: the pressure must be absolute, not gauge. A gauge omits the roughly 101 kPa of atmosphere pressing on everything, so a gauge reading of zero actually means about 101 kPa absolute. Feeding gauge pressure into the formula produces results that are off by a full atmosphere. Always convert to absolute pressure before calculating. Boyle published the relationship in 1662, from air-spring experiments with a J-shaped tube, and the constant-temperature condition has been part of its correct use ever since.

Boyle's law around you

Boyle's law shows up wherever air gets squeezed or stretched, and you can test each case with a boyles law calculator. The relationship, published by Robert Boyle in 1662 from air-spring experiments with a J-shaped tube, states that at constant temperature, pressure times volume is constant: P₁V₁ = P₂V₂. When you reduce the space a gas takes up, the pressure rises. When you give it more room, the pressure falls.

Breathing is a direct demonstration. Your diaphragm drops and your chest expands, so the volume inside your lungs increases and the pressure drops below the surrounding air. Air flows in to equalize the difference. When you exhale, the volume shrinks and pressure rises, pushing air back out. A syringe works the same way: pull the plunger and the chamber grows, pressure drops, and fluid is drawn in; push the plunger and the chamber shrinks, pressure climbs, and fluid is forced out.

Scuba divers live with this law every time they descend or ascend. The deeper a diver goes, the greater the water pressure on the air in their tank and body. A balloon taken underwater shrinks as pressure compresses the gas inside. Bring it back up and it expands again. The numbers track the formula exactly: 100 kPa in 4 L squeezed to 2 L reaches exactly 200 kPa, and 150 kPa × 3 L expanded against 450 kPa ends at 1 L. Release gas the other way and the same rule holds: 200 kPa × 0.5 L released into 2 L falls to 50 kPa.

One detail trips people up: pressure must be absolute, not gauge. A gauge omits the ~101 kPa of atmosphere pressing on everything, so a gauge reading of 0 at sea level does not mean zero pressure. Use absolute values in the formula or the result will be wrong. Also remember the law holds for ideal gases at fixed temperature; real gases deviate at high pressure and near condensation.

  • Lungs: expanding the chest lowers pressure so air flows in; compressing it raises pressure so air flows out.
  • Syringes: drawing the plunger increases volume and lowers pressure to pull fluid in; pushing it shrinks volume and raises pressure to force fluid out.
  • Scuba: rising water pressure compresses air spaces on the way down; falling pressure lets them expand on the way up.
  • Balloons: underwater pressure shrinks the gas inside; returning to the surface lets it expand again.
Always use absolute pressure in the formula. A gauge reading skips the ~101 kPa of atmosphere, so it will throw off your result.

Where the law bends

Boyle's law holds for ideal gases at fixed temperature, but real gases do not behave this way under every condition. The relationship Boyle published in 1662, drawn from air-spring experiments with a J-shaped tube, describes an ideal gas at constant temperature, where pressure multiplied by volume stays constant. A boyles law calculator relies on this clean relationship, so it works best when the gas is far from condensing and the pressure is not extreme.

The verified examples that confirm the law also reveal its limits. When 100 kPa in 4 L is squeezed to 2 L, the pressure reaches exactly 200 kPa, and when 150 kPa multiplied by 3 L expands against 450 kPa, the volume ends at 1 L. The law also holds when 200 kPa multiplied by 0.5 L is released into 2 L, dropping the pressure to 50 kPa. These results are exact for an ideal gas, but real gases deviate at high pressure and near condensation, where molecules occupy meaningful space and attract each other.

At high pressure, the molecules themselves take up a noticeable share of the container, so the volume you measure is no longer the free space the gas can actually occupy. Near condensation, intermolecular attractions pull molecules together, so the gas compresses more than the law predicts. As a gas approaches its condensation point, it stops acting like an ideal gas and the simple equation starts to lose accuracy.

These deviations do not make the law useless, but they do set a boundary on when to trust it. For air at room temperature and moderate pressure, the law matches reality closely. Push the pressure high enough or cool the gas toward condensation, and the results from a calculator will need correction. The law is a strong model, not a universal rule, and it bends wherever real gas behavior takes over.

FAQs

What is Boyle's law formula?

The formula is P₁V₁ = P₂V₂ at constant temperature. For example, squeeze 100 kPa × 4 L into 2 L and the pressure doubles to 200 kPa. This shows the inverse relationship: as volume decreases, pressure increases proportionally, as long as temperature remains unchanged.

If I halve the volume, what happens to the pressure?

It doubles. Using the verified example: 100 × 4 = 400, and 400 ÷ 2 = 200 kPa. When you cut the volume in half, the pressure rises by the same factor, keeping the product of pressure and volume constant throughout the process.

Why must I use absolute pressure?

Add atmospheric pressure (~101 kPa or 14.7 psi) to the gauge reading — Boyle's law counts all the pressure, not just the extra. Gauge pressure only measures the difference above atmospheric, so using it directly would give incorrect results in the formula.

Does temperature really stay constant?

It stays fixed by definition of the setup; in fast compressions the gas warms and the law needs the temperature to settle first. Boyle's law assumes isothermal conditions, so you must allow any temperature changes to equalize before applying the formula.

Where does Boyle's law show up in real life?

Scuba tanks, syringes, breathing (the lungs are a Boyle's-law pump), and weather balloons expanding as they rise. These examples all rely on the inverse pressure-volume relationship, whether compressing air into a tank, drawing fluid into a syringe, or expanding at altitude.

Can Boyle's law fail?

At very high pressures or near liquefaction, yes — molecular size and attraction stop being negligible. Boyle's law assumes gas molecules occupy no space and do not interact, which breaks down under extreme conditions where real gas behavior deviates from the ideal model.

Sources

Related calculators

Charles's Law Calculator
V₁/T₁ = V₂/T₂ with the Celsius-to-kelvin conversion handled for you — find a heated gas's new volume, or the temperature a target volume needs.
Ideal Gas Law Calculator
PV = nRT solved for whichever variable is missing — pressure, volume, moles or temperature — in kPa, litres, moles and kelvin.
Half-Life Calculator
Radioactive decay three ways: how much remains, how long to reach a target amount, or the half-life implied by two measurements.
Boyle's Law Calculator
P1V1 = P2V2 for a gas at constant temperature — solve for any one pressure or volume from the other three.