Easy CalculatorsOnline
A little less guesswork.

Chemistry · EVERYDAY CLARITY

Mole fraction calculator

Find a component’s mole fraction in a mixture.

Units & number format

Number formatting changes the display; the interface and guides are in English. Dates use calendar controls; numeric lists use decimal points and comma or space separators.

01 · CALCULATE

Work out your numbers

Your inputs stay in this browser.

Example result · using the values shown

Component mole fraction
0.4
Mole percent40%
See visual ↓

X=n(component)/(n(component)+n(others)); at least one amount positive.

02 · SEE THE RESULT

Your numbers, pictured

Example visualization

Molar amounts in the mixture

Selected component2 mol40%
Other components3 mol60%

Share of the total

Selected component2 mol
Other components3 mol
0 molShared scale3 mol

The parts add up to the total shown.

03 · UNDERSTAND THE METHOD

How the mole fraction calculator works

Mole fraction describes a component’s share of the total molar amount in a mixture. This calculator takes the selected component’s moles and the combined moles of everything else. It divides the component by their sum, giving a dimensionless fraction and its percentage equivalent. Unlike a mass fraction, the comparison counts specified entities through their molar amounts.

The formula and its variables

X = component moles / (component moles + other moles)
component
Component amount (mol). Use the stated unit; this input is a scenario value.
other
Other components combined (mol). Use the stated unit; this input is a scenario value.

The calculation, step by step

  1. Determine the selected component’s molar amount. Use a consistent entity definition for that component and the other mixture components.
  2. Add the molar amounts of all other components and enter their combined amount. Do not enter total mixture moles as the other amount.
  3. Divide component moles by the sum of both inputs. Read the fraction between zero and one, or multiply it by 100 for mole percent.

A worked example

Two moles of a selected component mixed with three moles of other components give a total of five moles. Its mole fraction is 2 / 5 = 0.4, or 40 mole percent. The other components jointly have fraction 0.6. If you incorrectly enter five as the other amount, you would calculate 2 / 7 instead and understate the selected component’s share.

Example inputs and calculated output
Component amount (mol)2
Other components combined (mol)3
Component mole fraction0.4

How to read the result and visual

The result refers to amount, not mass or occupied volume. A heavy molecule and a light molecule each count as one entity when their moles are defined that way. Mole fractions are useful inputs to ideal mixture relations, but the fraction alone does not establish that a mixture behaves ideally.

Assumptions, rounding, and limitations

The mixture must have positive total molar amount. Zero component moles are valid when other moles are positive, producing zero fraction. Chemical reactions, association, or dissociation can change the relevant species counts. The calculator does not infer composition, determine phase equilibrium, or convert a mass percentage without molar-mass information.

Frequently asked questions

Do the fractions of all components sum to one?

Yes, if every component is included consistently and each denominator is the same total molar amount.

Is mole fraction equal to mass fraction?

Generally not. Components with different molar masses contribute different mass per mole, so converting requires those molar masses.

Reference sources

How we check calculations and what verification covers