At a fixed temperature, increasing the pressure of air increases its density: the same volume contains more air molecules. For dry air behaving approximately as an ideal gas, density is proportional to absolute pressure, so doubling pressure at unchanged temperature doubles density.
Formula
The ideal-gas density equation is ρ = pM / (RT). Here, ρ is air density in kg/m³, p is absolute pressure in pascals (Pa), M is molar mass in kg/mol, R is the molar gas constant, 8.31446261815324 J/(mol·K), and T is absolute temperature in kelvins (K). The calculator takes pressure in kPa and molar mass in g/mol, so it converts pressure using 1 kPa = 1000 Pa and molar mass using 1000 g = 1 kg. It converts Celsius to kelvins using T = t + 273.15.
The default molar mass, 28.965 g/mol, is a conventional approximate value for dry air. Air’s exact composition varies, and water vapor changes the mixture’s average molar mass. The formula assumes ideal-gas behavior; for ordinary atmospheric conditions this is a useful approximation.
Worked Example
Using the calculator’s default values—pressure 101.325 kPa, temperature 20 °C, and dry-air molar mass 28.965 g/mol—first convert the units:
p = 101.325 × 1000 = 101325 Pa
M = 28.965 / 1000 = 0.028965 kg/mol
T = 20 + 273.15 = 293.15 K
Then apply the ideal-gas equation:
ρ = (101325 × 0.028965) / (8.31446261815324 × 293.15) ≈ 1.204 kg/m³
Thus, the estimated dry-air density is 1.204 kg/m³ at the default conditions. The displayed value is rounded to three decimal places.
Assumptions
- Air is treated as an ideal gas.
- The default molar mass represents dry air; actual composition can differ.
- Pressure is absolute pressure, not gauge pressure.
- Temperature is uniform and converted to kelvins.
Why Pressure Changes Density
Density is mass divided by volume. A gas can be compressed: when pressure rises, its molecules are confined to a smaller volume, unless the container expands or other conditions change. For a fixed amount of gas at constant temperature, Boyle’s law states that pressure and volume vary inversely. Since mass stays constant while volume falls, density rises.
The ideal-gas law, pV = nRT, gives the same result. Replacing the amount of substance n with mass divided by molar mass (n = m/M), then dividing by volume, yields ρ = pM/(RT). This makes the conditions behind the pressure–density relationship explicit: density is directly proportional to pressure when temperature and gas composition remain fixed.
Pressure must be absolute: it is measured from a vacuum. At sea level, standard atmospheric pressure is about 101.325 kPa absolute. Gauge pressure is measured relative to the surrounding atmosphere. For example, a gauge reading of 200 kPa in a room at 101.325 kPa corresponds to roughly 301.325 kPa absolute, not 200 kPa absolute. Using gauge pressure directly in the density equation can produce a substantial error.
Pressure, Temperature, and Humidity Together
Pressure is not the only factor controlling air density. At fixed pressure and composition, increasing temperature lowers density because the gas occupies more volume. At fixed temperature and composition, increasing pressure raises density. The combined ideal-gas relationship is:
ρ ∝ p/T
This is why a pressure reading alone cannot determine density unless temperature and the assumed gas composition are also known. A weather station, aircraft calculation, or laboratory measurement needs conditions representative of the air being described.
Humidity also matters. Water molecules have a lower molar mass (about 18.015 g/mol) than the average dry-air molecule (about 28.965 g/mol). At the same temperature and total pressure, adding water vapor replaces some heavier dry-air molecules, so humid air is slightly less dense than dry air. This does not mean humidity always produces a large change: the effect depends on how much water vapor is present and on the comparison conditions.
Examples and Practical Uses
At 20 °C, dry air at about 101.325 kPa has a density near 1.204 kg/m³ by the ideal-gas calculation. At the same temperature and composition, air at 80 kPa would have an estimated density of about 0.951 kg/m³, because its pressure is about 0.79 times as high. These are approximate values; local humidity, weather, and non-ideal behavior can shift the actual density.
Density matters in applications such as aircraft performance, ventilation, wind loads, buoyancy, and gas-flow calculations. Lower-density air provides less mass in a given volume. For example, an aircraft wing moving through thinner air generally needs greater speed or another operating adjustment to produce the same lift, all else being equal. Engineering calculations may need a standard-atmosphere model or measured conditions rather than the simple dry-air estimate.
- Higher altitude: atmospheric pressure generally decreases with altitude, so air density usually decreases too. Temperature changes with altitude, meaning pressure alone does not give the full answer.
- Compressed air: raising pressure increases density if temperature is held constant. Compression can heat the gas, however, so the density change depends on the final temperature as well.
- Weather systems: pressure differences help drive air movement, but weather-related density also depends on temperature and moisture.
Common Misconceptions and Limits
“Higher pressure always means denser air” needs a condition: it is true when temperature and composition are held constant. If a gas is heated substantially while it is compressed, the temperature increase partly offsets the density increase. To compare two real air samples, use their absolute pressures, temperatures, and—when precision requires it—their moisture content.
Another common mistake is to treat pressure as a direct measure of how much air is in a container without considering volume and temperature. Pressure reflects molecular collisions with surfaces, while density describes mass per volume. The ideal-gas equation connects them, but it does not make them interchangeable.
The calculator is intended for ordinary air conditions and introductory estimates. At very high pressures, very low temperatures, or when high precision is required, real-gas effects and detailed air composition may matter. For metrology or engineering work, use an appropriate reference equation of state and reliable measurements.
Frequently Asked Questions
Does higher pressure mean higher air density?
Yes, if temperature and composition are unchanged. Under those conditions, density is directly proportional to absolute pressure.
Does air pressure affect density at constant temperature?
Yes. Raising absolute pressure compresses the air, increasing its mass per unit volume. In the ideal-gas model, doubling the pressure doubles density.
Is air denser at sea level or at high altitude?
Usually at sea level, because atmospheric pressure is generally higher there. Temperature and humidity also affect density, so the exact comparison depends on local conditions.
Is humid air denser than dry air?
At equal temperature and total pressure, humid air is generally less dense. Water vapor has a lower molar mass than the main components of dry air.
Should I use gauge pressure or absolute pressure?
Use absolute pressure in the ideal-gas density equation. Convert gauge pressure by adding the surrounding atmospheric pressure.
Related
Formula used
in p | Absolute pressure | kPa | 101.325 | 0 in t | Temperature | °C | 20 | -273.15 in m | Molar mass of dry air | g/mol | 28.965 | 0 out rho | Air density | kg/m³ | (p * 1000) * (m / 1000) / (8.31446261815324 * (t + 273.15)) | 3 out tk | Absolute temperature | K | t + 273.15 | 2
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