Mole Fraction Calculator

The mole fraction of a substance tells you what proportion of a mixture's total molecules belong to that component — a fundamental concentration measure used in chemistry, chemical engineering, and gas law calculations. Select the number of components (2–5) and a calculation method — enter moles directly, or provide mass and molar mass to have moles derived automatically. The calculator returns the mole fraction for each component alongside total moles, and optionally calculates partial pressures via Dalton's Law if you supply a total pressure.

mol
g
g/mol
mol
g
g/mol
mol
g
g/mol
atm

For calculating partial pressures using Dalton's Law

Results

Component 1 Mole Fraction

--

Component 2 Mole Fraction

--

Component 3 Mole Fraction

--

Total Moles

--

Results Table

More Chemistry Tools

Frequently Asked Questions

What is mole fraction?

Mole fraction is a concentration unit that expresses the ratio of moles of one component to the total moles in a mixture. It's dimensionless and always ranges from 0 to 1, with the sum of all mole fractions in a mixture equaling 1.

How do I calculate mole fraction from mass?

First convert mass to moles by dividing mass by molar mass (n = m/M). Then calculate mole fraction by dividing the moles of each component by the total moles in the mixture.

What's the mole fraction of oxygen in air?

Air is approximately 21% oxygen and 79% nitrogen by volume. Since equal volumes of gases contain equal moles at the same conditions, the mole fraction of oxygen in air is approximately 0.21 or 21%.

Why does the total mole fraction equal 1?

The sum of all mole fractions equals 1 because mole fraction represents the fraction of total moles that each component contributes. Since we're accounting for all components, their fractions must sum to the whole (1).

How is mole fraction related to partial pressure?

According to Dalton's Law, the partial pressure of a gas component equals its mole fraction multiplied by the total pressure: P_i = X_i × P_total. This relationship is fundamental in gas mixture calculations.

Can I use this calculator for gas mixtures?

Yes, this calculator works for any type of mixture including gas mixtures, liquid solutions, and solid mixtures. The mole fraction concept applies universally to all phases of matter.

What are the limitations of mole fraction calculations?

Mole fraction assumes ideal behavior and doesn't account for molecular interactions or volume changes upon mixing. For very concentrated solutions or non-ideal mixtures, activity coefficients may be needed for accurate thermodynamic calculations.