Part of the Science & Chemistry suite · 71 calculators

Mole Fraction Calculator

The mole fraction of each component in a two-part mixture — from masses or moles, with the mass fraction alongside.

Mole fraction is a component's moles divided by the total moles: χ_A = n_A/(n_A + n_B).

g
g/mol
g
g/mol
Results update as you type
Results
Mole fraction of A
0.718889
Mole fraction of B
Moles of A
Moles of B
Total moles
Mass fraction of A
Mole percent of A
Mole ratio A : B
Reviewed September 2026. Chemistry is the same in every country: SI and laboratory units throughout.
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About mole fraction

How the mole fraction calculator works

Mole fraction is a component's moles divided by the total moles: χ_A = n_A/(n_A + n_B). Being a ratio of counts it is dimensionless, and the fractions always sum to 1.

It differs sharply from mass fraction when the molar masses differ. Equal masses of water and ethanol are 50% each by mass but 71% water by moles, because water molecules are so much lighter.

Formula: χ_A = n_A / (n_A + n_B)

Worked examples

InputsMole fraction of ANote
Equal masses of water and ethanol0.71888971% water by moles, 50% by mass
Two moles to one0.666667χA = 0.667
Pure A1χA = 1

Frequently asked questions

What is mole fraction?

A component's share of the total moles in a mixture. The fractions always sum to 1.

How is it different from mass fraction?

It counts molecules rather than weighing them. When molar masses differ the two diverge sharply.

Where is it used?

Raoult's law, partial pressures, phase diagrams — anywhere the number of particles matters more than their weight.

Can it exceed 1?

No. It is a share of a total, so it is always between 0 and 1.

What is mole percent?

The same thing times 100. Gas compositions are usually quoted this way — air is 78 mole percent nitrogen.

Where these figures come from

Last checked: September 2026. Atomic masses are the IUPAC conventional values; constants are CODATA 2018; equations are the standard textbook forms.