Skip to content
Omnikalc

Mole fraction calculator: the share of each component in moles

Enter the mass and molar mass of two components to get their moles, mole fractions, the mole percent of the solute and its mass percent.

Updated on
Your inputs
g

Value out of range

g/mol

Value out of range

g

Value out of range

g/mol

Value out of range

Results

Mole fraction of component 1

0.1525

Mole fraction of component 2

0.8475

Moles of component 1
0.998 mol
Moles of component 2
5.551 mol
Mole percent of component 1
15.25%
Mass percent of component 1
31.5%

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.

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.

Frequently asked questions

What is mole fraction?

It is the number of moles of one component divided by the total number of moles in the mixture. It has no unit and the fractions of all components add up to 1.

How is mole fraction different from mass fraction?

Mass fraction compares grams and mole fraction compares particles. Water is light at 18 g/mol, so a mixture that is mostly ethanol by mass can have far fewer ethanol molecules than water molecules.

Why do chemists use mole fraction?

Many laws depend on the number of particles: Raoult's law for vapor pressure, Dalton's law for gas mixtures and the colligative properties. Mole fractions do not change with temperature, unlike molarity.

Can I use it for gases?

Yes. In an ideal gas mixture the mole fraction equals the volume fraction and the pressure fraction, so partial pressure = mole fraction × total pressure.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.