This calculator estimates air density from pressure, temperature, and water-vapor content, using the ideal-gas mixture model. Enter absolute pressure in kPa, temperature in °C, and relative humidity as a percentage; the result is air density in kg/m³. Pressure alone is not enough to determine a unique air density, because temperature and humidity also matter.
Formula
For dry air, the ideal-gas density relation is ρ = p / (RdT). For moist air, treat dry air and water vapor as separate ideal gases and add their mass densities: ρ = (p − pv)/(RdT) + pv/(RvT).
- ρ is air density in kg/m³.
- p is absolute total pressure in pascals; the calculator converts kPa to Pa by multiplying by 1000.
- pv is water-vapor partial pressure in pascals.
- T is absolute temperature in kelvins, 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).
The calculator estimates saturation vapor pressure using es = 610.94 × exp(17.625t/(t + 243.04)), where t is in °C and es is in Pa. It then estimates pv as relative humidity divided by 100, multiplied by es. This commonly used approximation is intended for ordinary atmospheric conditions, not extreme temperatures or pressures.
Worked Example
Using the defaults: p = 101.325 kPa, t = 20 °C, and relative humidity = 0%.
- Convert pressure: 101.325 × 1000 = 101325 Pa.
- Convert temperature: T = 20 + 273.15 = 293.15 K.
- At 0% relative humidity, pv = 0 Pa, so the dry-air pressure is 101325 Pa.
- Calculate density: ρ = 101325 / (287.05 × 293.15) = 1.2039 kg/m³ (rounded to four decimal places).
The calculator’s headline result is 1.2039 kg/m³; its water-vapor partial-pressure output is 0 Pa.
Assumptions
- Air and water vapor are treated as ideal gases.
- Dry-air and water-vapor gas constants are fixed at the stated conventional values.
- Relative humidity and temperature describe the same air sample and location.
- The saturation vapor-pressure approximation is suitable for typical atmospheric use, not every possible condition.
Why Pressure Alone Is Not Enough
At a fixed temperature and composition, density is proportional to absolute pressure: doubling pressure doubles density. But those conditions matter. Warmer air occupies more volume at the same pressure, so its density is lower; cooler air is denser. Water vapor also affects the result. At the same temperature and total pressure, humid air is slightly less dense than dry air because water molecules have a lower average molar mass than the main components of dry air.
For dry air at a specified temperature, pressure alone can be used with ρ = p/(RdT). If temperature is not known, there is no single density value implied by a pressure reading. A pressure gauge also may report gauge pressure relative to surrounding air. Convert gauge pressure to absolute pressure before using the equation: absolute pressure equals gauge pressure plus local atmospheric pressure. Negative or zero absolute pressure is not physically suitable for this calculation.
How to Use the Result
Use the result when you need an approximate density for general atmospheric calculations, such as comparing air at different elevations or estimating how temperature changes affect a gas calculation. Density is mass per unit volume: 1.2039 kg/m³ means a cubic metre of the modeled air has a mass of about 1.2039 kg.
- Use absolute pressure, not gauge pressure.
- Enter temperature in °C; the calculator converts it to kelvins internally.
- Enter relative humidity from 0 to 100. Use 0% when modeling dry air.
- Use pressure and temperature measured at the same place and time if possible.
Near sea level, standard atmospheric pressure is about 101.325 kPa. At 20 °C and that pressure, the calculator gives about 1.204 kg/m³ for dry air. This is an example, not a universal standard density: a different temperature, altitude, weather pattern, or humidity changes the answer.
Humidity, Altitude, and Practical Limits
Atmospheric pressure generally decreases with altitude, but the relationship is not a simple fixed decrease per metre; it depends on the temperature profile and weather. Consequently, a pressure measured at a location is more useful than estimating pressure from altitude alone. For aviation, wind loads, or precision engineering, use the applicable standard atmosphere or a validated local model rather than treating this simple calculation as a complete environmental model.
The humidity correction uses a saturation vapor-pressure approximation and assumes the relative humidity is meaningful for the entered temperature. At very low temperatures, near saturation, or under unusual pressure conditions, more specialized thermodynamic equations may be needed. The two-output model also does not account for other gases, aerosols, or changes in air composition. For ordinary air, these omissions are usually acceptable for an estimate, but they can matter in specialized work.
Common Mistakes and Comparisons
A frequent error is substituting a pressure number in kPa directly into an equation that expects Pa. Another is using Celsius directly as T; gas-law equations require kelvins, so 20 °C must become 293.15 K. These unit errors can produce results off by orders of magnitude or physically meaningless values.
Dry-air calculations are simpler and often adequate when humidity is not important. The moist-air calculation is preferable when humidity is known and a small correction matters. Do not confuse air density with pressure: pressure is force per area, while density is mass per volume. They are related through temperature and composition, not interchangeable quantities.
Frequently Asked Questions
What is the density of air at 1 atmosphere?
It depends on temperature and humidity. For dry air at 101.325 kPa and 20 °C, density is about 1.204 kg/m³; at other temperatures or moisture levels it differs.
Can I calculate air density from pressure alone?
Not uniquely. You also need temperature and, for a moist-air estimate, humidity or water-vapor partial pressure. Pressure alone works only when the missing conditions are specified or assumed.
Should I use gauge pressure or absolute pressure?
Use absolute pressure. Add local atmospheric pressure to a gauge-pressure reading before calculating, taking care to use consistent units.
Does humid air weigh more than dry air?
At the same temperature and total pressure, humid air is slightly less dense. Water vapor has a lower molar mass than the nitrogen- and oxygen-dominated dry-air mixture it replaces.
What units are used for air density?
The SI unit is kilograms per cubic metre (kg/m³). Some applications use grams per litre; numerically, 1 kg/m³ equals 1 g/L.
Related
Formula used
in p | Absolute pressure | kPa | 101.325 | 0 in t | Air temperature | °C | 20 | -273.15 in rh | Relative humidity | % | 0 | 0 | 100 out d | 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)) | 4 out pv | Water vapor partial pressure | Pa | (rh / 100) * 610.94 * exp(17.625 * t / (t + 243.04)) | 1
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
- Pressure Density Depth Formula for Fluids98,066 Pa
- Pressure Density Temperature Equation Calculator100,961.74 Pa
- Pressure Density Cup: What It Measures and How It Works1.0000 g/mL
- Pressure, Density, and Temperature: How They Relate101,307 Pa
- Pressure-Based vs Density-Based Solvers in CFD
- Pressure-Based vs Density-Based Solvers in CFD