Air Density Calculator
Find air density from atmospheric pressure and temperature, using the ideal gas law.
What you get back
Enter atmospheric pressure in kilopascals and temperature in kelvin, and the tool returns air density in kg/m³. At standard sea-level pressure of 101.325 kPa and 293.15 K, which is 20 °C, the density is 1.20 kg/m³. That is the figure every aerodynamic and combustion calculation starts from.
The ideal gas law, rearranged
The ideal gas law is PV = nRT, with n the number of moles. Density is mass per volume, and mass is moles times molar mass, so substituting n = m ÷ M and dividing by V gives ρ = PM ÷ RT. Nothing is added to the physics; the rearrangement simply replaces an abstract mole count with a mass you can weigh.
P is absolute pressure in kilopascals, M is the molar mass of air at 28.97 g/mol, R is the gas constant at 8.314, and T is absolute temperature in kelvin. Kilopascals with grams per mole is a matched pair: the two factors of 1,000 cancel, so the result lands directly in kg/m³. If you switch to pascals you must switch M to 0.02897 kg/mol.
Why the molar mass is 28.97
Dry air is about 78% nitrogen at 28.01 g/mol, 21% oxygen at 32.00, and 1% argon at 39.95. Weighting those gives 28.97 g/mol. Water vapour is lighter at 18.02, which is why humid air is slightly less dense than dry air at the same pressure and temperature — a result that surprises people who expect steam to be heavy.
Worked example at sea level
Take P = 101.325 kPa, M = 28.97 g/mol, R = 8.314, T = 293.15 K. The numerator is 101.325 × 28.97 = 2,935.4. The denominator is 8.314 × 293.15 = 2,437.3. Divide: 1.204 kg/m³, which the tool reports as 1.2.
That number has a physical meaning you can check. A room 4 m by 5 m by 2.5 m holds 50 m³ of air, so the air in it weighs 50 × 1.204 = 60.2 kg. The same room at 0 °C holds 64.6 kg, and at 40 °C only 56.4 kg. The room did not change size; the air in it did.
Run the temperature term alone to see its strength. Doubling T from 293.15 to 586.3 K, which is 313 °C, halves the density to 0.602 kg/m³ at constant pressure. Density is inversely proportional to absolute temperature, so a 10 °C rise from 20 to 30 °C cuts it by 3.3% to 1.164 kg/m³.
Density with altitude
| Altitude | Pressure | Temperature | Density |
|---|---|---|---|
| 0 m | 101.3 kPa | 15 °C | 1.225 kg/m³ |
| 1,000 m | 89.9 kPa | 8.5 °C | 1.112 kg/m³ |
| 2,000 m | 79.5 kPa | 2.0 °C | 1.007 kg/m³ |
| 3,000 m | 70.1 kPa | −4.5 °C | 0.909 kg/m³ |
| 5,000 m | 54.1 kPa | −17.5 °C | 0.736 kg/m³ |
| 10,000 m | 26.5 kPa | −50 °C | 0.413 kg/m³ |
The table uses the International Standard Atmosphere, where temperature also falls with height, so pressure and density drop faster than temperature alone would suggest. At 5,000 m the density is 40% of sea level. That is why a propeller aircraft climbs more slowly as it gains altitude and why a naturally aspirated engine loses about 3% of its power per 300 m.
What changes the number
- Pressure: density is directly proportional, so a 2 kPa drop lowers it by 2% at fixed temperature.
- Temperature: density is inversely proportional to absolute temperature, so 20 °C to 40 °C costs 6.4%.
- Humidity: saturated air at 30 °C is about 1.5% less dense than dry air, which matters in long ducts and cooling towers.
- Altitude: 1,000 m of climb removes roughly 9% of density, the single largest natural effect most people encounter.
- Composition: replacing air with helium at 0.166 kg/m³ cuts density by 86%, which is the whole basis of a balloon.
Density altitude and why aircraft care
Density altitude is the altitude at which the current density would occur in a standard atmosphere. A hot, humid day at a 1,500 m airport can produce a density altitude near 2,600 m, where the density is 0.93 kg/m³ instead of 1.05. Lift and propeller thrust both scale with density, so takeoff distance grows by roughly 25% and climb rate falls by the same order.
Mistakes that produce a wrong answer
- Entering temperature in Celsius. Twenty degrees becomes 293.15 K; typing 20 into a formula that expects kelvin overstates density by 14.7 times.
- Using gauge pressure instead of absolute. A tyre gauge reading 200 kPa means 301 kPa absolute at sea level.
- Mixing pascal pressure with grams per mole, which shifts the answer by 1,000. The tool expects kPa.
- Assuming standard density 1.225 for a hot runway, when the real figure at 35 °C is 1.146 — a 6.4% error in every lift and drag number downstream.
The Celsius error is spectacular enough to be worth memorising. Density is inversely proportional to T, so feeding 20 where 293.15 belongs multiplies the result by 293.15 ÷ 20 = 14.66. If your sea-level air comes out at 17.6 kg/m³, you forgot the 273.15 offset, and the fix is one addition.
Where air density decides an outcome
A wind turbine’s power scales linearly with density: a 3 MW machine rated at 1.225 kg/m³ delivers about 2.81 MW on a 35 °C day at 1.146. A naturally aspirated car engine loses 3% of torque per 300 m of altitude, so a turbocharged engine exists largely to restore the density the manifold sees. A cooling tower moves a fixed volume of air, so its heat rejection falls with density on exactly the days demand peaks.
Indoor work uses the same number. A 50 m³ room at 1.20 kg/m³ contains 60 kg of air, and heating it from 0 °C to 20 °C requires about 1,300 kJ, since air’s specific heat is 1.005 kJ/(kg·K) and 64.6 kg of cold air becomes 60.2 kg of warm air. That is a 0.36 kWh load, small next to the fabric losses of a real building but the right order for a sealed test chamber.
Frequently asked questions
What is the density of air at room temperature?
About 1.20 kg/m³ at 20 °C and standard sea-level pressure. At 0 °C it rises to 1.29, and at 40 °C it falls to 1.13.
How does temperature affect air density?
Density is inversely proportional to absolute temperature. Going from 293 K to 313 K cuts it from 1.204 to 1.127 kg/m³, a 6.4% drop at constant pressure.
Why does air density drop with altitude?
Both pressure and temperature fall with height. At 2,000 m the pressure is 79.5 kPa and density 1.007 kg/m³, about 18% below sea level.
What is the density of air in kg/m³ at sea level?
1.225 kg/m³ in the standard atmosphere at 15 °C, or 1.204 at 20 °C. The difference between the two is purely the 5 °C temperature change.
Do I use Celsius or kelvin in this formula?
Kelvin. Add 273.15 to the Celsius reading, so 20 °C is 293.15 K. Using 20 directly overstates density by 14.7 times.
How much does a cubic metre of air weigh?
About 1.2 kg at room temperature, so a 50 m³ room holds roughly 60 kg of air. That is why a sealed room still has substantial thermal mass.
Is humid air heavier than dry air?
No, it is lighter. Water vapour has a molar mass of 18.02 against 28.97 for air, so saturated air at 30 °C is about 1.5% less dense than dry air at the same pressure.
What pressure should I enter?
Absolute pressure in kPa, not gauge pressure. Sea level is 101.325 kPa; a weather report quoting 29.92 inHg is the same pressure expressed differently.
What is density altitude?
The altitude where current conditions would match the standard atmosphere. A hot day at 1,500 m can give a density altitude of 2,600 m, cutting density to 0.93 kg/m³ and stretching takeoff distance by about 25%.
Method and sources
- Ideal gas law ρ = PM/RT with air molar mass M = 28.97 g/mol and R = 8.314 J/(mol·K).