molecalculator

Moles & Molar Mass

Pressure to Volume Calculator: Boyle’s Law Made Simple

Calculator No. 01-7473 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

This pressure to volume calculator applies Boyle’s Law (P₁V₁ = P₂V₂) to find the new volume of a gas when pressure changes at constant temperature, or the new pressure when volume changes. Enter the initial pressure and volume plus one final condition, and the calculator returns the missing value. It is ideal for gas law homework, lab prep, and quick checks of how gases respond to compression or expansion.

Formula

Boyle’s Law states that for a fixed amount of gas at constant temperature, pressure and volume are inversely proportional:

P₁V₁ = P₂V₂

Where:

  • P₁ = initial pressure (atm, kPa, mmHg, or any consistent unit)
  • V₁ = initial volume (L, mL, m³, or any consistent unit)
  • P₂ = final pressure (same unit as P₁)
  • V₂ = final volume (same unit as V₁)

To solve for final volume: V₂ = P₁V₁ / P₂
To solve for final pressure: P₂ = P₁V₁ / V₂

The calculator uses these rearranged forms directly. You only need to enter one final condition; the other is computed.

Worked Example

Using the default values: P₁ = 1.0 atm, V₁ = 2.0 L, P₂ = 2.0 atm.

Step 1: Write the equation for final volume:
V₂ = P₁V₁ / P₂

Step 2: Substitute the numbers:
V₂ = (1.0 atm × 2.0 L) / 2.0 atm

Step 3: Calculate:
V₂ = 2.0 L·atm / 2.0 atm = 1.0 L

The calculator shows 1.0 L for the final volume, matching the default V₂. If you instead gave V₂ = 1.0 L and left P₂ blank, the calculator would compute P₂ = (1.0 atm × 2.0 L) / 1.0 L = 2.0 atm.

Assumptions

  • The gas behaves ideally (no intermolecular forces, negligible molecular volume).
  • Temperature is constant throughout the process.
  • The amount of gas (number of moles) does not change.
  • Pressure and volume units are consistent—if you mix atm and kPa, the result will be wrong.

When to Use This Calculator

This calculator is for any situation where a gas is compressed or expanded at constant temperature. Common uses include:

  • Solving textbook Boyle’s Law problems (e.g., a syringe, a balloon, a piston).
  • Estimating how a gas volume changes when pressure changes in a closed system (e.g., scuba tank, aerosol can).
  • Laboratory planning: checking if a gas sample will fit in a container at a given pressure.
  • Quick sanity checks for gas law experiments.

It does not apply when temperature changes (use the combined gas law) or when the gas condenses to a liquid.

How to Read the Result

The first output (Final volume) is the headline answer when you provide a final pressure. The second output (Final pressure) is the headline when you provide a final volume. Whichever you leave blank, the calculator fills in.

If the result is smaller than the initial volume, the gas was compressed (pressure increased). If larger, the gas expanded (pressure decreased). The product of pressure and volume should remain constant—check that P₁V₁ ≈ P₂V₂ with your numbers.

For example, if you double the pressure, the volume halves. If you halve the pressure, the volume doubles. This inverse relationship is the core of Boyle’s Law.

Common Mistakes and Unit Mix-Ups

  • Mixing pressure units: If P₁ is in atm and P₂ is in kPa, the equation fails. Convert all pressures to the same unit first (1 atm = 101.325 kPa = 760 mmHg).
  • Mixing volume units: Use all liters or all milliliters, not a mix. The calculator assumes you enter consistent units; it does not convert.
  • Forgetting temperature must be constant: If the gas heats up during compression, Boyle’s Law alone is not accurate—use the combined gas law.
  • Rounding too early: Keep at least three significant figures through intermediate steps to avoid errors.
  • Using gauge pressure instead of absolute pressure: Boyle’s Law requires absolute pressure (add atmospheric pressure to gauge pressure). For example, a tire gauge reading of 30 psi is actually about 44.7 psi absolute.

Limits of Boyle’s Law

Boyle’s Law is an idealization. Real gases deviate at high pressures (where molecules are close together) and low temperatures (where intermolecular forces matter). For most classroom and lab situations at moderate pressures (a few atm) and room temperature, the error is small. If you work with gases like carbon dioxide or propane at high pressure, consider using the van der Waals equation or a real-gas table.

Also, the law assumes the gas does not change amount. If a valve is opened or gas is added, the number of moles changes, and you need the ideal gas law (PV = nRT) instead.

Frequently Asked Questions

Does this calculator work for any gas?

Yes, for any gas that behaves ideally. At room temperature and pressures below about 10 atm, most common gases (air, oxygen, nitrogen, helium) follow Boyle’s Law closely. For very high pressures or near condensation, results are approximate.

What if I have pressure in kPa and volume in mL?

You can use any units, as long as both pressures share the same unit and both volumes share the same unit. For example, enter P₁ = 101.325 kPa and P₂ = 202.65 kPa with V₁ = 500 mL; the calculator returns V₂ in mL. The calculator does not force SI units.

Is Boyle’s Law the same as the ideal gas law?

No. Boyle’s Law is a special case of the ideal gas law (PV = nRT) when temperature (T) and moles (n) are constant. The ideal gas law also relates pressure, volume, temperature, and amount, and is more general.

Why does the calculator have two outputs?

Because you can solve for either final volume (given final pressure) or final pressure (given final volume). The calculator shows both, but only the one you didn’t enter is meaningful. If you enter both P₂ and V₂, the calculator will still show both, but they may not match—use the one you need.

Can I use this for a scuba tank?

Yes, for a rough estimate. A scuba tank has a fixed volume, so if you know the pressure drop, you can estimate the volume of gas released at surface pressure. However, temperature changes during diving affect accuracy, and real tanks have non-ideal behavior at high pressure (200+ atm).

What is the difference between absolute and gauge pressure?

Gauge pressure is what a typical pressure gauge reads—it measures pressure above atmospheric. Absolute pressure includes atmospheric pressure (about 1 atm or 101.325 kPa). Boyle’s Law requires absolute pressure. If you have a gauge reading of 2 atm, the absolute pressure is 3 atm (2 + 1).

For lab work, always follow your lab method, the safety data sheet (SDS), and your supervisor’s instructions. This calculator is for study and planning only, not for clinical or medical use.

Related

Formula used
in p1 | Initial pressure (P₁) | atm | 1.0 | 0 | -
in v1 | Initial volume (V₁) | L | 2.0 | 0 | -
in p2 | Final pressure (P₂) | atm | 2.0 | 0 | -
in v2 | Final volume (V₂) | L | 1.0 | 0 | -
out vcalc | Final volume (if P₂ given) | L | v1 * p1 / p2 | 3 |
out pcalc | Final pressure (if V₂ given) | atm | p1 * v1 / v2 | 3 |

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →