Air Density Calculator
This calculator works out the density of air, in kilograms per cubic metre, from three inputs: temperature, atmospheric pressure and relative humidity. Air density affects aircraft lift and engine performance, wind turbine output, HVAC sizing and general aerodynamic drag, so an accurate figure matters for engineering and aviation work as well as everyday curiosity. You enter a temperature in Celsius, Kelvin or Fahrenheit, a pressure in Pascals, hectopascals, kilopascals, atmospheres, PSI or mmHg, and a relative humidity percentage, or jump straight to a preset such as ISA standard, IUPAC or NIST STP, a hot dry or hot humid day, a cold day, or 2,000 metres altitude. The calculator applies the ideal gas law for dry air and the Buck equation for saturation vapour pressure to handle moist air, then returns the air density in both kg/m³ and g/cm³, the temperature in Kelvin, the pressure in hPa, and a full calculation breakdown showing saturation vapour pressure and the partial pressures of dry air and water vapour. A reference table compares your result against standard atmosphere and altitude values, and a verdict line tells you whether your air is denser or less dense than the 1.225 kg/m³ sea-level standard. Results are accurate for typical atmospheric conditions between -40 °C and 60 °C and are intended for educational and engineering estimation purposes only.
1. Temperature and Pressure
2. Humidity and Presets
Calculation Breakdown
Reference Values
How Air Density is Calculated
Air density (symbol rho, Greek letter) is the mass of air per unit volume, measured in kilograms per cubic metre (kg/m³). It depends on three variables: temperature, pressure, and humidity. The standard approach uses the ideal gas law, which is accurate to better than 0.1% for typical atmospheric conditions.
Formula for Dry Air
For perfectly dry air (zero humidity), the density is:
Where:
- rho = air density (kg/m³)
- p = absolute pressure (Pa)
- Rd = specific gas constant for dry air = 287.058 J/(kg·K)
- T = absolute temperature (Kelvin = °C + 273.15)
Formula for Moist Air
Humid air is a mixture of dry air and water vapour. Because water vapour (molar mass 18.015 g/mol) is lighter than the average dry air mixture (effective molar mass 28.97 g/mol), adding water vapour reduces density. The formula accounts for this using the partial pressures of dry air and water vapour separately:
Where:
- pd = partial pressure of dry air = total pressure minus vapour pressure (Pa)
- pv = partial pressure of water vapour = relative humidity x saturation vapour pressure (Pa)
- Rd = 287.058 J/(kg·K) (specific gas constant, dry air)
- Rv = 461.495 J/(kg·K) (specific gas constant, water vapour)
- T = temperature in Kelvin
The saturation vapour pressure (psat) is calculated using the Buck equation:
where TC is the temperature in Celsius. This gives psat in Pascals and is accurate to within 0.02% for temperatures from -40 °C to 50 °C.
Worked Example
At 15 °C and 101,325 Pa with 0% relative humidity:
- T = 15 + 273.15 = 288.15 K
- pd = 101,325 Pa (all dry air at 0% RH)
- rho = 101,325 / (287.058 x 288.15) = 101,325 / 82,715.8 = 1.2250 kg/m³
This matches the International Standard Atmosphere (ISA) sea-level value of 1.225 kg/m³ exactly.
What Affects Air Density?
| Factor | Effect on density | Why |
|---|---|---|
| Higher temperature | Lower density | Molecules move faster and occupy more volume |
| Higher pressure | Higher density | Molecules are compressed into less space |
| Higher humidity | Lower density | Light water vapour displaces heavier nitrogen and oxygen |
| Greater altitude | Lower density | Atmospheric pressure decreases with height |
Practical Applications
Air density matters in many fields:
- Aviation: Aircraft performance (lift, thrust, engine power) all depend on air density. Pilots use density altitude to account for the combined effect of temperature and pressure altitude.
- Meteorology: Weather forecasting models track air density to simulate atmospheric dynamics, cloud formation, and storm development.
- Wind energy: Wind turbine power output is proportional to air density. A turbine at altitude or on a hot day produces less power than at sea level in cold conditions.
- Sports: Thinner (less dense) air at high altitude means less aerodynamic drag. Athletes and cyclists at altitude benefit from reduced drag but face lower oxygen availability.
- HVAC engineering: Air conditioning and ventilation systems are sized based on the mass flow rate of air, which depends on density.
- Combustion engines: Less dense air means less oxygen per intake stroke, reducing maximum engine power output.
Related Calculators
- Science and Engineering Calculators: browse the full collection.
- Crosswind Calculator: wind component calculations for aviation and weather.
- Avogadro Number Calculator: moles and molecular quantities.
- Celsius to Fahrenheit Converter: temperature unit conversion.
- Force Calculator (F = ma): Newton's second law for physics problems.
Sources and method: ISO 2533:1975 Standard Atmosphere; ICAO Doc 7488/3 Manual of the ICAO Standard Atmosphere; Buck, A. L. (1981) "New equations for computing vapour pressure and enhancement factor", Journal of Applied Meteorology 20:1527-1532; Picard, A. et al. (2008) "Revised formula for the density of moist air", Metrologia 45:149-155.
This calculator uses the ideal gas law and the Buck equation for saturation vapour pressure. Results are accurate for typical atmospheric conditions between -40 °C and 60 °C and pressures from 10,000 Pa to 200,000 Pa. For very high humidity near the saturation point, small rounding differences may appear. This calculator is for educational and engineering estimation purposes.