Ideal Gas Law Calculator (PV = mRT)

The ideal gas law links the pressure, volume, temperature and mass of a gas. This calculator solves for any one of them for common industrial gases, so you can find how much air is in a receiver, what pressure a heated cylinder reaches, or how big a buffer vessel needs to be.

Inputs

Results

Result
Mass 9.523 kg (20.99 lb)
Absolute pressure
801.3
Volume
1,000
Temperature
20
Mass
9.523
Density
9.523
Amount of gas (mol)
328.76

    RefENG-HT-012
    MethodP·V = m·R·T, R = 8314.46 / M
    UnitsSI
    Date2026-11-23

    Working

    Calculated in SI base units; inputs are converted from the units you choose.

    1. Gas constant and molar massR = R_u / MR = 287.1 J/kg·K, M = 28.97 g/mol
    2. Ideal gas lawP·V = m·R·T801,325 Pa × 1 m³ = 9.523 kg × 287.1 × 293.2 K

    Always use absolute values

    Pressure must be absolute (gauge plus atmospheric) and temperature must be absolute (kelvin or rankine). Using gauge pressure is the most common error and underestimates the gas mass.

    Assumptions and limits

    • Ideal gas (compressibility factor Z = 1).
    • Uniform temperature and pressure.

    References

    • Çengel, Y. A. and Boles, M. A., Thermodynamics: An Engineering Approach, chapter 3.
    • CODATA 2018, molar gas constant 8.314462618 J/mol·K.

    Questions

    How much air is in a 1000 litre receiver at 7 barg?
    About 9.5 kg at 20 °C (8.01 bar absolute).
    When does the ideal gas law stop being accurate?
    At high pressure or near condensation. For air and nitrogen it is within about 1 % up to 50 bar at room temperature; CO₂ and propane deviate much sooner.

    This calculator is a design aid. Check results against the governing code or standard and have critical work verified by a qualified engineer. Read the disclaimer.