Ideal Gas Density Calculator

Find the density of an ideal gas from pressure, temperature and molar mass.

Density (kg/m³) 1.226

Formula: ρ = P·M ÷ (R·T)

Step-by-step with your numbers:
1. Values used:
2. Pressure = 101,325 Pa
3. Molar mass = 28.97 g/mol
4. Temperature = 288 K
5.
6. Density = 1.226kg/m³
Did we solve your problem today?

An ideal gas's density follows directly from the ideal gas law.

How the Math Works

The Ideal Gas Density Calculator uses the fundamental relationship ρ = P·M ÷ (R·T), where density (ρ) equals pressure (P) multiplied by molar mass (M), divided by the product of the gas constant (R) and temperature in Kelvin (T). This formula derives from the ideal gas law PV = nRT by substituting moles (n) with mass (m) divided by molar mass (M), then rearranging to isolate density. The calculation requires consistent units: pressure in pascals, temperature in kelvin, and molar mass in kg/mol for standard results in kg/m³.

Practical Applications

To use this calculator for practical problems, first convert all inputs to compatible units: ensure temperature is in Kelvin (°C + 273.15), pressure in Pascals, and molar mass in kg/mol. For example, if working with oxygen (M = 0.032 kg/mol) at 100 kPa and 25°C, convert to 100,000 Pa and 298.15 K before calculation. This approach is essential in chemical engineering for reactor design, in meteorology for atmospheric pressure corrections, and in laboratory settings for gas storage safety calculations.

Day-to-Day Use

Understanding gas density helps explain everyday phenomena like why hot air balloons rise (warmer air is less dense), how spray cans work (compressed gas remains liquid until release), and why tire pressure changes with temperature. The calculator also aids in environmental monitoring by estimating greenhouse gas concentrations, assists chefs in understanding how pressure affects cooking times, and helps students grasp weather patterns by relating temperature and pressure changes to air density variations in our atmosphere.

Worked example

Air (M 28.97) at 101325 Pa, 288 K → about 1.225 kg/m³.

FAQ

Why does warm air rise?

Higher temperature lowers density, so warm air is buoyant.