The air density equation for dry air is ρ = p/(RdT), where ρ is density, p is absolute pressure, T is absolute temperature in kelvins, and Rd = 287.05 J/(kg·K) is the specific gas constant for dry air. This calculator estimates density from pressure in kilopascals and temperature in degrees Celsius; it returns density in kilograms per cubic metre (kg/m³).
Formula
The ideal-gas equation is pV = nRT. Expressed for the mass of a particular gas, it becomes ρ = p/(RsT). For dry air, this calculator uses Rd = 287.05 J/(kg·K), a conventional specific gas constant. Since 1 J = 1 Pa·m³, pressure in pascals and temperature in kelvins give density in kg/m³.
- ρ is air density, in kg/m³.
- p is absolute pressure. The input is in kPa, so the formula multiplies it by 1,000 to convert to Pa.
- T is absolute temperature in K. The formula converts Celsius using T = t + 273.15.
- Rd is the specific gas constant for dry air, 287.05 J/(kg·K).
Pressure must be absolute, measured from a vacuum. A gauge pressure is measured relative to the surrounding atmosphere and cannot be substituted directly. For example, a gauge reading of zero at sea level corresponds approximately to atmospheric pressure, not zero absolute pressure.
Worked Example
Using the calculator’s default inputs, p = 101.325 kPa and t = 20 °C:
- Convert pressure: 101.325 kPa × 1,000 Pa/kPa = 101,325 Pa.
- Convert temperature: T = 20 + 273.15 = 293.15 K.
- Substitute into the equation: ρ = 101,325 / (287.05 × 293.15) = 1.2039 kg/m³.
The displayed density is 1.204 kg/m³, and the converted temperature is 293.15 K. The slight difference between the unrounded calculation and the displayed answer is due to rounding to three decimal places.
Assumptions
- Air is treated as an ideal gas.
- The air is dry; water vapour is not included in the gas mixture.
- Pressure is absolute and temperature is converted to kelvins.
- The specific gas constant is fixed at 287.05 J/(kg·K), a standard approximation for dry air.
How Air Density Changes
At a fixed temperature, density rises in direct proportion to absolute pressure. At fixed pressure, density falls as absolute temperature rises. These relationships follow directly from ρ = p/(RdT): doubling pressure doubles the calculated density, while doubling temperature in kelvins halves it.
Altitude is not itself part of the equation. As altitude increases in the atmosphere, pressure generally decreases, and air density usually decreases with it. To calculate density at a location, use the local absolute pressure and air temperature rather than altitude alone. Weather, elevation, and indoor ventilation can all affect those measurements.
The equation is useful for introductory physics, estimating aerodynamic conditions, and comparing air at different measured states. It does not calculate pressure or temperature from altitude, and it does not model a changing atmosphere. Those tasks require additional information, such as a weather model or an atmospheric profile.
Dry Air, Humidity, and Accuracy
Actual atmospheric air often contains water vapour. At the same temperature and total pressure, humid air is slightly less dense than dry air because water molecules have a lower molar mass than the average molecules in dry air. The dry-air equation therefore provides an approximation when humidity matters; it does not account for relative humidity or water-vapour pressure.
For greater accuracy in humid conditions, calculate the mixture using the partial pressure of dry air and the partial pressure of water vapour, along with the appropriate gas constants or molar masses. The required humidity and temperature data must be measured or obtained from a reliable source. Do not treat relative humidity alone as a pressure value.
Measurements and assumptions also limit precision. Atmospheric pressure varies with weather and elevation, and thermometer placement or calibration can affect temperature. The three decimal places displayed are a calculation format, not a claim that the inputs or the dry-air model are accurate to that many significant figures.
Common Mistakes and Limits
- Using Celsius directly: the denominator requires kelvins. Add 273.15 to a Celsius temperature before using the equation.
- Using gauge pressure: convert it to absolute pressure by adding the local atmospheric pressure, if that reference pressure is known.
- Mixing units: this calculator expects kPa and °C. If calculating by hand, use Pa, K, and Rd in J/(kg·K), or convert all terms consistently.
- Assuming dry air: humidity changes the mixture density. The calculator does not correct for moisture.
- Using the ideal-gas approximation beyond its purpose: it is suitable for ordinary atmospheric conditions, but specialized high-accuracy work or unusual pressure and temperature conditions may require a more complete model and appropriate gas properties.
A common misconception is that air density is a fixed value. It is not: the often-cited value near 1.2 kg/m³ describes air under particular conditions, not every location or day. Always use the pressure and temperature relevant to the calculation, and state whether humidity is being ignored.
Frequently Asked Questions
What is the equation for air density?
For dry air treated as an ideal gas, ρ = p/(RdT), with absolute pressure p, temperature T in kelvins, and Rd = 287.05 J/(kg·K).
What is the density of air at 20 °C and sea-level pressure?
At 20 °C and 101.325 kPa absolute pressure, the dry-air estimate is about 1.204 kg/m³. The result changes with pressure, temperature, and humidity.
Why must temperature be in kelvins?
The ideal-gas relationship uses absolute temperature, whose zero corresponds to absolute zero. Celsius has an offset, so it must be converted by adding 273.15.
Does humidity increase or decrease air density?
At the same temperature and total pressure, adding water vapour generally lowers air density compared with dry air. This calculator ignores humidity, so it is an approximation for moist air.
Can I use altitude instead of pressure?
Not in this equation directly. Altitude can help estimate atmospheric pressure through a separate model, but local pressure and temperature are the direct inputs for this calculation.
Related
Formula used
in p | Absolute pressure | kPa | 101.325 | 0 in t | Air temperature | °C | 20 | -273.15 out rho | Air density | kg/m^3 | (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
- MD Calc I:T Ratio Calculator and Explanation0.0500 ratio
- Oxygen Mass Number: Isotope Values Explained16 nucleons
- Mass-to-Light Ratio: Meaning and Calculation1.000 M☉/L☉
- Mass Fraction to Molar Fraction Calculator
- M/z Ratio in Mass Spectrometry: Meaning and Calculation1,000.00 Th
- K2 Molar Mass Calculator and Calculation78.1966 g/mol