Air density affects lift, airflow, and HVAC performance.
If you know the air temperature, pressure, and (optionally) relative humidity, you can compute air density using the ideal gas law with humidity correction. This Air Density Calculator gives density in kg/m³ (and common alternatives) so you can use it in engineering and everyday calculations.
What “air density” means (and why it changes)
Air density is the mass of air per unit volume. It changes because air molecules pack more tightly when the air is colder and at higher pressure. Humidity also matters: water vapor is lighter than dry air, which typically reduces density.
- Higher temperature → lower density.
- Higher pressure → higher density.
- Higher humidity → slightly lower density (for the same temperature and pressure).
The core formula: ideal gas law (dry air)
For dry air, the ideal gas law is used:
ρ = P / (R · T)
- ρ = air density (kg/m³)
- P = absolute pressure (Pa)
- R = specific gas constant for dry air (≈ 287.05 J/(kg·K))
- T = absolute temperature (K)
Temperature must be in Kelvin: T(K) = T(°C) + 273.15. Pressure must be in Pascals: P(Pa) = P(kPa) × 1000 (or use the calculator’s unit options).
Humidity correction: moist air density
Real air contains water vapor. A common approach models moist air as a mixture of dry air and water vapor, using their partial pressures.
ρ = (Pd / (Rd · T)) + (Pv / (Rv · T))
- P = total absolute pressure
- Pv = water vapor partial pressure
- Pd = P − Pv
- Rd ≈ 287.05 J/(kg·K)
- Rv ≈ 461.5 J/(kg·K)
How the calculator gets vapor pressure
To compute Pv, the calculator estimates saturation vapor pressure from temperature and then applies relative humidity.
It uses the Tetens-style approximation:
es(hPa) = 6.112 × exp( (17.67 · T) / (T + 243.5) )
Then:
Pv = RH × es
- RH is relative humidity as a fraction (0 to 1). For example, 60% → 0.60.
- T is in °C in this vapor-pressure approximation.
- Finally the calculator converts hPa to Pa where needed.
Units you can trust
Air density is commonly reported in kg/m³, but some fields use g/m³, lb/ft³, or slug/ft³. The calculator computes density in SI first, then converts to your selected output unit.
| Unit | Meaning | Typical use |
|---|---|---|
| kg/m³ | Mass per cubic meter | HVAC, physics, engineering |
| g/m³ | Mass per cubic meter (scaled) | Air quality reporting |
| lb/ft³ | Mass per cubic foot | US engineering practice |
Practical examples (real-world use)
Example 1: HVAC airflow and filter sizing
Suppose you’re checking whether a supply fan will deliver the intended mass flow. Air density at the same volumetric flow changes with weather.
- Input: 25°C, 101.325 kPa, 50% RH.
- Result: density is lower than at 0–10°C, so the mass of air moved per m³ is smaller.
This matters for filter loading, fan energy estimates, and meeting indoor air quality targets.
Example 2: Aviation and wind/drag estimates
Lift and drag calculations depend on dynamic pressure, which includes density. Even modest temperature and pressure shifts can noticeably change performance.
- Input: 15°C, 98 kPa, 70% RH.
- Output density feeds into dynamic pressure calculations like q = 0.5 · ρ · V².
Using moist-air density is more realistic than assuming dry air, especially on humid days.
How to use the Air Density Calculator correctly
- Choose units for temperature and pressure.
- Enter temperature and absolute pressure.
- Enter relative humidity if you want moist-air density (best for real conditions).
- Select an output unit and click Calculate.
Important: pressure should be absolute. If you only have gauge pressure, convert it to absolute before using the calculator.
Common mistakes to avoid
- Using °F directly as if it were °C. Convert temperature first or use the calculator’s unit dropdown.
- Using gauge pressure instead of absolute pressure.
- Forgetting humidity when conditions are very humid—results can shift slightly.
- Entering RH outside 0–100%. The calculator flags invalid values.
Frequently Asked Questions
How do you calculate air density from temperature and pressure?
Use the ideal gas law for dry air: ρ = P/(R·T). Convert temperature to Kelvin (T = °C + 273.15) and pressure to Pascals. If you include humidity, adjust for water vapor using its partial pressure, then add dry-air and vapor contributions.
Does humidity change air density significantly?
Humidity changes air density because water vapor molecules are lighter than dry air. The effect is usually modest at normal indoor conditions, but it becomes more noticeable at high humidity or when comparing very different weather. For best results, use moist-air density with relative humidity.
What pressure should I use: gauge or absolute?
Air density calculations require absolute pressure. Gauge pressure is measured relative to atmospheric pressure and will be too low for the formula. Convert gauge to absolute by adding atmospheric pressure, or measure absolute pressure directly if available.
What is the typical density of air at sea level?
At sea level and around 15°C with moderate humidity, air density is close to 1.225 kg/m³. Exact values vary with temperature, pressure, and humidity. Colder air increases density, and higher humidity typically decreases it slightly compared with dry conditions.
Why does air density matter for airflow and fan sizing?
Many HVAC and ventilation systems target volumetric flow (m³/h), but performance often depends on mass flow. Mass flow includes density, so colder or higher-pressure air carries more mass per cubic meter. That changes heating/cooling load, filter behavior, and sometimes fan power.