When you mix substances, the composition can be told in grams, in liters or in moles. The mole fraction counts the particles. This mole fraction calculator takes the mass and molar mass of two components to give their moles, the mole fractions, the mole percent and the mass percent.
How the calculation works
- Moles of each component n = mass ÷ molar mass.
- Mole fraction of component 1 = n₁ ÷ (n₁ + n₂), and of component 2 = n₂ ÷ (n₁ + n₂). The two always add up to 1.
- Mole percent = mole fraction × 100.
- Mass percent of component 1 = m₁ ÷ (m₁ + m₂) × 100, shown for comparison because it differs from the mole percent when the molar masses differ.
Example
A solution contains 46 g of ethanol (46.07 g/mol) and 100 g of water (18.015 g/mol). The moles are 46 ÷ 46.07 = 0.9985 mol of ethanol and 100 ÷ 18.015 = 5.551 mol of water. The mole fraction of ethanol is 0.9985 ÷ 6.5495 = 0.1525 and that of water is 0.8475. The mole percent of ethanol is 15.25 %, while its mass percent is 31.5 %.
Why it matters
Mole fraction is the basis of the laws for solutions and gas mixtures. It is used to find the vapor pressure of a solution with Raoult’s law, the partial pressures of gases, the boiling and freezing point changes and the composition of a distillate. Because it depends on neither temperature nor volume, it stays constant when a solution is heated.
Good to know
Use the molar mass of the substance as it exists in the mixture, and for a salt that dissociates the number of dissolved particles is larger than the number of formula units, which matters for colligative properties but not for the mole fraction of the formula unit. With more than two components, the mole fraction of each is its moles divided by the total moles of all, so add the other components into component 2 as a combined amount. Mole fractions of a mixture always sum to 1, which is a quick check on a result.
Related tools
The molality calculator gives moles per kilogram of solvent, the grams to moles calculator converts a mass to a quantity of matter and the Raoult’s law calculator uses the mole fraction to find vapor pressure.