THERMODYNAMICSThermodynamicsPhysics Calculator
💨

Ideal Gas Density

Gas density ρ = PM/(RT) follows from the ideal gas law PV = nRT. At low pressure and high temperature, real gases approximate ideal behavior. Density increases with pressure and molar mass, and decreases with temperature.

Did our AI summary help? Let us know.

At STP (273 K, 101 kPa), air density ≈ 1.225 kg/m³ Density doubles when pressure doubles at constant T Density halves when temperature doubles at constant P Heavier gases (higher M) are denser at same P and T

Key quantities
ρ = PM/(RT)
Ideal Gas Density
Key relation
PV = nRT
Ideal Gas Law
Key relation
R_specific = R/M
Specific Gas Constant
Key relation
n/V = P/(kT)
Number Density
Key relation

Ready to run the numbers?

Why: Gas density affects buoyancy, flow rates, combustion, and process design. Hot air balloons rise because heated air is less dense; gas pipelines need density for mass flow calculations.

How: From PV = nRT. Substitute n = m/M and ρ = m/V to get ρ = PM/(RT). R = 8.314 J/(mol·K). Use SI units: P in Pa, T in K, M in kg/mol.

At STP (273 K, 101 kPa), air density ≈ 1.225 kg/m³Density doubles when pressure doubles at constant T

Run the calculator when you are ready.

Solve the EquationCalculate gas density from P, T, and molar mass

✈️ Air at Altitude

Air density at 10,000 ft altitude - 70 kPa, -20°C

Click to use this example

💾 Nitrogen Storage Tank

Liquid nitrogen storage tank - 200 bar, 25°C

Click to use this example

🎈 Helium Balloon

Helium-filled balloon at sea level - 1 atm, 20°C

Click to use this example

🥤 CO₂ in Carbonation

CO₂ in carbonated beverage - 4 bar, 4°C

Click to use this example

⛽ Natural Gas Pipeline

Natural gas (methane) in pipeline - 50 bar, 15°C

Click to use this example

Enter Gas Conditions

Gas Properties

Display Settings

For educational and informational purposes only. Verify with a qualified professional.

🔬 Physics Facts

💨

Ideal gas law applies when intermolecular forces are negligible

— IUPAC

🎈

Hot air balloons use ~30% density reduction for lift

— NASA

🌡️

At 0°C and 1 atm, dry air density is 1.293 kg/m³

— NIST

⚛️

R = 8.314 J/(mol·K) = 0.08206 L·atm/(mol·K)

— CODATA

📋 Key Takeaways

  • • Ideal gas density is calculated using ρ = PM/(RT) where P is pressure, M is molar mass, R is the universal gas constant (8.314 J/(mol·K)), and T is temperature
  • • Density increases with pressure and decreases with temperature at constant conditions
  • • Heavier gases (larger molar mass) have higher density at the same pressure and temperature
  • • At STP (0°C, 1 atm), air has a density of approximately 1.225 kg/m³

📖 What is Ideal Gas Density?

Ideal gas density (ρ) is the mass per unit volume of an ideal gas, typically expressed in kilograms per cubic meter (kg/m³). The ideal gas law provides a fundamental relationship between pressure, temperature, and density for gases that behave ideally.

An ideal gas is a theoretical gas composed of many randomly moving point particles that do not interact except when they collide elastically. Real gases approximate ideal gas behavior at low pressures and high temperatures, far from their critical points.

Key Factors Affecting Density

  • Pressure: Higher pressure increases density as gas molecules are compressed into a smaller volume
  • Temperature: Higher temperature decreases density as molecules move faster and occupy more space
  • Molar Mass: Heavier gases (larger molar mass) have higher density at the same pressure and temperature

🔬 Applications of Ideal Gas Density

⚗️

Chemical Engineering

Process design, reactor sizing, gas storage calculations, and pipeline flow analysis

✈️

Aerospace Engineering

Atmospheric modeling, aircraft performance, rocket propulsion, and space mission planning

❄️

HVAC Systems

Air conditioning design, ventilation calculations, and refrigerant properties

🔬

Material Science

Gas adsorption studies, porous material characterization, and gas storage materials

⚠️ Limitations of Ideal Gas Law

The ideal gas law is an approximation that works well under certain conditions but deviates from reality when:

  • High Pressure: At high pressures, gas molecules are close together and intermolecular forces become significant
  • Low Temperature: Near the condensation point, gases deviate from ideal behavior
  • Near Critical Point: At the critical temperature and pressure, gases exhibit non-ideal behavior
  • Polar Molecules: Gases with strong intermolecular forces (like water vapor) deviate more from ideal behavior

For more accurate calculations under non-ideal conditions, use equations of state like the Van der Waals equation, Peng-Robinson equation, or Redlich-Kwong equation, which account for molecular size and intermolecular forces.

📐 Formulas Explained

Ideal Gas Law with Density

rho=fracPMRT\\rho = \\frac{PM}{RT}

Where ρ is density (kg/m³), P is pressure (Pa), M is molar mass (kg/mol), R is the universal gas constant (8.314 J/(mol·K)), and T is temperature (K).

Using Specific Gas Constant

rho=fracPRsTtextwhereRs=fracRM\\rho = \\frac{P}{R_s T} \\text{ where } R_s = \\frac{R}{M}

The specific gas constant (Rs) is the universal gas constant divided by molar mass. This form is convenient when working with mass-based calculations.

Specific Volume

v=frac1rho=fracRTPv = \\frac{1}{\\rho} = \\frac{RT}{P}

Specific volume is the volume per unit mass, which is the inverse of density. It's useful in thermodynamic calculations and process design.

Number Density

n=fracPkTn = \\frac{P}{kT}

Number density is the number of particles per unit volume, where k is Boltzmann's constant (1.381×10⁻²³ J/K). This is important in statistical mechanics and kinetic theory.

❓ Frequently Asked Questions

What does "HIGH", "STANDARD", and "LOW" mean in the Bloomberg Terminal risk indicator?

The Bloomberg Terminal risk indicator categorizes gas density levels: "HIGH" (ρ > 5 kg/m³) indicates very dense gases like heavy hydrocarbons or high-pressure conditions, requiring careful handling and storage considerations. "STANDARD" (1-5 kg/m³) represents typical gas densities at atmospheric conditions, including air and common gases. "LOW" (<1 kg/m³) indicates light gases like hydrogen or helium at low pressure, requiring special containment.

When does the ideal gas law break down?

The ideal gas law (PV = nRT) assumes no intermolecular forces and negligible molecular volume. It breaks down at high pressures (molecules are close together), low temperatures (near condensation), and for polar molecules (strong intermolecular forces). For accurate calculations under these conditions, use equations of state like Van der Waals or Peng-Robinson.

How does temperature affect gas density?

At constant pressure, density decreases with temperature: ρ = PM/(RT). Higher temperature means faster molecular motion and larger volume, reducing density. This is why hot air rises (lower density) and why gas storage tanks must account for temperature variations.

How does pressure affect gas density?

At constant temperature, density increases linearly with pressure: ρ = PM/(RT). Doubling pressure doubles density. This is why compressed gas cylinders can store much more gas than at atmospheric pressure. High-pressure storage requires strong containers and safety considerations.

What is the difference between density and specific volume?

Density (ρ) is mass per unit volume (kg/m³), while specific volume (v) is volume per unit mass (m³/kg). They are inverses: v = 1/ρ. Specific volume is useful in thermodynamic calculations and process design, especially for compressors and turbines.

How accurate is the ideal gas law for real gases?

For most gases at moderate pressures and temperatures, the ideal gas law is accurate within 1-5%. Accuracy decreases at high pressures (>10 atm), low temperatures (near boiling point), and for polar gases. For engineering applications, always verify with experimental data or advanced equations of state.

What is number density and why is it important?

Number density (n) is the number of particles per unit volume, calculated as n = P/(kT) where k is Boltzmann's constant. It's important in statistical mechanics, plasma physics, and understanding gas behavior at the molecular level. Higher number density means more collisions and interactions.

⚠️ Disclaimer

Disclaimer: This calculator uses the ideal gas law (PV = nRT) which assumes no intermolecular forces and negligible molecular volume. Results are accurate for gases at low to moderate pressures and high temperatures. At high pressures, low temperatures, or near critical points, real gases deviate significantly from ideal behavior. For critical applications (process design, safety calculations, high-pressure systems), use appropriate equations of state (Van der Waals, Peng-Robinson, etc.) and consult professional engineering resources. This calculator is for educational and preliminary analysis purposes only.

👈 START HERE
⬅️Jump in and explore the concept!
AI

Related Calculators