Skip to content
chemistrycalc

Mole Fraction Calculator

Find each component’s share of the total amount in a binary mixture, from moles or masses.

By ChemistryCalc•Updated October 28, 2026•References
Your calculationLive results · change any value

Results update as you type. Choose units beside a measurement; changing units converts the current value.

On this pageCalculatorHow to useFormula & methodWorked exampleCounting particles rather than weighing themBinary mixtures and the totalFrequently asked questionsRelated calculatorsSources

01 Set up your calculation

  1. Choose whether the component quantities are known as moles or masses.
  2. Supply both amounts; if using masses, enter each component’s molar mass.
  3. Read fractions between zero and one and the corresponding mole percentage.

02 The relationship

xA = nA/(nA + nB); xB = 1 − xA. For mass inputs, n = m/M.

For the assumptions behind these results, read the explanation below. You can also explore Molality and Molarity.

WORKED EXAMPLE

Follow the numbers

A mixture containing 2 mol of A and 8 mol of B has 10 mol total. Its mole fractions are 0.2 and 0.8, so A accounts for 20 mole percent.

03 Counting particles rather than weighing them

Mole fraction compares amounts of substance. Because one mole contains the same number of entities for any species, it is also a particle-count fraction when the entities are defined consistently. A light and a heavy molecule contribute equally to the count.

Mass fraction and mole fraction generally differ. When only masses are available, this tool divides each mass by the appropriate molar mass before forming the ratio. Use the same definition of species throughout, especially when dissociation occurs.

04 Binary mixtures and the total

The two fractions sum to one because the denominator includes both components. For a mixture containing more than two species, component B may represent their combined amount in moles, but its combined mass must not be divided by an arbitrary single molar mass.

Mole fractions appear in ideal-gas partial pressures and ideal-solution vapor-pressure estimates. Composition alone does not prove that either model is valid. Reactions, ionization, or association can also change the number and identity of species in the mixture.

Questions from the notebook

Can one component be absent?

Yes. One amount may be zero if the other is positive; the resulting fractions are zero and one.

Is a mole fraction a percentage?

A mole fraction is dimensionless on a zero-to-one scale. Multiply it by 100 to obtain mole percent.

Do equal masses give equal fractions?

Only when the two components have the same molar mass.

References & reading

Our explanations are written for ChemistryCalc. Read how we build and check our tools. These calculations are educational estimates where the underlying model requires assumptions.