Gas Mixture Calculator: Molar Mass, Mole & Mass Fractions

List the gases in a mixture with their mole (volume) percentages or mass percentages, and get the mixture's average molar mass plus the other set of fractions. Useful for welding and calibration gas blends, air and process gas specifications.

Total 100%
Mixture molar mass
26.7135 g/mol
GasMol %Mass %
Nitrogen (N2)95%99.623%
Hydrogen (H2)5%0.3773%

Ideal-gas density: 1.1918 kg/Nm³ (0 °C, 1 atm) · 1.1298 kg/m³ at 15 °C

Advanced: real-gas check for air and 79/21 N₂/O₂, and ppm ↔ mg/m³

Admitted real-mixture check

Only the N₂/O₂ 79/21 binary and fixed dry-air recipe are admitted in this launch scope. The runtime receives pinned recipe IDs only; a missing model or non-finite state remains unavailable rather than being approximated.

Choose an admitted request and declared state.

Concentration: ppm to mg/m³

The mass concentration uses the selected gas's pinned conventional molar mass and the declared ideal temperature and absolute pressure. Wet reporting requires an explicit water mole fraction.

0.05%unchanged dry mole basis
490 ppmvwet basis at stated water fraction
348.052708 mg/m³ideal state conversion
Verify a saved calculation passport

Paste a local passport JSON to verify its envelope and SHA-256 hashes in this browser. This checks integrity only; it does not rerun the physical calculation.

No saved passport has been verified in this view.

FreeNo sign-upPrivate — runs in your browser, nothing is uploaded

Quick answer

A mixture's molar mass is the mole-fraction-weighted average: M = Σ xᵢ·Mᵢ. Dry air (78.08% N₂, 20.95% O₂, 0.93% Ar, 0.04% CO₂) is 28.966 g/mol. To turn mole % into mass %, multiply each mole fraction by its molar mass and divide by M: 5 mol% hydrogen in nitrogen is only 0.377 mass%.

Formula & method

M = Σ xᵢ·Mᵢ    wᵢ = xᵢ·Mᵢ / M    xᵢ = (wᵢ/Mᵢ) / Σ(wⱼ/Mⱼ)
  • xᵢ — mole fraction (= volume fraction for ideal gases)
  • wᵢ — mass fraction
  • Mᵢ — molar mass of component i

Fractions must add to 100%. For ideal gases mole % and volume % are the same.

Examples

Example 1: Forming gas, 5% hydrogen in nitrogen

Input
5 mol% H₂ + 95 mol% N₂
Result
M = 26.714 g/mol; H₂ = 0.377 mass%
Why
0.05 × 2.01588 + 0.95 × 28.0134 = 26.714 g/mol. Hydrogen is so light that 5% by volume is under 0.4% by mass.

Example 2: Dry air

Input
78.08% N₂, 20.95% O₂, 0.93% Ar, 0.04% CO₂ (mole)
Result
M = 28.966 g/mol; O₂ = 23.14 mass%
Why
Weighting each molar mass by its mole fraction gives 28.966 g/mol, close to the 28.96–28.97 g/mol used for air in engineering tables.

Example 3: A blend specified by mass

Input
50 mass% CO₂ + 50 mass% Ar
Result
M = 41.881 g/mol; 47.58 mol% CO₂, 52.42 mol% Ar
Why
Moles per gram: 0.5/44.0095 = 0.011361 and 0.5/39.948 = 0.012516; the totals give the mole fractions and M = 1 / 0.023877 = 41.881 g/mol.

When to use this tool

  • Working out the molar mass of a blend for a flowmeter or density estimate.
  • Converting a gas certificate between mol% and mass%.
  • Checking a shielding-gas or calibration-gas recipe.

Common mistakes

  • Mixing mole % and mass % in one recipe; pick one basis for every row.
  • Fractions that do not add to 100%.
  • Assuming mass % equals volume % for gases with very different molar masses (hydrogen, helium, CO₂).

Assumptions

What the result takes for granted:

  • Ideal mixing, so mole % equals volume %.
  • Conventional molar masses for each listed gas.

Limitations

Where this tool stops — and what to use instead:

  • No reacting mixtures or real-mixture phase behaviour.
  • Every component must be one of the listed gases.

Frequently asked questions

What is the molar mass of air?

28.966 g/mol for dry air (78.08% N₂, 20.95% O₂, 0.93% Ar, 0.04% CO₂ by mole).

Is mole percent the same as volume percent?

For ideal gases, yes: equal volumes at the same temperature and pressure hold equal moles. Gas certificates often say vol% or mol% interchangeably.

How do I convert mol% to mass%?

Multiply each mole fraction by its molar mass, add them up to get M, then divide each product by M. Enter the recipe on the mole basis here and read the mass column.

How many gases can I enter?

From 2 to 20 components, chosen from the 29-gas list.

Can I get the mixture's density?

At 0 °C and 1 atm, ideal density = M / 22.414 L/mol; air is 1.2923 kg/Nm³. For high-pressure mixtures a real-mixture model is needed.

Sources & references

External references open in a new tab. We are independent and not affiliated with these organizations.

  • Free
  • No sign-up
  • Runs entirely in your browser — nothing is uploaded.
  • Formula and method shown above

Provided “as is” for general information only — results may be inaccurate, so verify before you rely on them. No warranty; use at your own risk.

Built and reviewed by HIFreeTools against the formula shown above and any authoritative references cited on this page. See our methodology and editorial standards below.

Related tools

Embed this tool on your site

Free to embed, no sign-up. Paste this code where you want the tool to appear: