molecalculator

Moles & Molar Mass

Air Density Calculator: Formula, Factors, and Examples

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

Air density 1.204 kg/m³
Absolute air pressure
101.325 kPa
Set in the form below
Air temperature
20 °C
Set in the form below
You enter
Absolute air pressure (kPa), Air temperature (°C)
You get
Air density (kg/m³)
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 is the mass of air in a given volume, usually expressed in kilograms per cubic metre (kg/m³). This calculator estimates density from air pressure and temperature using the ideal-gas equation; enter pressure in kilopascals and temperature in °C to get density in kg/m³.

Formula

For dry air treated as an ideal gas, density is pressure divided by the specific gas constant for dry air multiplied by absolute temperature:

ρ = p / (Rd T)

  • ρ is air density in kg/m³.
  • p is absolute air pressure in pascals (Pa). The calculator converts kilopascals to pascals by multiplying by 1,000.
  • Rd is the specific gas constant for dry air, taken here as 287.05 J/(kg·K).
  • T is absolute temperature in kelvins (K), calculated as temperature in °C + 273.15.

The calculator therefore uses ρ = (p × 1,000) / [287.05 × (t + 273.15)]. Use absolute pressure, not gauge pressure: a gauge reading is relative to the surrounding atmosphere and must be converted before applying this formula.

Worked Example

Using the default inputs, pressure is 101.325 kPa and temperature is 20 °C.

  1. Convert pressure: 101.325 × 1,000 = 101,325 Pa.
  2. Convert temperature: 20 + 273.15 = 293.15 K.
  3. Substitute: ρ = 101,325 / (287.05 × 293.15).
  4. Calculate: ρ ≈ 1.204 kg/m³, rounded to three decimal places.

Assumptions

  • Air is treated as a dry, ideal gas with a fixed specific gas constant of 287.05 J/(kg·K).
  • Pressure is absolute and uniform for the calculation.
  • Temperature is uniform and above absolute zero.
  • Humidity and the small departures of real air from ideal-gas behaviour are not included.

What Air Density Means

Density describes how much mass occupies a particular volume. At a density of 1.204 kg/m³, for example, one cubic metre of air has a mass of about 1.204 kilograms under the stated conditions. Air is a mixture, mostly nitrogen and oxygen, with smaller amounts of other gases and variable water vapour. Its density is low compared with that of liquids because gas molecules are widely spaced, but it is not negligible: air has mass, exerts pressure, and affects motion and heat transfer.

Density is not one fixed property of “air.” It changes when the state of the air changes. A density value is meaningful only alongside conditions such as pressure, temperature, and, when greater precision matters, humidity and composition. The default example is close to the familiar standard-pressure conditions at sea level, but it is not a universal density for every place or weather situation.

Why Pressure, Temperature, and Humidity Matter

The ideal-gas relationship makes the main effects clear. At unchanged temperature, increasing absolute pressure increases density in direct proportion. At unchanged pressure, increasing absolute temperature lowers density: warmer air expands, so the same mass occupies more space. For example, air at the same pressure is less dense at 30 °C than at 20 °C.

Altitude commonly affects density because atmospheric pressure generally falls as elevation increases. Weather systems also change pressure, and temperature varies with location and time, so elevation alone does not specify density. For an accurate estimate, use pressure measured at the location and time of interest. Do not substitute a weather report’s sea-level-adjusted pressure for local station pressure unless it has been converted appropriately.

Humidity is a subtler factor. At equal temperature and pressure, moist air is slightly less dense than dry air because water molecules have a lower molar mass than the average molecules they replace in dry air. The calculator assumes dry air, so it is suitable for many general estimates but does not resolve humidity-sensitive applications. A more detailed calculation needs water-vapour content or relative humidity as well as temperature and pressure.

Using the Result and Common Mistakes

The result is a mass per volume, not a weight per volume. To estimate the mass of air in a space, multiply density by the space’s volume: mass = density × volume. A room of 50 m³ at 1.204 kg/m³ contains about 60.2 kg of air, assuming its conditions are uniform. The estimate does not mean that all this air is necessarily moving or available for a particular process.

  • Use absolute pressure. A pressure gauge may show zero at the surrounding atmosphere; that is not zero absolute pressure. Add local atmospheric pressure to gauge pressure when appropriate.
  • Convert units consistently. This calculator accepts kPa and °C. The formula uses Pa and K internally; entering a temperature in kelvins as though it were °C gives a wrong answer.
  • Do not treat sea-level density as universal. Pressure and temperature vary with elevation and weather.
  • Respect precision. The displayed three decimal places are a rounding choice, not a claim that the inputs or dry-air model are exact to that precision.

For aircraft performance, ventilation, combustion calculations, or other engineering work, use the appropriate standard or method and account for humidity and local conditions when required. The simple calculation is a useful first estimate, not a substitute for a specified atmospheric model or measured data.

Air Density Compared with Related Quantities

Air pressure and air density are related but are not interchangeable. Pressure measures force per area; density measures mass per volume. At a particular temperature, the ideal-gas equation links them, but pressure alone cannot determine density without temperature (and, for more precise work, composition). Temperature alone is likewise insufficient.

Specific weight is different again: it is weight per volume, commonly expressed in newtons per cubic metre. It depends on gravitational acceleration as well as density. Buoyancy is also related to density differences: an object or parcel of air in a surrounding fluid experiences an upward buoyant effect when it displaces a denser fluid. This helps explain why warm air tends to rise in cooler surroundings, though real air movement also depends on pressure patterns, mixing, and other forces.

Frequently Asked Questions

What is the density of air at room temperature?
At 101.325 kPa and 20 °C, the dry-air ideal-gas estimate is about 1.204 kg/m³. Actual density depends on local pressure, temperature, humidity, and composition.

Does air density increase with altitude?
No. Atmospheric pressure generally decreases with altitude, and density usually decreases with it. Temperature also changes with altitude, so a precise value requires both pressure and temperature.

Is cold air denser than warm air?
At the same pressure and composition, yes. Lower absolute temperature means greater density under the ideal-gas relationship.

Is humid air heavier than dry air?
At the same temperature and pressure, humid air is slightly less dense than dry air. Water vapour has a lower molar mass than the average dry-air mixture.

What units are used for air density?
The SI unit is kilograms per cubic metre (kg/m³). Other units exist, but values should be converted carefully before comparison.

Related

Formula used
in p | Absolute air pressure | kPa | 101.325 | 0
in t | Air temperature | °C | 20 | -273.15
out d | Air density | kg/m³ | 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 →