molecalculator

Moles & Molar Mass

Air Density Calculator: Calculate Density From Pressure

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

Dry-air density 1.2041 kg/m^3
Absolute temperature
293.15 K
= Air temperature + 273.15
Absolute pressure
101.325 kPa
Set in the form below
Air temperature
20 °C
Set in the form below
You enter
Absolute pressure (kPa), Air temperature (°C)
You get
Dry-air density (kg/m^3), Absolute temperature (K)
Rounding
4 dp · 2 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.

An air density calculator estimates the mass of air per unit volume from its pressure, temperature, and—if included—water-vapor content. Enter pressure in kPa and temperature in °C to calculate dry-air density in kg/m³; this calculator uses the ideal-gas law and assumes dry air.

Formula

The ideal-gas density equation is ρ = p / (RdT). In the calculator’s units, it is ρ = (p × 1,000) / [287.05 × (t + 273.15)].

  • ρ is dry-air density in kilograms per cubic metre (kg/m³).
  • p is absolute pressure in kilopascals (kPa). The factor 1,000 converts kPa to pascals (Pa).
  • t is air temperature in degrees Celsius (°C). Adding 273.15 converts it to absolute temperature, kelvins (K).
  • Rd is the specific gas constant for dry air, 287.05 joules per kilogram per kelvin (J/(kg·K)).

The gas law requires absolute pressure and absolute temperature. Do not enter gauge pressure—the pressure relative to the surrounding atmosphere—without first converting it to absolute pressure. The displayed temperature output is a helper value in kelvins.

Worked Example

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

  1. Convert pressure: 101.325 kPa × 1,000 = 101,325 Pa.
  2. Convert temperature: 20 °C + 273.15 = 293.15 K.
  3. Substitute into the equation: ρ = 101,325 Pa / [287.05 J/(kg·K) × 293.15 K].
  4. Calculate: ρ ≈ 1.2041 kg/m³ (four decimal places).

The result is the estimated mass of dry air in one cubic metre under those conditions. It is not a universal value for air: changing pressure, temperature, or humidity changes density.

Assumptions

  • Air is treated as dry, with a fixed specific gas constant of 287.05 J/(kg·K).
  • Air behaves as an ideal gas. This is a useful approximation for ordinary atmospheric conditions.
  • Pressure is absolute, not gauge pressure.
  • Temperature is uniform and converted from °C to K using +273.15.
  • The calculation estimates density only; it does not account for local weather variation or instrument uncertainty.

What Air Density Means

Air density describes how much mass occupies a given volume. At equal pressure, warm air is less dense than cold air because its molecules occupy more volume; at equal temperature, air at higher pressure is denser. For example, a weather station at a high elevation generally experiences lower atmospheric pressure than one near sea level, so air density is usually lower there, all else being equal.

Density matters in several fields. In aviation, it affects how much air an aircraft’s wings and engines encounter. In weather and fluid mechanics, it helps describe air movement and buoyancy. In laboratory calculations, it can be relevant when a gas volume must be related to its mass. For applications requiring high precision, use measured local pressure and temperature and an appropriate moist-air model rather than treating the calculator’s estimate as a certified measurement.

Humidity and Related Measures

Water vapor makes humid air slightly less dense than dry air at the same temperature and total pressure. This can seem counterintuitive: humid air contains more water molecules, but water molecules have a lower average molar mass than the nitrogen-and-oxygen mixture they replace. The dry-air calculation above does not correct for that effect, so its output is not a humidity-adjusted density.

Humidity adjustment requires additional information, commonly relative humidity or water-vapor partial pressure, alongside temperature and total pressure. Relative humidity alone is not enough without temperature, because the saturation vapor pressure depends strongly on temperature. If a weather or engineering source reports “air density,” check whether it means dry-air density, moist-air density, or a standard-atmosphere reference value.

Air density is also distinct from specific gravity, which is a dimensionless ratio to a reference density, and from altitude, which is not itself a density. A common approximation is to infer density from elevation using a standard atmosphere, but actual pressure and temperature vary with weather and location.

Using the Result and Avoiding Errors

Use the result as an estimate for the stated conditions, not as a fixed property of “air.” Keep the units consistent: the input pressure is kPa, the equation converts it to Pa, and the gas constant is in J/(kg·K). Since one joule is one pascal cubic metre, the units reduce to kg/m³.

  • Use absolute pressure. A gauge reading of zero does not mean zero atmospheric pressure. Add local atmospheric pressure to gauge pressure when the pressure is reported relative to ambient air.
  • Convert Celsius to kelvins. Substituting a Celsius number directly into the gas-law denominator produces an invalid result.
  • Check the pressure unit. Do not enter pascals where the calculator asks for kPa. For reference, 101.325 kPa equals 101,325 Pa.
  • Interpret precision realistically. Four decimal places are a display choice, not a guarantee of measurement accuracy. Input uncertainty and atmospheric variation may exceed the final displayed digit.

The ideal-gas equation is appropriate for many ordinary atmospheric calculations, but specialized work may need a more detailed equation of state or a moist-air calculation. Very low temperatures, unusual pressures, or strict engineering tolerances call for a model suited to those conditions and verified input data.

Frequently Asked Questions

What is the density of air at 20 °C?
At 101.325 kPa absolute pressure, this dry-air ideal-gas calculation gives approximately 1.2041 kg/m³ at 20 °C. The value changes with actual pressure, temperature, and humidity.

Does air density increase with temperature?
At constant pressure, no. The ideal-gas relationship predicts lower density as absolute temperature rises. If pressure changes at the same time, its effect must also be included.

Does humidity make air heavier?
At the same temperature and total pressure, adding water vapor generally makes air less dense, because water vapor has a lower molar mass than the dry-air mixture it displaces.

Can I use gauge pressure in the calculator?
No. Enter absolute pressure. Gauge pressure is measured relative to ambient pressure, so convert it to absolute pressure before using this formula.

What is a typical air density in kg/m³?
Near sea-level standard pressure and around 15 °C, dry-air density is about 1.225 kg/m³. That is a reference condition, not a constant; local conditions can give a different value.

Related

Formula used
in p | Absolute pressure | kPa | 101.325 | 0
in t | Air temperature | °C | 20 | -273.14
out rho | Dry-air density | kg/m^3 | p * 1000 / (287.05 * (t + 273.15)) | 4
out tk | Absolute temperature | K | t + 273.15 | 2

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 →