nrtechstudio.com All tools
ATMOSPHERIC PHYSICS · TOOL #391

Air Density Calculator

Enter temperature, pressure & humidity to get true moist-air density from the international CIPM-2007 equation — plus density altitude and pressure altitude, in metric and imperial units.

100% client-side — your data never leaves this browser
Range: −50 to 60 °C
Station pressure, range 100–1100 hPa
0%
AIR DENSITY
1.2255 kg/m³
1225.5 g/m³ · 0.0765 lb/ft³
Density altitude
0 m
0 ft
Pressure altitude
0 m
0 ft
Humidity effect
−0.0000
kg/m³ vs dry air

Air density by altitude (ISA table)

Standard-atmosphere density at popular altitudes. These are the values the Altitude lookup tab uses — verified against the CIPM-2007 oracle.

AltitudeftTemp °CPressure hPaDensity kg/m³
0 m (sea level)015.01013.251.22552
1,000 m3,2818.5898.751.11214
2,000 m6,5622.0794.961.00695
3,000 m9,843−4.5701.090.90955
4,000 m13,123−11.0616.410.81952
5,000 m16,404−17.5540.200.73647
6,000 m19,685−24.0471.820.66001
8,000 m26,247−37.0356.000.52541
10,000 m32,808−50.0264.370.41289
11,000 m (tropopause)36,089−56.5226.330.36407
12,000 m39,370−56.5193.310.31094
15,000 m49,213−56.5120.450.19372

Real air at altitude differs from ISA with the weather. For actual conditions, enter your station temperature, pressure, and humidity in the Manual tab.

Worked examples

Three hand-checked cases that anchor this calculator — every number below matches the frozen test oracle.

Sea level, standard day

15 °C · 101325 Pa · 0% RH
1.2255 kg/m³

The classic 1.225 kg/m³ textbook value. Our CIPM-2007 computation gives 1.2255 — the tiny difference is the compressibility factor Z = 0.99959, which the simple ideal-gas formula ignores.

Denver, Colorado (1609 m)

ISA: 4.5 °C · 83431 Pa · 0% RH
1.0471 kg/m³

About 14.5% thinner than sea level. Density altitude works out to 1609 m and pressure altitude to 1609 m — exactly the geometric altitude, as it must under pure ISA conditions.

Hot, humid afternoon

30 °C · 100000 Pa · 80% RH
1.1348 kg/m³

Humidity visibly lightens the air: the water-vapor mole fraction here is 3.4%, and density altitude climbs to 794 m even though you are at sea level. This is why aircraft performance sags on muggy days.

Methodology & formulas

This calculator implements the CIPM-2007 equation of state for moist air (Picard, Davis, Gläser & Stock, Metrologia 45, 2008) — the international reference, not the high-school ideal-gas shortcut.

The density equation

ρ = p·Ma / (Z·R·T) · (1 − xv·(1 − Mv/Ma))
SymbolMeaningValue
p, TAbsolute pressure (Pa), absolute temperature (K)your inputs
Ma, MvMolar mass of dry air / water vapor0.02896546 / 0.01801528 kg/mol
RMolar gas constant8.314472 J/(mol·K)
xvMole fraction of water vapor = h·f·psv/pfrom humidity h, enhancement f
ZCompressibility factor (2nd-virial, CIPM-2007 coeffs)1 − (p/T)·[…] + (p/T)²·[…]
psvSaturation vapor pressure, Sonntag (1990)e.g. 2339.3 Pa at 20 °C
fEnhancement factor = 1.00062 + 3.14×10−8p + 5.6×10−7t²p in Pa, t in °C

Derived quantities

Density altitude inverts the ISA density profile: below the tropopause, DA = (T₀/L)·(1 − σ1/4.25588) where σ = ρ/ρ₀; above 11 km the isothermal stratosphere branch DA = 11000 + 6341.6·ln(σ₁₁/σ) is used. Pressure altitude inverts the ISA pressure profile the same way, with exponent 1/5.25588.

Why CIPM-2007 instead of ρ = p/RT?

  • The simple formula treats air as an ideal dry gas. Real air is compressible (Z ≠ 1, a ~0.04% effect at sea level) and moist (water vapor displaces heavier dry-air molecules, up to a ~2% effect at 30 °C / 80% RH).
  • Most thin online calculators ignore humidity entirely, or apply it as a rough fudge factor. Here humidity enters through the exact mole-fraction term, which is why this page can correctly show that humid air is less dense.
  • Against reference values the implementation agrees to about 1 part in 10⁸ over the tool's input range (see the worked examples and the frozen test vectors shipped with this tool).

Honest limitations

What this calculator does not do

  • Not live weather. Density is computed from the conditions you type in. For real situations, read your own station or a weather service — this page has no sensor and makes no network requests.
  • ISA is a model, not the sky. The altitude lookup uses the International Standard Atmosphere. Real pressure at altitude swings with weather systems, so treat ISA density as a reference, not a measurement.
  • Validated input range. Inputs are clamped to −50…+60 °C and 100…1100 hPa, the range over which the Sonntag vapor-pressure equation is validated. Outside it, the physics needs a different formulation.
  • Not an engineering sign-off. Fine for study, flight planning context, and sanity checks — not a substitute for certified performance charts, psychrometric software, or ASHRAE tables where safety or compliance is on the line.

Where this tool fits

This page answers one question well: what is the density of air under these conditions? Neighboring tools cover the rest:

Frequently asked questions

What is air density?

Air density is the mass of air per unit volume, usually expressed in kilograms per cubic meter (kg/m³). Under standard sea-level conditions (15°C, 101325 Pa), dry air has a density of about 1.225 kg/m³. Density falls as temperature rises, as altitude rises, or as humidity increases, and it rises when air gets colder or pressure increases.

How do you calculate air density?

This calculator uses the CIPM-2007 formula from the International Committee for Weights and Measures: ρ = p·Ma / (Z·R·T) · (1 − xv·(1 − Mv/Ma)). You enter temperature, pressure, and relative humidity; the formula adds a compressibility factor Z and a water-vapor mole fraction xv (from the Sonntag saturation-vapor-pressure equation and the enhancement factor), so moist air is treated correctly instead of being approximated as dry.

What is the density of air at sea level?

At the standard sea-level reference (15°C, 101325 Pa, dry air) this calculator gives 1.2255 kg/m³, which is the widely quoted textbook value of 1.225 kg/m³ rounded to three decimals. Real air at sea level is rarely exactly at the standard point: at 20°C and 50% humidity the density is about 1.199 kg/m³, roughly 2% lower.

Does humidity increase or decrease air density?

Humidity decreases air density. Water molecules (molar mass 18 g/mol) are lighter than the nitrogen and oxygen molecules they displace (average ~29 g/mol for dry air), so at the same temperature and pressure, moist air is less dense. At 15°C and sea-level pressure, raising relative humidity from 0% to 50% lowers density from 1.2255 to 1.2216 kg/m³ — the classic reason a baseball is said to carry farther on humid days.

How does altitude affect air density?

Density drops with altitude because both pressure and temperature fall. Under the International Standard Atmosphere, density at 1000 m is about 1.112 kg/m³, at 3000 m about 0.910 kg/m³, and at 11000 m (typical cruising level) about 0.364 kg/m³. The Altitude lookup tab on this page shows ISA temperature, pressure, and density for any altitude up to 20000 m.

What is the air density in Denver?

Denver sits at about 1609 m (5280 ft). Under standard-atmosphere conditions its temperature is 4.5°C and pressure about 83431 Pa, giving an air density of roughly 1.047 kg/m³ — about 14.5% lower than at sea level. That thinner air is why engines make less power and aircraft need longer takeoff runs in Denver; our density altitude lab covers the flight-performance side in depth.

What is the difference between air density and density altitude?

Air density is a physical quantity: how much mass is in each cubic meter of air (kg/m³). Density altitude is the altitude in the standard atmosphere that would have that same density — a single number pilots and engineers use to compare conditions. This calculator shows density altitude as a derived readout; for flight performance (takeoff distance, climb, true airspeed) see our dedicated density altitude lab, which goes far deeper into the aviation side.

What is the density of air at STP?

At standard temperature and pressure (0°C, 101325 Pa), dry air has a density of about 1.293 kg/m³, roughly 5.5% denser than the 15°C reference of 1.225 kg/m³. Note that "STP" is defined differently by different organizations (some use 20°C), so always check which reference a table or dataset is using before comparing numbers.

How do I convert kg/m³ to lb/ft³?

Multiply by 0.06243: 1 kg/m³ = 0.06243 lb/ft³. So standard sea-level air (1.2255 kg/m³) equals about 0.0765 lb/ft³. This calculator displays both units automatically, along with grams per cubic meter.

What formula does this calculator use, and is it accurate?

It implements the full CIPM-2007 equation of state for moist air (Picard, Davis, Gläser & Stock, Metrologia 2008), including the compressibility factor Z, the Sonntag 1990 saturation vapor pressure, and the humidity enhancement factor. For meteorological ranges (0–1000 hPa, −50…+60°C) it agrees with published reference values to about 1 part in 10⁴ — far better than the simple ideal-gas approximation ρ = p/(R·T), which ignores both compressibility and moisture.

Why is my result slightly different from the textbook value of 1.225?

Three common reasons. First, the textbook 1.225 kg/m³ is a rounded ideal-gas value; the more complete CIPM-2007 equation gives 1.2255 kg/m³ at the same conditions. Second, real air contains humidity, which lowers density. Third, your actual pressure may differ from 101325 Pa — weather systems routinely swing sea-level pressure by ±20 hPa, which changes density by about ±2%.

How does air density affect aircraft, engines, and ballistics?

Lift, drag, engine power, and propeller thrust all scale directly with air density, so hot, high, or humid conditions ("high density altitude") degrade aircraft and engine performance. Ballistic trajectories also depend on density through air resistance. This calculator gives you the density number; for takeoff-distance and climb estimates, our density altitude lab applies the Koch chart and compressible-flow corrections that the aviation use case needs.

What is pressure altitude, and why does this page show it?

Pressure altitude is the altitude in the standard atmosphere corresponding to your measured pressure — it tells you what the atmosphere "thinks" your altitude is from pressure alone, independent of temperature. Comparing pressure altitude with the true density altitude shows how much temperature and humidity are shifting conditions away from the standard model. It is shown here as a derived readout for context.

Can I use this calculator for HVAC design or engineering work?

It is a good sanity check for back-of-envelope estimates — for example, checking that 20°C indoor air at 50% humidity is about 1.199 kg/m³ before sizing a fan. It is not a substitute for psychrometric software or engineering standards (such as ASHRAE tables) when real design decisions, safety margins, or compliance are involved, because this tool computes a single-point density and does not model the full moist-air state the way dedicated HVAC tools do.

What are the limitations of this calculator?

Four honest limits. (1) It computes density from the conditions you enter — it is not live weather data, so enter your own station readings for real situations. (2) The ISA altitude lookup is the standard model, not the actual atmosphere; real pressure at altitude varies with weather. (3) Inputs are clamped to −50…+60°C and 100…1100 hPa, the validated range of the Sonntag vapor-pressure equation. (4) Above 11000 m the density-altitude readout uses the stratosphere extension (isothermal layer), which is correct for ISA but approximate for real high-altitude conditions.

Is my data sent to a server?

No. Every calculation runs entirely in your browser with JavaScript — temperature, pressure, and humidity never leave your device. There are no accounts, no analytics beacons from this tool, and no external requests of any kind.

Free tool by NRTechStudio