Air Density Calculator - Rho from T, P, Humidity
Use this air density calculator to solve the ideal gas law for rho in kg/m^3, g/L, or lb/ft^3 from temperature, pressure, and relative humidity.
Air Density Calculator
Results
What Is Air Density Calculator?
An air density calculator solves the ideal gas law for rho, the mass of air in each cubic meter of atmosphere. You supply temperature, pressure, and an optional relative humidity, and the calculator returns density in kg/m^3, g/L, and lb/ft^3. Dry air at the ISA sea-level reference of 15 degrees C and 101.325 kPa comes out to 1.2250 kg/m^3. Use it to convert between air mass, volume, and flow rate, or to plug a defensible density value into a Reynolds number, drag, or lift calculation.
- • Aircraft and wind-energy performance checks: Compute the air density at a runway elevation or turbine hub height to convert between indicated and true airspeed.
- • HVAC duct and ventilation design: Estimate mass flow through a duct from a volumetric CFM reading and the air density at the supply air condition.
- • Reynolds number and drag calculations: Plug the density result into a Reynolds number or drag equation to see how turbulence and lift change with altitude.
- • Lab and classroom exercises: Show students that the same ideal gas law used in chemistry gives a clean answer for air density at any reasonable temperature and pressure.
Air density is not a fixed number. It moves with the weather, season, and elevation, which is why the sea-level value is only the starting point.
When you need the inverse calculation and want to solve for pressure, volume, or moles instead of density, the ideal gas calculator takes the same P, V, n, T inputs and returns whichever gas-law quantity the equation leaves open.
How Air Density Calculator Works
The calculator reads temperature and pressure, converts each to SI units, and applies the ideal gas law for a mixture of dry air and water vapor. When relative humidity is zero, the formula collapses to the dry-air equation rho = P times M_d divided by R times T.
- P: Total absolute pressure of the moist air, converted to pascals inside the calculator.
- T: Absolute temperature in Kelvin, with the same conversion applied whether the user entered Celsius, Fahrenheit, or Kelvin.
- P_sat: Saturation vapor pressure of water at the chosen temperature, computed from Tetens' equation.
- P_v: Partial pressure of water vapor, equal to relative humidity times the saturation vapor pressure.
- P_d: Partial pressure of dry air, equal to total pressure minus the water-vapor partial pressure.
- M_d: Molar mass of dry air, fixed at 0.0289652 kg/mol by ICAO Doc 7488.
- M_v: Molar mass of water vapor, fixed at 0.018016 kg/mol by CIPM-2007.
- R: Universal gas constant, fixed at 8.314462618 J/(mol x K) by NIST CODATA 2018.
The moist-air formula treats the gas as an ideal mixture and weights each partial pressure by the molar mass of its component. The dry-air term dominates because M_d is roughly 1.6 times M_v, which is why humid air is lighter than dry air.
ICAO standard sea level (dry air)
P = 101.325 kPa, T = 15 degrees C, RH = 0%
1. T = 288.15 K. 2. P = 101325 Pa. 3. rho = 2934.75 / 2395.54.
rho = 1.2250 kg/m^3 (0.07647 lb/ft^3).
The standard atmosphere reference value.
IUPAC standard temperature and pressure
P = 100 kPa, T = 0 degrees C, RH = 0%
1. T = 273.15 K. 2. P = 100000 Pa. 3. rho = 2896.52 / 2270.99.
rho = 1.2754 kg/m^3 (0.07962 lb/ft^3).
IUPAC STP uses 100 kPa, raising the density by about four percent.
According to Wikipedia Density of air, the density of dry air can be calculated from the ideal gas law as rho equals P times the molar mass of dry air (approximately 0.0289652 kg/mol) divided by the universal gas constant times the absolute temperature in Kelvin, and the moist-air extension adds a water-vapor term weighted by the molar mass of water vapor.
For a complementary look at the other gas laws (Boyle, Charles, Gay-Lussac) that share the same ideal-gas assumption, the gas laws calculator keeps pressure, volume, and temperature connected through the combined gas law at fixed moles.
Key Concepts Explained
Four ideas are enough to read every number the air density calculator returns.
Ideal Gas Law (PV = nRT)
The density formula is just the ideal gas law solved for mass per unit volume. The same R, T, and dry-air molar mass cover everything from a balloon to a turbofan inlet.
Molar Mass of Dry Air (M_d = 28.9652 g/mol)
A weighted average of nitrogen, oxygen, argon, and carbon dioxide. Fixing M_d at 0.0289652 kg/mol keeps the calculator aligned with ICAO and US Standard Atmosphere 1976.
Universal Gas Constant (R = 8.314462618 J/(mol x K))
Fixed exactly by the 2019 SI redefinition, so the calculator does not expose R as an input.
Saturation Vapor Pressure and Relative Humidity
Water vapor behaves as an independent ideal gas with molar mass 18.01528 g/mol. Saturation vapor pressure sets the ceiling, and relative humidity scales the actual partial pressure.
These four definitions cover everything the result panel shows. They are also why the same calculator works in a chemistry lab, an atmospheric science class, and a hangar: each community uses the same constants and the same mixture rule.
For a deeper statistical-mechanics view of why the molar mass of dry air is the weighted average of its component gases, the Boltzmann factor calculator uses the Boltzmann factor to show how the same temperature scales the populations of nitrogen, oxygen, argon, and carbon dioxide in the mixture.
How to Use This Calculator
Five short steps move you from a temperature and pressure reading to a defensible density value.
- 1 Pick the temperature and the unit: Type the air temperature in the first box and choose Celsius, Fahrenheit, or Kelvin in the second box.
- 2 Enter the pressure and the unit: Type the absolute pressure in the third box and choose kPa, hPa, mbar, atm, mmHg, inHg, or psi in the fourth box.
- 3 Set the relative humidity: Type the relative humidity as a percentage. Leave at zero for dry-air density.
- 4 Read the densities: The calculator returns density in kg/m^3, g/L, and lb/ft^3 at the same precision.
- 5 Check the ratio to standard sea level: The bottom row divides the result by 1.225 kg/m^3 so a value of 1.0 matches the standard atmosphere.
A weather station reports 30 degrees C, 1013 hPa, and 80 percent relative humidity. The calculator returns 1.1497 kg/m^3 and a ratio of 0.939 against the standard sea-level density, with water vapor accounting for about 1.3 percent of the difference.
When you need to confirm the absolute-temperature conversion before plugging into the formula, the Kelvin converter turns Celsius, Fahrenheit, Rankine, and Reaumur readings into Kelvin with a single click and shows the linear steps behind the conversion.
Benefits of Using This Calculator
A dedicated air density calculator saves time and removes the unit-mixing errors that show up when the ideal gas law is solved by hand.
- • Solves the ideal gas law in one step: The calculator takes temperature, pressure, and humidity and returns density in three units without manual conversion.
- • Switches between dry air and moist air: Leaving relative humidity at zero gives the dry-air formula; any value above zero activates the moist-air correction automatically.
- • Reports density in three useful units: Aviation uses kg/m^3, lab chemistry uses g/L, and US HVAC uses lb/ft^3. The result panel lists all three.
- • Shows the saturation vapor pressure used: The auxiliary row reports saturation vapor pressure and the actual partial pressure of water vapor for verification.
- • Compares against the standard atmosphere: The ratio-to-sea-level row makes it easy to see when the chosen condition matches or differs from the standard atmosphere.
The air density calculator is best for single-point checks where one temperature, pressure, and humidity reading produce one density value. For dense altitude work, the same result feeds into a drag calculation.
For the most common downstream use of an air density result, the Reynolds number calculator takes the density value from this calculator and combines it with velocity, characteristic length, and dynamic viscosity to classify the flow as laminar, transitional, or turbulent.
Factors That Affect Your Results
Four inputs determine the answer, and three limitations tell you when to expect a real measurement to differ from the model.
Temperature
Density falls linearly with absolute temperature when pressure is constant. Going from 15 to 30 degrees C drops the density by about five percent.
Pressure
Density rises linearly with absolute pressure. The same 15 degrees C air at 90 kPa has a density about eleven percent below the sea-level value.
Relative Humidity
Higher humidity lowers density because water vapor has a lower molar mass than dry air. Going from zero to 80 percent humidity at 30 degrees C drops the density by about one percent.
Unit Choices
Temperature must be absolute and pressure must be absolute, not gauge. Mixing gauge and absolute pressure is the most common error in air density work.
- • The ideal gas law assumes each component behaves as an ideal gas, so the formula loses accuracy above about ten atmospheres or below about 0.1 atmosphere.
- • Tetens' equation fits saturation vapor pressure between -10 and 50 degrees C, so the humidity correction degrades outside that range and should not be trusted near the dew point.
- • Real air contains trace gases and aerosols that the dry-air molar mass does not capture, so treat the answer as a working value rather than a laboratory reference.
According to Wikipedia, the dry-air and moist-air formulas agree with laboratory measurements to within about 0.2 percent between -10 and 50 degrees C, covering essentially all real-world air density work outside of cryogenics.
According to NASA Earth Fact Sheet, the mean molar mass of dry air is 28.9652 g/mol, which the calculator uses as the dry-air molar mass so the ideal gas law reproduces the standard sea-level density of 1.2250 kg/m^3 to four significant figures.
According to NIST CODATA 2018 Fundamental Constants, the universal gas constant is fixed at exactly 8.314462618 J/(mol x K) under the 2019 SI redefinition, which the calculator uses so the answer stays aligned with every modern metrology reference without exposing the constant as a user input.
For a humidity-focused companion that starts from the same Tetens' equation used here for saturation vapor pressure, the vapor pressure deficit calculator computes the deficit between saturation and actual vapor pressure and reports the greenhouse VPD value that plant and HVAC work uses every day.
Frequently Asked Questions
Q: What is the density of air at sea level?
A: According to the International Standard Atmosphere, dry air at sea level has a density of 1.2250 kg/m^3 at 101.325 kPa and 15 degrees C.
Q: How do you calculate air density from temperature and pressure?
A: Convert temperature to Kelvin and pressure to pascals, then apply rho = P * M_d / (R * T). With humidity above zero, the calculator adds the water-vapor term using Tetens' equation.
Q: Does humidity make air heavier or lighter?
A: Humid air is lighter than dry air at the same temperature and pressure because water vapor has a molar mass of 18.01528 g/mol, well below the dry-air value of 28.9652 g/mol.
Q: What is the ideal gas formula for air density?
A: The dry-air formula is rho = P * M_d / (R * T), with M_d = 0.0289652 kg/mol and R = 8.314462618 J/(mol x K). The moist-air extension adds the water-vapor partial pressure term.
Q: How does air density change with altitude?
A: Air density decreases with altitude because pressure decreases. In the troposphere the ICAO lapse rate drops the density by roughly twelve percent per kilometer gained.
Q: What unit is air density measured in?
A: Air density is reported in kg/m^3 in SI, in g/L in chemistry, and in lb/ft^3 in US engineering practice. The calculator reports all three at the same time.