molecalculator

Moles & Molar Mass

Air Density from Temperature and Pressure

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

Air density 1.204 kg/m^3
Temperature in kelvins
293.15 K
= Air temperature + 273.15
Absolute pressure
101.325 kPa
Set in the form below
Air temperature
20 °C
Set in the form below
You enter
Absolute pressure (kPa), Air temperature (°C)
You get
Air density (kg/m^3), Temperature in kelvins (K)
Rounding
3 dp · 2 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.

Air density is the mass of air per unit volume, and for dry air it can be calculated from absolute pressure and temperature with the ideal-gas equation: ρ = p/(RairT). Enter pressure in kilopascals and temperature in °C to get density in kg/m³; the calculation converts temperature to kelvins and assumes dry air behaves as an ideal gas.

Formula

The ideal-gas density equation is ρ = p/(RairT). In this calculator’s input units, it is ρ = (p × 1000)/(287.05 × (t + 273.15)).

  • ρ is air density, in kilograms per cubic metre (kg/m³).
  • p is absolute pressure, entered in kilopascals (kPa). Multiplying by 1000 converts kPa to pascals (Pa).
  • t is air temperature in degrees Celsius (°C). Adding 273.15 converts it to absolute temperature T in kelvins (K).
  • Rair is the specific gas constant for dry air, taken here as 287.05 J/(kg·K). Since 1 J = 1 Pa·m³, the result is kg/m³.

Use absolute pressure: pressure measured relative to a perfect vacuum. A gauge pressure reading, such as a tire-pressure reading, is not suitable by itself. For atmospheric air, use the local barometric pressure rather than adding a gauge value to it unless that is the quantity being measured.

Worked Example

Using the calculator’s defaults, p = 101.325 kPa and t = 20 °C:

  1. Convert the temperature: T = 20 + 273.15 = 293.15 K.
  2. Convert pressure: p = 101.325 × 1000 = 101325 Pa.
  3. Substitute into the equation: ρ = 101325/(287.05 × 293.15).
  4. Calculate: 287.05 × 293.15 = 84140.2075, so ρ = 101325/84140.2075 ≈ 1.204 kg/m³.

The displayed density is therefore 1.204 kg/m³, with temperature 293.15 K. Small differences from reference tables can result from rounding the gas constant or using a different air composition or humidity assumption.

Assumptions

  • Air is dry and has the usual approximate composition of Earth’s atmosphere.
  • Air follows the ideal-gas equation, which is a good approximation for ordinary atmospheric conditions.
  • Pressure is absolute, not gauge pressure.
  • The specific gas constant is fixed at 287.05 J/(kg·K); water vapor is not separately included.

Why Temperature and Pressure Determine Density

Density describes how much mass occupies a given volume. For a gas, pressure reflects how strongly its molecules are confined, while temperature reflects their average thermal energy. At a fixed temperature, increasing pressure packs more gas into each cubic metre, so density rises in direct proportion. At fixed pressure, increasing temperature makes the gas expand; its density falls in inverse proportion to absolute temperature.

Temperature must be expressed on an absolute scale in the gas equation. Celsius is convenient for weather reports, but its zero is not the absence of thermal energy. The conversion is always T(K) = t(°C) + 273.15. Substituting 20 directly as the temperature, rather than 293.15 K, would produce a physically incorrect result.

How to Use the Result

The result is mass per volume. A density of 1.204 kg/m³ means that one cubic metre of the modeled air has a mass of about 1.204 kilograms. It does not mean that a fixed volume of air always has that mass: temperature, pressure, humidity, and composition can change it.

For example, at the same pressure, air at 30 °C is less dense than air at 20 °C. At the same temperature, air at a high-altitude location is generally less dense because atmospheric pressure is lower. These effects matter in weather calculations, ventilation, buoyancy, aircraft performance, and converting between gas mass and volume. Applications that require high precision should use measured local conditions and an appropriate moist-air or real-gas model.

Dry Air, Humidity, and Other Limits

Water vapor changes air density. At a given total pressure and temperature, humid air is less dense than dry air because water molecules have a lower molar mass than the average molecules in dry air. The calculator does not accept relative humidity or water-vapor pressure, so it returns the dry-air estimate rather than a humidity-corrected value. For routine estimates this distinction may be modest, but it matters in precise psychrometric, meteorological, or engineering work.

The value 287.05 J/(kg·K) is a conventional approximation for dry air, not a universal constant for every gas mixture. Air composition varies slightly, and gases at sufficiently high pressure or under unusual conditions can depart from ideal-gas behavior. Near ordinary surface temperatures and pressures, the ideal-gas model is widely useful; at extreme conditions, consult an appropriate equation of state and composition data.

Common Input and Interpretation Mistakes

  • Entering gauge pressure: convert to absolute pressure by adding local atmospheric pressure to gauge pressure when appropriate. Do not use a negative gauge value as absolute pressure.
  • Mixing units: this calculator accepts kPa, not Pa, bar, or atmospheres. Convert first: 1 kPa = 1000 Pa, and 1 atm = 101.325 kPa.
  • Using Celsius in place of kelvins: the formula adds 273.15 automatically, so enter the temperature in °C as shown.
  • Treating the estimate as moist-air density: humidity is not an input, so the answer represents dry air.
  • Over-reading decimal places: real measurements have uncertainty, and the fixed gas constant and dry-air assumption limit meaningful precision. Three decimals are useful for comparison, not a guarantee of measurement accuracy.

Frequently Asked Questions

What is the density of air at 20 °C and 1 atmosphere?
For dry air at 20 °C and 101.325 kPa absolute pressure, the ideal-gas estimate is about 1.204 kg/m³.

Does air density increase with pressure?
Yes. At a fixed temperature and composition, density is proportional to absolute pressure. Doubling the absolute pressure doubles the ideal-gas density.

Does cold air have higher density?
At the same pressure, yes. Lower absolute temperature gives higher density. Actual outdoor comparisons can also involve pressure, humidity, and changing weather conditions.

Is air density the same as air pressure?
No. Pressure is force per area, measured in pascals; density is mass per volume, measured in kg/m³. The ideal-gas equation relates them when temperature and gas composition are known.

How do I calculate density for humid air?
You also need humidity information, commonly relative humidity or water-vapor partial pressure, along with temperature and total pressure. A moist-air calculation accounts for water vapor rather than treating the mixture as dry air.

Why does altitude affect air density?
Atmospheric pressure generally decreases with altitude because less air lies above a given location. At the same temperature, that lower absolute pressure produces lower density; temperature can also vary with altitude.

Related

Formula used
in p | Absolute pressure | kPa | 101.325 | 0
in t | Air temperature | °C | 20 | -273.15
out rho | Air density | kg/m^3 | p * 1000 / (287.05 * (t + 273.15)) | 3
out tk | Temperature in kelvins | K | t + 273.15 | 2

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 →