To find air density from temperature, use the ideal gas law in the form ρ = p / (R·T), where ρ is density in kg/m³, p is the absolute air pressure in pascals, T is absolute temperature in kelvin, and R is the specific gas constant for dry air, 287.05 J/(kg·K). If you are working in imperial units, use ρ = p / (R·T) with pressure in pounds per square foot and R = 1716 ft·lbf/(slug·°R). Temperature enters through T, which must always be absolute—kelvin or Rankine—never Celsius or Fahrenheit. For everyday HVAC and weather work, the shortcut at sea level is ρ ≈ 1.225 × (288.15 / T_K) kg/m³, or about 0.0765 × (518.67 / T_R) lb/ft³. Below are the exact steps, plus how to add humidity when the air is not dry.

What You'll Need

  • A thermometer reading the air temperature near the measurement point, ideally in kelvin or convertible to it
  • A barometer, or a local station pressure / altimeter setting you can correct for elevation
  • A calculator (scientific, or a spreadsheet)
  • Optional: a relative humidity reading and a psychrometric or dew-point table if you need moist-air density
  • The constants R = 287.05 J/(kg·K) for SI or R = 1716 ft·lbf/(slug·°R) for US customary units

Step-by-Step

  1. Measure the temperature in the actual air. Take the reading where the density matters—shade for outdoor work, at the supply duct for HVAC, at the intake for fan sizing. A temperature 10 °C off can shift density by roughly 3–4 percent, which is enough to matter in a fan or airflow calculation. Record it in °C or °F first, whatever your instrument shows.
  2. Convert temperature to absolute. Add 273.15 to Celsius: 30 °C becomes 303.15 K. For Fahrenheit, T_R = °F + 459.67, so 86 °F becomes 545.67 °R. This is the single most common place calculations break, because the ideal gas law scales linearly with absolute temperature only.
  3. Get absolute (barometric) pressure in pascals. If your barometer reports station pressure in hPa or mbar, multiply by 100: 1013.25 hPa = 101325 Pa. If you only have an altimeter setting or a sea-level reported pressure, you must reduce it for elevation using the standard atmosphere (roughly 12 Pa per metre of elevation near sea level, or use the standard altitude formula). Using sea-level pressure at a mountain site overstates density badly.
  4. Apply the density equation. Divide pressure by the product of the gas constant and absolute temperature: ρ = 101325 / (287.05 × 288.15) = 1.225 kg/m³ at 15 °C and standard sea-level pressure. In imperial units: ρ = 2116.2 / (1716 × 518.67) ≈ 0.002378 slugs/ft³, or about 0.0765 lb/ft³.
  5. Check the result against a sanity range. Dry air at sea level sits near 1.225 kg/m³ (0.0765 lb/ft³) at 15 °C. Warm air is lighter: about 1.164 kg/m³ at 30 °C, 1.112 at 40 °C, and 1.060 at 50 °C. Cold air is heavier: roughly 1.292 at 0 °C and 1.341 at −10 °C. If your answer is far outside 1.0–1.4 kg/m³ at low altitude, suspect a units error.
  6. Add humidity if the air is not dry. Moist air is less dense than dry air at the same temperature and pressure, because water vapour molecules are lighter than nitrogen and oxygen. A practical correction is ρ = (p_d / (R_d·T)) + (p_v / (R_v·T)), where p_v is the vapour pressure from relative humidity and saturation vapour pressure, R_d = 287.05 and R_v = 461.5 J/(kg·K). At 30 °C and 100 percent humidity the density drops by roughly 1–2 percent versus dry air—small but real for precision work.
  7. Combine with a known elevation and temperature for field work. For altitude work, first compute the standard pressure at your elevation, then plug your measured temperature in. A quick check at 1000 m with a standard pressure near 89875 Pa and a warm 30 °C gives ρ = 89875 / (287.05 × 303.15) ≈ 1.033 kg/m³, noticeably thinner than sea level.

Common Mistakes

Using Celsius or Fahrenheit directly in the equation produces wildly wrong answers—20 °C is not 20 K. Mixing unit systems is next: feeding kPa into an imperial equation, or using lb/ft² where inches of mercury were intended. Another frequent error is using the reported sea-level barometric pressure at a high-altitude site; that value is corrected, not local. People also forget the humidity term and assume dry air, and some divide by temperature instead of multiplying, which happens when the formula is misremembered.

Tips

The shortcut ρ ≈ 1.225 × (288.15 / T_K) is accurate enough for most HVAC and weather estimates and needs only a temperature. Work in kelvin throughout and convert only at the very end to avoid intermediate rounding. Keep your gas constant and pressure units paired: SI with Pa gives kg/m³, and imperial with psf gives slugs/ft³. If you need lb/ft³, multiply slugs/ft³ by 32.174. For air-density tables, remember they assume dry air at standard pressure, so adjust for your actual barometer.

Troubleshooting

If your result is exactly 1000 times too large or small, check whether pressure is in kPa versus Pa. If the answer changes unrealistically for small temperature shifts, you likely used Celsius. If density is far too low, you may have used station pressure at a site above sea level correctly but forgotten to convert temperature, or used a pressure reading taken in a different unit. If the value seems too high on a humid day, add the vapour-pressure term; neglecting it makes moist air look denser than it is. If a spreadsheet gives errors, confirm the reference cell for absolute temperature is not pointing at a blank cell. Always re-run the sea-level sanity check as a final verification.

Frequently Asked Questions

What is the formula for air density with temperature?

ρ = p / (R·T), where p is absolute pressure in Pa, T is absolute temperature in kelvin, and R = 287.05 J/(kg·K) for dry air in SI units.

Does temperature affect air density directly or inversely?

Inversely. As temperature rises at constant pressure, density falls because the gas expands. Doubling absolute temperature roughly halves density.

Can I use this formula at 20 °C without converting?

No. You must use 293.15 K. Using 20 directly in the denominator gives an answer about 15 times too large.

Why is moist air less dense than dry air?

Water vapour has a lower molar mass than the nitrogen and oxygen it displaces, so humid air weighs less per cubic metre at the same pressure and temperature.

What air density should I expect at sea level?

About 1.225 kg/m³ (0.0765 lb/ft³) at 15 °C and standard sea-level pressure.

Does the equation work for high altitudes?

Yes, provided you use the actual local absolute pressure rather than a sea-level adjusted barometer reading.