Flow Rate CalculatorLiquid, gas & engineering tools

Flow rate calculators / Gas & compressed air

Measure flow. Understand the conditions.

Gas Density Calculator

Calculate a stated gas density using molar mass and an explicit compressibility factor.

Your flow inputs

kPa abs
°C
g/mol
ratio

Starting values are illustrative. Check units and assumptions below. Calculate submits your inputs to this site’s result page.

Reset

Your result

Ready to calculate

Enter your values and press Calculate. The result will open on the calculation page.

Published references · Clear assumptions · No sign-up

The method

Formula and calculation steps

Density = absolute pressure Pa × molar mass kg/mol / (Z × universal gas constant × Kelvin temperature).

Calculate a stated gas density using molar mass and an explicit compressibility factor.

  1. Choose a measurement plane and use compatible units for all inputs.
  2. Obtain appropriate product data or representative measurements for the stated model.
  3. Submit the form, then interpret the result with the assumptions and limits below.

No phase equilibrium, steam tables or automatic mixture-property database is included.

Gas Density calculation: inputs and interpretation

The molar-mass example represents a dry-air approximation. Other gases and mixtures need their own composition basis. The equation uses the universal gas constant, so a g/mol input is converted to kg/mol rather than treated as a specific gas constant.

Always distinguish absolute pressure from gauge pressure and absolute temperature from Celsius. Standard and normal volume rates require a stated reference condition. Real-gas properties, moisture and two-phase behavior are included only where explicitly described in the model.

Check the numbers

Gas Density Calculator: calculated examples

These are computed scenarios using the same server calculation as the form. They are not manufacturer ratings or prescribed design values.

Worked example with stated inputs

Absolute pressure = 101.325 kPa abs; Gas temperature = 20 °C; Molar mass = 28.9655 g/mol; Compressibility Z = 1 ratio.

OutputComputed result
Gas density at supplied state1.204129 kg/m³
Absolute temperature293.15 K

How one input changes the answer

ScenarioChanged inputResult
25.3313 kPa absAbsolute pressure0.301032 kg/m³
50.6625 kPa absAbsolute pressure0.602064 kg/m³
75.9938 kPa absAbsolute pressure0.903097 kg/m³
101.325 kPa absAbsolute pressure1.204129 kg/m³
151.988 kPa absAbsolute pressure1.806193 kg/m³
202.65 kPa absAbsolute pressure2.408258 kg/m³
303.975 kPa absAbsolute pressure3.612387 kg/m³

Unchanged inputs use: Absolute pressure = 101.325 kPa abs; Gas temperature = 20 °C; Molar mass = 28.9655 g/mol; Compressibility Z = 1 ratio. Results retain the model limitations described above.

Common questions

Can I use a gauge pressure value?

Not unchanged. The equation requires absolute pressure.

Does Celsius go directly into the gas equation?

No. The tool adds 273.15 to obtain Kelvin.

Is this valid near condensation?

A single supplied Z cannot automatically establish phase or make every state appropriate; use validated property methods.

How does it help mass flow calculations?

A density at the matching volume-flow condition connects mass and volume rates.

Which assumptions should I verify?

Check every unit, the observation period and the physical or reference-state boundary stated above. Starting inputs and computed examples are illustrative scenarios, not recommended settings, certified capacities or universal standards.

Where are the formula sources?

Published method and unit references appear at the bottom of this page as plain-text addresses. Computed tables use the same server calculation as the form. No external content-data file is needed at runtime.

Formula sources and references

References support the underlying methods and units. Chosen example inputs are not universal recommendations, current tariffs or proprietary test results.

  • NASA Glenn: conservation of mass, ideal gas and compressible nozzle flowhttps://www.grc.nasa.gov/www/k-12/airplane/mflchk.html
  • NIST SP 811 Appendix B.9: volume, mass and flow unit factorshttps://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conversion-factors/nist-guide-si-appendix-b9