Air Density Calculator
How thick is the air where you are right now?
Enter your local temperature, atmospheric pressure, and relative humidity to find the exact air density at your conditions. Used by engineers, pilots, athletes, and weather enthusiasts to understand how air behaves at real-world conditions.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Imagine trying to push through a crowd of people. If the crowd is dense and tightly packed, you feel more resistance. If people are spread out or replaced by smaller people, you move through easily. Air works the same way — the more molecules per cubic meter, the more force air exerts on every surface it touches, and the more drag or lift or cooling effect it produces.
Air density is calculated using the ideal gas law, modified to account for the fact that moist air is actually a mixture of dry air and water vapor. Each component behaves independently according to Dalton's law of partial pressures. The dry air portion uses a specific gas constant of 287.058 J/(kg·K), while the water vapor portion uses 461.495 J/(kg·K). The total density is the sum of the two contributions: rho = P_d/(Rd × T) + e_v/(Rv × T), where P_d is the partial pressure of dry air, e_v is the actual vapor pressure, and T is temperature in Kelvin.
The saturation vapor pressure — the maximum amount of water vapor air can hold at a given temperature — is calculated using the Buck equation. This is more accurate than the simpler Antoine equation at surface temperatures. Actual vapor pressure is then saturation pressure multiplied by relative humidity as a fraction. Warmer air can hold exponentially more water vapor, which is why the humidity effect on density is small on a cold day but significant on a hot summer afternoon.
When To Use This
Right tool, right situation
Use this calculator any time physical performance depends on how many air molecules are present per unit volume. This includes: estimating engine power output at altitude or in heat, calculating drone or aircraft lift margins, correcting anemometer readings for density, adjusting HVAC fan curves to actual site conditions, or comparing weather station data across different elevations.
This tool is appropriate when you have actual or forecast weather data and want a density figure accurate to within 0.5% for planning purposes. It is not appropriate for stratospheric or space applications where the ideal gas assumption breaks down, or for supersonic flow where compressibility effects dominate over static density. It also should not be used as a substitute for calibrated in-situ measurement when safety margins are tight — for example, certified aircraft performance calculations require manufacturer-provided data.
The percentage-vs-standard output is the most actionable number for most users. A naturally aspirated engine loses power in direct proportion to density ratio. A propeller delivers thrust in rough proportion to density ratio. If your conditions show 92% of standard density, expect roughly 8% less performance from any device whose output depends on air mass flow.
Common Mistakes
Why results sometimes look wrong
The most common mistake is confusing gauge pressure with absolute pressure. A tire gauge reads pressure above ambient — if you enter gauge pressure here, your result will be wildly wrong. Atmospheric pressure is always absolute, starting from zero vacuum. Sea level absolute pressure is about 1013 hPa; there is no negative atmospheric pressure under normal conditions.
The second frequent error is ignoring humidity entirely. Many online calculators and textbook examples use dry air density because it simplifies the math. On a 35°C day with 90% humidity, ignoring moisture introduces an error of nearly 2% in the density result. That sounds small, but a 2% shift in air density directly translates to a 2% shift in aerodynamic force — meaningful for precision applications like competitive cycling, motorsport, or long-range ballistics.
A subtler mistake is using temperature from inside a building or vehicle cabin when the goal is to characterize outdoor air. Surface thermometers in direct sunlight also read several degrees higher than actual air temperature. For accurate density calculations, use a shaded ambient temperature reading, ideally from an official weather station or a calibrated sensor in moving air.
The Math
Worked examples and deeper derivation
The core formula is the ideal gas law for moist air: rho = (P_d / (Rd × T)) + (e_v / (Rv × T))
Where: - P_d = total pressure minus vapor pressure (Pa) - e_v = actual vapor pressure = RH × e_s - e_s = saturation vapor pressure from Buck equation: 611.21 × exp((18.678 − T_c/234.5) × (T_c / (257.14 + T_c))) in Pascals - T = temperature in Kelvin (T_c in Celsius + 273.15) - Rd = 287.058 J/(kg·K) — specific gas constant for dry air - Rv = 461.495 J/(kg·K) — specific gas constant for water vapor - RH = relative humidity as a decimal (e.g. 0.55 for 55%)
For dry air (RH = 0), the formula simplifies to rho = P / (Rd × T), which is the standard ideal gas law with molar mass factored into Rd.
Standard sea level reference density is 1.225 kg/m³ under ISA conditions (15°C, 1013.25 hPa, 0% humidity). All percentage comparisons in this tool use this benchmark. The Buck equation used here gives saturation vapor pressure accurate to within 0.02% between −40°C and +50°C — more than sufficient for atmospheric applications.
Expert Unlock
The thing most explanations skip
The ideal gas law assumes no intermolecular forces and perfectly elastic collisions — both break down at very high pressures or very low temperatures where real-gas effects emerge. At surface atmospheric conditions these errors are below 0.1%, but near the dew point, the phase boundary introduces nonlinearity that the Buck equation approximates rather than solves exactly. More critically, this model treats air as a two-component mixture and ignores CO2, argon, and trace gases that together account for about 1% of dry air mass. For most engineering applications this is acceptable, but precision metrology labs use the CIPM-2007 formula which includes these components and achieves uncertainty below 0.01%.
Why does humid air come out less dense than dry air at the same pressure?
Need something this doesn't cover?
Suggest a tool — we'll build it →