Worked example
Example: Dry air by mass. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Oxygen (O2) by mass | 23.150 % |
| Nitrogen (N2) by mass | 75.530 % |
| Carbon dioxide (CO2) by mass | 0.060000 % |
| Water vapour (H2O) by mass | 0 % |
| Sulphur dioxide (SO2) by mass | 0 % |
| Carbon monoxide (CO) by mass | 0 % |
| Hydrogen (H2) by mass | 0 % |
| Argon (Ar) by mass | 1.2800 % |
Applying the formula below gives:
| Result | Value |
|---|---|
| Oxygen by volume | 20.952 % |
| Nitrogen by volume | 78.081 % |
| Carbon dioxide by volume | 0.039483 % |
| Water vapour by volume | 0 % |
| Sulphur dioxide by volume | 0 % |
| Carbon monoxide by volume | 0 % |
| Hydrogen by volume | 0 % |
| Argon by volume | 0.92793 % |
| Mixture molar mass | 28.966 kg/kmol |
Open this example in the calculator and change any input.
Formula
\(n_i = \frac{w_i}{M_i} \qquad y_i = \frac{n_i}{\sum_j n_j} \qquad M = \frac{\sum_i w_i}{\sum_i w_i / M_i}\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(w_i\) | mass fraction of species i: \(w_{O_2}\), \(w_{N_2}\), \(w_{CO_2}\), \(w_{H_2O}\), \(w_{SO_2}\), \(w_{CO}\), \(w_{H_2}\), \(w_{Ar}\) | – |
| \(M_i\) | molar mass of species i | kg/kmol |
| \(n_i\) | moles of species i per kilogram of mixture | kmol/kg |
| \(y_i\) | mole (volume) fraction of species i: \(y_{O_2}\), \(y_{N_2}\), \(y_{CO_2}\), \(y_{H_2O}\), \(y_{SO_2}\), \(y_{CO}\), \(y_{H_2}\), \(y_{Ar}\) | – |
| \(M\) | molar mass of the mixture | kg/kmol |
Method and standards
Molar masses from IUPAC 2013 conventional atomic weights. Exact for ideal-gas mixtures.
Where it is used
- Converting gas mass flows to volume for fans and ducts.
- Flow meter ranges.
- Fuel gas and flue gas calculations.
Common mistakes
- Mixing normal and standard conditions.
- Forgetting temperature and pressure for actual volume.
- Using dry composition for wet gas.
Assumptions and limits
- Ideal gas: mole fraction equals volume fraction.
- Fractions that do not sum to 1 are normalised; the page reports the original sum. With Σw = 1 the molar mass is 1/Σ(w_i/M_i).
- Only O₂, N₂, CO₂, H₂O, SO₂, CO, H₂ and Ar can be entered; hydrocarbons and H₂S of a fuel gas are not covered.
References
- IUPAC 2013 standard atomic weights
Questions and answers
Why do light gases such as hydrogen take so much more volume than mass?
Volume fraction follows moles, and a kilogram of hydrogen is about 496 moles while a kilogram of CO₂ is about 23 moles. The same mass of hydrogen occupies 22 times the volume.
Method and article reviewed by FireCAD engineering on 10 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.