Worked example
Example: Air-like gas by mass. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Composition given as | Mass fractions (convert to mole) |
| Component 1: fraction | 70.000 % |
| Component 1: molar mass | 28.013 kg/kmol |
| Component 2: fraction | 20.000 % |
| Component 2: molar mass | 31.999 kg/kmol |
| Component 3: fraction | 10.000 % |
| Component 3: molar mass | 44.010 kg/kmol |
| Component 4: fraction | 0 % |
| Component 4: molar mass | 18.015 kg/kmol |
| Component 5: fraction | 0 % |
| Component 5: molar mass | 39.948 kg/kmol |
Applying the formula below gives:
| Result | Value |
|---|---|
| Component 1: converted fraction | 74.568 % |
| Component 2: converted fraction | 18.652 % |
| Component 3: converted fraction | 6.7807 % |
| Component 4: converted fraction | 0 % |
| Component 5: converted fraction | 0 % |
| Mean molar mass | 29.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.