Air density is the mass of air per unit volume, usually expressed in kilograms per cubic metre (kg/m³). This calculator estimates dry-air density from air temperature and absolute pressure using the ideal-gas equation; enter those two conditions to get density and a corresponding value in g/L.
Formula
The ideal-gas density equation is ρ = p / (RairT). In the calculator’s units, it is ρ = (p × 1000) / [287.058 × (t + 273.15)].
- ρ is air density in kg/m³.
- p is absolute pressure in kPa. Multiplying by 1000 converts kPa to Pa, equivalent to N/m².
- Rair is the specific gas constant for dry air, 287.058 J/(kg·K), a conventional value based on the molar gas constant and the molar mass of dry air.
- t is air temperature in °C; adding 273.15 converts it to kelvin, the absolute temperature required by the gas law.
The output in g/L has the same numerical value as kg/m³: 1 kg/m³ equals 1 g/L. The second output is therefore a unit conversion, not a separate density model.
Worked Example
Using the calculator’s defaults, temperature is 20 °C and absolute pressure is 101.325 kPa.
- Convert temperature: T = 20 + 273.15 = 293.15 K.
- Convert pressure: p = 101.325 × 1000 = 101325 Pa.
- Substitute: ρ = 101325 / (287.058 × 293.15) = 1.204 kg/m³, rounded to three decimal places.
- Convert units: 1.204 kg/m³ = 1.204 g/L.
At these conditions, the estimated density is 1.204 kg/m³, or 1.204 g/L.
Assumptions
- Air is treated as dry air with a fixed specific gas constant.
- Air follows the ideal-gas law; ordinary atmospheric conditions are generally a useful setting for this approximation.
- Pressure is absolute pressure, not gauge pressure.
- Temperature is converted to kelvin before calculation.
What NIST Means for Air Density
“Air density NIST” commonly refers to finding air density with reference to data, standards, or calculation resources associated with the U.S. National Institute of Standards and Technology. NIST provides authoritative measurement science resources, but there is not one universal density for air: the answer depends on temperature, pressure, humidity, and the definition of the air mixture. A calculator must therefore state its conditions and model.
The calculation above is a transparent ideal-gas estimate, not a claim that a NIST laboratory has measured the user’s air sample. For precision metrology, calibration, or a formal uncertainty budget, use a documented equation of state and the applicable reference conditions and composition. NIST’s Chemistry WebBook and related reference resources can help identify thermophysical data, while standards for humidity and air-density correction may specify more detailed methods. Always check the source’s stated scope and units.
At a specified pressure and temperature, dry-air density follows directly from the gas law. Moist air requires additional information because water vapor has a lower molar mass than the main components of dry air. Replacing some nitrogen and oxygen with water vapor generally lowers density at the same total pressure and temperature. Thus, a result labelled “air density” is incomplete for demanding work unless humidity and composition assumptions are clear.
How Temperature, Pressure and Humidity Affect Density
At fixed composition and pressure, warmer air is less dense: the same mass occupies more volume. At fixed temperature, increasing absolute pressure increases density. These relationships follow from ρ = p/(RairT), so density changes in direct proportion to pressure and inverse proportion to absolute temperature.
- Temperature: use the air temperature at the location of interest, not a nearby room reading if conditions differ.
- Pressure: use local absolute pressure. Weather reports may give station pressure or a sea-level-adjusted value; these are not interchangeable without conversion.
- Humidity: this calculator assumes dry air. A humid-air calculation needs water-vapor information, commonly relative humidity or dew point, along with temperature and pressure.
- Composition: unusual gas mixtures, pollution, or high concentrations of another gas can make the dry-air constant inappropriate.
For example, altitude usually lowers atmospheric pressure, which reduces air density. A standard-atmosphere value at a given altitude is an approximation for a reference atmosphere, not a substitute for measured local pressure and temperature during a particular weather event.
Using the Result and Avoiding Common Errors
This estimate is useful for introductory physics, engineering comparisons, and rough calculations involving buoyancy or airflow where an ideal dry-air approximation is suitable. It is not by itself a complete answer for instrument calibration, aircraft performance certification, or other applications with tightly specified tolerances.
- Do not enter gauge pressure. Gauge pressure is measured relative to local atmospheric pressure. Convert it to absolute pressure by adding the local atmospheric pressure before using the calculator.
- Do not use Celsius directly in the gas-law denominator. The conversion +273.15 is essential; using 20 instead of 293.15 would give a physically incorrect result.
- Keep pressure units consistent. This calculator accepts kPa and converts to Pa. Entering a value in hPa, bar, or atm as though it were kPa causes a large error.
- Do not overinterpret the decimal places. Three decimal places are a display choice, not a guarantee of accuracy. Input uncertainty, humidity, and the model’s assumptions may be more important than rounding.
For a formal measurement, record the source and uncertainty of temperature and pressure, the humidity or dry-air assumption, and the equation used. If the required precision is beyond an ideal-gas estimate, select a validated humid-air or real-gas calculation appropriate to the pressure range and application.
Frequently Asked Questions
What is the density of air at standard conditions?
It depends on what “standard conditions” means. Near 20 °C and 101.325 kPa, this dry-air ideal-gas calculation gives about 1.204 kg/m³. Other reference temperatures, pressures, humidity levels, and conventions produce different values.
Does NIST give one fixed value for air density?
No single value applies to every situation. Air density changes with temperature, pressure, humidity, and composition. Reference data or equations must be used with stated conditions.
Is air density the same in kg/m³ and g/L?
The numerical values are the same because 1 kg/m³ equals 1 g/L. For example, 1.204 kg/m³ is 1.204 g/L.
Why does humid air have lower density?
At the same temperature and total pressure, water vapor replaces some heavier dry-air molecules. Since water vapor has a lower molar mass than dry air on average, the resulting moist air is generally less dense.
Can I use sea-level pressure for a location at altitude?
Not for a local density estimate unless sea-level pressure has been converted to the actual local absolute pressure. Use local pressure, because atmospheric pressure generally decreases with altitude.
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) / (287.058 * (t + 273.15)) | 3 out gl | Air density | g/L | rho | 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
- 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