Mole Fraction Calculator
Find each component’s share of the total amount in a binary mixture, from moles or masses.
01 Set up your calculation
- Choose whether the component quantities are known as moles or masses.
- Supply both amounts; if using masses, enter each component’s molar mass.
- Read fractions between zero and one and the corresponding mole percentage.
02 The relationship
For the assumptions behind these results, read the explanation below. You can also explore Molality and Molarity.
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
- OpenStax, Rice University — Colligative Properties ↗
Defines mole fraction and describes Raoult’s law for ideal solutions.
- NIST — Guide to SI conversion factors ↗
Supports physical unit conversions. Input values are converted to the formula’s base units before calculation.
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.