molecalculator

Moles & Molar Mass

Relative Density of Air: Formula and Calculator

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

Relative density of air to reference gas 1.0000
Density difference as percent of reference
0.00 %
Result, rounded to 2 decimal places
Molar mass of air
28.965 g/mol
Set in the form below
Molar mass of reference gas
28.965 g/mol
Set in the form below
You enter
Molar mass of air (g/mol), Molar mass of reference gas (g/mol)
You get
Relative density of air to reference gas, Density difference as percent of reference (%)
Rounding
4 dp · 2 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 relative density of air is the ratio of air’s density to the density of a reference substance, usually dry air compared with dry air at specified reference conditions. This calculator estimates that ratio from air’s molar mass and the reference gas’s molar mass; enter both in g/mol to get a dimensionless result.

Formula

For two gases at the same temperature and pressure, their density ratio equals the ratio of their molar masses:

Relative density = density of air ÷ density of reference gas = Mair ÷ Mreference

  • Mair is the molar mass of air, in g/mol. The default, 28.965 g/mol, is a conventional average for dry air.
  • Mreference is the molar mass of the comparison gas, in g/mol. The default matches air, so the ratio is 1.

The ratio has no unit because the density units cancel. The calculator’s second result expresses how much greater or smaller the ratio is than 1, as a percentage of the reference gas’s density. This molar-mass shortcut assumes gases behave approximately ideally and are compared at the same temperature and pressure. For gases under those conditions, density is proportional to molar mass.

Worked Example

Using the default values exactly:

  1. Air molar mass: Mair = 28.965 g/mol.
  2. Reference molar mass: Mreference = 28.965 g/mol.
  3. Relative density = 28.965 ÷ 28.965 = 1.0000.
  4. Percent difference = (1.0000 − 1) × 100 = 0.00%.

Thus, with air itself as the reference, the relative density is 1.0000. To compare air with another gas, replace the reference molar mass with that gas’s molar mass.

Assumptions

  • Air is treated as dry air with average molar mass 28.965 g/mol; actual composition varies slightly.
  • The gases are compared at equal temperature and pressure and are approximated as ideal gases.
  • The reference value is the molar mass of a single gas, not a density measured under different conditions.

What Relative Density Means

Relative density is a comparison, not an absolute density. A value of 1 means the two substances have equal density under the stated comparison conditions. A value above 1 means air is denser than the reference gas; a value below 1 means it is less dense. For example, if the reference gas has a molar mass of 32.00 g/mol, the ratio is 28.965 ÷ 32.00, or about 0.905. Under equal temperature and pressure, air would be about 9.5% less dense than that gas.

The term can be ambiguous unless the reference is stated. In everyday gas comparisons, the reference may be a named gas, often hydrogen or air. In other fields, “relative density” can mean specific gravity: a substance’s density divided by the density of water (for liquids and solids) or another stated reference. Always check what the author or measurement standard uses as the denominator.

Air’s Density and Why It Changes

Dry air near sea level and around 15 °C has a density of roughly 1.225 kg/m³ under standard atmospheric pressure. That is an absolute density, with units; it is not the same thing as relative density. The exact value depends on the conditions and the adopted standard atmosphere.

At a fixed pressure, warmer air is generally less dense than cooler air because the gas expands as temperature rises. At a fixed temperature, lowering pressure also lowers density. The ideal-gas relationship makes these dependencies explicit:

ρ = pM ÷ (RT)

  • ρ is gas density, in kg/m³ when units are used consistently.
  • p is absolute pressure, in pascals.
  • M is molar mass, in kg/mol.
  • R is the molar gas constant, 8.31446261815324 J/(mol·K).
  • T is absolute temperature, in kelvins.

This equation helps explain why a relative-density comparison needs matched conditions. If the gases are at different temperatures or pressures, a molar-mass ratio alone is not enough. Humidity also matters: water vapor has a lower molar mass than the average dry-air mixture, so humid air is slightly less dense than dry air at the same temperature and pressure.

Choosing the Reference Gas

For a useful result, choose the denominator to match the question. If a specification asks for gas relative density with respect to air, divide the gas’s molar mass by air’s molar mass instead. This calculator is explicitly set up as air divided by the chosen reference gas, so the direction of the comparison matters.

  • Reference is air: Use about 28.965 g/mol; the result should be 1.
  • Reference is a pure gas: Use its molar mass from a reliable chemical reference, in g/mol.
  • Reference is a gas mixture: Use the mixture’s average molar mass, calculated from its composition and component molar masses.
  • Conditions differ: Compare measured densities at the same conditions, or use the ideal-gas equation with each gas’s pressure and temperature.

For a mixture, the average molar mass is the sum of each component’s mole fraction multiplied by its molar mass. Mole fractions must add to 1. A composition given by volume percentages can often be treated as mole percentages for ideal gas mixtures, but the basis and conditions should be confirmed.

Common Misconceptions and Limits

Relative density is not a statement that air has one fixed density everywhere. It is a ratio defined against a reference. Nor does a ratio of 0.9 mean the air has a density of 0.9 kg/m³; the ratio has no units, and an absolute density requires pressure and temperature as well.

The calculator uses molar masses because that is sufficient for an ideal-gas comparison at equal conditions. Real gases can depart from ideal behavior, particularly at high pressure or near condensation. For precision work in such conditions, use a suitable equation of state or validated density data rather than relying on the simple ratio. Air composition can also vary with altitude, humidity, and local sources of gases.

Frequently Asked Questions

What is the relative density of air compared with itself?
It is 1 by definition: any quantity divided by the same quantity equals 1.

Is the relative density of air 1.225?
No. About 1.225 kg/m³ is a commonly quoted absolute density for dry air near 15 °C and standard atmospheric pressure. Relative density is dimensionless and depends on the chosen reference.

Is air heavier than oxygen?
At the same temperature and pressure, dry air is less dense than pure oxygen because air’s average molar mass is about 28.965 g/mol, compared with about 32.00 g/mol for oxygen. Its relative density to oxygen is approximately 0.905.

Does humidity increase air density?
At the same temperature and pressure, adding water vapor generally makes air slightly less dense. Water vapor’s molar mass, about 18.015 g/mol, is lower than dry air’s average molar mass, so it replaces some heavier nitrogen and oxygen molecules.

How do I calculate air density rather than relative density?
Use ρ = pM/(RT), with absolute pressure in pascals, molar mass in kg/mol, temperature in kelvins, and R = 8.31446261815324 J/(mol·K). The output is in kg/m³ for these SI units.

Related

Formula used
in ma | Molar mass of air | g/mol | 28.965 | 0
in mr | Molar mass of reference gas | g/mol | 28.965 | 0
out rd | Relative density of air to reference gas | - | ma / mr | 4
out dif | Density difference as percent of reference | % | (ma / mr - 1) * 100 | 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

The whole Moles & Molar Mass section →