This calculator estimates air density from atmospheric pressure, temperature, and relative humidity. Enter those conditions to get density in kilograms per cubic metre, along with the dry-air density for comparison.
Formula
Atmospheric pressure and air density are related, but they are not the same quantity. Pressure is force per area; density is mass per volume. This calculator uses the ideal-gas mixture relation for moist air, treating dry air and water vapour as separate gases:
ρ = (p − e)/(RdT) + e/(RvT)
- ρ is moist-air density in kg/m³.
- p is total atmospheric pressure in pascals. The calculator converts the input from kPa by multiplying by 1000.
- e is water-vapour partial pressure in pascals: relative humidity divided by 100, multiplied by saturation vapour pressure.
- Rd is the specific gas constant for dry air, 287.05 J/(kg·K); Rv is the value for water vapour, 461.495 J/(kg·K).
- T is absolute temperature in kelvins, calculated as °C + 273.15.
The saturation-vapour-pressure approximation used here is es = 610.94 × exp(17.625t/(t + 243.04)) Pa, with t in °C. The dry-air comparison uses ρd = p/(RdT), effectively setting water vapour to zero. The constants in the vapour-pressure approximation are a practical formulation for ordinary meteorological conditions, not an exact description for every temperature or pressure.
Worked Example
Using the defaults: pressure 101.325 kPa, temperature 20 °C, and relative humidity 50%.
- Convert pressure: 101.325 × 1000 = 101325 Pa.
- Convert temperature: 20 + 273.15 = 293.15 K.
- Find saturation vapour pressure: es = 610.94 × exp(17.625 × 20/(20 + 243.04)) ≈ 2333.44 Pa.
- Find vapour partial pressure: e = 0.50 × 2333.44 ≈ 1166.72 Pa.
- Calculate moist-air density: (101325 − 1166.72)/(287.05 × 293.15) + 1166.72/(461.495 × 293.15) ≈ 1.199 kg/m³.
- Calculate dry-air comparison: 101325/(287.05 × 293.15) ≈ 1.204 kg/m³.
The displayed results are rounded to three decimal places. Intermediate approximations are shown to make the calculation readable; the calculator evaluates the expression before rounding.
Assumptions
- Air and water vapour behave approximately as ideal gases.
- The vapour-pressure expression is an approximation intended for ordinary atmospheric conditions.
- Relative humidity is entered from 0 to 100%; pressure must be positive and temperature must be above absolute zero.
- The calculation describes a uniform sample at the entered pressure, temperature, and humidity. It does not account for pollutants or unusual gas composition.
What Air Density and Pressure Mean
Density, usually written ρ, tells you how much mass occupies a given volume. Atmospheric pressure tells you how strongly the air above a surface pushes on it per unit area. Their units make the distinction clear: density is kg/m³, while pressure is pascals (Pa), often reported as kilopascals or hectopascals.
They are connected because air is a gas. At a fixed temperature and composition, raising pressure compresses the gas into less volume, increasing its density. At fixed pressure and composition, raising temperature makes the gas expand, decreasing its density. The ideal-gas equation expresses this relationship as p = ρRT for a single gas; for a mixture such as air, the component gases and their partial pressures must be considered.
At sea-level standard atmospheric pressure, about 101.325 kPa, dry air at 15 °C has a density close to 1.225 kg/m³. That is a reference condition, not a constant value for all places or weather. The example above is warmer and humid, so its calculated density is lower.
Why Pressure Alone Does Not Determine Density
Pressure is only enough to infer density when temperature and gas composition are also known or assumed. A barometer reading of 100 kPa does not specify a unique density: cold air at that pressure is denser than warm air, and humid air is slightly less dense than dry air at the same temperature and total pressure.
Water molecules have a lower molecular mass than the average molecules in dry air. When water vapour replaces some nitrogen and oxygen while total pressure remains unchanged, the mixture’s mean molecular mass falls. This is why humid air is less dense than dry air under otherwise identical conditions—a counterintuitive point, since humid air can feel heavy or oppressive. That sensation is not a direct measure of density.
For everyday estimates, humidity often has a smaller effect than substantial changes in temperature or altitude-related pressure. For precise work, however, humidity should be included, and the measurement conditions and formula should be stated.
How Altitude, Weather, and Temperature Change the Values
Atmospheric pressure generally decreases with altitude because there is less air above a location. Density usually decreases too, but its exact value also depends on the temperature profile and moisture. There is no single universal pressure-to-altitude conversion: weather systems and local temperature can change pressure at a given elevation.
- Altitude: lower pressure aloft usually means fewer air molecules per unit volume, affecting aircraft lift, engine performance, and breathing conditions.
- Temperature: warming air at a given pressure lowers density; cooling it raises density.
- Humidity: more water vapour generally lowers density at fixed temperature and total pressure.
- Weather: changing pressure can change density, but a pressure reading by itself does not capture the full state of the air.
These distinctions matter in flight planning, ventilation, combustion calculations, and weather analysis. In aviation, for example, “density altitude” is a performance concept that combines pressure altitude with temperature effects; it is not simply the height shown on a map.
Reading the Calculator and Avoiding Common Errors
The first result is estimated moist-air density for the supplied conditions. The second is a hypothetical dry-air value at the same total pressure and temperature. Their difference isolates the approximate effect of water vapour in this model.
- Use pressure in kPa as requested. Do not enter 101325 as though it were kPa; that number is in pascals.
- Enter temperature in degrees Celsius. The formula converts it to kelvins; using Celsius directly in a gas-law denominator would be wrong.
- Enter relative humidity as a percentage from 0 to 100, not a fraction such as 0.50.
- Use pressure measured at the location of interest, not sea-level-corrected pressure, when estimating local density.
- Do not treat the result as exact to the final displayed decimal. Sensor accuracy, local conditions, and the vapour-pressure approximation limit precision.
If the goal is to compare two places or times, calculate each with its own pressure, temperature, and humidity. If only pressure is available, state an assumed temperature and humidity rather than presenting a unique density as though it followed from pressure alone.
Frequently Asked Questions
Is air density the same as atmospheric pressure?
No. Density is mass per volume; atmospheric pressure is force per area. They are related through gas laws, but temperature and composition are also needed to connect them.
Does higher atmospheric pressure mean denser air?
Usually, if temperature and composition are held constant. In real conditions, temperature and humidity may also change, so pressure alone does not settle the comparison.
Is humid air denser than dry air?
At the same total pressure and temperature, humid air is slightly less dense because water vapour has a lower molecular mass than the main components of dry air.
What is the density of air at sea level?
It depends on conditions. A commonly used reference is about 1.225 kg/m³ for dry air at 15 °C and standard sea-level pressure of 101.325 kPa.
Why does air density decrease with altitude?
Pressure generally falls with altitude because less air lies above you. Lower pressure usually means fewer air molecules in a given volume, although temperature and moisture also affect the exact density.
Related
Formula used
in p | Atmospheric 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) * 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 rhod | Dry-air density | 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
- Relative Formula Mass: How to Calculate It
- ng/mL to ppb Conversion: How to Calculate5.75 ppb
- Relative Formula Mass: How to Calculate It
- Relative Formula Mass Calculations Explained
- Relative Formula Mass: How to Calculate It32.04 u
- Relative Formula Mass: Definition and Calculation