Chemistry

Mole Fraction Calculator

Enter the moles of each component to get mole fractions.

Your numbers

Your results

Mole fraction of A
Mole fraction of A
—
Mole fraction of B
—
Mole fraction of C
—
Mole fraction of D
—
Total moles
—

Mole Fraction Calculator by TheCalcTools

How the Mole Fraction Calculator works

The mole fraction of a component is its moles divided by the total moles in the mixture. The fractions always add up to 1; multiply by 100 for mole percent.

Mole fractions are used in Raoult’s law (vapour pressure) and Dalton’s law (partial pressures of gases).

The formula

x_i = n_i ÷ Σ n

Worked example

Using the default values shown in the calculator:

Moles of A2
Moles of B3
Moles of C (optional)0
Moles of D (optional)0
  1. Total = 2 + 3 = 5 mol. x_A = 2 ÷ 5 = 0.40; x_B = 0.60.

Result:

Mole fraction of A0.4000
Mole fraction of B0.6000
Mole fraction of C0.0000
Mole fraction of D0.0000
Total moles5.0000

Frequently asked questions

How do I get moles from grams?

Divide each mass by its molar mass first (see the grams to moles calculator).

Sources and further reading

More in Chemistry · All calculators

This calculator gives estimates for information only. Check important results independently before you rely on them. See our disclaimer.