FREE TOOLS. ZERO LIMITS.
No Signup RequiredNo Watermarks
ToolzNova · Lab calculators

Mole Fraction Calculator Online

Calculate the mole fraction and mole percent of each component in a mixture from masses and molar masses, or directly from moles, for up to three components.

Mole Fraction Calculator

Free mole fraction calculator that runs in your browser. Nothing is uploaded.

xᵢ = nᵢ ÷ Σn

Mole fractions have no units and always add up to 1.

How to calculate mole fraction

1Choose grams or moles

Grams need molar masses.

2Enter each component

Up to three.

3Read each fraction

And mole percent.

Example mixtures

xᵢ = nᵢ ÷ (n₁ + n₂ + …).

Calculated values.

MixtureAmountsMole fractions
Water + ethanol90 g + 46 g0.833 + 0.167
Water + NaCl (as formula units)100 g + 5.844 g0.982 + 0.018
Equal moles of A and B1 mol + 1 mol0.5 + 0.5
Dry air (N₂, O₂, Ar)by volumeabout 0.781, 0.209, 0.009

Understanding mole fraction

This short guide explains what the mole fraction calculator does, how to get the best result and when another tool is a better fit.

What it is

Mole fraction is the share of all molecules in a mixture that belong to one component. It’s the moles of that component divided by the total moles. Because it counts particles rather than mass or volume, it doesn’t change with temperature and it’s the natural unit for gas mixtures, vapour pressure (Raoult’s law) and many thermodynamic calculations.

Mole Fraction Calculator – n to x
How the mole fraction calculator works: n in, x out.

Mole percent is the mole fraction × 100.

From grams to moles

Most people weigh components, so the calculator first converts each mass to moles by dividing by its molar mass. Water is 18.015 g/mol and ethanol 46.07 g/mol, so 90 g of water is 4.996 mol while 46 g of ethanol is only 0.998 mol. Even though the masses look similar, water molecules outnumber ethanol about five to one.

Use the molar mass of the exact substance.

A worked example

Mix 90 g of water with 46 g of ethanol. Moles: 4.996 and 0.998, total 5.994. Mole fractions: water 0.833, ethanol 0.167. Adding a third component, say 1 mol of glycerol, changes all the fractions, which still add to 1. Entering moles directly, 2, 1 and 1 mol give 0.5, 0.25 and 0.25.

For gases, mole fraction equals volume fraction for ideal gases.

Where it’s used

Mole fractions appear in Raoult’s and Dalton’s laws, distillation, gas analysis and phase diagrams. They convert easily to partial pressure: partial pressure = mole fraction × total pressure. For solutions you might also need molality or molarity, which depend on the solvent mass or solution volume.

Check results against your lab’s procedures and product data sheets.

Related tools

For molar concentration, use the Molar Calculator. To convert grams and moles, use Moles to Grams.

  • xᵢ = nᵢ ÷ Σn
  • Fractions add up to 1
  • n = mass ÷ molar mass

Further reading: Mole fraction explained. It explains the format behind this mole fraction calculator in more detail.

Where it helps

Physical chemistry

Raoult’s law.

Gas mixtures

Partial pressures.

Chemical engineering

Distillation.

Teaching

Composition units.

Quick fixes

“Enter the molar mass…”

Add molar mass, or switch to moles.

“…total amount must be more than 0”

Enter at least one amount.

Third component ignored

Enter its amount.

Fractions look reversed

Check which component is which.

Frequently asked questions

How do I calculate mole fraction?

Moles of component ÷ total moles.

What is the mole fraction of ethanol in 90 g water + 46 g ethanol?

About 0.167.

Does mole fraction have units?

No.

Do mole fractions add up to 1?

Yes.

What is mole percent?

Mole fraction × 100.

Can I enter grams?

Yes, with molar masses.

How many components?

Up to three.

How is it used for gases?

Partial pressure = x × total pressure.

Is my data saved?

No.

Is it free?

Yes.