Mole Fraction Calculator
Written by Thierno Sadou Diallo, formula verified per our methodology • Last checked on 9/8/2026
The mole fraction of a component in a mixture is the ratio between its amount of substance (in moles) and the mixture's total amount of substance: xᵢ = nᵢ ÷ n(total). For a mixture of 2 mol and 6 mol of two components, their mole fractions are 0.25 and 0.75 respectively.
Explanation
Mole fraction expresses the proportion of a component in a mixture by number of moles, rather than by mass or volume as molar concentration or mass percentage do: it is a dimensionless quantity, always between 0 and 1, and the sum of the mole fractions of all components in a mixture always equals exactly 1. It is particularly useful in the chemistry of solutions and gas mixtures, since several physicochemical laws are expressed directly in terms of it: Raoult's law, which relates the vapor pressure of a component in a liquid mixture to its mole fraction, or Dalton's law on the partial pressures of a gas mixture, where a gas's partial pressure is precisely its mole fraction multiplied by the total pressure. This calculator handles a binary mixture (two components) by leaving the third field at zero, or a ternary mixture (three components) by filling in all three. For a mixture with more components, the same logic applies: divide the amount of substance of each component by the sum of the amounts of substance of all components in the mixture.
Example: a ternary mixture of 1, 1, and 2 mol
Inputs
Component 1: 1 mol. Component 2: 1 mol. Component 3: 2 mol.
Calculation
Total amount = 1 + 1 + 2 = 4 mol. x₁ = 1 ÷ 4 = 0.25. x₂ = 1 ÷ 4 = 0.25. x₃ = 2 ÷ 4 = 0.5.
Result
This mixture's mole fractions are 0.25, 0.25, and 0.5 — their sum is indeed 1.
Frequently asked questions
Why does the sum of mole fractions always equal 1?
By definition, each mole fraction is the amount of substance of a component divided by the mixture's total amount of substance. Adding up all the mole fractions therefore gives back the sum of all the amounts of substance (the reconstructed numerator) divided by that same total amount (the denominator): the result is necessarily 1, regardless of the number of components or their respective proportions.
What is the difference between mole fraction and mass percentage?
Mole fraction counts the number of particles (moles) of each component, regardless of their individual mass, while mass percentage compares their masses. For components with very different molar masses, the two quantities can diverge greatly: a component can represent a high mole fraction while representing only a small share of the mixture's total mass, if it consists of much lighter molecules than the others.
How do you handle a mixture with more than three components?
The principle stays the same: divide the amount of substance of each component by the sum of the amounts of substance of all components in the mixture, with no theoretical limit on their number. This calculator is limited to three components to stay simple to use, but the manual calculation generalizes directly to a mixture of any size.