Air density generally decreases as height above sea level increases, because atmospheric pressure falls as the weight of the air above you gets smaller. This calculator estimates density from altitude and air temperature using the standard-atmosphere model; enter altitude in metres and temperature in °C to get density in kg/m³.
Formula
The calculator uses the ideal-gas relation for dry air, with pressure estimated from the International Standard Atmosphere (ISA) troposphere model:
ρ = p / (RdT)
p = 101325 × (1 − 0.0065h / 288.15)5.25588
- ρ is air density in kilograms per cubic metre (kg/m³).
- p is the estimated atmospheric pressure in pascals (Pa).
- Rd is the specific gas constant for dry air, 287.05287 J/(kg·K).
- T is the entered air temperature converted to kelvins: T = t + 273.15.
- h is geopotential altitude in metres. The pressure expression uses the ISA sea-level pressure, 101325 Pa, lapse rate, 0.0065 K/m, and sea-level standard temperature, 288.15 K.
The altitude range and formula are intended for the lower atmosphere, where the ISA assumes temperature decreases at a fixed rate with height. For the density equation, the temperature you enter is used separately; the pressure estimate still follows the standard atmosphere. This makes it possible to explore a temperature different from ISA standard temperature, but it is not a full weather model.
Worked Example
Using the defaults, altitude is 0 m and air temperature is 15 °C.
- Convert temperature to kelvins: T = 15 + 273.15 = 288.15 K.
- Calculate pressure: p = 101325 × (1 − 0.0065 × 0 / 288.15)5.25588 = 101325 Pa.
- Calculate density: ρ = 101325 / (287.05287 × 288.15) = 1.2250 kg/m³.
The calculator therefore returns an air density of 1.2250 kg/m³ and a standard-atmosphere pressure of 101325 Pa.
Assumptions
- Air is treated as a dry, ideal gas with a fixed specific gas constant.
- Pressure follows the ISA troposphere relationship, not a local weather observation.
- Altitude is geopotential altitude, and the model is limited to the stated range.
- The entered temperature is uniform for the density calculation; humidity and composition changes are ignored.
Why Density Changes With Height
Air is compressible. Gravity pulls the atmosphere toward Earth, so lower layers support the weight of the layers above them and are compressed to higher pressure. At greater height, less air lies overhead; pressure and the number of air molecules in a given volume generally fall. Density, which is mass per unit volume, consequently decreases through most of the atmosphere.
Pressure and density are related but are not interchangeable. For a fixed gas composition, the ideal-gas relation says density is proportional to pressure and inversely proportional to absolute temperature. Thus, at the same pressure, warmer air is less dense than colder air. A pressure-only rule such as “density always falls at a fixed rate per kilometre” misses the effect of changing temperature.
There is no single density for every location at a given altitude. Weather systems, latitude, season, humidity, and local temperature all affect actual atmospheric conditions. The ISA offers a consistent reference for calculations rather than a promise of the conditions at a particular place and time.
How to Interpret the Calculator
At sea level under standard conditions, the familiar reference density is about 1.225 kg/m³. At 1,000 m, the ISA pressure is roughly 89.9 kPa. If the air is also at the ISA temperature at that altitude, about 8.5 °C, density is approximately 1.11 kg/m³. These are reference values, not forecasts.
For the same altitude and pressure, entering a higher temperature lowers the calculated density. For example, heating a fixed-pressure parcel expands it: the same mass occupies more volume. By contrast, climbing to a higher altitude generally lowers pressure enough that density drops even if temperature varies along the way.
Density matters in practical calculations because it influences aerodynamic lift and drag, engine air intake, sound propagation, and the conversion between airspeed and dynamic pressure. Aircraft performance calculations often use density altitude, which expresses how nonstandard temperature and pressure make the air behave relative to a standard altitude. This calculator is a basic estimate, not an operational flight-planning tool.
Model Limits and Common Mistakes
- Mixing temperature scales: the gas law requires kelvins, not Celsius. The calculator adds 273.15 automatically.
- Confusing geometric and geopotential altitude: the difference is small near the surface but grows with height. This model expects geopotential metres.
- Treating ISA pressure as measured pressure: actual pressure can differ substantially with weather and elevation. Use a reliable local pressure observation for site-specific work.
- Ignoring humidity: moist air is slightly less dense than dry air at the same pressure and temperature because water vapour has a lower molar mass than the average dry-air mixture.
- Extending the lapse-rate formula too far: the displayed pressure equation is for the lower-atmosphere troposphere and should not be extrapolated into higher atmospheric layers.
For a more realistic result, use actual absolute pressure and temperature in ρ = p/(RdT), and account for humidity if the needed precision warrants it. The ISA pressure estimate is useful for comparisons and introductory calculations, but atmospheric profiles and weather vary in reality.
Frequently Asked Questions
Does air density always decrease with altitude?
In the broad atmospheric profile, density decreases strongly with height because pressure falls. Local temperature and weather can change the exact value, so a particular parcel or measured profile need not follow a simple uniform decline.
What is the air density at sea level?
A common standard reference is 1.225 kg/m³ at 15 °C and 101325 Pa for dry air. Actual sea-level density varies with pressure, temperature, and moisture.
How much does air density change per 1,000 metres?
There is no fixed percentage valid everywhere: the change depends on the starting altitude and temperature profile. In the ISA lower atmosphere, density is about 1.11 kg/m³ at 1,000 m, compared with about 1.225 kg/m³ at sea level.
Is cold air denser than warm air?
At the same pressure and composition, yes. The ideal-gas relation makes density inversely proportional to absolute temperature. In the open atmosphere, pressure also changes, so temperature alone does not determine density.
What is the difference between air pressure and air density?
Pressure measures force per area from air molecules colliding with a surface; density measures air mass per volume. They are connected by temperature and gas composition, but one cannot be substituted for the other without those conditions.
Related
Formula used
in h | Geopotential altitude | m | 0 | -5000 | 20000 in t | Air temperature | °C | 15 | -100 | 50 out rho | Air density | kg/m^3 | (101325 * (1 - 0.0065 * h / 288.15) ^ 5.25588) / (287.05287 * (t + 273.15)) | 4 out p | Standard-atmosphere pressure | Pa | 101325 * (1 - 0.0065 * h / 288.15) ^ 5.25588 | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Gas Correction Factor Formula and Calculator0.9829
- Gas Correction Factor Calculator and Table1.2534
- Gas Temperature: Calculate It from Pressure and Volume298.15 K
- Gas Correction Factor Calculator: Formula and Uses107.322 same as input
- Gas Cv Calculator: Heat Capacity Ratio and Formula20.786 J/(mol·K)
- Density Temperature Correction Calculator and Formula999.25 kg/m^3