Calculator Inputs
Example Data Table
These sample cases help you benchmark expected density values under different conditions.
| Gas | Pressure | Temperature | Molar Mass | Z | Density (kg/m³) |
|---|---|---|---|---|---|
| Air | 101.325 kPa | 15 C | 28.97 g/mol | 1.00 | 1.225215 |
| Nitrogen | 101.325 kPa | 25 C | 28.0134 g/mol | 1.00 | 1.145021 |
| Carbon Dioxide | 101.325 kPa | 25 C | 44.01 g/mol | 1.00 | 1.798867 |
| Helium | 200 kPa | 25 C | 4.0026 g/mol | 1.00 | 0.322926 |
Formula Used
Gas density equation:
ρ = (P × M) / (Z × R × T)
- ρ = density in kg/m³
- P = absolute pressure in pascals
- M = molar mass in kg/mol
- Z = compressibility factor
- R = universal gas constant, 8.314462618 J/mol·K
- T = absolute temperature in kelvin
When Z = 1, the model follows the ideal gas assumption. Nonideal gases can be estimated by entering a suitable compressibility factor.
How to Use This Calculator
- Enter a gas name for easier report labeling.
- Type the pressure value and choose its unit.
- Select whether pressure is absolute or gauge.
- Provide atmospheric pressure when using gauge pressure.
- Enter the temperature and choose K, C, or F.
- Enter molar mass and select g/mol or kg/mol.
- Set compressibility factor Z. Use 1 for ideal estimates.
- Press Calculate Density to view results and the graph.
- Download the result as CSV or PDF when needed.
Frequently Asked Questions
1. What equation does this calculator use?
It uses ρ = (P × M) / (Z × R × T). This connects density with absolute pressure, molar mass, compressibility factor, gas constant, and absolute temperature.
2. Should I enter absolute pressure or gauge pressure?
Use absolute pressure when available. If you only know gauge pressure, select gauge and enter atmospheric pressure so the calculator can convert it correctly.
3. Why does molar mass change density?
At the same pressure and temperature, heavier molecules add more mass to the same volume. That makes gases with larger molar mass denser.
4. What does the compressibility factor do?
The Z factor adjusts the ideal gas result for real gas behavior. Use 1 for ideal estimates and another value when reliable process data suggests nonideal conditions.
5. Is g/L equal to kg/m³?
Yes. One gram per liter has the same numerical value as one kilogram per cubic meter, so the calculator shows matching numbers for those units.
6. Can I enter Celsius or Fahrenheit?
Yes. The calculator automatically converts Celsius and Fahrenheit to kelvin before applying the density equation, which always needs absolute temperature.
7. Why does density fall when temperature rises?
With pressure held constant, higher temperature spreads the same amount of gas over a larger volume. That lowers mass per unit volume.
8. Where is this calculator useful?
It helps in physics classes, lab planning, vessel estimates, ventilation checks, gas handling studies, and quick engineering comparisons across operating conditions.