Air density measures how much mass is packed into each cubic meter of atmosphere, and it drives everything from aircraft lift to running performance to HVAC sizing. This calculator applies the ideal gas law, with an optional humidity correction, so you can see exactly how temperature, pressure, and moisture each move the number.
How the Air Density Calculator works
The calculator starts from the ideal gas law rearranged for density: ρ = P / (R·T). Pressure and temperature are the two biggest levers — colder, denser air packs more mass into the same volume than warm, thin air, and higher pressure compresses more molecules into that volume too. Temperature is converted internally from Celsius to kelvin, since the gas law only works on the absolute temperature scale.
When you add humidity, the calculator switches to a two-component model: it estimates the water vapor's partial pressure using the Tetens saturation-vapor-pressure approximation, subtracts that from total pressure to get the dry-air partial pressure, then sums the density contribution from each gas separately using its own specific gas constant.
Inputs and what they mean
Temperature is entered in Celsius; standard conditions use 15°C. Pressure is absolute atmospheric pressure in pascals — 101,325 Pa at sea level, falling with altitude. Relative humidity (With Humidity tab only) is a 0-100% value representing how saturated the air is with water vapor relative to its maximum capacity at that temperature.
Pressure has the largest effect on density at a fixed temperature, since altitude changes can swing it by tens of thousands of pascals, while humidity typically shifts density by well under 1%.
Limits and edge cases
This calculator assumes dry air and water vapor both behave as ideal gases, which is an excellent approximation at everyday temperatures and pressures but breaks down near saturation extremes or very high pressures. It does not account for other trace gases beyond nitrogen, oxygen, and water vapor, nor for local weather anomalies. For flight planning, ballistics, or engineering work requiring certified precision, cross-check against a live METAR reading or a formal atmospheric model.