molecalculator

Moles & Molar Mass

Air Density vs Temperature Calculator

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

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

This calculator estimates the density of dry air from its temperature and pressure using the ideal-gas law. Enter the air temperature in °C and absolute pressure in kPa; it returns air density in kg/m³, along with the temperature in kelvins used in the calculation.

Formula

For dry air treated as an ideal gas, density equals pressure divided by the specific gas constant for dry air times absolute temperature:

ρ = P / (Rd × T)

  • ρ is air density in kilograms per cubic metre (kg/m³).
  • P is absolute pressure in pascals (Pa). The calculator converts the entered pressure from kPa to Pa by multiplying by 1,000.
  • Rd is the specific gas constant for dry air, taken here as 287.05 J/(kg·K).
  • T is absolute temperature in kelvins (K), found by adding 273.15 to the input in °C.

Because 1 Pa = 1 J/m³, the units reduce to kg/m³. Pressure must be absolute, not gauge pressure. Gauge pressure is measured relative to the surrounding atmosphere, so it needs the local atmospheric pressure added before this equation is used.

Worked Example

Using the calculator’s defaults, the air temperature is 20 °C and absolute pressure is 101.325 kPa.

  1. Convert temperature: T = 20 + 273.15 = 293.15 K.
  2. Convert pressure: P = 101.325 × 1,000 = 101,325 Pa.
  3. Calculate density: ρ = 101,325 / (287.05 × 293.15) ≈ 1.20412 kg/m³.

Rounded to the calculator’s three decimal places, the result is 1.204 kg/m³.

Assumptions

  • Air is dry and has a constant specific gas constant of 287.05 J/(kg·K).
  • Air behaves as an ideal gas at the entered conditions.
  • Pressure is absolute and temperature is converted from °C to K.
  • The result describes density at the specified pressure and temperature; it is not a correction for humidity or local gas composition.

Why Temperature Changes Air Density

At a fixed pressure, warmer air is less dense than cooler air. Heating a gas raises the average kinetic energy of its molecules. Under ordinary atmospheric conditions, the gas expands until its pressure again matches the surroundings. The same mass then occupies a larger volume, so its density—mass divided by volume—falls.

The ideal-gas relationship makes the inverse dependence precise: if pressure and gas composition stay constant, density is proportional to 1/T, where T is measured in kelvins. Celsius values cannot be used directly in this ratio because the Celsius zero is not absolute zero. For example, comparing 10 °C and 20 °C means comparing 283.15 K and 293.15 K, not 10 and 20.

At a fixed temperature, raising pressure increases density. This is why temperature alone cannot determine air density in all settings: altitude, weather systems, and indoor pressurization can change pressure too. The calculator therefore requires both temperature and absolute pressure.

Examples and Practical Context

At sea-level standard pressure, dry air at 0 °C has a density of about 1.292 kg/m³, while at 20 °C it is about 1.204 kg/m³. The warmer air is roughly 7% less dense in this comparison. These are illustrative values, not universal readings: actual pressure and moisture vary with location and weather.

Air density matters wherever the mass of air in a given volume affects a calculation. Examples include estimating buoyancy, interpreting anemometer or airflow measurements, calculating aerodynamic forces, and comparing gas volumes. For an object moving through air, drag depends on density as well as speed, shape, and size; this calculator supplies density only, not the full drag force.

At higher elevations, atmospheric pressure is usually lower, which lowers density even if temperature is unchanged. A warm day at a high-altitude location can therefore have substantially lower density than a cool day near sea level. For accurate work, use a pressure measured at the same location and time, rather than assuming standard sea-level pressure.

Humidity, Pressure, and Model Limits

Moist air is generally less dense than dry air at the same temperature and total pressure. Water molecules have a lower molar mass than the average molecules in dry air, chiefly nitrogen and oxygen. Replacing some dry-air molecules with water vapor reduces the mixture’s average molar mass. The dry-air calculation can therefore slightly overestimate the density of humid air.

The ideal-gas approximation is useful for ordinary atmospheric conditions, but this simple calculator does not account for humidity, non-ideal behavior, or variations in air composition. For engineering or scientific work that needs higher accuracy, use a moist-air or real-gas model appropriate to the conditions and include the relevant humidity and pressure data.

  • Do not substitute gauge pressure: a tyre reading, for example, is commonly gauge pressure and is not the absolute pressure needed here.
  • Check units: enter pressure in kPa, not Pa or bar. The calculator converts kPa to Pa internally.
  • Use kelvins in the equation: the calculator performs the °C-to-K conversion for you.
  • State the conditions: a density value is meaningful only alongside the temperature and pressure at which it applies.

Frequently Asked Questions

Does air density increase or decrease with temperature?
At constant pressure, air density decreases as temperature rises. The relationship is inverse with absolute temperature, so calculations use kelvins rather than Celsius.

What is the density of air at 20 °C?
For dry air at 101.325 kPa absolute pressure, the ideal-gas estimate is about 1.204 kg/m³. Different pressure or humidity produces a different value.

Why does cold air feel denser?
At the same pressure, cooling air reduces its volume for a given mass, increasing its density. The sensation of cold itself is not a direct measurement of density; wind and humidity also affect how people experience weather.

Does altitude affect air density?
Yes. Atmospheric pressure generally decreases with altitude, and lower pressure means lower density at the same temperature. Temperature also changes with altitude, so both conditions matter.

Is humid air denser than dry air?
No, at the same temperature and total pressure, humid air is generally less dense because water vapor has a lower molar mass than dry air’s main constituents.

Can I use Celsius directly in the air-density formula?
No. Convert °C to K by adding 273.15 before using ρ = P/(RdT). The calculator makes that conversion automatically.

Related

Formula used
in t | Air temperature | °C | 20 | -273.15
in p | Absolute pressure | kPa | 101.325 | 0.001
out rho | Air density | kg/m^3 | (p * 1000) / (287.05 * (t + 273.15)) | 3
out tk | Absolute temperature | 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 →