Mole fraction calculator

This mole fraction calculator gives each substance’s share of the total amount in a mixture. Example: 2 mol of A and 3 mol of B give x(A) = 0.4 and x(B) = 0.6.

Example: What is given: Amounts in mol · Substance 1: amount n₁ 2 mol · Substance 2: amount n₂ 3 mol · Substance 3: amount n₃ 0 mol → Result: x₁ = 0.4 · x₂ = 0.6. Source: IUPAC Green Book (Quantities, Units and Symbols in Physical Chemistry), „amount fraction“ x_B = n_B / n. Updated: .

mol
mol
mol
Optional. Leave 0 or empty if there are only two substances.
My ToolboxYour inputs are saved in this browser only.

Result

Result
x₁ = 0.4 · x₂ = 0.6
All representations
SubstanceAmountMole fraction xShare in %
Substance 12 mol0.440 %
Substance 23 mol0.660 %
Total5 mol1100 %
Calculation steps
  • n(total) = 5 mol.
  • x₁ = n₁ / n(total) = 2 / 5 = 0.4.
  • x₂ = n₂ / n(total) = 3 / 5 = 0.6.
The mole fractions of all substances add up to 1 (100 %). The mole fraction does not depend on temperature or volume and differs from the mass fraction.

How it is calculated

The mole fraction x (amount fraction) states what fraction of the total number of particles a substance makes up in a mixture. It is dimensionless, lies between 0 and 1, and all fractions of a mixture add up to 1.

Formula

x(i) = n(i) / n(total), where n(total) is the sum of all amounts. If only masses are known, convert first: n(i) = m(i) / M(i) with the molar mass M in g/mol. Multiplied by 100 you get the share in percent (mol %).

Worked example

A mixture holds 2 mol of A and 3 mol of B: n(total) = 5 mol, so x(A) = 2/5 = 0.4 and x(B) = 3/5 = 0.6. From masses: 100 g of ethanol (46.07 g/mol) gives n = 2.17061 mol, 100 g of water (18.015 g/mol) gives n = 5.55093 mol. With n(total) = 7.72154 mol, x(ethanol) = 0.281111 (28.11 %) and x(water) = 0.718889 (71.89 %). Three substances with 1, 1 and 2 mol give 0.25, 0.25 and 0.5.

Frequently asked questions

What is the difference between mole fraction and mass fraction?

The mole fraction counts particles (mol), the mass fraction weighs grams. For 100 g of ethanol and 100 g of water it is 50 % by mass but only 28.11 % by amount for ethanol.

How do I calculate the mole fraction from grams?

First divide each mass by its molar mass (n = m / M), then divide each amount by the total amount. For 100 g of ethanol this gives x = 0.281111.

Must the fractions always add up to 1?

Yes. The mole fractions of a mixture always sum to exactly 1 or 100 %. The calculator shows this check sum in the table.

Sources and legal basis

As of: · Editorial policy

Related tools