This air density calculator estimates the density of dry air from its temperature and pressure, returning the result in kilograms per cubic metre. Enter temperature in degrees Celsius and pressure in kilopascals; the calculation uses the ideal-gas relationship and a standard molar mass for dry air.
Formula
For dry air treated as an ideal gas, density is calculated from pressure, molar mass, the gas constant, and absolute temperature:
ρ = pM / (RT)
- ρ is air density in kg/m³.
- p is absolute pressure in pascals (Pa). The calculator converts kilopascals to pascals using 1 kPa = 1,000 Pa.
- M is the assumed molar mass of dry air, 0.02896546 kg/mol.
- R is the molar gas constant, 8.31446261815324 J/(mol·K).
- T is absolute temperature in kelvins (K), calculated as temperature in °C + 273.15.
The first result is the requested density. Temperature in kelvins and pressure in pascals are shown as supporting values so you can check the conversions. Pressure must be absolute pressure, not gauge pressure: a gauge reading is relative to surrounding atmospheric pressure.
Worked Example
Using the default inputs, temperature is 20 °C and absolute pressure is 101.325 kPa.
- Convert the temperature: T = 20 + 273.15 = 293.15 K.
- Convert the pressure: p = 101.325 × 1,000 = 101,325 Pa.
- Substitute into the ideal-gas density formula: ρ = (101,325 × 0.02896546) / (8.31446261815324 × 293.15).
- Evaluate: ρ ≈ 1.2041 kg/m³, or 1.204 kg/m³ to three decimal places.
The calculated result is an estimate for dry air at those conditions. It is not a fixed property of air: changing temperature or pressure changes density.
Assumptions
- Air is dry and has a fixed molar mass of 0.02896546 kg/mol.
- Air behaves as an ideal gas.
- Temperature is converted from °C to K by adding 273.15.
- The pressure entered is absolute pressure, and kilopascals are converted to pascals by multiplying by 1,000.
- The result describes the air at the stated temperature and pressure; it does not account for humidity, composition changes, or local measurement uncertainty.
What Air Density Means
Density is mass per unit volume. A cubic metre of air at a density of 1.204 kg/m³ contains about 1.204 kilograms of air under the conditions represented by the calculation. Because air is compressible, its density varies substantially with the state of the atmosphere. “The density of air” therefore needs a temperature and pressure to be meaningful.
Near ordinary room conditions and sea-level pressure, dry-air density is about 1.2 kg/m³. That is a useful reference, not a universal constant. At higher altitude, atmospheric pressure is usually lower and a given volume of air contains less mass. At the same pressure, warmer air is less dense than cooler air because its molecules occupy more volume on average.
How Temperature and Pressure Affect the Result
The ideal-gas formula shows that density is directly proportional to absolute pressure and inversely proportional to absolute temperature. If pressure rises while temperature stays the same, density rises in the same proportion. If temperature rises while pressure stays the same, density falls.
For example, compare air at 20 °C and 101.325 kPa with air at 30 °C at the same pressure. The temperature rises from 293.15 K to 303.15 K, so the density becomes about 293.15/303.15 of its former value: roughly 1.164 kg/m³ using the same dry-air assumptions. This illustrates why quoting density without conditions can be misleading.
Use absolute temperature, not a Celsius number directly in the gas law. Celsius has an arbitrary zero; the ideal-gas relationship requires kelvins, whose zero corresponds to absolute zero. Similarly, use absolute pressure. A gauge pressure of zero means pressure equals the surrounding atmosphere, not that there is no air pressure.
Humidity, Altitude, and Real-World Accuracy
Water vapour changes air’s average molar mass. At the same temperature and pressure, humid air is generally less dense than dry air because water molecules have a lower molar mass than the average molecules in dry air. This calculator does not accept relative humidity or water-vapour pressure, so its output is a dry-air estimate rather than a humidity-corrected value.
Altitude matters chiefly because atmospheric pressure generally falls as elevation increases. There is no single pressure correction that works at every height and weather condition; for a realistic site estimate, use a measured or appropriately modeled local absolute pressure together with the local temperature. Weather systems also change pressure, so elevation alone does not determine the exact density.
The ideal-gas approximation is useful for ordinary atmospheric conditions. At very high pressures or in conditions where precise gas properties matter, real-gas effects and air composition can make a more specialized equation of state appropriate. For engineering or calibration work, use a method and inputs suited to the required accuracy.
Common Input and Interpretation Mistakes
- Entering gauge pressure: add the local atmospheric pressure to a gauge reading to obtain absolute pressure. For example, 0 kPa gauge near standard atmospheric conditions corresponds to about 101.325 kPa absolute, not zero.
- Using Celsius in place of kelvins: convert with T(K) = t(°C) + 273.15. The calculator does this conversion for you.
- Assuming humidity is included: it is not. The output uses a dry-air molar mass.
- Comparing densities at different conditions: record temperature and absolute pressure alongside a density value so the comparison is meaningful.
- Overinterpreting displayed digits: three decimal places are convenient for a general estimate, but input accuracy and model assumptions determine the real precision.
Frequently Asked Questions
What is the density of air at room temperature?
At 20 °C and standard atmospheric pressure of 101.325 kPa, dry air has an estimated density of about 1.204 kg/m³ under the ideal-gas assumptions used here. Different pressure, humidity, or temperature changes the value.
Does air density increase with temperature?
At fixed pressure, air density decreases as temperature rises. In the formula, density varies inversely with absolute temperature. If pressure changes at the same time, both conditions must be considered.
Is air denser at high altitude?
Usually it is less dense at higher altitude because atmospheric pressure is generally lower. The exact density also depends on local temperature, weather, and humidity.
Can I use this calculator for humid air?
Only as a dry-air approximation. Humidity affects air’s average molar mass, so a humidity-corrected calculation also needs water-vapour information, such as relative humidity together with temperature and pressure.
Should I enter absolute or gauge pressure?
Enter absolute pressure. Gauge pressure is measured relative to the surrounding atmosphere; convert it by adding local atmospheric pressure before using this result.
Why does the calculator reject temperatures below −273.15 °C?
That value is absolute zero, equivalent to 0 K. The ideal-gas density expression requires a positive absolute temperature, and temperatures below absolute zero are not valid inputs for this model.
Related
Formula used
in t | Air temperature | °C | 20 | -273.15 in p | Absolute pressure | kPa | 101.325 | 0 out rho | Air density | kg/m^3 | (p * 1000) * 0.02896546 / (8.31446261815324 * (t + 273.15)) | 3 out tk | Temperature in kelvin | K | t + 273.15 | 2 out pa | Pressure in pascals | Pa | p * 1000 | 0
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