An air density model estimates the mass of air in a given volume from its pressure, temperature, and, when needed, humidity. This calculator uses the ideal-gas model for moist air: enter total pressure, air temperature, and relative humidity to get density in kg/m³, with dry-air density as a comparison.
Formula
The calculation treats air as a mixture of dry air and water vapor, with each component following the ideal-gas law. The moist-air density is:
ρ = (p − e)/(RdT) + e/(RvT)
- ρ is moist-air density in kg/m³.
- p is total air pressure in pascals (Pa). The calculator converts 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 the specific gas constant for water vapor, 461.495 J/(kg·K).
For this model, vapor pressure is estimated as e = (RH/100) × es, where RH is relative humidity in percent and saturation vapor pressure over liquid water is approximated by es = 2338.8 × exp(17.27t/(t + 237.3)) Pa, with t in °C. This is a commonly used Magnus-type approximation for ordinary meteorological temperatures; it is not a precision formulation for every temperature or for saturation over ice.
The dry-air comparison uses ρdry = p/(RdT). It assumes all the measured total pressure is dry air. The moist-air equation instead allocates part of that pressure to water vapor. Its constants are rounded conventional values, so the result should not be treated as a reference-standard measurement.
Worked Example
Using the calculator’s defaults: total pressure p = 101.325 kPa, temperature t = 20 °C, and relative humidity RH = 50%.
- Convert pressure: 101.325 × 1000 = 101325 Pa.
- Convert temperature: T = 20 + 273.15 = 293.15 K.
- Estimate saturation vapor pressure: es = 2338.8 × exp(17.27 × 20/(20 + 237.3)) ≈ 2338.1 Pa.
- Find water-vapor pressure: e = (50/100) × 2338.1 ≈ 1169.1 Pa.
- Apply the mixture equation: ρ = (101325 − 1169.1)/(287.05 × 293.15) + 1169.1/(461.495 × 293.15) ≈ 1.199 kg/m³.
- For the dry-air comparison, ρdry = 101325/(287.05 × 293.15) ≈ 1.204 kg/m³.
These displayed results are rounded to three decimal places, as in the calculator. The small difference is physically meaningful: at the same temperature and total pressure, water vapor is lighter per unit volume than dry air.
Assumptions
- Air and water vapor are treated as ideal gases; their mixture density is the sum of the component densities.
- Relative humidity is between 0% and 100%, and the saturation-pressure approximation is intended for ordinary temperatures over liquid water.
- The entered pressure is the local absolute pressure, not gauge pressure. The example’s 101.325 kPa is standard sea-level pressure, not a universal local value.
- The calculator does not account for carbon dioxide variation, altitude profiles, strong non-ideal effects, or detailed humidity corrections.
How an Air Density Model Works
Density is mass divided by volume. For a gas, pressure and temperature are central because compressing air packs more molecules into a volume, while warming it at the same pressure makes it expand. The ideal-gas relation connects these quantities: for a gas with specific gas constant R, density is pressure divided by R times absolute temperature.
Dry air can be approximated as one gas with a nearly fixed composition and a specific gas constant of about 287.05 J/(kg·K). Humid air needs a mixture calculation. Water molecules have lower molar mass than the average molecules in dry air, so replacing some dry-air pressure with vapor pressure lowers density at fixed total pressure and temperature. This does not mean adding moisture always lowers density in every real situation: if moisture is added while volume and temperature are held fixed, total pressure changes too. The calculator holds total pressure fixed.
When to Use It and How to Read the Result
Air-density estimates are useful in introductory thermodynamics, weather and altitude comparisons, ventilation calculations, and preliminary engineering work where a simple model is adequate. For example, at a fixed pressure, a warm afternoon generally has less dense air than a cold morning. At a fixed temperature, a high-altitude location usually has lower density because its absolute pressure is lower.
The output is kilograms of air per cubic metre. A result of 1.199 kg/m³ means each cubic metre of air has an estimated mass of 1.199 kg under the stated conditions. Use the moist-air output when humidity is known; use the dry-air result only as a comparison or when humidity is negligible for the purpose at hand.
- Use absolute pressure from a local pressure reading or a reliable atmospheric data source.
- Use the actual air temperature, not a temperature in Fahrenheit entered as if it were Celsius.
- Enter relative humidity as a percentage, such as 50 for 50%, not 0.50.
- Keep unrounded values through later calculations when precision matters; this calculator displays density to three decimal places.
Limits and Common Misunderstandings
A common mistake is to use sea-level pressure everywhere. Atmospheric pressure decreases with elevation and changes with weather, so the standard value of 101.325 kPa is suitable only as a reference example. For an accurate local estimate, pressure should be measured or obtained for the location and time of interest. Weather services may report pressure adjusted to sea level; that is not necessarily the station pressure needed in this equation.
Another source of error is confusing relative humidity with absolute humidity. Relative humidity is the ratio of actual vapor pressure to saturation vapor pressure at the same temperature. It changes when temperature changes even if the amount of water vapor stays constant. This calculator uses relative humidity to estimate vapor pressure; it does not directly take grams of water per cubic metre.
The saturation-pressure equation is an approximation, not a full atmospheric standard. Near freezing, at very high or low temperatures, or where high accuracy is required, use a validated moist-air formulation that accounts for saturation over water or ice and relevant enhancement factors. For aircraft performance, precision meteorology, or certified instrumentation, follow the governing technical standard rather than relying on this simplified calculator.
Frequently Asked Questions
What is the standard density of air?
There is no single density independent of conditions. A commonly quoted reference is about 1.225 kg/m³ for dry air at 15 °C and 101.325 kPa. Change the temperature, pressure, or humidity and the density changes.
Does humid air weigh more than dry air?
At the same temperature and total pressure, humid air is less dense because water vapor has a lower molecular mass than the average dry-air mixture. Comparing air masses without holding pressure, temperature, and volume conditions clear can lead to a misleading answer.
How does altitude affect air density?
Pressure generally falls as altitude increases, so air density usually falls as well. Temperature also varies with altitude, so pressure alone is not enough for a precise value; enter the local pressure and temperature for this model.
Can I use this for air density in a tank?
For ordinary conditions, it can give an estimate if you know absolute pressure, temperature, and humidity. At high pressure, non-ideal gas behavior can matter, and the simple ideal-gas mixture model may not be accurate enough.
What is the difference between air density and specific gravity?
Air density is mass per volume, usually in kg/m³. Specific gravity is a dimensionless ratio comparing a material’s density with a reference density; it is not the same quantity and requires the reference conditions to be stated.
Related
Formula used
in p | Total 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) * 2338.8 * exp(17.27 * t / (t + 237.3))) / (287.05 * (t + 273.15)) + ((rh / 100) * 2338.8 * exp(17.27 * t / (t + 237.3))) / (461.495 * (t + 273.15)) | 3 out rhod | Dry-air density at same total pressure | 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
- 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