molecalculator

Moles & Molar Mass

Air Density Equation: Calculate Density from Pressure

Calculator No. 01-2048 · Updated · Formula and assumptions shown below

Dry-air density 1.204 kg/m^3
Dry-air density
1.204 g/L
= Dry-air density
Absolute pressure
101.325 kPa
Set in the form below
Air temperature
20 °C
Set in the form below
You enter
Absolute pressure (kPa), Air temperature (°C)
You get
Dry-air density (kg/m^3), Dry-air density (g/L)
Rounding
3 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

The air density equation for dry air is ρ = p/(RdT), where ρ is density, p is absolute pressure, T is absolute temperature in kelvins, and Rd = 287.05 J/(kg·K). This calculator uses pressure in kilopascals and temperature in degrees Celsius to return air density in kilograms per cubic metre, along with the equivalent value in grams per litre.

Formula

The ideal-gas density equation is ρ = p/(RdT). Here, ρ is dry-air density in kg/m³; p is absolute pressure in pascals (Pa); T is absolute temperature in kelvins (K); and Rd is the specific gas constant for dry air, 287.05 J/(kg·K). Since 1 J = 1 Pa·m³, the units reduce to kg/m³.

This calculator accepts pressure in kPa and temperature in °C, so it applies the conversions explicitly: p in Pa = p in kPa × 1000, and T in K = t in °C + 273.15. Its calculation is therefore ρ = (p × 1000)/[287.05 × (t + 273.15)]. The second output gives the same numerical value in g/L because 1 kg/m³ equals 1 g/L.

Worked Example

Using the default inputs, absolute pressure is 101.325 kPa and air temperature is 20 °C.

  1. Convert pressure: 101.325 kPa × 1000 = 101325 Pa.
  2. Convert temperature: 20 °C + 273.15 = 293.15 K.
  3. Substitute in the dry-air equation: ρ = 101325 / (287.05 × 293.15) = 1.204 kg/m³, rounded to three decimal places.
  4. Convert units: 1.204 kg/m³ = 1.204 g/L.

Assumptions

  • Air is treated as dry, with a fixed specific gas constant of 287.05 J/(kg·K).
  • Air behaves as an ideal gas at the entered conditions.
  • Pressure is absolute pressure, not gauge pressure.
  • Temperature is uniform and is converted from Celsius to kelvins before calculation.

What the Equation Means

Density is mass divided by volume. For a gas, however, the mass in a given volume changes substantially when pressure or temperature changes. The ideal-gas law, pV = nRT, links pressure, volume, amount of gas, and temperature. Rearranging it for mass per volume gives a density equation. For dry air, using a gas constant expressed per unit mass gives ρ = p/(RdT).

At fixed temperature, increasing pressure increases density in direct proportion. At fixed pressure, increasing absolute temperature decreases density. For example, warming air in a sealed, flexible environment at nearly constant pressure makes it less dense; compressing air while keeping its temperature steady makes it denser. These relationships are useful in weather calculations, ventilation estimates, aerodynamics, and converting between air volume and mass.

When to Use Dry-Air Density

Use this equation when a reasonable ideal-gas estimate is sufficient and you know the air’s absolute pressure and temperature. It is especially convenient near ordinary atmospheric conditions. The default example, 101.325 kPa and 20 °C, gives about 1.204 kg/m³. That is a reference calculation, not a universal density for “air”: local weather, altitude, temperature, and moisture all affect the result.

For actual measurements, use local station pressure rather than sea-level-corrected pressure. Weather reports often adjust pressure to sea level so locations can be compared; that reported value is not necessarily the pressure at the sensor’s elevation. The density equation needs the pressure of the air parcel at the location being considered.

Humidity, Pressure, and Common Errors

The calculator estimates dry air. Humid air at the same temperature and total pressure is slightly less dense than dry air because water molecules have a lower molar mass than the average molecules in dry air. For work where humidity matters, use a moist-air equation that accounts for water-vapor partial pressure, or a psychrometric calculation with the required humidity information. Do not treat relative humidity alone as a pressure correction without also considering temperature.

  • Gauge versus absolute pressure: the equation requires pressure measured from a vacuum. If you have gauge pressure, add the local atmospheric pressure to obtain absolute pressure.
  • Celsius versus kelvins: never substitute a Celsius number directly for T. Convert using T = t + 273.15.
  • Units: the displayed expression converts kPa to Pa. If using another implementation, keep pressure and the gas constant in compatible units.
  • Sea-level pressure: avoid using a sea-level-adjusted weather value as though it were local station pressure.
  • Rounding: retain extra digits during intermediate calculations, then round the final density to the precision justified by the input measurements.

Limits and Higher-Accuracy Models

The ideal-gas equation is an approximation. It is generally useful for everyday air calculations, but accuracy can decline at high pressure, very low temperature, or whenever the requested precision is tighter than the ideal-gas assumptions support. Air composition also varies slightly; the fixed dry-air gas constant represents a conventional average rather than every possible sample.

For engineering work requiring more accuracy, use a suitable equation of state or a validated moist-air property method, with composition and environmental inputs appropriate to the application. The formula here does not calculate buoyancy force, air viscosity, or the density of a specific gas mixture. It calculates only an idealized dry-air density from pressure and temperature.

Frequently Asked Questions

What is the equation for air density?
For dry air treated as an ideal gas, ρ = p/(RdT), with Rd = 287.05 J/(kg·K), absolute pressure p in Pa, and absolute temperature T in K.

What is the density of air at 20 °C?
At 101.325 kPa absolute pressure, the dry-air estimate is about 1.204 kg/m³, or 1.204 g/L. A different pressure or humidity gives a different value.

Does air density increase with temperature?
At constant pressure, density decreases as absolute temperature increases. At constant temperature, density increases in proportion to pressure.

Can I use Celsius in the air density formula?
Not directly. Convert Celsius to kelvins by adding 273.15, then use that absolute temperature in the denominator.

Is humid air denser than dry air?
At the same temperature and total pressure, humid air is slightly less dense than dry air. The simple dry-air equation does not include that humidity correction.

Related

Formula used
in p | Absolute pressure | kPa | 101.325 | 0
in t | Air temperature | °C | 20 | -273.15
out rho | Dry-air density | kg/m^3 | (p * 1000) / (287.05 * (t + 273.15)) | 3
out gl | Dry-air density | g/L | rho | 3

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

The whole Moles & Molar Mass section →