molecalculator

Moles & Molar Mass

Gas Volume vs Pressure: How They Relate

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

New absolute pressure 202.650 kPa
New pressure divided by starting pressure
2.000
= New absolute pressure ÷ Starting absolute pressure
Starting absolute pressure
101.325 kPa
Set in the form below
Starting gas volume
2 L
Set in the form below
You enter
Starting absolute pressure (kPa), Starting gas volume (L), New gas volume (L)
You get
New absolute pressure (kPa), New pressure divided by starting pressure
Rounding
3 dp

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 calculator finds the pressure of a fixed amount of gas when its volume changes, using Boyle’s law at constant temperature. Enter the starting pressure and volume plus the new volume; it returns the new pressure and the pressure change.

Formula

Boyle’s law says that, for a fixed amount of gas at constant temperature, pressure multiplied by volume remains constant:

P₁V₁ = P₂V₂, so P₂ = P₁V₁ / V₂.

  • P₁ is the initial absolute pressure, in kilopascals (kPa).
  • V₁ is the initial gas volume, in liters (L).
  • P₂ is the final absolute pressure, in kPa.
  • V₂ is the final gas volume, in L.

The ratio output is P₂/P₁, a unitless comparison. The formula requires the same pressure units on both sides and the same volume units on both sides; the calculator uses kPa and L. Pressure must be absolute, measured from a perfect vacuum, rather than gauge pressure measured relative to the surrounding atmosphere.

Worked Example

Using the exact default inputs, P₁ = 101.325 kPa, V₁ = 2 L, and V₂ = 1 L:

P₂ = P₁V₁ / V₂ = (101.325 kPa × 2 L) / 1 L = 202.650 kPa, or 202.650 kPa to three decimal places.

Pressure ratio = P₂/P₁ = 202.650 / 101.325 = 2.000.

Halving the volume doubles the absolute pressure in this idealized, constant-temperature example.

Assumptions

  • The gas amount is fixed: gas is neither added nor removed.
  • The gas behaves ideally over the pressure and temperature range considered.
  • Temperature remains constant during the change.
  • Both pressures are absolute, not gauge pressures.
  • The gas occupies the stated volume uniformly and is at equilibrium.

How Gas Volume and Pressure Relate

For a fixed amount of gas at constant temperature, volume and absolute pressure are inversely proportional. If volume falls to half its initial value, pressure rises to twice its initial value; if volume doubles, pressure falls to half. This inverse relationship is often called Boyle’s law, after Robert Boyle’s seventeenth-century experiments with air.

At a microscopic level, gas molecules move randomly and collide with the walls of their container. Pressure comes from the force of those collisions per unit area. When a gas is compressed into less space, molecules reach the walls more frequently, raising pressure. In a sealed, rigid container, by contrast, volume cannot change freely: adding gas or heating it can raise pressure instead.

The calculator describes a change between two states, not the force needed to compress a real object. It does not account for the container’s stiffness, heat transfer during compression, leaks, or chemical reactions.

When Boyle’s Law Applies

The law is a useful approximation when the gas amount stays fixed, temperature is steady, and gas behavior is close to ideal. It is commonly used for basic gas-law problems and for estimating how pressure changes as a sealed gas space expands or contracts. Real gases can depart from the simple relationship, especially at high pressures or near condensation, where molecules interact more strongly and their own volume matters.

Temperature is a particularly important condition. Compressing gas quickly often warms it; allowing it to expand quickly often cools it. If temperature changes, Boyle’s law by itself is insufficient. The combined gas law accounts for pressure, volume, and temperature for a fixed amount of gas:

P₁V₁/T₁ = P₂V₂/T₂, where temperatures are in kelvins. For a changing amount of gas, the ideal gas law, PV = nRT, also includes the amount n in moles.

Absolute Pressure, Gauge Pressure, and Units

A common source of wrong answers is using gauge pressure as though it were absolute pressure. Gauge pressure is relative to local atmospheric pressure; at ordinary conditions, a gauge reading of zero means the gas is approximately at atmospheric pressure, not at zero absolute pressure. Boyle’s law uses absolute pressure because pressure ratios must be measured from a vacuum baseline.

Convert a gauge reading before using the equation: absolute pressure equals gauge pressure plus local atmospheric pressure, with both values in the same units. Standard atmospheric pressure is 101.325 kPa, but actual atmospheric pressure varies with weather and elevation. Do not use that standard value as a substitute when a more accurate local value is needed.

Keep units consistent. If the initial pressure is in bar, convert it to kPa or express the final pressure in bar as well; the pressure unit cancels only when calculating a ratio. Likewise, use liters for both volumes or another common volume unit for both. A liter is 1,000 milliliters. The gas-law relationship itself does not depend on a particular unit system.

Reading the Result and Common Limits

The first result is the predicted final absolute pressure. The ratio tells how many times larger or smaller it is than the starting pressure: a ratio of 2 means twice the pressure, while 0.5 means half. The model requires positive pressure and volume. A zero final volume is impossible for this calculation, and a negative volume has no physical meaning.

Use the result as a gas-law estimate, not as a container rating or a safety limit. A real gas may not follow the ideal model closely under every condition, and the actual pressure can also depend on temperature changes, leakage, container deformation, and measurement uncertainty. Do not infer that a vessel is safe to pressurize based on this calculation; use the relevant equipment specifications and applicable procedures.

For laboratory planning, follow your lab method, the safety data sheet (SDS), and your supervisor. The calculation is arithmetic, not a procedure for producing or handling a gas.

Frequently Asked Questions

Does gas pressure increase when volume decreases?
Usually, for a fixed amount of gas at constant temperature, yes. Boyle’s law predicts that pressure rises in inverse proportion to volume: halving the volume doubles the absolute pressure.

What happens to pressure if gas volume doubles?
If the amount of gas and temperature remain constant, absolute pressure falls to half its starting value. This prediction assumes the gas behaves ideally and uses absolute pressure.

Can I use gauge pressure in Boyle’s law?
Not directly. Convert gauge pressure to absolute pressure by adding local atmospheric pressure in matching units, then apply the equation. Using gauge pressure can produce a substantially incorrect result.

Does temperature affect the volume-pressure relationship?
Yes. Boyle’s law holds only when temperature is constant. If temperature changes, use the combined gas law for a fixed amount of gas, with temperatures expressed in kelvins.

Why does a compressed gas sometimes get warm?
Compression can transfer work to the gas and raise its temperature, particularly when it happens quickly. That violates Boyle’s law’s constant-temperature assumption, so the simple pressure estimate may not describe the immediate state accurately.

Related

Formula used
in p1 | Starting absolute pressure | kPa | 101.325 | 0
in v1 | Starting gas volume | L | 2 | 0
in v2 | New gas volume | L | 1 | 0
out p2 | New absolute pressure | kPa | p1 * v1 / v2 | 3
out ratio | New pressure divided by starting pressure | - | p2 / p1 | 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 →