Air Density kg/m3 Calculator: Formula & Examples
- Vapor pressure
- Pa
- Result
- Dew point
- °C
- Result
- Temperature
- 20 °C
- You entered
This calculator computes air density in kilograms per cubic meter (kg/m³) from temperature, pressure, and relative humidity. Enter those three values, and you get the density—plus the dew point—based on the standard formula used in meteorology and engineering.
Formula
Air density is the mass of air per unit volume. The calculator uses the common formula that accounts for water vapor:
� = (Pd / (Rd · T)) + (Pv / (Rv · T))
Where:
- � = air density in kg/m³
- Pd = partial pressure of dry air in Pa (total pressure minus vapor pressure)
- Pv = partial pressure of water vapor in Pa (from relative humidity)
- Rd = specific gas constant for dry air, 287.05 J/(kg·K)
- Rv = specific gas constant for water vapor, 461.5 J/(kg·K)
- T = absolute temperature in Kelvin (add 273.15 to °C)
Vapor pressure is calculated from relative humidity using the Magnus formula: Pv = (RH/100) · 6.1078 · 10^(7.5·T/(T+237.3)), where T is in °C and the result is in Pa. The first term (dry air) uses total pressure minus vapor pressure; the second term adds the water vapor contribution.
Worked Example
Using the default values: temperature 20 °C, pressure 1013.25 hPa, relative humidity 50%.
- Convert pressure: 1013.25 hPa = 101325 Pa.
- Calculate vapor pressure: 0.50 · 6.1078 · 10^(7.5·20/(20+237.3)) = 0.50 · 6.1078 · 10^(0.779) ≈ 0.50 · 6.1078 · 6.01 ≈ 18.35 Pa. (More precisely 2339 Pa saturation, half = 1169.5 Pa; the calculator gives 1169.5 Pa.)
- Dry air pressure: 101325 − 1169.5 = 100155.5 Pa.
- Dry air term: 100155.5 / (287.05 · 293.15) ≈ 100155.5 / 84150 ≈ 1.190 kg/m³.
- Vapor term: 1169.5 / (461.5 · 293.15) ≈ 1169.5 / 135300 ≈ 0.00864 kg/m³.
- Total density: 1.190 + 0.00864 ≈ 1.199 kg/m³.
The calculator shows 1.199 kg/m³, matching the manual calculation.
Why Air Density Matters
Air density affects many real-world phenomena:
- Aviation: Lift and engine performance depend on air density. Pilots use density altitude to adjust takeoff distances.
- Meteorology: Air density drives pressure gradients and wind. Storm intensity correlates with density differences.
- Engineering: HVAC design, aerodynamic drag, and wind load calculations all require accurate air density.
- Sports: Baseball home run distances, cycling speed, and even sprint times are affected by air density.
For example, a baseball hit at 100 mph travels about 6 feet farther in air at 1.0 kg/m³ (hot, humid day) than at 1.2 kg/m³ (cool, dry day).
How to Use the Calculator
Enter three inputs:
- Temperature (°C): Air temperature. Use a thermometer. Can be negative.
- Pressure (hPa): Atmospheric pressure. Standard sea-level pressure is 1013.25 hPa. Check a barometer or local weather station.
- Relative humidity (%): 0–100. Hygrometers measure this. If unknown, 50% is a reasonable default.
The output shows density in kg/m³, vapor pressure in Pa, and dew point in °C. The first output (density) is the headline result.
For quick estimates, you can ignore humidity: dry air at 20 °C and 1013.25 hPa has a density of about 1.204 kg/m³. Humidity reduces density slightly because water vapor is lighter than nitrogen and oxygen.
Common Mistakes and Unit Issues
- Mixing units: Pressure must be in hPa (hectopascals). 1 hPa = 100 Pa = 1 mbar. If you have kPa, multiply by 10 to get hPa.
- Temperature in Kelvin: The formula uses Kelvin. Forgetting to add 273.15 leads to errors of about 1% per degree.
- Humidity effect: Many simplified formulas ignore humidity. At 30 °C and 80% RH, humidity reduces density by about 2% compared to dry air—significant for precise work.
- Altitude: Pressure drops with altitude. At 3000 m, pressure is about 700 hPa, and density is roughly 0.9 kg/m³. Always use local pressure, not sea-level standard.
Rounding: The calculator rounds to three decimal places. For engineering, two decimals are often enough; for scientific work, keep more.
Limitations of the Formula
The Magnus formula is accurate for temperatures from about −40 °C to +50 °C and pressures near Earth’s surface. It assumes ideal gas behavior, which is excellent for air. However:
- At very high altitudes (above 20 km), the composition changes and the formula fails.
- In extremely cold conditions (below −40 °C), the Magnus formula underestimates vapor pressure.
- It does not account for COâ‚‚ concentration, which slightly increases density (by about 0.02% at current levels).
For most practical purposes, the formula is accurate to within 0.1%.
Frequently Asked Questions
What is the density of air at sea level?
At 15 °C, 1013.25 hPa, and 0% humidity, dry air density is 1.225 kg/m³. This is the International Standard Atmosphere value. With 50% humidity, it’s about 1.220 kg/m³.
Does humidity increase or decrease air density?
Humidity decreases air density. Water vapor (molar mass 18 g/mol) is lighter than nitrogen (28 g/mol) and oxygen (32 g/mol). Replacing dry air molecules with water vapor reduces total mass per volume.
How does altitude affect air density?
Air density decreases with altitude because pressure drops. At 5000 m (about 16,400 ft), pressure is about 540 hPa, and density is roughly 0.74 kg/m³—about 60% of sea-level density.
What is the difference between density and specific weight?
Density is mass per volume (kg/m³). Specific weight is weight per volume (N/m³), which is density times gravitational acceleration (9.81 m/s²). Air at 1.225 kg/m³ has a specific weight of about 12.0 N/m³.
Why does air density matter for internal combustion engines?
Engines need oxygen for combustion. Denser air contains more oxygen per volume, so engines produce more power on cool, dry days. That’s why turbochargers and superchargers compress air to increase density.
Can I calculate air density from just temperature?
No, you need pressure and humidity too. Temperature alone gives you only a rough estimate if you assume standard pressure. For example, at 20 °C and 1013 hPa, density is 1.204 kg/m³; at 20 °C and 900 hPa (high altitude), it’s 1.069 kg/m³.
Related
Formula used
in t | Temperature | °C | 20 | -50 in p | Pressure | hPa | 1013.25 | 0 in rh | Relative humidity | % | 50 | 0 out rho | Air density | kg/m³ | (p * 100 - rh/100 * 6.1078 * 10^(7.5*t/(t+237.3)) * 100) / (287.05 * (t + 273.15)) + rh/100 * 6.1078 * 10^(7.5*t/(t+237.3)) * 100 / (461.5 * (t + 273.15)) | 3 out pv | Vapor pressure | Pa | rh/100 * 6.1078 * 10^(7.5*t/(t+237.3)) * 100 | 1 out td | Dew point | °C | (237.3 * log10(rh/100 * 6.1078 * 10^(7.5*t/(t+237.3)) / 6.1078)) / (7.5 - log10(rh/100 * 6.1078 * 10^(7.5*t/(t+237.3)) / 6.1078)) | 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, rounded as each result states. See how the calculators work or report an error.