Article — Air Density Calculator
Air Density Calculator: Pressure, Temperature, and Humidity
Air density at sea level is 1.225 kg/m³ under the International Standard Atmosphere (15 °C, 101 325 Pa, dry). It rises with pressure, falls with temperature, and drops slightly with humidity.
Air density does not look like a number that matters until you fly an aeroplane, set a baseball record, tune a turbocharger, or weigh a kilogram to seven decimal places. Then it suddenly matters a great deal. The calculator above implements the ideal gas law with humidity correction, the same approach used in aviation tables, drone autopilots, and metrology labs.
What air density measures
Air density is the mass of air contained in a unit volume. At room temperature and ordinary pressure it sits near 1.2 kg/m³, about one-eight-hundredth the density of water. The number is small but never zero: the column of air above one square metre of Earth's surface weighs about 10 333 kg, which is what sets sea-level pressure to about 101 kPa.
For the same composition, air density depends on only two state variables: pressure and temperature. The ideal gas law links them: ρ = P / (R · T), where R is the specific gas constant for dry air (287.058 J/(kg·K)) and T is absolute temperature. Add water vapour and a small correction is needed, since the water molecule is lighter than the nitrogen and oxygen it displaces.
The air density formula
For dry air, ρ = P / (R_d × T) covers most needs. P is total pressure in pascals, T is temperature in kelvin, and R_d = 287.058 J/(kg·K). For moist air, the calculator above adds the Dalton form: ρ = P_d / (R_d × T) + e / (R_v × T), where P_d is the partial pressure of dry air, e is the partial pressure of water vapour, and R_v = 461.495 J/(kg·K). The Magnus formula provides the saturation vapour pressure as a function of temperature.
0 °C dry 1.293 kg/m³15 °C dry (ISA) 1.225 kg/m³20 °C dry 1.204 kg/m³30 °C, 90 % RH 1.144 kg/m³40 °C dry 1.127 kg/m³Standard air density: the 1.225 kg/m³ reference
The International Standard Atmosphere fixes a reference state used in aviation and aerospace: 15 °C, 101 325 Pa, 0 percent humidity, sea level. The resulting air density of 1.225 kg/m³ shows up everywhere. Aircraft speed indicators are calibrated to ISA. Wing-load and drag coefficients are reported at ISA. Engine power figures assume ISA inlet conditions.
The number is not the real average air density anywhere in particular. It is a convention, defined so engineers can compare measurements made on different days under different conditions. To use ISA values for real-world performance, you correct from ISA to actual conditions using the air density ratio.
The first measurement of air density was made by Evangelista Torricelli in 1644 using a mercury barometer. He showed that air had measurable weight: about 1.2 kg per cubic metre at sea level. Before that, "the weight of air" was a contested philosophical idea, with Aristotle insisting on its weightlessness.
Why humid air is lighter than dry air
This is the most counter-intuitive fact about air. Humid air weighs less per cubic metre than dry air at the same temperature and pressure, because water vapour molecules (molar mass 18 g/mol) replace heavier nitrogen (28) and oxygen (32) molecules. The effect is small, around 1 percent at 30 °C and 50 percent humidity, but it matters for high-performance aerodynamics and weighing.
This is why baseball home runs travel further in humid weather: the ball pushes against fewer molecules per metre. It is also why aircraft performance degrades on hot, muggy days — lower density means less lift, less thrust, and longer take-off rolls.
Air density and altitude
Pressure falls roughly exponentially with altitude, and air density falls along with it. Temperature in the troposphere drops by about 6.5 °C per kilometre, partially offsetting the pressure drop, but density still drops. The ISA model gives ρ ≈ 1.112 kg/m³ at 1000 m, 0.909 kg/m³ at 3000 m, and 0.414 kg/m³ at 10 000 m (cruise altitude for most airliners).
- Sea level 1.225 kg/m³ (ISA reference)
- Denver, Colorado at 1610 m, summer ≈ 0.95 kg/m³ (78 % of ISA)
- La Paz, Bolivia at 3640 m ≈ 0.83 kg/m³ (68 % of ISA)
- Everest summit 8849 m ≈ 0.47 kg/m³ (38 % of ISA)
- Airliner cruise 11 000 m ≈ 0.37 kg/m³ (30 % of ISA)
- Mars surface ≈ 0.020 kg/m³ (1.6 % of Earth's, low pressure dominates)
Air density in aviation, sport, and engines
For pilots, density altitude is the practical handle on air density. It tells you what ISA altitude corresponds to today's conditions. A 35 °C summer day in Denver (elevation 1610 m) has a density altitude near 3300 m. The aircraft performs as if it were 1700 m higher than it actually is. Runway length requirements jump, climb rates drop, and engine power sags.
For naturally aspirated internal combustion engines, power output falls about 1 percent per 300 m of altitude because there is less oxygen per intake stroke. Turbochargers and superchargers compensate by mechanically squeezing the inlet air back to sea-level density, which is why mountain rally cars almost always run forced induction.
Measuring air density in the field
You almost never measure air density directly. Instead you measure pressure, temperature, and humidity, then compute density from the ideal gas law. A precision barometer (10 Pa resolution), a calibrated platinum-resistance thermometer (0.05 °C), and a chilled-mirror hygrometer (0.1 °C dew point) together yield ρ to about 0.01 percent — accurate enough for primary metrology.
For drone autopilots and small UAVs, an onboard barometer plus a temperature probe is usually enough. The humidity correction is typically below 1 percent and is left out unless precision aerodynamics are involved.
Common air density mistakes
The ideal gas law requires absolute temperature in kelvin. Using °C gives nonsensical answers — at 0 °C you would divide by zero. Convert to K (add 273.15) before plugging into ρ = P / (RT). The calculator above does this automatically.
Other slips: using the wrong gas constant (R_d = 287.058 J/(kg·K) for dry air, R = 8.314 J/(mol·K) for the universal molar version), forgetting to convert pressure to pascals when working in SI, and ignoring humidity in precision metrology where it matters most. For most everyday engineering work, two or three significant figures on density are plenty; for primary metrology and gravimetric mass standards, you need five or even six.