molecalculator

Moles & Molar Mass

Air Density Measurement: Formula and Calculator

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

Moist-air density 1.199 kg/m³
Water-vapour partial pressure
1.167 kPa
Result, rounded to 3 decimal places
Dry-air density at same pressure and temperature
1.204 kg/m³
= Air pressure × 1000 ÷ (287.05 × (Air temperature + 273.15))
Air pressure
101.325 kPa
Set in the form below
You enter
Air pressure (kPa), Air temperature (°C), Relative humidity (%)
You get
Moist-air density (kg/m³), Water-vapour partial pressure (kPa), Dry-air density at same pressure and temperature (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 measurement determines the mass of air in a given volume, usually expressed in kilograms per cubic metre (kg/m³). This calculator estimates density from air pressure, temperature, and relative humidity; enter those conditions to get the density, with a dry-air comparison for context.

Formula

The calculator applies the ideal-gas equation separately to dry air and water vapour, then adds their mass densities:

ρ = (p − e)/(RdT) + e/(RvT)

  • ρ is moist-air density in kg/m³.
  • p is total air pressure in pascals (Pa). The input is in kPa, so it is multiplied by 1,000.
  • e is water-vapour partial pressure in Pa.
  • T is absolute temperature in kelvins (K), calculated as temperature in °C + 273.15.
  • Rd is the specific gas constant for dry air, 287.05 J/(kg·K); Rv is the specific gas constant for water vapour, 461.495 J/(kg·K).

To estimate e, the calculator uses e = (RH/100) × es, where RH is relative humidity in percent and es = 610.94 × exp(17.625t/(t + 243.04)) Pa estimates saturation vapour pressure over liquid water for temperature t in °C. This is an empirical approximation, not a universal constant. The dry-air comparison is ρd = p/(RdT), treating all the pressure as dry air.

Worked Example

Using the block’s defaults: pressure 101.325 kPa, temperature 20 °C, and relative humidity 50%:

  1. Convert temperature: T = 20 + 273.15 = 293.15 K.
  2. Estimate saturation vapour pressure: es = 610.94 × exp(17.625 × 20/(20 + 243.04)) ≈ 2,332.6 Pa.
  3. Find actual vapour pressure: e = 0.50 × 2,332.6 ≈ 1,166.3 Pa = 1.1663 kPa.
  4. Convert total pressure: p = 101.325 × 1,000 = 101,325 Pa. Dry-air partial pressure is 101,325 − 1,166.3 = 100,158.7 Pa.
  5. Calculate density: ρ = 100,158.7/(287.05 × 293.15) + 1,166.3/(461.495 × 293.15) ≈ 1.199 kg/m³.
  6. For comparison, dry-air density at the same total pressure and temperature is 101,325/(287.05 × 293.15) ≈ 1.204 kg/m³.

The headline answer is therefore 1.199 kg/m³, rounded to three decimal places. The humidity input represents relative humidity, not the amount of water in the air directly.

Assumptions

  • Air and water vapour are treated as ideal gases.
  • The stated pressure is absolute atmospheric pressure, not gauge pressure.
  • Relative humidity is between 0% and 100%; the saturation-pressure approximation is for ordinary meteorological temperatures, not extreme conditions.
  • Air composition is represented by standard dry-air gas constants; unusual gas mixtures are outside the model.

What Air Density Means

Density is mass divided by volume: ρ = m/V. A cubic metre of air near sea level commonly has a mass around 1.2 kg, but the value changes with conditions. Air is compressible, so its density is not a fixed property like the density of a particular solid at a specified temperature.

Pressure and temperature have the clearest effects. At the same temperature and composition, increasing absolute pressure increases density. At the same pressure, warming air lowers density because the gas expands. Water vapour also matters: at equal temperature and total pressure, humid air is slightly less dense than dry air. Water molecules have a lower molar mass than the average molecules in dry air, so moisture replaces some heavier nitrogen and oxygen molecules.

Ways to Measure or Estimate It

For many practical purposes, density is calculated from measurements of pressure, temperature, and humidity rather than measured directly. A barometer or pressure sensor provides absolute pressure; a thermometer gives air temperature; and a hygrometer estimates relative humidity. The accuracy of the result cannot exceed the quality and placement of these measurements.

A direct mass-and-volume method is possible in a controlled laboratory: determine the mass of a known, sealed volume of air and divide by that volume. However, buoyancy, leaks, temperature changes, and the small mass of the air make careful control important. In weather, aviation, and engineering work, a calculation based on measured atmospheric conditions is generally more convenient.

  • Use pressure measured at the location and time of interest. Weather reports may give pressure adjusted to sea level, which is not the actual local pressure at elevation.
  • Keep the temperature sensor shaded and ventilated; direct sunlight or a warm surface can skew its reading.
  • Allow humidity readings to stabilize, and note whether a sensor reports relative humidity or dew point.

Choosing the Right Calculation

This calculator is intended for ordinary atmospheric air and quick estimates. For dry-air estimates, set relative humidity to 0%, or compare the output with the dry-air result. For high-accuracy work, use a validated moist-air equation of state and the relevant measured conditions; humidity formulas can differ slightly, especially outside common weather ranges.

Altitude is not itself an input to the density formula. It affects density because atmospheric pressure usually falls with height, while temperature and humidity also vary. If you know the actual local pressure, use it directly. Do not substitute a sea-level-corrected weather pressure when you need density at a high-elevation site.

A common misconception is that hot air is always less dense than cold air. That comparison is valid only when pressure and composition are held constant. A high-pressure warm air mass may be denser than a low-pressure cold one. Likewise, a humidity change alone usually has a modest effect compared with a major pressure or temperature change.

Common Errors and Limits

  • Using gauge pressure: Gauge pressure is relative to ambient pressure. The formula needs absolute pressure; a reading of zero gauge pressure does not mean zero atmospheric pressure.
  • Mixing units: Enter pressure in kPa and temperature in °C. The formula converts pressure to Pa and temperature to K internally.
  • Confusing humidity measures: Relative humidity depends on temperature. It is not interchangeable with absolute humidity, mixing ratio, or dew point.
  • Overinterpreting decimals: A result shown to 0.001 kg/m³ does not guarantee that accuracy. Sensor uncertainty and the model approximation may be larger.

The ideal-gas estimate is unsuitable where air composition is unusual, pressure is very high, or conditions are outside the empirical saturation-pressure approximation’s useful range. For a report or design calculation, document the source, timestamp, units, and uncertainty of each input.

Frequently Asked Questions

What is the unit of air density?
SI air density is expressed in kilograms per cubic metre (kg/m³). Some fields use grams per litre; numerically, 1 kg/m³ equals 1 g/L.

How dense is air at room temperature?
Near 20 °C and standard atmospheric pressure, dry air is about 1.204 kg/m³. Humidity lowers the value slightly; the calculator’s default conditions give about 1.199 kg/m³.

Does humidity increase or decrease air density?
At the same temperature and total pressure, increasing humidity generally decreases density because water vapour is lighter, molecule for molecule, than the main components of dry air.

Can I calculate air density from altitude alone?
Not precisely. Altitude can help estimate pressure under a chosen atmospheric model, but actual temperature, weather, and humidity also affect density. Use local measured pressure where possible.

What pressure should I enter?
Enter absolute pressure at the location, in kPa. Do not enter gauge pressure or a sea-level-adjusted pressure unless that value truly represents local atmospheric pressure.

Related

Formula used
in p | Air pressure | kPa | 101.325 | 0
in t | Air temperature | °C | 20 | -273.15
in rh | Relative humidity | % | 50 | 0 | 100
out rho | Moist-air density | kg/m³ | ((p * 1000 - (rh / 100 * 610.94 * exp(17.625 * t / (t + 243.04)))) / (287.05 * (t + 273.15))) + ((rh / 100 * 610.94 * exp(17.625 * t / (t + 243.04))) / (461.495 * (t + 273.15))) | 3
out rhov | Water-vapour partial pressure | kPa | rh / 100 * 610.94 * exp(17.625 * t / (t + 243.04)) / 1000 | 3
out rhod | Dry-air density at same pressure and temperature | 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 →