This calculator estimates the density of dry air from its temperature, using the ideal-gas relationship at a specified pressure. Enter temperature and pressure to get air density in kilograms per cubic metre, plus the temperature in kelvins used in the calculation.
Formula
For dry air treated as an ideal gas, density is pressure divided by the product of the specific gas constant for dry air and absolute temperature:
ρ = p / (RdT)
- ρ is air density in kilograms per cubic metre (kg/m³).
- p is absolute air pressure in pascals (Pa). The calculator accepts kilopascals and converts using 1 kPa = 1,000 Pa.
- 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 temperature in degrees Celsius.
Pressure must be absolute pressure, not gauge pressure relative to the surrounding atmosphere. The calculator uses the conventional dry-air value of Rd; it does not adjust for humidity, gas composition, or non-ideal behaviour.
Worked Example
Using the defaults, the air temperature is 20 °C and pressure is 101.325 kPa.
- Convert Celsius to kelvins: T = 20 + 273.15 = 293.15 K.
- Convert pressure to pascals: p = 101.325 × 1,000 = 101,325 Pa.
- Substitute into the density formula: ρ = 101,325 / (287.05 × 293.15).
- Calculate: ρ ≈ 1.204 kg/m³, to three decimal places.
At these conditions, one cubic metre of dry air has a mass of about 1.204 kg. The value is an estimate under the assumptions described below.
Assumptions
- Air is dry and has the standard composition represented by Rd = 287.05 J/(kg·K).
- Air behaves as an ideal gas.
- The entered pressure is absolute pressure.
- Temperature is uniform and converted from Celsius to kelvins using +273.15.
How Temperature Changes Air Density
At fixed pressure, density is inversely proportional to absolute temperature: raising temperature lowers density, while cooling raises it. This follows because warmer gas molecules have greater average kinetic energy and, at the same pressure, occupy more volume per unit mass. The relationship uses kelvins, not Celsius; zero on the Celsius scale is not the point at which gas temperature becomes zero.
For example, at 101.325 kPa, the calculator gives about 1.204 kg/m³ at 20 °C. At 30 °C with the same pressure, it gives about 1.164 kg/m³. That change is roughly 3.3%, not a fixed number of kilograms per degree. The exact change depends on the starting temperature because the formula divides by absolute temperature.
Temperature alone cannot determine air density in all circumstances. Pressure matters as well: at the same temperature, higher pressure means more air mass in a given volume and therefore greater density. This is why a mountain location can have less dense air than a sea-level location even when both have the same temperature.
Pressure, Altitude, and Weather
Use the pressure where the air is being considered, not automatically the standard sea-level pressure of 101.325 kPa. Atmospheric pressure generally falls with altitude, but actual pressure also varies with weather. A local station pressure is the relevant input for density at that location. A weather report may instead give pressure adjusted to sea level; that adjusted value is not the actual pressure at an elevated site.
If you know only temperature, you can calculate density only by assuming a pressure. The default pressure is standard atmospheric pressure, useful as a reference but not a universal condition. For flight, airflow, or engineering estimates, a current local pressure and appropriate humidity correction may be important.
Dry Air Versus Humid Air
Humid air is usually less dense than dry air at the same temperature and pressure. Water-vapour molecules have a lower molar mass than the average molecules in dry air, so replacing some dry-air molecules with water vapour reduces the mixture’s average molecular mass. The dry-air calculator therefore slightly overestimates density when humidity is appreciable.
For a simple estimate that includes water vapour, one commonly used form is ρ = (pd / (RdT)) + (pv / (RvT)), where pd is dry-air partial pressure, pv is water-vapour partial pressure, and Rv is about 461.5 J/(kg·K). Since pd + pv equals total pressure, calculating humid-air density requires humidity information as well as temperature and total pressure. This page does not perform that correction.
Using and Interpreting the Result
Check that the inputs describe the same place and time. Enter pressure in kPa and temperature in °C; the calculator handles the conversions to Pa and K. A pressure value of 101.325 kPa is approximately one standard atmosphere. Do not enter a negative gauge pressure as though it were absolute pressure: convert gauge pressure by adding the local atmospheric pressure first.
- Compare conditions: hold pressure constant when isolating the effect of temperature.
- Estimate mass: for a known volume, multiply density in kg/m³ by volume in m³ to estimate air mass in kilograms.
- Check precision: the displayed three decimal places are calculation precision, not a guarantee of measurement accuracy. Uncertain pressure, temperature, humidity, and composition can matter more than the last digit.
The ideal-gas approximation is suitable for many ordinary atmospheric conditions. For high-accuracy work, unusual pressures or temperatures, or air with a significant water-vapour content, use a model that accounts for humidity and real-gas effects. Do not treat the result as a direct measurement.
Frequently Asked Questions
How do you calculate air density from temperature?
For dry air, use ρ = p/(RdT), with absolute pressure in pascals, temperature in kelvins, and Rd = 287.05 J/(kg·K). Convert Celsius to kelvins by adding 273.15.
Does warmer air have a higher or lower density?
At the same pressure, warmer air has lower density. The inverse relationship is with absolute temperature, so the size of the change depends on the temperatures being compared.
Can temperature alone tell me air density?
No. You also need pressure, and humidity can affect the result. A temperature-only estimate must assume pressure and usually treats air as dry.
What is the density of air at 20 °C?
At 20 °C and 101.325 kPa, dry air has an estimated density of 1.204 kg/m³ using the formula on this page. Different pressure or humidity changes the value.
Why do I need to use kelvins?
The ideal-gas relationship uses absolute temperature. Celsius has an arbitrary zero point, so insert °C directly into the denominator and the result will be wrong.
Related
Formula used
in t | Air temperature | °C | 20 | -273.15 in p | Air pressure | kPa | 101.325 | 0.001 out rho | Dry-air density | kg/m³ | (p * 1000) / (287.05 * (t + 273.15)) | 3 out tk | 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
- Skip Calculator for Soil: What It Can and Can’t Do7.500 m³
- USD to KPW Calculator: Convert Dollars to North Korean Won90,000.00 KPW
- OK Calculator on TV on the Radio? Meaning Explained
- Pension Calculator KP: Estimate Your Pension Benefits
- Neonatal Kp Calculator: What It Means80.0000 mmol/mmol
- Newton to kp Converter Calculator and Formula1.0000 kp