Air density is about 1.20 g/L at 20 °C and 1 atmosphere of pressure; at 0 °C and the same pressure, dry air is about 1.29 g/L. Use this calculator to estimate dry-air density from temperature and pressure, entering °C and kPa to get a result in g/L.
Formula
The calculator uses the ideal-gas density equation for dry air:
ρ = p / (Rair T)
In the calculator’s units, this is ρ (g/L) = [p (kPa) × 1000] / [287.05 × (t (°C) + 273.15)]. The factor 1000 converts kPa to Pa; the numerical density in g/L equals the density in kg/m³ because 1 g/L = 1 kg/m³.
- ρ is air density, in kg/m³ or equivalently g/L.
- p is absolute air pressure, in pascals in the SI equation; the calculator accepts kPa and multiplies by 1000.
- Rair is the specific gas constant for dry air, 287.05 J/(kg·K), a conventional approximation.
- T is absolute temperature in kelvins; convert Celsius by adding 273.15.
Pressure must be absolute pressure, measured relative to a perfect vacuum. A gauge-pressure reading is relative to the surrounding atmosphere and must be converted before using this equation.
Worked Example
Using the calculator’s defaults, temperature is 20 °C and absolute pressure is 101.325 kPa.
- Convert temperature to kelvins: T = 20 + 273.15 = 293.15 K.
- Convert pressure to pascals: p = 101.325 × 1000 = 101325 Pa.
- Substitute into the ideal-gas equation: ρ = 101325 / (287.05 × 293.15) = 1.2039 kg/m³.
- Since 1 kg/m³ = 1 g/L, the displayed result is 1.204 g/L to three decimal places.
Assumptions
- Air is treated as a dry, ideal gas with a fixed specific gas constant of 287.05 J/(kg·K).
- The pressure entered is absolute pressure, not gauge pressure.
- Temperature is uniform, and pressure and temperature describe the same air sample.
- Humidity, unusual gas composition, and non-ideal effects are not included.
Why Air Density Changes
Density is mass divided by volume. For a gas, the same amount of air occupies more space when warmed, so its density falls if pressure stays constant. At higher pressure, gas is compressed into less volume, increasing density. The ideal-gas relation captures these effects: density is proportional to pressure and inversely proportional to absolute temperature.
Temperature must be used on the kelvin scale in the formula. Celsius is convenient for weather reports but has an arbitrary zero, so substituting a Celsius number directly would produce a physically incorrect result. Pressure also matters: “one atmosphere” is a reference condition, not a guarantee of the actual local pressure. Weather and altitude can change it.
The result is a useful approximation for ordinary atmospheric conditions. The specific gas constant differs slightly with air composition, and water vapor changes the mixture’s effective molecular mass. For many everyday calculations, dry-air density is sufficient; high-precision work should account for humidity and use measured local pressure and temperature.
Reference Values and Comparisons
Approximate dry-air densities near standard atmospheric pressure provide a quick sense check:
- At 0 °C and 101.325 kPa: about 1.292 kg/m³, or 1.292 g/L.
- At 20 °C and 101.325 kPa: about 1.204 kg/m³, or 1.204 g/L.
- At 25 °C and 101.325 kPa: about 1.184 kg/m³, or 1.184 g/L.
These values are approximate and depend on the chosen air-constant convention and whether humidity is included. They are not universal constants. A warm room’s air is less dense than cold air at equal pressure; air at a high-altitude location is generally less dense because local atmospheric pressure is lower.
One common unit confusion is that g/L and kg/m³ have the same numerical value, not values differing by a factor of 1,000. For example, 1.20 g/L is also 1.20 kg/m³. By contrast, 1 g/L equals 0.001 g/cm³.
Using the Calculator and Avoiding Errors
Enter the air temperature in degrees Celsius and the local absolute pressure in kilopascals. The first output is the density in g/L; the second expresses the same density in kg/m³. The calculator does not infer local pressure from altitude, so use a reliable pressure value for the location and time when accuracy matters.
- Do not enter gauge pressure as absolute pressure. For example, a gauge reading of zero at sea level corresponds approximately to 101.325 kPa absolute, not zero.
- Check temperature conversion. The equation uses kelvins, and the calculator adds 273.15 automatically.
- Keep units consistent. The input pressure is kPa; entering a value in Pa or bar without conversion creates a large error.
- Do not overinterpret the displayed precision. Three decimal places are a computational display choice, not a claim that real-world measurements are accurate to that level.
The ideal-gas approximation is appropriate for common atmospheric conditions, but a simple calculator cannot represent every use case. Precision measurements may need humidity, composition, compressibility corrections, and calibrated sensor readings. Very low pressures, extreme temperatures, or specialized gas mixtures may require a more detailed model.
Frequently Asked Questions
What is the density of air in g/L?
It is roughly 1.2 g/L near room temperature and one atmosphere. The exact value changes with temperature, pressure, humidity, and composition.
Is air density 1.225 g/L?
About 1.225 kg/m³ (numerically the same in g/L) is a commonly used standard-atmosphere reference near 15 °C and sea-level pressure. It is not the density at every temperature or location.
Is g/L the same as kg/m³?
Yes, the numerical values are equal: 1 g/L = 1 kg/m³. This follows because both the mass and volume units change by a factor of 1,000.
Does hot air have higher or lower density?
At the same pressure, hot air has lower density than cold air because its volume increases for a given mass. If pressure also changes, both conditions affect the result.
How does altitude affect air density?
Atmospheric pressure generally decreases with altitude, so air density usually decreases too. The precise density also depends on local temperature and weather.
Related
Formula used
in t | Air temperature | °C | 20 | -273.15 in p | Absolute pressure | kPa | 101.325 | 0.001 out d | Air density | g/L | (p * 1000) / (287.05 * (t + 273.15)) | 3 out kg | Air density | kg/m³ | d | 3
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
- Pressure Density Depth Formula for Fluids98,066 Pa
- Pressure Density Temperature Equation Calculator100,961.74 Pa
- Pressure Density Cup: What It Measures and How It Works1.0000 g/mL
- Pressure, Density, and Temperature: How They Relate101,307 Pa
- Pressure-Based vs Density-Based Solvers in CFD
- Pressure-Based vs Density-Based Solvers in CFD