Air density is mass per unit volume. For example, at 20 °C and standard sea-level pressure, dry air has a density of about 1.20 kg/m³: one cubic metre of it has a mass of roughly 1.20 kilograms. This calculator estimates air density from pressure, temperature, and relative humidity, and returns density in kg/m³.
Formula
The calculator uses the ideal-gas mixture relation for dry air and water vapor:
ρ = (p − e) / (RdT) + e / (RvT)
- ρ is moist-air density in kilograms per cubic metre (kg/m³).
- p is total air pressure in pascals (Pa); the calculator converts the input pressure from kilopascals using 1 kPa = 1000 Pa.
- e is water-vapor partial pressure in Pa, calculated as relative humidity divided by 100 times saturation vapor pressure.
- 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), and Rv is the specific gas constant for water vapor, 461.495 J/(kg·K).
For saturation vapor pressure, the calculator uses the approximate expression es = 610.94 × exp(17.625t / (t + 243.04)), with temperature t in °C and es in Pa. The input humidity is a percentage from 0 to 100. The formula treats air as an ideal mixture and uses a common empirical saturation-pressure approximation, rather than a high-precision atmospheric equation.
Worked Example
Use the calculator’s default values: pressure 101.325 kPa, temperature 20 °C, and relative humidity 0%. First convert pressure and temperature:
p = 101.325 × 1000 = 101325 Pa
T = 20 + 273.15 = 293.15 K
At 0% relative humidity, water-vapor partial pressure is zero, so the moist-air equation reduces to the dry-air term:
ρ = 101325 / (287.05 × 293.15) = 1.2039 kg/m³
Rounded to the calculator’s three decimal places, the result is 1.204 kg/m³. This is the worked example of the opening estimate of about 1.20 kg/m³.
Assumptions
- Air behaves as an ideal mixture of dry air and water vapor.
- Pressure is absolute atmospheric pressure, not gauge pressure.
- Temperature is uniform, and the entered relative humidity applies at that temperature.
- The saturation vapor pressure is estimated with the formula shown above; unusual conditions may require a more specialized model.
What Air Density Means
Density describes how much mass occupies a given volume. In SI units, density is measured in kilograms per cubic metre. The units can also be expressed as g/L: 1 kg/m³ is numerically equal to 1 g/L. Thus, the example value of 1.204 kg/m³ is also 1.204 g/L. A litre of air has a mass of only about 1.2 grams under these conditions.
Air is a mixture, mostly nitrogen and oxygen, with smaller amounts of other gases and a variable amount of water vapor. Its density is not one fixed number. Pressure, temperature, humidity, altitude, and weather conditions all matter. The familiar figure near 1.2 kg/m³ is a useful near-surface example, not a universal constant.
Why Pressure, Temperature, and Humidity Matter
- Pressure: At the same temperature and composition, higher pressure packs more gas into a given volume and increases density. Pressure generally decreases with altitude, so air is less dense high above sea level.
- Temperature: At the same pressure, warmer gas expands and has lower density. The temperature must be entered in °C; the calculator converts it to kelvins because the gas equation uses an absolute temperature scale.
- Humidity: Water molecules are lighter, on average, than the nitrogen and oxygen molecules they replace in a parcel of air. At the same pressure and temperature, humid air is therefore slightly less dense than dry air. The effect is usually smaller than the effect of a substantial change in pressure or temperature.
For example, setting humidity to 0% makes the vapor-pressure term zero and gives a dry-air estimate. Raising humidity adds water vapor at the entered temperature and lowers the calculated density slightly. The result depends on all three inputs together; it is not enough to specify “room temperature” without pressure and, for moist-air calculations, humidity.
Using the Result and Common Mistakes
The output is useful for comparing air under stated conditions and for introductory calculations involving buoyancy, ventilation, or gas behavior. It is not a direct measurement. For precision work, use a validated atmospheric model and reliable measurements of pressure, temperature, and humidity.
- Enter pressure in kPa. A pressure reported in hPa must first be converted: 1 hPa = 0.1 kPa. Standard atmospheric pressure is 101.325 kPa, but local pressure often differs.
- Use absolute pressure. A gauge-pressure reading is relative to surrounding atmosphere and cannot be substituted directly unless converted to absolute pressure.
- Enter temperature in °C, not °F or K. Convert Fahrenheit before entering it; do not add 273.15 to a Fahrenheit value.
- Enter relative humidity as a percentage, such as 50 for 50%, not as 0.50. The calculator accepts values from 0 through 100.
- Keep the displayed precision in perspective. A result shown to three decimal places does not mean the inputs or physical model are accurate to three decimal places.
A common misconception is that humid air must be heavier because it contains extra water. At a fixed total pressure, water vapor takes the place of some dry-air molecules; because water vapor has a lower molecular mass than the average dry-air mixture, humid air is less dense in that comparison. If humidity is added in a sealed rigid container without allowing pressure to remain fixed, the conditions are different, so the fixed-pressure comparison no longer describes the whole situation.
Frequently Asked Questions
What is a simple example of air density?
Dry air at 20 °C and 101.325 kPa has a calculated density of about 1.204 kg/m³. This means one cubic metre has a mass of about 1.204 kg under those conditions.
What is the density of air at sea level?
There is no single value for every sea-level location because temperature, humidity, and actual pressure vary. Around 1.2 kg/m³ is a convenient approximation for ordinary near-surface conditions; the calculator’s example is about 1.204 kg/m³.
Is hot air less dense than cold air?
At equal pressure and composition, yes. Heating air raises its absolute temperature, so its density falls. In the open atmosphere, pressure and movement can also change, so temperature alone may not determine a local measurement.
Is humid air denser than dry air?
At the same pressure and temperature, no. Water vapor is lighter per molecule than the average dry-air mixture, so replacing some dry air with water vapor slightly lowers density.
How do I calculate air density from pressure and temperature?
For dry air, use ρ = p/(RdT), with pressure in Pa, temperature in K, and Rd = 287.05 J/(kg·K). For humid air, account for water-vapor partial pressure as the calculator does.
Related
Formula used
in p | Air pressure | kPa | 101.325 | 0.001 in t | Air temperature | °C | 20 | -273.15 in rh | Relative humidity | % | 0 | 0 | 100 out rho | 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
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