Air density is mass divided by volume, and it changes with temperature, pressure, and humidity. This calculator estimates the density of dry air from its absolute pressure and temperature, returning kilograms per cubic metre (kg/m³); it assumes air behaves as an ideal gas.
Formula
The ideal-gas density equation is:
ρ = p / (Rspecific × T)
- ρ is dry-air density in kg/m³.
- p is absolute pressure in pascals (Pa). The calculator input is in kilopascals, so it converts pressure using 1 kPa = 1,000 Pa.
- Rspecific is the specific gas constant for dry air, taken here as 287.05 J/(kg·K).
- T is absolute temperature in kelvins (K). Convert Celsius using T = t + 273.15.
The calculator’s first result is density. Its second result is a reference value calculated at 101.325 kPa and 15 °C; it provides context for comparison, not a second measurement of your conditions. The specific gas constant is approximately the universal gas constant divided by dry air’s molar mass. The chosen value is a conventional approximation for ordinary atmospheric air.
Worked Example
Using the defaults—101.325 kPa and 20 °C—first convert the inputs:
p = 101.325 × 1,000 = 101,325 Pa
T = 20 + 273.15 = 293.15 K
Then substitute into the ideal-gas equation:
ρ = 101,325 / (287.05 × 293.15)
ρ = 101,325 / 84,151.7075
ρ ≈ 1.204 kg/m³
At the reference conditions used for the second output:
T = 15 + 273.15 = 288.15 K
ρ = 101,325 / (287.05 × 288.15) ≈ 1.225 kg/m³
These are rounded to three decimal places, matching the calculator. The small difference is expected: at the same pressure, warmer air has lower density.
Assumptions
- Air is treated as a dry, ideal gas with a fixed specific gas constant of 287.05 J/(kg·K).
- Pressure is absolute pressure, not gauge pressure.
- Temperature is converted from Celsius to kelvins before calculation.
- The reference output uses 101.325 kPa and 15 °C; it does not depend on the entered conditions.
What Is the Density of Air?
There is no single density for air under all conditions. Near sea level, dry air is commonly about 1.2 kg/m³, but the exact value depends chiefly on pressure and temperature. A frequently quoted standard-atmosphere value is about 1.225 kg/m³ at 15 °C and 101.325 kPa. At 20 °C and the same pressure, the calculator gives about 1.204 kg/m³.
Density describes how much mass occupies a given volume. A cubic metre of air at roughly 1.2 kg/m³ has a mass of about 1.2 kg. This is a useful everyday comparison, but it is not a universal constant: air in a high-altitude location, a heated room, or a pressurized vessel can have a different density.
How Temperature and Pressure Affect It
The equation follows from the ideal gas law, pV = nRT. Rewriting it in terms of mass per volume gives ρ = p/(RspecificT). At fixed pressure, raising the absolute temperature increases the denominator and lowers density. At fixed temperature, raising absolute pressure raises density.
- Temperature: warm air expands when it can, so the same mass occupies more volume. For example, air at 20 °C is less dense than air at 15 °C at the same pressure.
- Pressure: air at lower atmospheric pressure, such as at higher elevation, is generally less dense than air at sea level when temperatures are similar.
- Humidity: water vapour makes air less dense than dry air at the same temperature and pressure. The calculator does not account for humidity, so its result is an estimate for dry air.
These relationships are useful in weather and aviation calculations, ventilation and airflow estimates, and studies of buoyancy. For precise engineering or atmospheric work, use a model that includes humidity and any relevant non-ideal effects.
Using the Calculator Correctly
Enter the local absolute pressure in kPa and air temperature in °C. Use conditions measured at the place and time relevant to your question. The output is in kg/m³. The calculator accepts pressure as a number greater than or equal to zero and temperature at or above absolute zero; real-world air conditions are normally far from those limits.
Pressure units deserve particular attention. A weather report may give pressure in hPa or millibars: 1 hPa = 1 mbar = 0.1 kPa. For example, 1,013.25 hPa is 101.325 kPa. If pressure is given in atmospheres, 1 atm = 101.325 kPa. Convert it before entering it; typing 1,013.25 as though it were kPa would produce an implausibly large result.
Use absolute pressure rather than gauge pressure. Gauge pressure measures pressure above the surrounding atmosphere, so a gauge reading of zero does not mean zero absolute pressure. For an ordinary open-air location, a local atmospheric pressure reading is already absolute; in a sealed or pressurized system, add atmospheric pressure to a gauge reading when the system’s pressure is specified that way.
Accuracy and Common Limitations
The ideal-gas approximation is generally useful for air under ordinary atmospheric conditions. The result is not a substitute for a full moist-air calculation when water vapour matters. Humidity’s effect can be noticeable in applications requiring accurate air density, because moist air at a given temperature and pressure is less dense than dry air.
Other sources of difference include measurement uncertainty, elevation-related pressure changes, and the particular definition of “standard conditions.” Standard values are not interchangeable unless temperature and pressure are stated. The 1.225 kg/m³ figure uses 15 °C and 101.325 kPa; a value based on 0 °C will be higher at the same pressure.
Finally, air is a mixture, not a single pure substance. Its composition varies slightly, and the calculator uses a fixed representative gas constant. For everyday estimates this is usually adequate; for high-precision work, use composition-specific properties and an appropriate equation of state.
Frequently Asked Questions
What is the density of air at sea level?
A common reference is about 1.225 kg/m³ at 15 °C and 101.325 kPa. Actual local density varies with temperature, pressure, and humidity.
What is the density of air at room temperature?
At 20 °C and 101.325 kPa, dry air is approximately 1.204 kg/m³. A different room pressure or humidity will change the value.
Is air denser when it is hot or cold?
At the same pressure, cold air is denser. In the ideal-gas equation, lower absolute temperature means a smaller denominator and therefore a higher density.
Does humidity make air heavier?
No. At the same temperature and pressure, humid air is slightly less dense than dry air because water vapour molecules have a lower average molar mass than the main components of dry air.
Is air density the same as air pressure?
No. Pressure is force per area; density is mass per volume. They are related through temperature and the gas properties, but one cannot be substituted directly for the other.
Related
Formula used
in p | Absolute pressure | kPa | 101.325 | 0 in t | Air temperature | °C | 20 | -273.15 out rho | Density of dry air | kg/m³ | (p * 1000) / (287.05 * (t + 273.15)) | 3 out k | Density in kg/m³ at standard reference conditions | kg/m³ | (101.325 * 1000) / (287.05 * (15 + 273.15)) | 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
- Pressure, Density, and Temperature: How They Relate101,307 Pa
- Pressure-Based vs Density-Based Solvers in CFD
- Pressure-Based vs Density-Based Solvers in CFD
- Fluent Pressure-Based or Density-Based Solver?
- PhET Air Density Lab: What It Shows and How to Use It
- Power Density to E-Field Calculator and Formula