Mole Fraction Calculator

Enter your mixture's number of components and choose a calculation method — either directly by moles or by mass and molar mass — and this Mole Fraction Calculator works out each component's mole fraction alongside the total moles in your solution.

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

--

Mole Fraction Distribution

Results Table

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.

More Chemistry Tools