Air density in SI units is measured in kilograms per cubic metre (kg/m³). This calculator estimates dry-air density from air pressure and temperature, with an optional relative-humidity correction, and returns density in kg/m³.
Formula
For dry air, density follows the ideal-gas relation: ρ = p / (RdT). Here, ρ is density in kg/m³, p is absolute pressure in pascals (Pa), T is absolute temperature in kelvins (K), and Rd is the specific gas constant for dry air, taken here as 287.05 J/(kg·K). Since 1 J = 1 Pa·m³, the units reduce to kg/m³.
For the calculator’s moist-air estimate, the formula is ρ = [p / (RdT)] × [1 − 0.378(e/p)]. Relative humidity is entered as a percentage and divided by 100 to obtain a fraction. Water-vapour pressure is estimated as e = (RH/100) × 611.2 × exp[17.67t/(t + 243.5)] Pa, where t is temperature in °C. The 611.2 Pa and exponential expression are a commonly used approximation for saturation vapour pressure over liquid water near ordinary atmospheric conditions; they are not a universal model for every temperature or phase. The constant 0.378 is approximately 1 − 0.622, based on the ratio of the molar masses of water vapour and dry air.
The second output, ρd = p/(RdT), gives the dry-air ideal-gas estimate at the same pressure and temperature. It lets you compare the effect of the entered humidity. Both outputs are rounded to three decimal places, while calculations use the unrounded values.
Worked Example
Using the defaults—pressure 101325 Pa, temperature 20 °C, and relative humidity 50%—first convert temperature to kelvins:
T = 20 + 273.15 = 293.15 K.
Estimate saturation vapour pressure at 20 °C:
es = 611.2 × exp[(17.67 × 20)/(20 + 243.5)] ≈ 2333.44 Pa.
At 50% relative humidity, water-vapour pressure is:
e = 0.50 × 2333.44 ≈ 1166.72 Pa.
The dry-air estimate is:
ρd = 101325 / (287.05 × 293.15) ≈ 1.20412 kg/m³, which the calculator displays as 1.204 kg/m³.
Apply the humidity correction:
ρ = 1.20412 × [1 − 0.378 × (1166.72 / 101325)] ≈ 1.19888 kg/m³, displayed as 1.199 kg/m³.
Assumptions
- Air behaves as an ideal gas, with Rd = 287.05 J/(kg·K).
- Pressure is absolute pressure, not gauge pressure.
- The humidity correction estimates ordinary moist air using an approximate saturation-vapour-pressure relation over liquid water.
- The estimate does not separately account for carbon dioxide, unusual air composition, or non-ideal effects at extreme pressure or temperature.
Why SI Air Density Uses kg/m³
Density means mass divided by volume. In the International System of Units, mass is expressed in kilograms and volume in cubic metres, so the derived unit is kg/m³. A cubic metre is a volume 1 m long, 1 m wide, and 1 m high. The unit is not kg per square metre, which describes mass per area, and it is not kg per litre.
Air is a mixture of gases, so its density is not a single fixed material constant. It changes mainly with pressure, temperature, and water-vapour content. Near sea level and around room temperature, dry-air density is roughly 1.2 kg/m³, but that is a useful reference rather than a value that applies everywhere.
Sometimes density is reported in grams per litre (g/L). This has the same numerical value as kg/m³: 1 kg/m³ = 1 g/L. For example, 1.204 kg/m³ is also 1.204 g/L. The conversion works because both the mass and volume units change by a factor of 1,000.
How Pressure, Temperature, and Humidity Affect Density
At fixed temperature and composition, increasing pressure packs more gas molecules into each cubic metre, so density rises. At fixed pressure, warming air makes it expand; its density falls. This is why a calculation needs the conditions, not simply the phrase “air density.”
Water vapour is lighter per molecule than the nitrogen-and-oxygen mixture that makes up most dry air. At equal pressure and temperature, adding water vapour therefore makes humid air slightly less dense than dry air. Humidity’s effect is usually smaller than the effect of a substantial change in pressure or temperature, but it can matter in precise calculations.
- Higher elevation: atmospheric pressure is generally lower, so air density is generally lower.
- Warmer air: at the same pressure, density is lower.
- More water vapour: at the same pressure and temperature, density is modestly lower.
Using the Calculator and Checking Units
Enter absolute pressure in pascals, temperature in degrees Celsius, and relative humidity from 0 to 100%. The calculator converts Celsius to kelvins by adding 273.15 before applying the gas relation. A temperature of 20 °C is therefore 293.15 K in the formula—not 20 K.
Weather reports often give pressure in hectopascals (hPa) or kilopascals (kPa). Convert before entering it: 1 hPa = 100 Pa, and 1 kPa = 1,000 Pa. For example, 1013.25 hPa equals 101325 Pa. If a pressure reading is gauge pressure, add the local atmospheric pressure to obtain absolute pressure; the ideal-gas equation requires absolute pressure.
Relative humidity is not a pressure and should not be entered as a decimal fraction in the percentage field. Enter 50 for 50%, not 0.50. The calculator converts the percentage internally. If you do not know humidity, use 0% only when a dry-air estimate is what you want; otherwise, obtain a humidity value or treat the dry-air output as an approximation.
Where Air Density Values Are Useful
Air density is used in fluid mechanics, meteorology, ventilation calculations, and estimates involving aerodynamic forces or buoyancy. For example, drag equations depend on fluid density, so using a sea-level reference for a high-altitude condition can produce a misleading estimate. Engineering work may require a recognized standard-atmosphere model or measured site conditions rather than this simple calculator.
For an ideal gas, density can also be calculated from molar mass: ρ = pM/(RT), where M is the mixture’s molar mass in kg/mol and R = 8.31446261815324 J/(mol·K). This form is useful when gas composition is known. The calculator instead uses a specific gas constant for dry air and a simple humidity adjustment, which is convenient when pressure, temperature, and relative humidity are the available measurements.
Limits and Common Misconceptions
“Standard air density” depends on which standard conditions are meant. A value for dry air at one reference temperature and pressure will differ from density at another altitude, temperature, or humidity. Always state the conditions alongside a reported density, especially when comparing measurements.
The humidity calculation is an estimate, not a precision psychrometric model. Its saturation-pressure approximation is intended for ordinary atmospheric conditions; unusual temperatures, high pressures, or exact instrumentation work may require a more specialized formulation. At temperatures below freezing, water may be supercooled liquid or ice, and the saturation pressure over ice differs from that over liquid water. The calculator does not distinguish those cases.
Finally, kg/m³ is a unit, not a fixed answer. A density value without pressure, temperature, and—when relevant—humidity is incomplete context. For high-accuracy work, use measured conditions and a model appropriate to the air composition and operating range.
Frequently Asked Questions
What is the SI unit of air density?
The SI unit is kilogram per cubic metre, written kg/m³.
Is air density the same in g/L and kg/m³?
Yes. The numerical values are the same: 1 kg/m³ equals 1 g/L.
What is the density of air at room temperature?
It is approximately 1.2 kg/m³ near room temperature and sea-level pressure. The exact value depends on pressure, temperature, humidity, and air composition.
Does humid air weigh more than dry air?
At the same pressure and temperature, humid air is slightly less dense because water vapour has a lower molar mass than the main components of dry air.
Should pressure be gauge or absolute?
Use absolute pressure. If you have gauge pressure, add local atmospheric pressure before using the ideal-gas relation.
Related
Formula used
in p | Air pressure | Pa | 101325 | 0 in t | Air temperature | °C | 20 | -273.15 in rh | Relative humidity | % | 50 | 0 | 100 out rho | Moist-air density | kg/m³ | (p / (287.05 * (t + 273.15))) * (1 - 0.378 * ((rh / 100) * (611.2 * exp((17.67 * t) / (t + 243.5))) / p)) | 3 out rhod | Dry-air density at same pressure and temperature | kg/m³ | p / (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
- Gas Correction Factor Formula and Calculator0.9829
- Gas Correction Factor Calculator and Table1.2534
- Gas Temperature: Calculate It from Pressure and Volume298.15 K
- Gas Correction Factor Calculator: Formula and Uses107.322 same as input
- Gas Cv Calculator: Heat Capacity Ratio and Formula20.786 J/(mol·K)
- Density Temperature Correction Calculator and Formula999.25 kg/m^3