molecalculator

Moles & Molar Mass

Air Density ρ Calculator and Ideal-Gas Formula

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

Air density 1.190 kg/m³
Water-vapor partial pressure
1.168 kPa
Result, rounded to 3 decimal places
Air pressure
101.325 kPa
Set in the form below
Air temperature
20 °C
Set in the form below
You enter
Air pressure (kPa), Air temperature (°C), Relative humidity (%)
You get
Air density (kg/m³), Water-vapor partial pressure (kPa)
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, written as ρ (rho), is the mass of air per unit volume, usually expressed in kilograms per cubic metre (kg/m³). This calculator uses air pressure, temperature, and relative humidity to estimate moist-air density; enter pressure in kPa, temperature in °C, and relative humidity as a percent to get density in kg/m³.

Formula

The calculator estimates moist-air density using the ideal-gas equation applied separately to dry air and water vapor:

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

  • ρ is moist-air density in kg/m³.
  • p is total air pressure in pascals (Pa). The calculator converts the entered kPa to Pa by multiplying by 1000.
  • e is water-vapor 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 that for water vapor, 461.5 J/(kg·K).

For vapor pressure, it uses the Magnus approximation: e = (RH/100) × 611.2 × exp(17.67t/(t + 243.5)), where RH is relative humidity in percent, t is temperature in °C, and e is in Pa. The second output reports that vapor pressure in kPa. The density output is algebraically simplified to ρ = [p − e(1 − Rd/Rv)]/(RdT); the expression in the calculator uses the constants above and pressure in Pa.

Worked Example

Use the default inputs: pressure 101.325 kPa, temperature 20 °C, and relative humidity 50%.

  1. Convert temperature: T = 20 + 273.15 = 293.15 K.
  2. Estimate saturation vapor pressure: 611.2 × exp(17.67 × 20 / (20 + 243.5)) ≈ 2338.3 Pa.
  3. At 50% relative humidity, e = 0.50 × 2338.3 ≈ 1169.2 Pa, or 1.1692 kPa.
  4. Convert total pressure: p = 101.325 × 1000 = 101325 Pa.
  5. Calculate density: ρ = (101325 − 1169.2)/(287.05 × 293.15) + 1169.2/(461.5 × 293.15) ≈ 1.199 kg/m³.

The calculator displays 1.199 kg/m³ and a water-vapor partial pressure of 1.169 kPa, rounded to three decimal places.

Assumptions

  • Air and water vapor behave as ideal gases at the entered conditions.
  • The Magnus equation is an approximation for saturation vapor pressure over liquid water, with temperature in °C.
  • Pressure is absolute atmospheric pressure, not gauge pressure.
  • Air is treated as dry air plus water vapor; unusual gas mixtures and contaminants are not included.

What Air Density Means

Density is mass divided by volume: ρ = m/V. A cubic metre of air at a density of 1.2 kg/m³ therefore has a mass of about 1.2 kg. Air is compressible, so its density is not a single fixed value. It changes with pressure, temperature, moisture, and—in sufficiently precise work—composition and local gravity-related effects.

The Greek letter rho is the conventional symbol for density in physics and engineering. Air-density values are often near 1.2 kg/m³ around ordinary room conditions at sea level, but that is only a useful reference, not a universal constant. This calculator estimates the value for the conditions you enter.

How Pressure, Temperature, and Humidity Affect It

At the same temperature and composition, increasing absolute pressure increases density: more gas particles occupy each unit of volume. Warming air at the same pressure generally lowers density because the gas expands. These relationships follow from the ideal-gas law, with temperature expressed in kelvins rather than Celsius.

Water vapor makes air slightly less dense than dry air at the same temperature and total pressure. A water molecule has a lower molar mass (about 18.015 g/mol) than the average dry-air molecule (about 28.97 g/mol). In humid air, some of the pressure contribution comes from lighter water-vapor molecules in place of heavier dry-air molecules. Humidity does not simply add the mass of water to an otherwise unchanged volume; pressure, temperature, and gas mixture all matter.

For example, density falls when a weather balloon rises into lower pressure, even if its temperature also falls. The temperature change can partly offset the pressure effect, so both measurements are needed for a useful estimate.

Using the Calculator and Reading the Result

  • Enter absolute pressure in kPa. A standard sea-level reference is 101.325 kPa, but actual weather and altitude change local pressure.
  • Enter air temperature in °C. The calculation converts it to kelvins internally.
  • Enter relative humidity from 0% to 100%. If humidity is unavailable, use 0% only as an explicitly dry-air approximation, not as a claim about real conditions.
  • Read ρ in kg/m³. For a volume V in m³, its air mass is approximately ρV in kg, provided conditions are reasonably uniform.

For instance, 10 m³ of air at 1.199 kg/m³ has an estimated mass of about 11.99 kg. If the volume is in litres, first convert it to cubic metres: 1000 L = 1 m³.

Common Errors and Limits

A frequent mistake is entering a gauge pressure where absolute pressure is required. Gauge pressure measures pressure above the surrounding atmosphere; air-law calculations need total absolute pressure. Another is using Celsius directly in a gas-law denominator. The correct conversion is K = °C + 273.15; a temperature of 20 °C is 293.15 K, not 20 K.

Relative humidity is not the same as the amount of water in the air. It expresses the ratio of actual vapor pressure to saturation vapor pressure at that temperature. The same relative humidity at two different temperatures can correspond to different water-vapor partial pressures and densities.

This is an engineering estimate, not a high-precision atmospheric model. The Magnus approximation and fixed gas constants are suitable for many ordinary conditions, but high-accuracy meteorology, very unusual pressures or temperatures, and specialized gas mixtures may require a more complete equation of state and measured atmospheric data. The calculator also cannot determine pressure from elevation alone; local weather and the temperature profile matter.

Frequently Asked Questions

What is the density of air at sea level?
There is no one exact value because temperature, humidity, and weather pressure vary. A commonly used reference near 15 °C, standard atmospheric pressure, and dry-air conditions is about 1.225 kg/m³. Near 20 °C and standard pressure, density is lower; humidity lowers it slightly further.

What does ρ mean in an air-density equation?
ρ (rho) denotes density: mass per unit volume. For air, it is commonly given in kg/m³. It is distinct from pressure, which is usually written p.

Does hot air weigh less than cold air?
At the same pressure and volume, warmer air has lower density and therefore less mass in that volume. But a fixed mass of air does not lose mass merely because it warms; it generally expands or changes pressure.

Does humidity make air heavier?
At the same temperature and total pressure, adding water vapor usually makes air less dense, because water vapor has lower molecular mass than dry air. The result depends on comparing air at the same conditions.

How do I convert kg/m³ to g/L?
The numerical values are identical: 1 kg/m³ equals 1 g/L. Both units describe the same mass per volume after converting kilograms to grams and cubic metres to litres.

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 | Air density | kg/m³ | (p * 1000 - rh / 100 * 611.2 * exp(17.67 * t / (t + 243.5))) / (287.05 * (t + 273.15)) | 3
out tv | Water-vapor partial pressure | kPa | rh / 100 * 611.2 * exp(17.67 * t / (t + 243.5)) / 1000 | 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 →