molecalculator

Moles & Molar Mass

Air Density and Altitude: What Changes as You Climb

Calculator No. 01-1741 · Updated · Formula and assumptions shown below

Air density 1.225 kg/m^3
Air pressure
101.325 kPa
Set in the form below
Air temperature
15 °C
Set in the form below
You enter
Air pressure (kPa), Air temperature (°C)
You get
Air density (kg/m^3)
Rounding
3 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

Air density decreases as altitude increases: the atmosphere becomes thinner because air pressure generally falls with height. This calculator estimates air density from pressure and temperature, using the ideal-gas relationship; enter those two conditions to get density in kilograms per cubic metre.

Formula

For dry air treated as an ideal gas, density equals pressure divided by the product of the specific gas constant for dry air and absolute temperature:

ρ = p / (RdT)

  • ρ is air density in kg/m³.
  • p is absolute air pressure in pascals. The calculator accepts kilopascals and converts them to pascals by multiplying by 1,000.
  • Rd is the specific gas constant for dry air, 287.05 J/(kg·K), a conventional value.
  • T is absolute temperature in kelvins. Convert degrees Celsius to kelvins by adding 273.15.

The calculator therefore evaluates ρ = (p × 1,000) / [287.05 × (t + 273.15)]. Pressure must be absolute pressure, not gauge pressure. The input limit prevents temperatures below absolute zero.

Worked Example

Using the defaults, pressure is 101.325 kPa and temperature is 15 °C.

  1. Convert pressure: 101.325 kPa × 1,000 = 101,325 Pa.
  2. Convert temperature: 15 + 273.15 = 288.15 K.
  3. Substitute into the ideal-gas formula: ρ = 101,325 / (287.05 × 288.15) = 1.2250 kg/m³.

Rounded to the calculator’s three decimal places, the result is 1.225 kg/m³, a representative density for dry air under these standard near-sea-level conditions.

Assumptions

  • Air is dry and behaves as an ideal gas.
  • The specific gas constant is 287.05 J/(kg·K).
  • Pressure is absolute, and temperature is converted to kelvins.
  • The result describes the entered pressure and temperature; altitude is not independently entered or inferred.

Why Air Density Falls With Altitude

Gravity pulls the atmosphere toward Earth. The weight of the air above a location creates pressure, so there is generally less air above you at higher elevations and therefore lower atmospheric pressure. Lower pressure means fewer air molecules in a given volume, all else equal. Since density is mass per unit volume, air density usually falls as altitude rises.

Altitude alone does not determine density exactly. Temperature and moisture also matter, and weather systems can change pressure at the same elevation. The calculator uses pressure and temperature directly because these are the quantities that determine density in the stated ideal-gas model.

A familiar reference is the International Standard Atmosphere near sea level: at 15 °C and 101.325 kPa, dry-air density is about 1.225 kg/m³. That is a reference condition, not a promise that every sea-level location has that density. A warm day, low-pressure weather, or humid air can produce a different value.

How Temperature and Humidity Change the Result

At fixed pressure, warmer air is less dense than cooler air. Heating increases the average molecular motion; in a gas that can expand, the same pressure is maintained with a greater volume, so each unit of volume contains less mass. In the equation, increasing absolute temperature increases the denominator and lowers density.

Humidity has a subtler effect. Water molecules have a lower molar mass than the average molecules in dry air. At the same temperature and pressure, humid air is therefore slightly less dense than dry air. This calculator ignores water vapour and is most appropriate when dry-air accuracy is sufficient. For precise atmospheric or engineering calculations, use a moist-air model and reliable local measurements.

Altitude, Pressure, and Practical Effects

In a standard atmosphere, pressure and density decrease progressively with altitude, but the relationship is not a simple fixed decrease per metre across all heights. Temperature changes with altitude in layers, and actual weather departs from the standard atmosphere. For this reason, a density estimate based on measured local pressure and temperature is often more useful than one based only on elevation.

Lower air density has practical consequences. Aircraft wings and propellers interact with fewer air molecules, so lift and thrust can be reduced for a given speed and setup. Engines that take in air also receive less oxygen per unit volume. At high-elevation airports, pilots account for density altitude: the altitude in a standard atmosphere at which the observed air density would occur. Warm temperatures and low pressure can make density altitude higher than the site’s actual elevation.

For weather, hiking, or classroom comparisons, the calculator gives a useful first estimate. It is not a flight-planning tool and should not replace approved aviation charts, procedures, or performance data.

Common Misconceptions and Limits

  • “Air density always falls with every step upward.” The broad trend is downward, but local temperature, pressure patterns, and atmospheric layering affect the exact value.
  • “The same altitude always means the same density.” It does not. Two places at the same elevation can have different pressure, temperature, and humidity.
  • “Gauge pressure is suitable input.” The formula requires absolute pressure. Gauge pressure is measured relative to surrounding atmospheric pressure; use a local absolute-pressure value instead.
  • “This dry-air calculation includes humidity.” It does not. Water vapour changes the mixture’s average molecular mass, so the result is an approximation for humid conditions.

The ideal-gas approximation is generally useful for ordinary atmospheric conditions, but very high accuracy may require accounting for humidity, composition, and real-gas effects. Rounding also matters: pressure and temperature readings have measurement uncertainty, so reporting many decimal places does not make the underlying estimate more precise.

Frequently Asked Questions

Does air density increase or decrease with altitude?
It generally decreases. Atmospheric pressure usually falls with height, leaving fewer air molecules in a given volume, though local temperature and weather affect the precise value.

Why does air pressure decrease as altitude increases?
Pressure at a location is related to the weight of the atmosphere above it. At higher elevations, less air lies overhead, so the pressure is generally lower.

Is air denser on a cold day?
At the same pressure, dry air is denser at a lower temperature. Actual comparisons also depend on pressure and humidity, so temperature alone is not enough to establish which location has denser air.

Does humid air weigh more than dry air?
At the same temperature and pressure, humid air is slightly less dense than dry air because water vapour has a lower molecular mass than the main gases in dry air.

What is standard sea-level air density?
A commonly used International Standard Atmosphere value is about 1.225 kg/m³ at 15 °C and 101.325 kPa for dry air. Real conditions vary.

Can I calculate air density from altitude alone?
Only by assuming a standard atmospheric model. For an estimate under actual conditions, use local absolute pressure and temperature; include humidity when greater precision is needed.

Related

Formula used
in p | Air pressure | kPa | 101.325 | 0
in t | Air temperature | °C | 15 | -273.15
out rho | Air density | kg/m^3 | (p * 1000) / (287.05 * (t + 273.15)) | 3

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

The whole Moles & Molar Mass section →