FireCADCalc

Mass Fraction ↔ Mole Fraction Conversion (up to 5 Components)

Convert a mixture's composition between mass fractions and mole fractions for up to five components from their molar masses, with the mean molar mass.

Refinery and petrochemicalChemical and fertiliser

Inputs

Examples: Air-like gas by massFlue gas by molesFractions not adding to one

Component 1

Component 2

Component 3

Component 4

Component 5

Results

Component 1: converted fraction74.568%
Component 2: converted fraction18.652%
Component 3: converted fraction6.7807%
Component 4: converted fraction0%
Component 5: converted fraction0%
Mean molar mass29.841kg/kmol

Download PDF CSV Link to this result Compare another case

Log in to save calculations to your dashboard.

Worked example

Example: Air-like gas by mass. The inputs, in the units selected above:

InputValue
Composition given asMass fractions (convert to mole)
Component 1: fraction70.000 %
Component 1: molar mass28.013 kg/kmol
Component 2: fraction20.000 %
Component 2: molar mass31.999 kg/kmol
Component 3: fraction10.000 %
Component 3: molar mass44.010 kg/kmol
Component 4: fraction0 %
Component 4: molar mass18.015 kg/kmol
Component 5: fraction0 %
Component 5: molar mass39.948 kg/kmol

Applying the formula below gives:

ResultValue
Component 1: converted fraction74.568 %
Component 2: converted fraction18.652 %
Component 3: converted fraction6.7807 %
Component 4: converted fraction0 %
Component 5: converted fraction0 %
Mean molar mass29.841 kg/kmol

Open this example in the calculator and change any input.

Formula

\(y_i = \frac{w_i/M_i}{\sum_j w_j/M_j}, \quad w_i = \frac{y_i M_i}{\sum_j y_j M_j}\)

Variables

Symbol Meaning SI unit
\(\text{given}\) Composition given as -
\(x_{1}\) Component 1: fraction -
\(M_{1}\) Component 1: molar mass kg/kmol
\(x_{2}\) Component 2: fraction -
\(M_{2}\) Component 2: molar mass kg/kmol
\(x_{3}\) Component 3: fraction -
\(M_{3}\) Component 3: molar mass kg/kmol
\(x_{4}\) Component 4: fraction -
\(M_{4}\) Component 4: molar mass kg/kmol
\(x_{5}\) Component 5: fraction -
\(M_{5}\) Component 5: molar mass kg/kmol
\(x'_{1}\) Component 1: converted fraction -
\(x'_{2}\) Component 2: converted fraction -
\(x'_{3}\) Component 3: converted fraction -
\(x'_{4}\) Component 4: converted fraction -
\(x'_{5}\) Component 5: converted fraction -
\(\bar M\) Mean molar mass kg/kmol

Method and standards

Definitions.

Where it is used

  • Gas analyses and fuel compositions.
  • Process stream data sheets.

Common mistakes

  • Using mass fractions in ideal gas mixing.
  • Molar masses in g/mol vs kg/kmol (same number).

Assumptions and limits

  • Up to five components.

References

  • Definitions: y_i = (w_i/M_i)/Σ(w_j/M_j); w_i = y_i M_i/Σ y_j M_j

Questions and answers

70 % N₂, 20 % O₂, 10 % CO₂ by mass?

About 74.6 % N₂, 18.7 % O₂ and 6.8 % CO₂ by moles; mean molar mass about 29.8.

Why do light components gain in mole terms?

Each kilogram of a light gas holds more molecules.

Fractions not adding to one?

They are scaled to one, with a note.

Method and article reviewed by FireCAD engineering on 12 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.

Related calculators

Free engineering calculators: every page computes in SI and converts to your units. Results are for engineering estimation; verify critical designs against the referenced standards.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.