Gas Volume Calculator: Find Gas Volume from Pressure
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
A gas volume calculator estimates how much space a gas occupies from its amount, temperature, and pressure, using the ideal gas law. Enter the amount in moles, temperature in kelvins, and pressure in pascals; the calculator returns volume in cubic metres, with a litre conversion for convenience.
Formula
The ideal gas law is PV = nRT. Rearranging to find volume gives V = nRT / P.
- V is gas volume in cubic metres (m³).
- n is amount of gas in moles (mol).
- R is the universal gas constant, 8.314462618 joules per mole-kelvin (J/(mol·K)).
- T is absolute temperature in kelvins (K).
- P is absolute pressure in pascals (Pa).
The litre output uses 1 m³ = 1,000 L. Pressure must be absolute pressure, measured relative to a vacuum—not gauge pressure, which is measured relative to the surrounding atmosphere. The equation uses SI units as shown; mixing values such as litres, Celsius, and kilopascals into the formula without conversion gives an incorrect answer.
Worked Example
Using the calculator’s defaults, n = 1 mol, T = 273.15 K, and P = 101,325 Pa:
- Substitute the values: V = (1 × 8.314462618 × 273.15) / 101,325.
- Calculate: V ≈ 0.02241397 m³.
- Round to three decimal places: 0.022 m³.
- Convert to litres: 0.02241397 × 1,000 = 22.41397 L, which rounds to 22.4 L.
The unrounded result is about 22.414 litres. The cubic-metre output is rounded to three decimal places, so it appears as 0.022 m³; converting that already-rounded display would not reproduce 22.4 L exactly. The litre result is calculated from the unrounded volume.
When to Use a Gas Volume Calculator
This calculation is useful when the quantity of gas, its temperature, and its pressure are known and you want an estimated volume under those conditions. It can help with classroom physics problems, laboratory calculations, or comparing a gas sample at different temperatures and pressures. The result describes the volume the specified amount would occupy at the stated conditions; it is not automatically the capacity of a container or the volume of a liquid.
The equation also shows how conditions change volume. For a fixed amount of gas, raising temperature raises volume if pressure stays constant; raising pressure reduces volume if temperature stays constant. These comparisons follow directly from V = nRT/P. If both pressure and temperature change, use their new values together rather than adjusting volume for only one change.
Units, Temperature, and Pressure
Temperature in the formula must be kelvins. To convert Celsius to kelvins, add 273.15: for example, 20°C is 293.15 K. Fahrenheit readings first need conversion to Celsius, then to kelvins. Do not enter a Celsius value directly as though it were kelvins; the kelvin scale begins at absolute zero, which is essential to the gas-law relationship.
Use absolute pressure. For example, a pressure gauge reading of 200 kPa above local atmospheric pressure is not 200 kPa absolute. To get absolute pressure, add the relevant atmospheric pressure to the gauge reading. Near sea level, atmospheric pressure is often approximated as 101.325 kPa, but actual atmospheric pressure varies with weather and elevation. Use the pressure appropriate to the situation.
Useful conversions include 1 kPa = 1,000 Pa, 1 bar = 100,000 Pa, and 1 L = 0.001 m³. In US customary settings, volume may be reported in cubic feet (1 m³ ≈ 35.3147 ft³), pressure in pounds per square inch absolute (psia), and temperature in kelvins after conversion. Avoid confusing psia with psig: the latter is gauge pressure. The calculator accepts SI inputs, so convert other units before entering them.
Assumptions and Limits
The ideal gas law treats gas particles as having negligible size and assumes their interactions are sufficiently small to ignore. Many gases behave approximately this way at ordinary conditions, especially when pressure is not high and temperature is not near condensation. Real gases can depart substantially from the ideal prediction at high pressure or low temperature, where molecular interactions and particle volume matter. For those cases, a real-gas equation of state or measured data may be more appropriate.
The result also depends on accurate input data. A calculator cannot determine the amount of gas from a container’s dimensions alone: it needs enough information, such as moles, or a different known relationship linking pressure, volume, temperature, and amount. The equation predicts an equilibrium volume under stated conditions; it does not account for leaks, changing composition, chemical reactions, or a container that prevents the gas from reaching that volume.
Common Mistakes
- Using gauge pressure: Convert to absolute pressure before calculating.
- Entering Celsius or Fahrenheit as kelvins: Convert temperature to K first.
- Mixing units: Convert pressure to Pa and amount to mol, and keep track of volume conversions.
- Rounding too early: Keep unrounded values for intermediate calculations, then round the final display to a sensible precision.
- Assuming ideal behavior always applies: Check whether the gas and conditions make the ideal-gas approximation reasonable.
Frequently Asked Questions
How do I calculate gas volume?
For an ideal gas, use V = nRT/P. Put the amount in moles, temperature in kelvins, and absolute pressure in pascals to obtain volume in cubic metres.
Can I calculate gas volume without knowing the number of moles?
Not from temperature and pressure alone. You also need the amount of gas, or another sufficient set of known quantities—for example, a known volume in the same gas-law relationship.
Should I use gauge pressure or absolute pressure?
Use absolute pressure. Gauge pressure excludes atmospheric pressure, so add atmospheric pressure to a gauge reading before using the ideal gas law.
Does the calculator work with Celsius?
Convert Celsius to kelvins by adding 273.15 before entering the temperature. The ideal gas law requires absolute temperature, not Celsius.
Why might the calculated volume differ from a real gas measurement?
The ideal gas law is an approximation. Real-gas effects become more important at high pressure, low temperature, or conditions near a phase change; measurement uncertainty can also contribute.
Related
Formula used
in n | Amount of gas | mol | 1 | 0 in T | Temperature | K | 273.15 | 0 in P | Absolute pressure | Pa | 101325 | 0 out V | Gas volume | m³ | n * 8.314462618 * T / P | 3 out L | Gas volume | L | V * 1000 | 1
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, rounded as each result states. See how the calculators work or report an error.