Air density is mass per unit volume, usually reported in kilograms per cubic metre (kg/m³). This calculator estimates the density of dry air from its pressure, temperature, and water-vapour content; enter pressure in kPa, temperature in °C, and relative humidity in percent to get density in kg/m³.
Formula
The calculator treats air as a mixture of dry air and water vapour, with each gas following the ideal-gas equation. Its density is the sum of the dry-air and water-vapour contributions:
ρ = (p − e) / (RdT) + e / (RvT)
- ρ is moist-air density in kg/m³.
- p is total air pressure in pascals (Pa); the input is converted from kPa by multiplying by 1,000.
- e is water-vapour partial pressure in Pa.
- T is absolute temperature in kelvins (K), calculated as °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).
Vapour pressure is estimated as e = (RH/100) × 610.94 × exp[17.625t/(t + 243.04)] Pa, where RH is relative humidity in percent, t is temperature in °C, and exp is the exponential function. This is a common Magnus-form approximation for saturation vapour pressure over liquid water. The density expression uses p in Pa, so the calculator’s vapour-pressure output converts e to kPa by dividing by 1,000.
Worked Example
Using the defaults—101.325 kPa, 20 °C, and 50% relative humidity—first convert temperature and pressure:
T = 20 + 273.15 = 293.15 K
p = 101.325 × 1,000 = 101,325 Pa
Estimate saturation vapour pressure at 20 °C:
es = 610.94 × exp[17.625 × 20 / (20 + 243.04)] ≈ 2,332.6 Pa
At 50% relative humidity, e = 0.50 × 2,332.6 ≈ 1,166.3 Pa. The dry-air partial pressure is therefore p − e ≈ 101,325 − 1,166.3 = 100,158.7 Pa.
ρ ≈ 100,158.7 / (287.05 × 293.15) + 1,166.3 / (461.495 × 293.15) ≈ 1.199 kg/m³
The calculator displays 1.199 kg/m³ to three decimal places. Its water-vapour pressure output is 1.166 kPa.
Assumptions
- Air and water vapour are treated as ideal gases.
- The Magnus saturation-pressure equation is an approximation for ordinary atmospheric conditions over liquid water.
- Relative humidity is supplied as a percentage between 0 and 100, and pressure is absolute atmospheric pressure, not gauge pressure.
- The calculation does not separately account for carbon dioxide variation, pollutants, or other trace gases.
What Air Density Means
Density describes how much mass occupies a given volume. A cubic metre of air at ordinary sea-level conditions has a mass of roughly 1.2 kg, but there is no single fixed value for “the density of air.” Temperature, pressure, humidity, and composition all matter.
Air density is not the same as air pressure. Pressure measures force per area from the impacts of gas molecules; density measures mass per volume. They are connected by gas laws, but the same pressure can correspond to different densities at different temperatures. For example, warming air at unchanged pressure makes it expand, so a fixed volume contains less mass.
How Temperature, Pressure, and Humidity Change It
- Temperature: At fixed pressure, warmer air is less dense because the molecules occupy more volume. In the calculator’s dry-air approximation, air at 30 °C and 101.325 kPa is less dense than air at 0 °C at the same pressure.
- Pressure: At fixed temperature and composition, greater absolute pressure means greater density. High-altitude locations generally have lower atmospheric pressure and lower air density.
- Humidity: At a fixed temperature and total pressure, adding water vapour generally lowers air density. Water molecules (molar mass about 18 g/mol) are lighter than the main components of dry air, whose average molar mass is about 29 g/mol.
The humidity effect is often smaller than the effects of large temperature or altitude changes, but it matters in precise calculations. Relative humidity is temperature-dependent: 50% RH does not represent a fixed quantity of water vapour across different temperatures. The calculator therefore uses both temperature and relative humidity to estimate vapour partial pressure.
Where Air Density Is Useful
Density helps explain lift and drag in aviation, buoyancy, wind loading, ventilation, and the performance of engines and other equipment that move air. It also appears in meteorology and in converting a measured air volume into an estimated mass. For instance, multiplying density by volume gives the mass of air in that volume: 10 m³ at 1.199 kg/m³ contains about 11.99 kg of air.
In flight planning, density altitude is a related but distinct quantity: it expresses how the air’s density compares with the density of the standard atmosphere at a particular altitude. It is not simply the site elevation or the temperature. Aircraft performance decisions require approved aviation data and procedures; this basic calculator is not a substitute.
Common Measurement and Calculation Errors
- Using gauge pressure: The formula needs absolute pressure. A gauge reading of zero means pressure is approximately atmospheric, not zero. Add local atmospheric pressure to gauge pressure before using the result.
- Mixing units: Enter pressure in kPa and temperature in °C as labeled. Do not enter Pa as if it were kPa, or enter Fahrenheit without converting it.
- Assuming a universal value: The familiar value around 1.2 kg/m³ is only a convenient approximation near ordinary conditions, not a constant.
- Confusing relative humidity with vapour pressure: RH is a percentage relative to saturation at the current temperature. It must not be entered as a pressure.
For high-precision work, use a recognized moist-air equation of state and reliable local measurements. The simple ideal-gas treatment is suitable for many everyday estimates but does not capture every real-gas effect or variation in atmospheric composition.
Frequently Asked Questions
What is the metric unit for air density?
The SI unit is kilograms per cubic metre (kg/m³). Grams per litre (g/L) has the same numerical value, because 1 kg/m³ equals 1 g/L.
What is the density of air at sea level?
There is no one value without specifying temperature and humidity. Near 101.325 kPa and 20 °C, dry-air density is about 1.204 kg/m³; at 50% relative humidity it is about 1.199 kg/m³.
Does humid air weigh more than dry air?
At the same temperature and total pressure, humid air is generally less dense than dry air. Water vapour replaces some heavier nitrogen and oxygen molecules with lighter molecules.
How do I calculate air density from temperature and pressure?
For dry air, use ρ = p/(RdT), with absolute pressure in Pa, temperature in K, and Rd = 287.05 J/(kg·K). For humid air, include water-vapour partial pressure as shown in the formula above.
Is air density the same as atmospheric pressure?
No. Pressure is force per area, while density is mass per volume. Pressure influences density, but temperature and moisture also affect it.
Related
Formula used
in p | Air pressure | kPa | 101.325 | 0.001 in t | Air temperature | °C | 20 | -273.15 in rh | Relative humidity | % | 50 | 0 | 100 out rho | Air density | kg/m^3 | (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 pv | Water-vapour pressure | kPa | rh / 100 * 610.94 * exp(17.625 * t / (t + 243.04)) / 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
- Skip Calculator for Soil: What It Can and Can’t Do7.500 m³
- USD to KPW Calculator: Convert Dollars to North Korean Won90,000.00 KPW
- OK Calculator on TV on the Radio? Meaning Explained
- Pension Calculator KP: Estimate Your Pension Benefits
- Neonatal Kp Calculator: What It Means80.0000 mmol/mmol
- Newton to kp Converter Calculator and Formula1.0000 kp