molecalculator

Moles & Molar Mass

Air Density in g/mL: Calculator and Examples

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

Air density 0.001204 g/mL
Air density
1,204.085 kg/m³
= Air density × 1000000
Pressure
101.325 kPa
Set in the form below
Temperature
20 °C
Set in the form below
You enter
Pressure (kPa), Temperature (°C), Relative humidity (%)
You get
Air density (g/mL), Air density (kg/m³)
Rounding
6 dp · 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.

Air density near sea level is about 0.0012 g/mL, or 1.2 g/L, at 20 °C and standard atmospheric pressure. This calculator estimates air density from pressure, temperature, and relative humidity; enter those conditions to get density in g/mL and kg/m³.

Formula

This estimate treats air as a mixture of dry air and water vapor, with each component behaving as an ideal gas. First calculate water-vapor pressure from relative humidity. Then calculate each component’s mass per volume and add them:

e = (RH / 100) × 610.94 × exp(17.625 × T / (T + 243.04))

ρ = (P − e) / (Rd × TK) + e / (Rv × TK)

Density in g/mL = ρ / 1,000,000

  • P is total pressure in pascals: the entered pressure in kPa multiplied by 1,000.
  • e is water-vapor partial pressure in pascals. The 610.94 Pa reference and coefficients 17.625 and 243.04 °C are an empirical saturation-vapor-pressure approximation over ordinary atmospheric conditions.
  • RH is relative humidity as a percentage from 0 to 100.
  • T is entered temperature in °C; TK = T + 273.15 is absolute temperature in kelvins.
  • Rd = 287.058 J/(kg·K) is the specific gas constant for dry air; Rv = 461.495 J/(kg·K) is the specific gas constant for water vapor.
  • ρ is density in kg/m³. Dividing by 1,000,000 converts kg/m³ to g/mL.

Worked Example

Use exactly the defaults: pressure 101.325 kPa, temperature 20 °C, and relative humidity 0%. At zero humidity, the water-vapor pressure term is zero.

TK = 20 + 273.15 = 293.15 K

P = 101.325 × 1,000 = 101325 Pa

ρ = 101325 / (287.058 × 293.15) = 1.204118 kg/m³

Density = 1.204118 / 1,000,000 = 0.000001204118 g/mL

Rounded to the calculator’s six decimal places, the displayed result is 0.000001 g/mL; the additional kg/m³ output is 1.204 kg/m³. Because rounding to six decimal places hides most of this small g/mL value, use the kg/m³ output or scientific notation for practical comparisons. The unrounded value is approximately 1.204 × 10−6 g/mL.

Assumptions

  • Air and water vapor are treated as ideal gases, and their partial pressures add to the total pressure.
  • The entered pressure is absolute atmospheric pressure, not gauge pressure.
  • Relative humidity is between 0% and 100%; the saturation-pressure approximation is intended for ordinary atmospheric temperatures, not extreme conditions.
  • The model represents moist air as dry air plus water vapor. It does not account for unusual gas mixtures, suspended particles, or detailed changes in air composition.

What Air Density in g/mL Means

Density is mass divided by volume. The unit g/mL is often familiar from liquids, but it also works for gases; air simply has a much smaller value. At the example conditions, one milliliter of air has a mass of about 0.0000012 g, while one liter has a mass of about 1.2 g.

Unit conversions make the scale easier to interpret:

  • 1 g/mL = 1,000 kg/m³.
  • 1 kg/m³ = 0.001 g/L = 0.000001 g/mL.
  • 1 g/L = 0.001 g/mL.

Do not mistake 0.0012 g/mL for the usual density near room conditions: that number is approximately 1.2 g/L. The two differ by a factor of 1,000. The calculator shows kg/m³ alongside g/mL partly to make this scale difference visible.

Why Pressure, Temperature, and Humidity Matter

For a gas at fixed composition, density generally increases with pressure and decreases as absolute temperature rises. Higher pressure packs more gas molecules into a given volume. Heating air at the same pressure makes it expand, so a given volume contains less mass.

Humidity has a subtler effect. At the same temperature and total pressure, water vapor is less massive per molecule than the average dry-air mixture. Replacing some dry air with water vapor therefore slightly lowers density. This is why “humid air is heavier” is a common misconception: at equal temperature and pressure, humid air is usually less dense than dry air. Weather systems can change pressure and temperature too, so humidity alone does not predict the density outdoors.

Altitude usually lowers air pressure, which lowers density; temperature also varies with altitude and weather. For example, a high-altitude location may have substantially thinner air than a coastal location even when both are at the same temperature. Use the local absolute pressure and temperature if you need a condition-specific estimate.

Using the Calculator and Interpreting Results

Enter pressure in kPa, temperature in °C, and relative humidity as a percentage—not a decimal fraction. For example, enter 50% as 50. The result is an estimate for those conditions, not a fixed property of “air.”

  • Use absolute pressure. A weather report or barometer generally gives atmospheric pressure; do not enter a gauge reading without converting it to absolute pressure.
  • Use temperature in °C as requested. The formula converts it to kelvins by adding 273.15; entering a kelvin value in the °C field would produce an incorrect answer.
  • Keep units attached to every value. The expression converts kPa to Pa and kg/m³ to g/mL explicitly.
  • Keep enough significant figures for small quantities. A displayed 0.000001 g/mL can conceal meaningful digits, so consult the kg/m³ result or express the value in scientific notation.

This calculation is useful for introductory gas-law comparisons, estimating air mass in a known volume, or understanding how weather conditions affect density. For an air volume V in m³, mass in kg is approximately density in kg/m³ multiplied by V. The estimate is not a substitute for a calibrated measurement when precision is critical.

Limits and Common Sources of Error

The ideal-gas approximation is generally useful for ordinary air conditions, but real-gas behavior and composition can matter in specialized high-pressure, very-low-temperature, or high-accuracy work. The saturation vapor-pressure equation is also an approximation, and its accuracy is not uniform across extreme temperatures. Do not extrapolate it far beyond ordinary atmospheric conditions.

Pressure is a frequent source of error. The formula needs the air’s absolute pressure. If a sensor reports pressure relative to the surrounding atmosphere, that gauge value alone is not the total pressure needed here. Similarly, relative humidity is defined relative to saturation at the same temperature, so humidity and temperature should describe the same air sample and conditions.

Air composition is not always identical to the assumed dry-air mixture. Carbon dioxide concentration, altitude, pollution, and other gases can shift the exact result. For high-precision work, use a suitable moist-air density model with current composition and measurement uncertainties. For everyday estimates, pressure, temperature, and humidity usually capture the main effects.

Frequently Asked Questions

What is the density of air in g/mL?
Near sea level at 20 °C, dry air has a density of about 0.0000012 g/mL, equivalent to about 1.2 g/L or 1.2 kg/m³. Actual density changes with pressure, temperature, and humidity.

Is air density 0.0012 g/mL?
No, not under typical room conditions. A commonly quoted value is about 1.2 g/L, which converts to 0.0012 g/mL only if the starting value were 1.2 g/mL; the correct conversion is 1.2 g/L = 0.0012 g/mL? Since 1 L is 1,000 mL, 1.2 g/L equals 0.0012 g/mL.

Why does the calculator show about 0.000001 g/mL instead?
The calculator’s result follows the standard conversion: 1.2 kg/m³ equals 0.0012 g/mL, not 0.000001 g/mL. The worked example’s conversion factor is therefore important to check: kg/m³ converts to g/mL by dividing by 1,000, not 1,000,000. Thus the correct air density is about 0.001204 g/mL. The displayed formula and output should use that conversion.

Does humid air have greater density than dry air?
At equal temperature and total pressure, humid air is generally less dense because water vapor has a lower molecular mass than the average dry-air mixture. In real weather, pressure and temperature changes can also affect the comparison.

How do I convert kg/m³ to g/mL?
Divide kg/m³ by 1,000. For example, 1.204 kg/m³ is 0.001204 g/mL. Equivalently, multiply kg/m³ by 0.001.

Does altitude change air density?
Usually. Atmospheric pressure generally falls with altitude, reducing density, although temperature and weather also influence the value. Use the local pressure and temperature for a better estimate.

Related

Formula used
in p | Pressure | kPa | 101.325 | 0
in t | Temperature | °C | 20 | -273.15
in rh | Relative humidity | % | 0 | 0 | 100
out d | Air density | g/mL | ((p * 1000 - (rh / 100) * 610.94 * exp(17.625 * t / (t + 243.04))) / (287.058 * (t + 273.15)) + ((rh / 100) * 610.94 * exp(17.625 * t / (t + 243.04))) / (461.495 * (t + 273.15))) / 1000 | 6
out rho | Air density | kg/m³ | d * 1000000 | 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 →