This calculator estimates air density from air temperature and absolute pressure using the ideal-gas relation for dry air. Enter temperature in °C and pressure in kPa; it returns density in kg/m³, along with the temperature in kelvins used in the calculation.
Formula
For dry air treated as an ideal gas, density equals absolute pressure divided by the specific gas constant for dry air multiplied by absolute temperature:
ρ = P / (Rair T)
- ρ is air density in kilograms per cubic metre (kg/m³).
- P is absolute pressure in pascals (Pa). The calculator converts the input pressure from kPa to Pa by multiplying by 1,000.
- Rair is the specific gas constant for dry air, taken here as 287.05 J/(kg·K).
- T is absolute temperature in kelvins (K), calculated by adding 273.15 to the temperature in °C.
The displayed expression is therefore ρ = (p × 1,000) / [287.05 × (t + 273.15)]. Pressure must be absolute: it is measured relative to a vacuum, not relative to the surrounding atmosphere.
Worked Example
Using the defaults, the air temperature is 20 °C and the absolute pressure is 101.325 kPa.
- Convert temperature to kelvins: T = 20 + 273.15 = 293.15 K.
- Convert pressure to pascals: P = 101.325 × 1,000 = 101,325 Pa.
- Substitute into the ideal-gas density equation: ρ = 101,325 / (287.05 × 293.15).
- Calculate the denominator: 287.05 × 293.15 = 84,147.2075 J/m³.
- Divide: ρ = 101,325 / 84,147.2075 = 1.204117… kg/m³, or 1.204 kg/m³ to three decimal places.
Assumptions
- Air is dry and behaves as an ideal gas.
- The specific gas constant is 287.05 J/(kg·K), a conventional value for dry air.
- Temperature is uniform and expressed on the thermodynamic scale inside the formula.
- Pressure is absolute, not gauge pressure or pressure relative to local atmospheric pressure.
How Temperature and Pressure Change Air Density
At a fixed pressure, warming air lowers its density. The molecules have more thermal energy and occupy a larger volume at the same pressure; equivalently, the ideal-gas equation shows that density is inversely proportional to absolute temperature. Cooling air raises density if pressure stays the same.
At a fixed temperature, increasing absolute pressure raises density in direct proportion. Doubling pressure at unchanged temperature doubles the ideal-gas density. These are separate comparisons: in real weather, pressure and temperature can both change, and their effects may reinforce or offset one another.
Use kelvins when comparing temperatures in ratios. A change of 10 °C is also a change of 10 K, but 20 °C is not twice as warm as 10 °C for gas-law calculations. The Celsius zero is arbitrary; absolute temperature starts at 0 K.
For example, at the same 101.325 kPa pressure, dry-air density at 30 °C is about 1.164 kg/m³, compared with about 1.204 kg/m³ at 20 °C. The warmer sample is less dense even though the pressure is unchanged.
What the Result Means in Practice
Air density matters whenever a calculation depends on how much air mass occupies a volume. It affects aerodynamic lift and drag, the performance of propellers and turbines, engine air intake, and buoyancy. A lower-density atmosphere generally provides less aerodynamic force at the same speed and shape, all else equal. Density is also useful in converting between a volume of air and its mass.
The calculator is a simple estimate, not a full atmospheric model. At a stated temperature and pressure it gives a useful dry-air value, but the actual air composition and local conditions matter. Weather stations may report pressure reduced to sea level rather than the pressure at the station. For density at a particular location, use the actual local absolute pressure, not a sea-level-adjusted report.
Pressure readings need special care. A gauge reading of zero usually means pressure equals the surrounding atmosphere, not zero absolute pressure. If you have gauge pressure, add the local atmospheric pressure to obtain absolute pressure before entering it. Never enter a negative absolute pressure.
Humidity and Other Limits
Ordinary air contains water vapour, and humid air is slightly less dense than dry air at the same temperature and total pressure. Water molecules have lower molar mass than the average molecules in dry air, so replacing some nitrogen and oxygen with water vapour reduces the mixture’s average molecular mass. The dry-air calculator does not account for this effect. For high-accuracy work, use a moist-air calculation with relative humidity or water-vapour pressure as an additional input.
The ideal-gas approximation is appropriate for many everyday atmospheric conditions. At very high pressures or under unusual conditions, real-gas effects can matter and a more detailed model may be needed. The calculator also assumes the entered temperature and pressure describe the same air sample and location.
Air density is not the same as air pressure. Pressure describes force per area; density describes mass per volume. They are related through temperature and composition, but pressure alone cannot determine density unless temperature and the gas model are also known.
Frequently Asked Questions
Does air density increase or decrease when temperature rises?
At constant absolute pressure, air density decreases as temperature rises. The inverse relationship uses kelvins, not Celsius values directly.
Does higher pressure mean denser air?
Yes, if temperature and composition are held constant. Density increases in direct proportion to absolute pressure in the ideal-gas model.
What is the density of air at room temperature?
Near 20 °C and 101.325 kPa, dry air has a density of approximately 1.204 kg/m³ under this calculator’s assumptions. Humidity and local pressure change the value.
Should I use gauge pressure or absolute pressure?
Use absolute pressure. Convert gauge pressure by adding the surrounding atmospheric pressure. A gauge reading of zero is not a vacuum.
Is humid air denser than dry air?
No. At the same temperature and total pressure, humid air is generally slightly less dense because water vapour has a lower molecular mass than the main components of dry air.
Related
Formula used
in t | Air temperature | °C | 20 | -273.15 in p | Absolute air pressure | kPa | 101.325 | 0.001 out rho | Air density | kg/m³ | (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
- Isotope Percent Abundance Calculator and How to Use It75.91 %
- Percentage Abundance Calculator and How to Find It
- Isotope Fractional Abundance Calculator and Formula0.2409 fraction
- Percent Abundance Formula: Calculate Isotope Percentages25.00 %
- Isotope Percent Abundance Calculator and How to Use It50.00 %
- Isotope Percent Abundance Calculator and How-To Guide75.91 %