Air density per pressure is the ratio of air’s mass density to its absolute pressure; for dry air behaving as an ideal gas, it equals the molar mass of air divided by the gas constant and absolute temperature. This calculator uses pressure and temperature to find air density in kg/m³, with optional relative humidity to account approximately for water vapor.
Formula
For dry air, the ideal-gas relation is ρ = pM/(RT). Here, ρ is density in kg/m³, p is absolute pressure in pascals (Pa), M is the molar mass of dry air in kg/mol, R is the universal gas constant in J/(mol·K), and T is absolute temperature in kelvins. Since 1 J = 1 Pa·m³, these units produce kg/m³.
The calculator takes pressure in kPa, so it converts to pascals by multiplying by 1,000. It converts Celsius to kelvins by adding 273.15. It uses M = 0.02896546 kg/mol, a representative molar mass for dry air, and the exact SI gas constant R = 8.31446261815324 J/(mol·K).
For humid air, the calculator applies an approximate correction: ρ ≈ ρdry[1 − (RH/100)(0.0023e0.062t)], where RH is relative humidity in percent and t is temperature in °C. This correction estimates the density reduction from water vapor; it is not a full moist-air calculation. The second output is density divided by pressure in kPa, in kg/(m³·kPa). For dry air at a fixed temperature, this ratio is constant under the ideal-gas model.
Worked Example
Using the default inputs—101.325 kPa, 20 °C, and 0% relative humidity:
- Convert pressure: 101.325 × 1,000 = 101,325 Pa.
- Convert temperature: 20 + 273.15 = 293.15 K.
- Calculate dry-air density: ρ = (101,325 × 0.02896546) / (8.31446261815324 × 293.15) ≈ 1.204 kg/m³.
- At 0% humidity, the humidity correction is 1, so the displayed density remains 1.204 kg/m³.
- Divide by the input pressure in kPa: 1.204 / 101.325 ≈ 0.011882 kg/(m³·kPa).
Assumptions
- Air is treated as an ideal gas, with a representative dry-air molar mass of 0.02896546 kg/mol.
- Pressure is absolute, not gauge pressure.
- The humidity adjustment is a simple approximation and is not a substitute for a detailed moist-air equation of state.
- Temperature is uniform, and the result describes air at the stated pressure and temperature.
What “Density per Pressure” Means
Density is mass per volume. At a specified temperature, ideal-gas density is directly proportional to absolute pressure: doubling pressure doubles density if temperature and composition stay unchanged. Dividing density by pressure gives a useful proportionality factor, not a separate intrinsic density of air. Its value changes with temperature and, to a smaller extent, with humidity and composition.
For example, dry air at 20 °C has a density-to-pressure ratio of about 0.01188 kg/(m³·kPa). Multiplying that ratio by 80 kPa gives approximately 0.950 kg/m³. This estimate assumes the temperature remains 20 °C and the air remains close to ideal.
The phrase “density per pressure” can also refer to compressibility or other specialized quantities in engineering. In this calculator it means simply ρ/p. It should not be confused with pressure itself, or with the amount of air in a container; container volume is needed to calculate total mass.
How Pressure and Temperature Affect Air
The ideal-gas law explains why air becomes denser when compressed and less dense when heated. At constant temperature, increasing absolute pressure packs more gas molecules into each cubic metre. At constant pressure, raising the temperature increases the volume occupied by a fixed amount of gas, reducing its density.
- Altitude: Atmospheric pressure generally falls with elevation, so air density usually falls as well. Temperature also changes with altitude, so pressure alone does not determine an exact density.
- Weather: High- and low-pressure systems, along with changing temperature and moisture, affect local air density.
- Humidity: At equal temperature and pressure, moist air is less dense than dry air because water molecules have lower molar mass than the average molecules in dry air.
These relationships matter in airflow calculations, ventilation estimates, weather studies, and converting a measured gas volume to a mass. For precision work, use measured local conditions and a validated moist-air or real-gas model appropriate to the application.
Using the Calculator and Avoiding Errors
Enter absolute pressure in kPa, temperature in °C, and relative humidity from 0% to 100%. The first output is density; the second is density divided by the entered pressure. The default setting represents dry air near standard atmospheric pressure at 20 °C.
- Do not enter gauge pressure as if it were absolute pressure. Gauge pressure is relative to surrounding atmospheric pressure. Convert it to absolute pressure by adding the local atmospheric pressure, using consistent units.
- Keep the pressure unit straight. The pressure input is kPa; a value in Pa must be divided by 1,000 before entry. The internal formula multiplies kPa by 1,000 to obtain Pa.
- Use Celsius only for the temperature input. The formula converts it to kelvins. Kelvin must be above zero; the input minimum prevents temperatures below absolute zero.
- Do not interpret the humidity adjustment as exact at every condition. For high-accuracy humidity, unusual temperatures, or specialized engineering, use a more complete psychrometric calculation.
Limits and Related Measurements
The ideal-gas approximation is generally useful for ordinary atmospheric air conditions, but accuracy can depend on pressure, temperature, humidity, and the required precision. The calculator’s humidity adjustment is deliberately simple. It does not model every effect of water vapor or changes in air composition, and rounding the output to three decimal places can hide small differences.
If you need mass rather than density, multiply density in kg/m³ by volume in m³. If you need the amount of gas in moles, use the ideal-gas relation n = pV/(RT), with pressure in Pa, volume in m³, and temperature in K. These are different quantities: density is mass per volume, while molar amount is moles per volume.
Frequently Asked Questions
What is the density of air at standard pressure?
It depends on temperature and humidity. Near 101.325 kPa and 20 °C, dry air is about 1.204 kg/m³. At 0 °C and the same pressure, it is about 1.29 kg/m³.
Does air density increase with pressure?
Yes, when temperature and composition are held constant, ideal-gas density increases in direct proportion to absolute pressure.
Why does warm air have lower density?
At the same pressure, warmer gas occupies more volume for the same amount of gas, so its mass per unit volume decreases.
Is air density per pressure the same at every temperature?
No. For ideal dry air, ρ/p = M/(RT), so the ratio decreases as absolute temperature increases. Humidity and composition can also affect it.
Can I use bar or psi in this calculator?
Convert the pressure to kPa first. One bar equals 100 kPa; one psi is approximately 6.89476 kPa. Use absolute pressure, not gauge pressure.
Related
Formula used
in p | Absolute pressure | kPa | 101.325 | 0 in t | Air temperature | °C | 20 | -273.14 in rh | Relative humidity | % | 0 | 0 | 100 out rho | Air density | kg/m³ | (p * 1000) * (0.02896546 / (8.31446261815324 * (t + 273.15))) * (1 - (rh / 100) * (0.0023 * exp(0.062 * t))) | 3 out rp | Density per pressure | kg/(m³·kPa) | rho / p | 6
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 Depth Formula for Fluids98,066 Pa
- Pressure Density Temperature Equation Calculator100,961.74 Pa
- Pressure Density Cup: What It Measures and How It Works1.0000 g/mL
- 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