Air density is not measured in g/mol: density is mass per volume, usually kg/m³, while g/mol is molar mass. For dry air with typical composition, the average molar mass is about 28.97 g/mol; this calculator estimates that value from the proportions of the main gases in air and returns the result in g/mol.
Formula
The average molar mass of a gas mixture is the sum of each component’s mole fraction multiplied by its molar mass, divided by the sum of the listed mole fractions:
M̄ = (xN₂MN₂ + xO₂MO₂ + xArMAr + xCO₂MCO₂) / (xN₂ + xO₂ + xAr + xCO₂)
- M̄ is average molar mass, in g/mol.
- x is the mole fraction of a gas, a dimensionless proportion. For example, 0.7808 means 78.08%.
- M is the component’s molar mass: nitrogen, N₂, 28.014 g/mol; oxygen, O₂, 31.998 g/mol; argon, Ar, 39.948 g/mol; and carbon dioxide, CO₂, 44.009 g/mol.
The calculator normalizes by the sum of the listed fractions. This lets it calculate a weighted average even when the selected fractions do not add up to exactly 1. It also reports their sum so you can see whether the mixture description is complete. The component molar masses use conventional atomic weights and molecular formulas.
Worked Example
Using the calculator’s default mole fractions:
M̄ = (0.7808 × 28.014 + 0.2095 × 31.998 + 0.0093 × 39.948 + 0.0004 × 44.009) / (0.7808 + 0.2095 + 0.0093 + 0.0004)
The denominator is 1.0000. The weighted contributions are 21.8763312, 6.7035810, 0.3715164, and 0.0176036 g/mol, respectively. Their sum is 28.9690322 g/mol, so the displayed result, rounded to two decimal places, is 28.97 g/mol. The sum of the listed mole fractions is 1.0000.
Assumptions
- The gas is dry air represented by the four listed components.
- Inputs are mole fractions, not mass percentages or volume measurements taken without regard to conditions.
- The component composition is treated as a mixture average; actual air composition varies slightly by location, time, and altitude.
- Water vapor and trace gases are omitted. The calculator does not calculate air density in kg/m³.
Molar Mass Is Not Density
The units make the distinction clear. A mole is an amount of substance, so g/mol tells you the mass of one mole of a gas mixture. Density describes how much mass occupies a given volume, such as kg/m³ or g/L. Therefore, asking “air density g/mol?” often means one of two things: the molar mass of air, or the density of air expressed using a volume unit.
For dry air near its usual composition, its average molar mass is approximately 28.97 g/mol. This does not mean that a litre of air weighs 28.97 g. At ordinary room conditions, a litre of air has a mass of roughly 1.2 g, with the precise value depending on temperature and pressure. The number of moles in that litre also depends on those conditions.
How to Find Air Density
For a gas that behaves approximately ideally, density can be calculated from pressure, temperature, and molar mass:
ρ = PM̄ / (RT)
- ρ is density, in kg/m³ when SI units are used.
- P is absolute pressure, in pascals (Pa).
- M̄ is molar mass, in kg/mol. Convert 28.97 g/mol to 0.02897 kg/mol by dividing by 1000.
- R is the molar gas constant, 8.31446261815324 J/(mol·K).
- T is absolute temperature, in kelvins (K), equal to temperature in °C plus 273.15.
For example, using 101,325 Pa, 288.15 K (15 °C), and 0.02897 kg/mol gives a density of about 1.225 kg/m³ under the ideal-gas approximation. The pressure must be absolute, not gauge pressure. This relation is useful for estimating density at a specified altitude or indoor condition, but it is a separate calculation from the molar-mass calculator above.
Why Air’s Composition Matters
Dry air is mostly nitrogen and oxygen, with smaller amounts of argon, carbon dioxide, and other trace gases. Since the gases have different molar masses, changing their proportions changes the mixture’s average. The weighted-average method gives more influence to a gas in proportion to how many molecules of it are present.
Water vapor is a useful example. Its molar mass is about 18.015 g/mol, lower than dry air’s average. At the same temperature and pressure, humid air is therefore less dense than dry air, all else equal. The exact effect depends on the water-vapor fraction, so a dry-air estimate should not be treated as an exact value for humid conditions. Carbon dioxide enrichment, by contrast, tends to increase the average molar mass because CO₂ is heavier than the main components of air.
Common Mistakes and Limits
- Confusing units: g/mol is molar mass; kg/m³ and g/L are density. Do not label one as the other.
- Using mass fractions as mole fractions: the calculator expects proportions by amount of substance. A percentage by mass needs conversion before it can be used in this weighted average.
- Entering percentages as whole numbers: enter 78.08% as 0.7808, not 78.08.
- Expecting every sample to match exactly: composition varies, and this calculator omits water vapor and trace gases. Its answer is a useful standard dry-air estimate, not a complete analysis of a particular sample.
- Rounding too early: retain the input precision through the calculation and round only the final reported value.
The average molar mass is largely a composition question. Density additionally depends on temperature and pressure, and at sufficiently high pressures or other non-ideal conditions, a real-gas correction may be needed. For routine estimates near ambient conditions, the ideal-gas relationship is generally a practical starting point.
Frequently Asked Questions
What is the molar mass of air in g/mol?
Typical dry air has an average molar mass of about 28.97 g/mol. The exact value depends slightly on its composition.
Is air density 28.97 g/mol?
No. 28.97 g/mol is the approximate molar mass of dry air. Density is mass per volume and is often reported in kg/m³.
What is the density of air in g/L?
It depends on temperature, pressure, humidity, and composition. Near 15 °C and standard atmospheric pressure, dry air is about 1.225 g/L, equivalent to about 1.225 kg/m³.
Does humid air have a higher density?
At the same temperature and pressure, humid air is generally less dense than dry air because water vapor has a lower molar mass than the main gases in dry air.
How do you calculate the average molar mass of air?
Multiply each gas’s mole fraction by its molar mass, add the products, and divide by the sum of the fractions if they do not total exactly 1. Use mole fractions rather than mass percentages.
Related
Formula used
in n2 | Nitrogen mole fraction | fraction | 0.7808 | 0 | 1 in o2 | Oxygen mole fraction | fraction | 0.2095 | 0 | 1 in ar | Argon mole fraction | fraction | 0.0093 | 0 | 1 in co2 | Carbon dioxide mole fraction | fraction | 0.0004 | 0 | 1 out mm | Average molar mass of dry air | g/mol | (n2 * 28.014 + o2 * 31.998 + ar * 39.948 + co2 * 44.009) / (n2 + o2 + ar + co2) | 2 out total | Sum of listed mole fractions | fraction | n2 + o2 + ar + co2 | 4
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
- Skip Calculator for Soil: What It Can and Can’t Do7.500 m³
- USD to KPW Calculator: Convert Dollars to North Korean Won90,000.00 KPW
- OK Calculator on TV on the Radio? Meaning Explained
- Pension Calculator KP: Estimate Your Pension Benefits
- Neonatal Kp Calculator: What It Means80.0000 mmol/mmol
- Newton to kp Converter Calculator and Formula1.0000 kp