Skip to content

Mole Fraction Calculator

Optional third species in the mixture.

Optional fourth species in the mixture.

Mole fraction of A (xA) —
Mole percent of A
—
Mole fraction of B
—
Mole fraction of C
—
Mole fraction of D
—
Total amount
—
Share of each component by moles (%)
The chart appears with your result

Mole fraction is the amount of one component divided by the total amount of every component in the mixture: xA = nA ÷ (nA + nB + …). For 1.00 mol ethanol in 10.0 mol water, xA = 1 ÷ 11 = 0.0909, so ethanol is 9.09 mol %. The fractions of all components always add up to 1.

About this tool

Mole fraction is the concentration unit that colligative-property problems, Raoult's law and Dalton's law of partial pressures are written in, so general chemistry students and lab staff meet it constantly. Enter the amount in moles of component A and at least one other species; components C and D are optional for gas mixtures or ternary solutions. The result shows A's mole fraction as the headline, the mole percent, the fraction of every other component, the total amount, and a donut of how the moles split. The tool takes moles, not grams: convert masses first by dividing each by its molar mass, or the fractions will be weighted by mass instead of by particle count.

How to use it

  1. Enter component A

    Type the amount in mol of the species whose mole fraction you need.

  2. Add the other components

    Fill in B, and C or D if the mixture has more species. Empty optional boxes are ignored.

  3. Read the fractions

    The headline is xA; the stats list xB, xC, xD, the mole percent of A and the total moles, and the donut shows the split.

Examples

3 mol solute in 7 mol solvent

Component A (the one you want x for)
3
Component B
7

Result Mole fraction of A (xA): 0.3
Mole percent of A: 30%
Mole fraction of B: 0.7
Mole fraction of C: 0
Mole fraction of D: 0
Total amount: 10

  1. Total moles = 3 + 7 = 10 mol
  2. xA = 3 ÷ 10 = 0.3
  3. xB = 7 ÷ 10 = 0.7
  4. Check: the mole fractions add up to 1.

A two-component mixture with 10 mol in total, so the solute's fraction is 3 out of 10.

46 g ethanol in 180 g water

Component A (the one you want x for)
1
Component B
10

Result Mole fraction of A (xA): 0.0909
Mole percent of A: 9.09%
Mole fraction of B: 0.9091
Mole fraction of C: 0
Mole fraction of D: 0
Total amount: 11

  1. Total moles = 1 + 10 = 11 mol
  2. xA = 1 ÷ 11 = 0.0909
  3. xB = 10 ÷ 11 = 0.9091
  4. Check: the mole fractions add up to 1.

1.00 mol ethanol and 10.0 mol water; ethanol makes up about 9.09% of the molecules.

Three gases: 2, 5 and 3 mol

Component A (the one you want x for)
2
Component B
5
Component C
3

Result Mole fraction of A (xA): 0.2
Mole percent of A: 20%
Mole fraction of B: 0.5
Mole fraction of C: 0.3
Mole fraction of D: 0
Total amount: 10

  1. Total moles = 2 + 5 + 3 = 10 mol
  2. xA = 2 ÷ 10 = 0.2
  3. xB = 5 ÷ 10 = 0.5
  4. xC = 3 ÷ 10 = 0.3
  5. Check: the mole fractions add up to 1.

With 10 mol of gas in total the fractions are 0.2, 0.5 and 0.3; by Dalton's law these are also the partial-pressure shares.

How it is calculated

xi = ni ÷ (n1 + n2 + … + nk)

xi
mole (amount) fraction of component i, dimensionless
ni
amount of component i in moles
k
number of components, two to four here

IUPAC calls this the amount fraction. Each component's moles are divided by the sum of all moles, so the fractions are dimensionless, lie between 0 and 1 and sum to exactly 1. Multiplying by 100 gives mole percent. Because the value counts particles rather than mass, it does not change with temperature, unlike molarity, which depends on solution volume.

When not to use it

  • Your amounts are in grams and you have not converted them with molar masses.
  • You need molarity or molality, which divide by litres of solution or kilograms of solvent.
  • The solute dissociates and you need particle fractions, such as ions from NaCl, without counting each ion.

Common mistakes

  • Dividing the solute moles by the solvent moles only, which gives a mole ratio instead of a fraction.
  • Entering masses in grams as if they were moles.
  • Leaving a component out of the total, so the fractions sum to more than the real values.

Frequently asked questions

Does mole fraction have units?

No. It is moles divided by moles, so the units cancel. It is reported as a plain number between 0 and 1, or as mole percent when multiplied by 100.

How do I go from grams to mole fraction?

Divide each mass by that substance's molar mass to get moles, then enter those amounts. For example, 180 g of water at 18.015 g/mol is 9.99 mol, and 46 g of ethanol at 46.07 g/mol is 1.00 mol.

How is mole fraction related to partial pressure?

For an ideal gas mixture, Dalton's law gives the partial pressure of a gas as its mole fraction times the total pressure. A gas with x = 0.21 in air at 101.3 kPa has a partial pressure of about 21.3 kPa.

Why do the fractions always add up to 1?

Each fraction is its component's share of the same total, so adding every share gives the total divided by itself. If your hand-worked fractions do not sum to 1, a component is missing or an arithmetic slip has crept in.

What is the difference between mole fraction and mole ratio?

A mole fraction divides by the total of all components; a mole ratio divides one component by another. For 1 mol solute and 10 mol solvent the fraction is 0.0909, while the ratio is 0.1.

How does mole fraction appear in Raoult's law?

Raoult's law gives the vapour pressure of a solvent over an ideal solution as the solvent's mole fraction times the pure solvent's vapour pressure. Lowering the solvent fraction from 1 to 0.95 cuts its vapour pressure by 5%.

Cite this tool

Using this tool in an assignment, article or report? Copy a citation, or a link for your website.

APA

Tools Directory Editorial Team. (2026, October 23). Mole Fraction Calculator. Tools Directory. Retrieved October 27, 2026, from https://tools.milunir.com/chemistry/stoichiometry-and-reactions/mole-fraction-calculator/

MLA

Tools Directory Editorial Team. “Mole Fraction Calculator.” Tools Directory, 23 Oct. 2026, https://tools.milunir.com/chemistry/stoichiometry-and-reactions/mole-fraction-calculator/. Accessed 27 Oct. 2026.

Chicago

Tools Directory Editorial Team. “Mole Fraction Calculator.” Tools Directory. Last modified October 23, 2026. Accessed October 27, 2026. https://tools.milunir.com/chemistry/stoichiometry-and-reactions/mole-fraction-calculator/.

Link<a href="https://tools.milunir.com/chemistry/stoichiometry-and-reactions/mole-fraction-calculator/">Mole Fraction Calculator – Tools Directory</a>