What this calculator does
Mole fraction is the moles of one component divided by the total moles in the mixture. With 2.5 moles of one substance and 0.5 of another, the fractions are 0.8333 and 0.1667.
Because every fraction is a share of the same total, they always sum to exactly 1. That makes mole fraction a natural way to express composition, and it is the quantity that appears in Raoult law, Dalton law of partial pressures and most solution thermodynamics.
The formula
Each component moles are divided by the sum of all moles. The result is dimensionless and independent of the units used, as long as all components are expressed the same way. Mole fraction is not the same as mass fraction, and the two differ whenever the components have different molar masses.
| Term | Meaning |
|---|---|
| Mole fraction (X) | Moles of a component over total moles. Dimensionless, summing to 1. |
| Mass fraction | The mass-based equivalent, which differs whenever molar masses differ. |
| Mole percent | Mole fraction times 100. |
| Dalton law | Partial pressure equals mole fraction times total pressure, for ideal gases. |
The inputs explained
| Field | What to enter |
|---|---|
| Moles of each component (comma-separated) | Moles of each component, comma separated. Any consistent unit works, since the units cancel. |
When to use it
Calculating partial pressures
Each gas partial pressure is its mole fraction times the total pressure.
Applying Raoult law
The vapour pressure of a solution depends on the mole fraction of the solvent.
Expressing alloy or mixture composition
Atomic composition is naturally a mole fraction, even where the material is sold by mass.
Worked examples
Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.
How do the fractions divide up?
Several two-component mixtures with different proportions.
| Moles of each component | Mole fraction of component 1 | Mole fraction of component 2 | Total moles |
|---|---|---|---|
| 1, 1 | 0.5000 | 0.5000 | 2.000 mol |
| 3, 1 | 0.7500 | 0.2500 | 4.000 mol |
| 2.5, 0.5 | 0.8333 | 0.1667 | 3.000 mol |
| 0.1, 9.9 | 0.0100 | 0.9900 | 10.000 mol |
Questions
Do mole fractions always add to 1?
Yes, by construction, since each is a share of the same total. This makes a useful check: if your fractions do not sum to 1, something has been miscounted or a component has been omitted from the total.
What is the difference between mole fraction and mass fraction?
One counts particles and the other counts mass. They coincide only when all components have the same molar mass. A mixture that is 50% by mass of hydrogen and oxygen is overwhelmingly hydrogen by mole fraction, because hydrogen molecules are sixteen times lighter.
Can mole fraction exceed 1?
No. Each fraction lies between 0 and 1 because the numerator is part of the denominator. A value above 1 means an arithmetic error, usually a component left out of the total or a unit mismatch between components.
Why use mole fraction rather than concentration?
Because it is dimensionless and independent of temperature and volume, and because the laws of solution thermodynamics are expressed in it. Raoult law, Dalton law and colligative property relationships all take mole fraction rather than molarity.
For gas mixtures, see the partial pressure calculator. For vapour pressure of a solution, see the Raoult’s law calculator.