Skip to main content
Mathovia

Science / Chemistry

Mole Fraction Calculator

Enter the moles of two components to find the mole fraction of each. Mole fractions always sum to 1.

Mole Fraction of A (χₐ)
0.4000
Mole Fraction of B (χᵇ)
0.6000
Total Moles
5.0000 mol
  • Component Amol 2 · 40%
  • Component Bmol 3 · 60%
Each component as a share of all the moles present. The two mole fractions always add up to one.

Mole fraction χₐ = moles of A ÷ total moles. Mole fractions of all components always sum to 1.

Written by
MPhil in Mathematics, Founder of Mathovia
Updated

Mathematics verification: Mathematical formulas, calculations, worked examples and solutions are reviewed for accuracy before publication. How we check our work

Mole Fraction Calculator formula
The Mole Fraction formula

What mole fraction measures

Mole fraction (χ) is the simplest possible way to describe a mixture: what share of the molecules present is each component? It’s a plain ratio — one component’s moles divided by the total moles — so it carries no units, doesn’t care about temperature or volume, and the fractions of all components always add to exactly 1.

That mathematical tidiness is why mole fraction, not molarity or mass percent, is the concentration variable in the equations of physical chemistry. Raoult’s law predicts a solution’s vapour pressure from mole fraction. Dalton’s law splits a gas mixture’s total pressure among components by mole fraction. Both would be far messier written in any volume- or mass-based unit.

The mole fraction formula

is the mole fraction of component A, its moles, and the sum over every component. For a two-component mixture, .

Worked example

The calculator’s defaults are 2 mol of component A and 3 mol of component B.

Total moles:

Mole fractions:

Check: 0.400 + 0.600 = 1.000.

Mole Fraction Calculator worked example diagram
A visual read of the worked example above — the same numbers the calculator returns for its default inputs.

From mass to mole fraction

If you start with masses rather than moles, convert first. Say 40 g of methanol (32.04 g/mol) and 60 g of water (18.02 g/mol):

Even though water is only 60% by mass, it’s 73% by moles, because its molecules are lighter.

Composition of dry air, by mole fraction

ComponentMole fractionPartial pressure at 1 atm
Nitrogen0.78080.781 atm
Oxygen0.20950.209 atm
Argon0.00930.0093 atm
Carbon dioxide0.00040.0004 atm

Each partial pressure is just the mole fraction times the total — Dalton’s law in one line.

Where mole fraction is used

  • Raoult’s law — a component’s vapour pressure above a solution is its mole fraction times its pure vapour pressure.
  • Dalton’s law — partial pressure equals mole fraction times total pressure.
  • Phase diagrams and distillation — vapour–liquid equilibrium is plotted against mole fraction.
  • Colligative properties — freezing-point and boiling-point shifts derive from the solvent’s mole fraction.

Common mistakes

  • Using mass ratios directly instead of converting to moles first.
  • Forgetting a component so the fractions don’t sum to 1.
  • Confusing mole fraction with mole percent (mole fraction × 100).

To get the moles you need here from a mass, use the mole calculator. For the mass-per-solvent unit, see the molality calculator.

Raoult’s law with real numbers

Mole fraction predicts how much of each liquid is in the vapour above an ideal mixture. Each component’s partial pressure is its mole fraction times its pure vapour pressure. Using the methanol–water mixture above, with pure vapour pressures at 25 °C of about 16.9 kPa (methanol) and 3.17 kPa (water):

Methanol is only 27% of the liquid’s molecules but supplies about two-thirds of the vapour pressure, which is why distillation can separate the two. Real methanol–water mixtures deviate a little from ideal behaviour, so treat this as an estimate.

Three or more components

The formula doesn’t change. With 2 mol of A, 3 mol of B and 5 mol of C, the total is 10 mol, so , and . They still add to 1.

Mole fraction to molality

For a dilute solute in water, assume 1 mol of mixture in total. If , there is 0.020 mol of solute and 0.980 mol of water, which weighs g:

About the formula: Mole fraction χₐ = moles of A ÷ total moles. Mole fractions of all components always sum to 1.

Frequently Asked Questions

What is mole fraction used for?+

Raoult's law for vapour pressure, Dalton's law for partial pressures, and colligative-property equations. It's dimensionless, temperature-independent, and the components always sum to 1.

How do I calculate mole fraction from moles?+

Divide a component's moles by the total moles of everything in the mixture. For 2 mol A and 3 mol B, χA = 2 ÷ 5 = 0.4 and χB = 3 ÷ 5 = 0.6.

Can mole fraction exceed 1?+

No. It runs from 0 (absent) to 1 (pure). A value of 0.25 means that component is a quarter of all the molecules present.

How do I get mole fraction from mass?+

Convert each mass to moles first (mass ÷ molar mass), then divide by the total moles. Equal masses of two substances give unequal mole fractions unless their molar masses match.

How does mole fraction relate to partial pressure?+

By Dalton's law, a gas component's partial pressure is its mole fraction times the total pressure. In air, oxygen's mole fraction is about 0.21, so at 1 atm its partial pressure is about 0.21 atm.

What about mixtures with three or more components?+

Same rule — each component's moles over the grand total. The fractions of all components still add up to exactly 1.

Related calculators