Definition: This calculator computes the density (\( \rho \)) of an ideal gas, defined as mass per unit volume (\( \rho = \frac{m}{V} \)), using the ideal gas law. As shown in the formula image above, density is calculated via:
\( \rho = \frac{MP}{RT} \quad \text{or} \quad \rho = \frac{P}{R_s T} \)
Users select a substance or enter custom molar mass and specific gas constant, along with pressure and temperature. Results are displayed with 5 decimal places in kg/m³ or other units.Purpose: Essential for thermodynamics, aerodynamics, and chemical engineering to analyze gas behavior in applications like aircraft design or gas transport systems.
The calculator derives gas density from the ideal gas law (\( PV = nRT \)), where \( n = \frac{m}{M} \), rearranged as:
\( \rho = \frac{MP}{RT} \quad \text{or} \quad \rho = \frac{P}{R_s T} \)
Where:
Available Substances and Properties:
Substance | Molar Mass (g/mol) | Specific Gas Constant (J/(kg·K)) |
---|---|---|
Air | 28.97 | 287.1 |
Argon | 39.95 | 208.1 |
Butane | 58.12 | 143.1 |
Carbon dioxide | 44.01 | 188.9 |
Carbon monoxide | 28.01 | 296.8 |
Ethane | 30.07 | 276.5 |
Ethylene | 28.05 | 296.3 |
Helium | 4 | 2078.6 |
Hydrogen | 2.02 | 4119 |
Methane | 16.04 | 518.3 |
Neon | 20.18 | 411.9 |
Nitrogen | 28.01 | 296.8 |
Octane | 114.23 | 72.8 |
Oxygen | 32 | 259.8 |
Propane | 44.1 | 188.6 |
Steam (Water vapor) | 18.02 | 461.5 |
Custom | User-defined | User-defined |
Steps:
Gas density calculations are critical for:
Example 1: Calculate the density of air at 1 atm and 20°C, output in kg/m³ and g/L:
Results:
Example 2: Calculate the density of a custom gas with molar mass 50 g/mol and specific gas constant 166.3 J/(kg·K) at 2 atm and 25°C, output in kg/m³ and lb/ft³:
Results:
Q: What is gas density?
A: Gas density is the mass of a gas per unit volume, typically in kg/m³, calculated using the ideal gas law.
Q: How do I select a substance?
A: Choose a predefined substance from the dropdown, which shows its molar mass and specific gas constant, or select "Custom" to enter your own values.
Q: Why use absolute temperature?
A: The ideal gas law requires temperature in Kelvin to ensure positive values and accurate calculations.
Q: Is this calculator valid for real gases?
A: Yes, for low pressures and high temperatures where ideal gas assumptions hold. For high pressures, real gas corrections may be needed.
Q: What is the specific gas constant?
A: The specific gas constant (\( R_s \)) is the universal gas constant divided by the molar mass of the gas, expressed in J/(kg·K).