Mole Fraction Calculator
Enter the moles of each component to get mole fractions.
Your numbers
Your results
Mole fraction of A
Mole fraction of A
—
Mole fraction of B
—
Mole fraction of C
—
Mole fraction of D
—
Total moles
—
Mole Fraction Calculator by TheCalcTools
How the Mole Fraction Calculator works
The mole fraction of a component is its moles divided by the total moles in the mixture. The fractions always add up to 1; multiply by 100 for mole percent.
Mole fractions are used in Raoult’s law (vapour pressure) and Dalton’s law (partial pressures of gases).
The formula
x_i = n_i ÷ Σ n
Worked example
Using the default values shown in the calculator:
| Moles of A | 2 |
|---|---|
| Moles of B | 3 |
| Moles of C (optional) | 0 |
| Moles of D (optional) | 0 |
- Total = 2 + 3 = 5 mol. x_A = 2 ÷ 5 = 0.40; x_B = 0.60.
Result:
| Mole fraction of A | 0.4000 |
|---|---|
| Mole fraction of B | 0.6000 |
| Mole fraction of C | 0.0000 |
| Mole fraction of D | 0.0000 |
| Total moles | 5.0000 |
Frequently asked questions
How do I get moles from grams?
Divide each mass by its molar mass first (see the grams to moles calculator).
Sources and further reading
Related calculators
More in Chemistry · All calculators
This calculator gives estimates for information only. Check important results independently before you rely on them. See our disclaimer.
