About the Air Density Calculator
Air density is the mass of air per unit volume, and it changes constantly with temperature, barometric pressure, and humidity. It matters for aircraft performance and density-altitude corrections, HVAC and combustion calculations, wind-turbine power output, ballistics, drone flight time, and any fluid-dynamics or aerodynamics problem where drag and lift scale directly with how dense the air is. This calculator applies the ideal gas law to the dry-air and water-vapor components of moist air separately and adds the two contributions together.
The formula
Total air density is the sum of the partial density of dry air and the partial density of water vapor:
ρ = Pd / (Rd × T) + Pv / (Rv × T)
- ρ — air density (kg/m³)
- Pd — partial pressure of dry air (Pa) = total pressure minus water-vapor pressure
- Pv — partial pressure of water vapor (Pa) = relative humidity × saturation vapor pressure
- T — temperature in kelvin (°C + 273.15)
- Rd — specific gas constant for dry air, 287.058 J/(kg·K)
- Rv — specific gas constant for water vapor, 461.495 J/(kg·K)
Saturation vapor pressure is estimated with the Tetens formula, es = 6.1078 × 10^(7.5T / (T + 237.3)) hPa, where T is temperature in °C. Multiplying es by the relative humidity (as a fraction) gives the actual vapor pressure Pv; subtracting Pv from the total barometric pressure gives the dry-air pressure Pd. At 15°C, 1013.25 hPa, and 0% humidity, the formula returns 1.225 kg/m³ — the International Standard Atmosphere (ISA) sea-level value used as this calculator's reference point.
Working with the inputs
- Use the actual barometric (station) pressure at your location, not pressure "corrected" to sea level — station pressure already reflects your altitude, since pressure drops roughly exponentially as elevation increases.
- Temperature is entered in Celsius; the calculator converts internally to kelvin for the gas-law terms.
- Relative humidity of 0% models perfectly dry air; most weather stations report humidity directly, so enter that value as-is.
Knowing the limits
The ideal gas law and the Tetens approximation are accurate for the temperatures, pressures, and humidity levels found in Earth's lower atmosphere. They are not intended for extreme conditions — very high pressure, near-freezing precision work requiring the more complex Arden Buck or CIPM-2007 formulas, or non-atmospheric gas mixtures. For everyday meteorology, aviation, and engineering estimates, the error introduced is negligible.