Air Density Calculator – Temperature, Pressure & Humidity

Calculate atmospheric air density for any temperature, pressure, altitude, and humidity

Enter temperature, atmospheric pressure, relative humidity, and altitude to compute the density of air using the ideal gas law with humidity correction.

Air Density Calculator – Temperature, Pressure & Humidity
Calculate atmospheric air density for any temperature, pressure, altitude, and humidity

About the Air Density Calculator

Air density is the mass of air contained in a unit volume, typically expressed in kilograms per cubic metre (kg/m³). It is not a fixed constant but depends on temperature, atmospheric pressure, and humidity. At standard sea-level conditions (15°C, 1013.25 hPa), dry air has a density of approximately 1.225 kg/m³ — but this value changes significantly with weather, altitude, and season. The fundamental relationship governing air density is the ideal gas law: PV = nRT, which can be rearranged for density as ρ = PM / (RT), where P is pressure in pascals, M is the molar mass of the gas, R is the universal gas constant, and T is temperature in kelvin. For dry air (M ≈ 0.028964 kg/mol), the specific gas constant R_d = R/M ≈ 287.058 J/(kg·K), so ρ_dry = P / (R_d × T). When humidity is significant, water vapour must be accounted for separately. Water vapour has a lower molecular mass (18 g/mol) than the average for dry air (about 29 g/mol), so moist air is less dense than dry air at the same temperature and pressure. The calculation requires finding the saturation vapour pressure at the given temperature (commonly using the Magnus or Buck equations), scaling by relative humidity to get the actual partial vapour pressure, and subtracting from total pressure to get the dry air partial pressure. The two components are then summed with their respective gas constants. Air density has critical importance in several fields. In aviation, density altitude determines aircraft performance — lift, drag, and thrust all scale with density. High-altitude or hot/humid conditions increase effective density altitude, requiring longer runways and reduced payload. In meteorology, warm moist air is less dense and tends to rise, driving convective weather patterns and thunderstorm formation. In internal combustion engines and gas turbines, air density determines the mass of oxygen available for combustion, directly affecting power output. In wind energy, turbine power output scales with air density (P ∝ ρv³). In sports science, air density affects drag on cyclists, runners, and balls. This calculator implements the full moist air density formula using the Buck equation for saturation vapour pressure, giving accurate results across the range of conditions encountered in practical engineering and scientific work.

Air Density Examples

These examples show air density at various atmospheric conditions relevant to aviation, meteorology, and engineering.

ConditionsAir DensityNotes
T = 15°C, P = 1013.25 hPa, RH = 60%, Alt = 0 mρ ≈ 1.2200 kg/m³ISA-inspired sea-level conditions with 60% relative humidity. Slightly lower than dry-air ISA (1.2250 kg/m³) because water vapour is lighter than average dry air.
T = 35°C, P = 1005 hPa, RH = 80%, Alt = 0 mρ ≈ 1.1170 kg/m³Hot, humid summer conditions. The higher temperature and humidity both reduce air density, reducing aircraft lift and engine performance significantly.
T = −10°C, P = 1020 hPa, RH = 30%, Alt = 0 mρ ≈ 1.3496 kg/m³Cold winter conditions. Cold, dry air is significantly denser than warm air, improving engine breathing and aircraft performance but increasing aerodynamic drag.
T = 5°C, P = 700 hPa, RH = 40%, Alt = 3000 mρ ≈ 0.8747 kg/m³High altitude conditions at 3000 m. The reduced pressure dominates, giving air density about 71% of sea-level standard. Mountain airports require longer take-off runs.

How to use the Air Density Calculator

  1. Enter the air temperature in degrees Celsius. Standard sea-level temperature is 15°C; the temperature decreases approximately 6.5°C per 1000 m of altitude in the standard atmosphere.
  2. Enter the atmospheric pressure in hectopascals (hPa), also equivalent to millibars (mbar). Standard sea-level pressure is 1013.25 hPa.
  3. Enter the relative humidity as a percentage (0–100). For dry-air calculations, enter 0; for saturated air, enter 100.
  4. Enter the altitude in metres above sea level (optional — used for reference; pressure already accounts for altitude effects).
  5. Click Calculate to display air density in kg/m³, dry air density, saturation vapour pressure, partial vapour pressure, and specific volume.

Air Density Calculator FAQ

What is the formula for air density?
For dry air, the density is ρ = P / (R_d × T), where P is pressure in Pa, R_d = 287.058 J/(kg·K) is the specific gas constant for dry air, and T is temperature in kelvin. For moist air, the formula accounts for water vapour: ρ = (P_d / (R_d × T)) + (P_v / (R_v × T)), where P_d is partial pressure of dry air, P_v is partial vapour pressure, and R_v = 461.495 J/(kg·K) is the specific gas constant for water vapour. This can be rewritten as ρ = P / (T × (R_d × (1 − 0.378 × P_v/P)⁻¹)).
Why does humidity reduce air density?
Water vapour (H₂O, molecular mass 18 g/mol) is lighter than dry air (effective molecular mass about 29 g/mol). When water vapour displaces dry air molecules at a given pressure and temperature, the overall mixture becomes less dense. This counterintuitive result — humid air is lighter than dry air — has significant consequences for aviation (reduced lift and engine performance), meteorology (moist air masses rise), and combustion engineering (reduced oxygen concentration per unit volume).
How does altitude affect air density?
Air density decreases with altitude because atmospheric pressure drops as there is less overlying air mass. In the standard atmosphere, pressure and density both decrease approximately exponentially with altitude. At 1500 m, density is about 86% of sea-level value; at 3000 m it is about 74%; at 5500 m it is about 50%. This is why aircraft need longer runways at high-altitude airports and why internal combustion engines produce less power at altitude without turbocharging.
What is the standard atmosphere (ISA) air density?
The International Standard Atmosphere (ISA) defines sea-level conditions as T = 15°C (288.15 K) and P = 101 325 Pa (1013.25 hPa), giving a dry air density of exactly 1.2250 kg/m³ and including 60% humidity gives approximately 1.2248 kg/m³. The ISA is used as a reference for calibrating aircraft instruments, computing aerodynamic coefficients, and comparing engine performance data across different test sites and days.
How is air density relevant to aviation?
Air density directly affects lift, drag, and thrust. Lift is proportional to density (L = ½ρv²C_L × A), so at lower density the aircraft must fly faster or use a higher angle of attack to generate the same lift. Engine thrust is proportional to the mass flow rate of air, which is lower at low density. Hot, humid, or high-altitude conditions (density altitude) can require significantly longer take-off distances and reduce climb rates. Pilots use density altitude — the altitude in the standard atmosphere with the same density as the actual conditions — to assess aircraft performance.
What is the saturation vapour pressure and how is it calculated?
Saturation vapour pressure (e_s) is the partial pressure of water vapour when air is fully saturated (100% relative humidity) at a given temperature. It increases strongly with temperature, approximately doubling for every 10°C rise. The Buck equation gives a practical approximation: e_s = 0.61078 × exp(17.27 × T / (T + 237.3)) kPa, where T is in °C. The actual partial vapour pressure is P_v = (RH/100) × e_s. These quantities determine the contribution of moisture to total air density.