This calculator estimates the density of dry air from its absolute pressure and temperature, using the ideal-gas equation. Enter pressure in kilopascals and temperature in degrees Celsius to get air density in kilograms per cubic metre, along with the corresponding temperature in kelvins.
Formula
For dry air treated as an ideal gas, density is pressure multiplied by the molar mass of air, divided by the universal gas constant and absolute temperature:
ρ = pM / (RT) = p / (RspecificT)
- ρ is air density in kilograms per cubic metre (kg/m³).
- p is absolute pressure in pascals (Pa). The calculator accepts kilopascals and converts them using 1 kPa = 1,000 Pa.
- M is the molar mass of dry air, approximately 0.028965 kg/mol.
- R is the universal gas constant, 8.31446261815324 J/(mol·K).
- T is absolute temperature in kelvins (K), calculated as temperature in °C + 273.15.
- Rspecific, the gas constant per unit mass for dry air, is about 287.05 J/(kg·K).
The calculator uses the equivalent form ρ = p / (287.05T). Its expression converts pressure from kPa to Pa and Celsius to kelvins explicitly. Pressure must be absolute, not gauge pressure. The displayed result is rounded to three decimal places; it is an estimate, not a claim that atmospheric air always has one fixed density.
Worked Example
Using the calculator’s defaults: pressure = 101.325 kPa and temperature = 20 °C.
- Convert pressure: 101.325 kPa × 1,000 Pa/kPa = 101,325 Pa.
- Convert temperature: 20 + 273.15 = 293.15 K.
- Substitute into the density equation: ρ = 101,325 / (287.05 × 293.15) = 1.204118… kg/m³.
- Rounded to the calculator’s three decimal places: 1.204 kg/m³.
This is the ideal-gas estimate for dry air at the stated pressure and temperature. Real air’s water-vapour content and composition can change the result slightly.
Assumptions
- Air is dry and has the standard approximate specific gas constant of 287.05 J/(kg·K).
- Air behaves as an ideal gas at the entered pressure and temperature.
- Temperature is uniform, and the entered pressure is absolute pressure.
- The calculation does not correct for humidity, local air composition, or non-ideal gas behaviour.
What Air Density Means
Density is mass divided by volume. Air density therefore tells you how much air mass occupies a given space. A density of 1.204 kg/m³ means that one cubic metre of air has a mass of about 1.204 kilograms under the conditions in the example. The unit kg/m³ is the SI unit for density; grams per litre has the same numerical value because 1 g/L equals 1 kg/m³.
Air does not have a single density under all circumstances. It is a mixture of gases, and its density changes with pressure, temperature, and moisture content. A value quoted without those conditions is a reference value or approximation, not a universal constant. “Air density” is a scientific and engineering term, not slang; it describes a measurable physical property.
How Pressure and Temperature Change It
At a fixed temperature, increasing pressure packs more gas mass into each cubic metre, so density rises in direct proportion to absolute pressure. For example, if pressure doubles while temperature stays the same, the ideal-gas calculation predicts twice the density.
At fixed pressure, increasing temperature makes the gas expand, reducing its mass per unit volume. In the equation, density varies inversely with kelvin temperature—not Celsius temperature. That distinction matters: 20 °C is 293.15 K, not 20 K. A calculation using Celsius directly in the denominator would be physically wrong.
These relationships help explain why air density matters in weather, aircraft performance, ventilation, combustion calculations, and laboratory gas measurements. The relevant conditions differ between applications, so a useful density value should be tied to the pressure and temperature at the point of interest.
Dry Air, Humidity, and Reference Values
Water vapour is less massive per molecule than the main components of dry air, nitrogen and oxygen. At the same temperature and total pressure, humid air is consequently less dense than dry air. This is a common source of confusion: “warm air rises” is often repeated as if temperature alone determines buoyancy. In practice, a parcel’s density compared with surrounding air depends on its temperature, moisture, pressure, and composition.
The calculator deliberately estimates dry-air density. It does not ask for relative humidity or water-vapour pressure, so it cannot provide a humidity-corrected value. For many rough estimates near ordinary atmospheric conditions, the dry-air result is a useful baseline. For precision work, use a moist-air calculation or a recognized reference method that includes humidity and the actual local conditions.
Reference figures also depend on the stated standard conditions. Near sea-level pressure and around 15 °C, dry-air density is approximately 1.225 kg/m³; at 20 °C and 101.325 kPa, it is about 1.204 kg/m³. These are not contradictory values: the temperatures differ. Elevation and weather also change pressure, so a standard-atmosphere figure may not match a site measurement.
Using the Result Correctly
Use absolute pressure in the calculator. A barometer reading or a pressure reported relative to a vacuum is absolute. Gauge pressure is measured relative to surrounding atmospheric pressure; convert it before using this formula by adding the local atmospheric pressure. For example, a gauge reading of zero does not mean zero absolute pressure—it ordinarily means the pressure matches the surrounding atmosphere.
Check that the pressure and temperature describe the same location and time. If air is moving through a duct, room, or outdoor site with strong gradients, one pair of values may not represent the entire volume. The formula estimates density at the entered conditions; it does not calculate airflow, lift, buoyancy, or pressure loss on its own.
- Use kPa for pressure and °C for temperature as requested.
- Do not enter a negative temperature below absolute zero; physically, the Celsius lower limit is −273.15 °C.
- Keep enough precision in the inputs for the task. The three-decimal output is rounding, not extra measurement accuracy.
- For humid air or high-accuracy work, account for water vapour and use a suitable model or measured data.
Frequently Asked Questions
What is the density of air at room temperature?
At 20 °C and 101.325 kPa absolute pressure, dry-air density is about 1.204 kg/m³ under the ideal-gas approximation. Different pressure, temperature, and humidity produce different values.
Is air density the same as air pressure?
No. Pressure is force per unit area, measured in pascals; density is mass per unit volume, measured in kg/m³. For a gas, pressure and density are related through temperature and composition, but they are different quantities.
Does hot air have a lower density?
At the same pressure and composition, yes. Higher absolute temperature means lower density according to the ideal-gas equation. In an open atmosphere, pressure and moisture can vary too, so temperature alone may not determine the comparison.
Is humid air denser than dry air?
At the same temperature and total pressure, humid air is generally less dense than dry air because water-vapour molecules have lower molar mass than the average dry-air mixture. This calculator does not apply a humidity correction.
Why must pressure be absolute?
The gas law relates density to the gas’s actual pressure measured from zero pressure. Gauge pressure uses the surrounding atmosphere as its reference, so it must be increased by local atmospheric pressure before use.
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³ | p * 1000 / (287.05 * (t + 273.15)) | 3 out tk | Absolute 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☉
- M/z Ratio in Mass Spectrometry: Meaning and Calculation1,000.00 Th
- Mass Fraction to Molar Fraction Calculator
- K2 Molar Mass Calculator and Calculation78.1966 g/mol