Mole Fraction Calculator

Mole fraction is the cleanest way to express composition because it counts particles rather than mass or volume. The mole fraction of a component is simply its moles divided by the total moles in the mixture, a dimensionless number between 0 and 1 whose values across all components always add to one. It is the natural concentration unit for gas mixtures and for colligative properties like vapor-pressure lowering and freezing-point depression. This calculator takes the moles of a solute and solvent and returns each mole fraction and mole percent.

0.00
0.00
0.00
0.00

Mole fraction formula

total = n_solute + n_solvent
x_solute = n_solute / total
x_solvent = n_solvent / total
mole percent = x * 100

Each mole fraction is the component's moles divided by the total moles in the mixture. The solute and solvent mole fractions sum to exactly 1, which serves as a built-in check on your inputs.

Mole fraction facts

  • Mole fractions are dimensionless and always between 0 and 1.
  • The mole fractions of all components in a mixture sum to exactly 1.
  • If you start from masses, divide each by its molar mass to get moles first.
  • Colligative properties depend on mole fraction, not mass concentration.
  • In gas mixtures, mole fraction equals the partial-pressure fraction for ideal gases.

Mole fraction: frequently asked questions

What is mole fraction?

Mole fraction is the ratio of the moles of one component to the total moles of all components in a mixture. It is a dimensionless number between 0 and 1, and the mole fractions of all components in a mixture always sum to exactly 1. It is widely used in thermodynamics and colligative-property calculations.

What is the mole fraction formula?

For a two-component mixture, the solute mole fraction is x_solute = n_solute / (n_solute + n_solvent), and the solvent mole fraction is x_solvent = n_solvent / (n_solute + n_solvent), where n denotes moles. The two fractions add to 1. Multiply by 100 to express each as a mole percent.

How is mole fraction different from mass fraction?

Mole fraction counts particles (moles), while mass fraction weighs them (grams). Two components with the same mass can have very different mole fractions if their molar masses differ. Mole fraction is the natural unit for gas laws and colligative properties because those depend on the number of particles, not their mass.

Why do mole fractions sum to one?

Because each mole fraction is a part of the same total moles, dividing every component's moles by the identical total and adding them back recovers the whole, which is 1. This is a built-in consistency check: if your computed fractions do not sum to 1, an input is wrong.

What inputs does this calculator need?

Enter the moles of solute and the moles of solvent. If you have masses instead, divide each mass by its molar mass first to get moles. The calculator returns each component's mole fraction (0 to 1) and mole percent, and confirms the total moles used in the denominator.

Official sources

Reviewed by the CalculatorHub team, edited by James Graham, 16 June 2026. See our methodology.