Mole fraction: composition as a share of total moles

Mole fraction expresses each component as a share of total moles, a dimensionless number. Learn to calculate it and why the fractions sum to 1.

Quick answer

The mole fraction of a component in a mixture, symbol X, is the number of moles of that component divided by the total number of moles of all components. It is dimensionless, always between 0 and 1, and the mole fractions of all components sum to exactly 1.

XA=nAntotalX_A = \frac{n_A}{n_{\text{total}}}

Unit: dimensionless (no units)

Example: Mix 1.00 mol of ethanol with 3.00 mol of water (4.00 mol total). X_ethanol = 1.00/4.00 = 0.250 and X_water = 3.00/4.00 = 0.750; 0.250 + 0.750 = 1.00.

What you will learn

  • Define mole fraction as the ratio of a component's moles to total moles
  • Calculate mole fractions for each component of a mixture
  • Verify that mole fractions sum to 1
  • Convert between mole fraction and mole percent
  • Apply mole fraction to gas mixtures and vapor-pressure problems

What mole fraction means

The mole fraction of component A, written XAX_A, is the share of the mixture's total moles that belong to A:

XA=nAntotalX_A = \frac{n_A}{n_{\text{total}}}

where ntotaln_{\text{total}} is the sum of the moles of every component. Because moles divide by moles, the units cancel completely — mole fraction is a pure number, always between 0 and 1.

Chemists like this unit because it counts particles rather than mass or volume. In gas mixtures, in vapor-pressure calculations, and in alloy chemistry, what matters is how many molecules of each kind are present, and mole fraction says exactly that.

Worked example: an ethanol-water mixture

Take a simple mixture: 1.00 mol of ethanol stirred into 3.00 mol of water. The total is 1.00+3.00=4.001.00 + 3.00 = 4.00 mol.

Xethanol=1.004.00=0.250X_{\text{ethanol}} = \frac{1.00}{4.00} = 0.250

Xwater=3.004.00=0.750X_{\text{water}} = \frac{3.00}{4.00} = 0.750

Two checks confirm the arithmetic. First, the fractions sum to 0.250+0.750=1.000.250 + 0.750 = 1.00, as they must. Second, neither fraction carries units — they are plain numbers. Multiply by 100 for mole percent: the mixture is 25.0 mol% ethanol and 75.0 mol% water.

The sum rule: fractions always total 1

Every mole in the mixture belongs to exactly one component, so the parts must add to the whole. For a mixture of A, B, and C:

XA+XB+XC=1X_A + X_B + X_C = 1

This identity is both a definition check and a practical tool: if you know all but one mole fraction, subtract the known ones from 1 to find the last. If a problem asks for the mole fraction of water in a three-component mixture and gives you the other two, the answer is 1−X1−X21 - X_1 - X_2 with no further data needed.

From masses to mole fractions

When masses are given instead of moles, convert each component's mass to moles first using its molar mass, then divide by the total. For example, 18.0 g of water is 1.00 mol (18.0/18.01518.0 / 18.015), while 18.0 g of ethanol is only 0.391 mol (18.0/46.0718.0 / 46.07) — equal masses, very unequal mole counts.

This is why mole fraction and mass fraction disagree. A 50/50 mixture by mass of water and ethanol is about 72 mol% water, because water packs more moles into each gram. Always convert to moles before computing XX; skipping that step is the classic error.

Mole fraction in gases and vapor pressure

Mole fraction shines wherever particle counts drive the behavior. Dalton's law of partial pressures states that each gas in a mixture contributes a partial pressure equal to its mole fraction times the total pressure: PA=XA⋅PtotalP_A = X_A \cdot P_{\text{total}}. Raoult's law for vapor pressure has the same form: the vapor pressure of a solvent above a solution equals its mole fraction times the pure solvent's vapor pressure.

In each case the dimensionless nature of XX is a feature, not a gap — multiplying a pressure by a pure number cleanly returns a pressure, with no unit bookkeeping required.

Choosing the right concentration unit

Three concentration units now sit side by side, each with its natural habitat. Molarity (mol/L of solution) rules the lab bench and reaction stoichiometry. Molality (mol/kg of solvent) rules temperature-dependent phenomena like freezing-point depression. Mole fraction (dimensionless) rules gas mixtures, vapor pressure, and any theory written in terms of particle counts.

Choosing among them is a matter of matching the denominator to the problem: liters of solution, kilograms of solvent, or total moles. When a formula names one explicitly — as Raoult's law names mole fraction — use that one rather than converting from another.

Variables and units

SymbolNameUnitMeaning
XAX_Amole fractiondimensionlessMole fraction of component A
nAn_Amoles of component AmolMoles of the component of interest
ntotaln_totaltotal molesmolSum of the moles of all components in the mixture

Common mistakes

✗ Mole fraction has units of moles.

The units cancel in the ratio, leaving a dimensionless number. Writing 0.250 mol as a mole fraction is wrong; the correct statement is simply a mole fraction of 0.250.

✗ Mole fraction is the same as mass fraction.

Mole fraction counts particles (moles), while mass fraction counts mass. They agree only when all components have the same molar mass. A mixture that is 50% water by mass is far more than 50% water by moles, because water's molar mass is small.

✗ Mole fractions can add up to more than 1.

The mole fractions of all components in a mixture sum to exactly 1, always. Each mole is counted once in the total, so the parts cannot exceed the whole.

✗ Mole fraction only applies to liquids.

Mole fraction describes any mixture: liquid solutions, gas mixtures, and even solid alloys. Dalton's law of partial pressures is a direct application to gases.

Real-world applications

  • Computing partial pressures of gases in a mixture via Dalton's law

  • Describing the composition of alloys, where atom fractions play the same role

  • Analytical chemistry: converting chromatographic peak areas to mixture composition

  • Atmospheric science: reporting trace-gas abundances as dimensionless fractions

  • Pharmaceutical formulation: specifying multi-component solvent blends

  • Metallurgy and materials science: defining alloy compositions independent of units

Frequently asked questions

Why does mole fraction have no units?

Mole fraction is a ratio of moles to moles, so every unit cancels. The result is a pure number between 0 and 1 with no units at all. This makes it convenient for gas mixtures and for any formula where carrying units through would add clutter, such as Raoult's law for vapor pressure.

What is the difference between mole fraction and mole percent?

Percentages are just mole fractions multiplied by 100. Mole percent is common in gas-mixture specifications and alloy compositions. The underlying quantity is identical; converting between them is a factor of 100, so a mole fraction of 0.250 is 25.0 mole percent.

Does mole fraction apply to gas mixtures too?

Yes. For a gas mixture, the mole fraction of each gas times the total pressure gives that gas's partial pressure (Dalton's law). Air is about 21% oxygen by moles, so at 1.00 atm total pressure the partial pressure of oxygen is about 0.21 atm — the same mole-fraction idea applied to gases.

What does it mean that the mole fractions sum to 1?

It means the sum of all the mole fractions equals exactly 1: every mole of material belongs to exactly one component, so the parts must add to the whole. If your calculated mole fractions do not sum to 1, you have made an arithmetic error or missed a component.

What is the mole fraction of a pure substance?

A pure substance has a mole fraction of 1 for itself and 0 for everything else — there is only one component, so it accounts for all the moles. Mole fraction becomes interesting only when two or more substances are mixed.