molecalculator

Moles & Molar Mass

Air Density from Pressure: Formula and Calculator

Calculator No. 01-2062 · Updated · Formula and assumptions shown below

Air density 1.199 kg/m³
Water-vapor partial pressure
1,166.7 Pa
Result, rounded to 1 decimal place
Dry-air partial pressure
100,158.3 Pa
= Absolute air pressure × 1000 − Water-vapor partial pressure
Absolute air pressure
101.325 kPa
Set in the form below
You enter
Absolute air pressure (kPa), Air temperature (°C), Relative humidity (%)
You get
Air density (kg/m³), Water-vapor partial pressure (Pa), Dry-air partial pressure (Pa)
Rounding
3 dp · 1 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

This calculator estimates air density from pressure, temperature, and water-vapor content using the ideal-gas mixture equation. Enter absolute pressure, air temperature, and relative humidity to get density in kg/m³; pressure alone is not enough to determine density accurately.

Formula

For moist air, calculate the density of the dry-air portion and the water-vapor portion separately, then add them:

ρ = pd / (RdT) + pv / (RvT)

  • ρ is air density in kilograms per cubic metre (kg/m³).
  • pd is dry-air partial pressure in pascals (Pa).
  • pv is water-vapor partial pressure in Pa.
  • Rd = 287.05 J/(kg·K) is the specific gas constant for dry air.
  • Rv = 461.5 J/(kg·K) is the specific gas constant for water vapor.
  • T is absolute temperature in kelvins (K), calculated as temperature in °C + 273.15.

The calculator converts pressure from kPa to Pa by multiplying by 1000. It estimates saturation vapor pressure with es = 610.94 × exp(17.625t / (t + 243.04)), where t is temperature in °C and es is in Pa. Vapor pressure is pv = (RH / 100) × es, where RH is relative humidity in percent. Dry-air pressure is total pressure minus vapor pressure: pd = 1000p - pv, with p entered in kPa.

Worked Example

Use the calculator defaults: pressure 101.325 kPa, temperature 20 °C, and relative humidity 50%. Convert the temperature: T = 20 + 273.15 = 293.15 K.

First estimate saturation vapor pressure:

es = 610.94 × exp(17.625 × 20 / (20 + 243.04)) ≈ 2333.4 Pa

At 50% relative humidity, pv = 0.50 × 2333.4 ≈ 1166.7 Pa. Total pressure is 101.325 × 1000 = 101325 Pa, so dry-air pressure is pd = 101325 - 1166.7 ≈ 100158.3 Pa.

Now calculate both contributions:

ρ = 100158.3 / (287.05 × 293.15) + 1166.7 / (461.5 × 293.15) ≈ 1.199 kg/m³

Rounded to the calculator’s three decimal places, the air density is 1.199 kg/m³. The displayed vapor-pressure result is about 1166.7 Pa, and dry-air partial pressure is about 100158.3 Pa.

Assumptions

  • Air behaves as an ideal mixture of dry air and water vapor.
  • The saturation vapor pressure approximation is intended for ordinary atmospheric temperatures, not extreme conditions.
  • Relative humidity is between 0% and 100%, and pressure is absolute pressure.
  • Specific gas constants are 287.05 J/(kg·K) for dry air and 461.5 J/(kg·K) for water vapor.

What You’ll Need

  • Absolute pressure in kPa. A weather report may show station pressure or sea-level-adjusted pressure; use the actual pressure at the location where density is needed.
  • Air temperature in °C, measured near the pressure measurement location.
  • Relative humidity in percent. If you do not know it, use a justified estimate, but recognize that the result will be less precise.
  • A calculator, spreadsheet, or this page’s calculator. Keep the input units as shown.

Step-by-Step

  1. Collect measurements from the same place and time. Pressure, temperature, and humidity can change with location and weather. For an instrument or lab calculation, use the local absolute pressure rather than a pressure corrected to sea level.
  2. Enter absolute pressure in kPa. Absolute pressure is measured relative to a vacuum. Do not enter gauge pressure, which is measured relative to surrounding air. If your pressure reading is in hPa, divide by 10 to convert to kPa; if it is in Pa, divide by 1000.
  3. Enter air temperature in degrees Celsius. The formula converts it to kelvins by adding 273.15. Never use a Celsius value directly as the denominator temperature in a gas-law calculation.
  4. Enter relative humidity as a percentage from 0 to 100. For example, enter 50 for 50%, not 0.50. If humidity is unavailable, a dry-air estimate can be made by setting RH to 0, but that excludes water vapor and may slightly overestimate density in humid conditions.
  5. Calculate and inspect the result. The first output is moist-air density in kg/m³. The additional outputs show vapor partial pressure and dry-air partial pressure, which help you check that the input pressure has been split consistently.
  6. Keep appropriate precision. The calculator rounds density to three decimal places. Use unrounded intermediate values for further calculations, and report precision that matches the quality of your measurements.

Common Mistakes

  • Using gauge pressure as absolute pressure: Gauge pressure alone cannot be used in this formula. Add local atmospheric pressure to a gauge reading to obtain absolute pressure, taking care to use consistent units.
  • Using sea-level pressure for a higher-altitude site: A sea-level-adjusted weather value is not the actual local pressure. Using it will usually make the calculated density too high.
  • Mixing units: Enter kPa, °C, and a humidity percentage in the calculator. A value in hPa entered as though it were kPa makes pressure ten times too large.
  • Entering humidity as a fraction: The calculator expects 50 for 50%, not 0.50. A fractional entry is interpreted as 0.50%.
  • Assuming pressure alone gives a unique density: Density also changes with temperature and, to a smaller extent, humidity. Two air samples at the same pressure can have different densities.
  • Rounding too early: Round the final density rather than each intermediate pressure or temperature calculation.

Tips

  • For high-accuracy work, use calibrated measurements and record the measurement time and location with the result.
  • At the same pressure, warmer air is less dense than cooler air. At the same temperature, lower pressure also means lower density.
  • Water vapor is lighter per molecule than the main components of dry air. At fixed temperature and total pressure, greater humidity generally lowers density slightly.
  • If only a rough estimate is needed, standard dry-air density near sea level and 15 °C is about 1.225 kg/m³. This is a reference condition, not a substitute for local measurements.
  • For aviation, weather, or engineering decisions with safety consequences, use the applicable domain method and verified data rather than treating a simple estimate as an operational measurement.

Troubleshooting

  • The result is unexpectedly high or low: Check that pressure is absolute and local, verify whether the source uses Pa, hPa, or kPa, and confirm the temperature sign and unit.
  • The calculator rejects the humidity: Enter a number from 0 through 100. Relative humidity is not a pressure value.
  • The result does not change when humidity changes much: Humidity’s density effect is often modest compared with temperature and pressure. Check that you entered percent points, such as 80, rather than a fraction such as 0.80.
  • You have only pressure data: Obtain or estimate air temperature at the same location. Pressure by itself does not specify the temperature-dependent density; humidity is also needed for a moist-air estimate.
  • Your conditions are extreme: The vapor-pressure approximation and ideal-gas model may be unsuitable at very low or high temperatures, high pressures, or unusual gas compositions. Consult a validated equation of state or a specialist reference for those conditions.

Frequently Asked Questions

Can I calculate air density from pressure alone?
No. You also need temperature, and humidity improves the estimate for moist air. Pressure alone does not uniquely determine density.

Should I use gauge or absolute pressure?
Use absolute pressure. If you have gauge pressure, add the local atmospheric pressure to it before using the formula.

What units should the answer use?
The calculator reports kilograms per cubic metre (kg/m³), the SI unit for density. One kg/m³ equals 0.001 g/cm³.

Does humidity make air heavier?
At the same temperature and total pressure, adding water vapor generally makes air slightly less dense because water vapor has a lower molecular mass than the average dry-air mixture.

What if I do not know the relative humidity?
Use 0% for an explicitly dry-air estimate or enter a reasonable local estimate. Note the assumption because the result may differ from actual moist-air density.

Why does air density change with altitude?
Atmospheric pressure generally falls with altitude, so density usually falls too. Temperature and humidity also vary with altitude, so use local conditions for a useful calculation.

Related

Formula used
in p | Absolute air pressure | kPa | 101.325 | 0
in t | Air temperature | °C | 20 | -273.15
in rh | Relative humidity | % | 50 | 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.5 * (t + 273.15)) | 3
out pv | Water-vapor partial pressure | Pa | (rh / 100) * 610.94 * exp(17.625 * t / (t + 243.04)) | 1
out pd | Dry-air partial pressure | Pa | p * 1000 - pv | 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

The whole Moles & Molar Mass section →