Skip to main content

How to Calculate Mole Fraction

A unit with no units

Mole fraction (X, or the Greek χ) is the cleanest concentration measure in physical chemistry — it has no units, it does not depend on temperature, and the values for every component in a mixture must sum to exactly 1. That last property is also a built-in error check: if your fractions do not add to 1.000, you made an arithmetic mistake.

X_A = n_A / n_total

The reason mole fraction shows up in every serious thermodynamics derivation — Raoult’s Law for vapor pressure, Dalton’s Law for gas mixtures, the Gibbs free energy of mixing — is that thermodynamic activity scales with the count of particles, not their mass. You care about how many molecules of solvent are dancing at the surface of a solution, not how heavy each one is.

The four-step method, with ethanol and water

Find the mole fraction of ethanol in a solution of 46.0 g ethanol (C₂H₅OH, M = 46.07 g/mol) and 72.0 g water.

  1. Moles of each.
    • ethanol: 46.0 ÷ 46.07 = 0.9985 mol
    • water: 72.0 ÷ 18.015 = 3.997 mol
  2. Total moles. 0.9985 + 3.997 = 4.996 mol
  3. Mole fractions.
    • X_ethanol = 0.9985 ÷ 4.996 = 0.200
    • X_water = 3.997 ÷ 4.996 = 0.800
  4. Sum check. 0.200 + 0.800 = 1.000. Done.

Worked example: a three-component gas mixture

A balloon contains 4.0 g He, 16.0 g O₂, and 14.0 g N₂. Find the mole fraction of each.

  1. Convert to moles:
    • He: 4.0 ÷ 4.003 = 0.999 mol
    • O₂: 16.0 ÷ 32.00 = 0.500 mol
    • N₂: 14.0 ÷ 28.01 = 0.500 mol
  2. Total: 0.999 + 0.500 + 0.500 = 1.999 mol
  3. Mole fractions:
    • X(He) = 0.999 ÷ 1.999 = 0.500
    • X(O₂) = 0.500 ÷ 1.999 = 0.250
    • X(N₂) = 0.500 ÷ 1.999 = 0.250
  4. Sum: 1.000.

Notice that 4 g of helium contains as many moles as 16 g of oxygen — a useful gut-check for how light helium really is.

Raoult’s Law: vapor pressure lowering

Mole fraction is the variable in Raoult’s Law:

P_solution = X_solvent × P°_solvent

What is the vapor pressure of an aqueous solution where X_water = 0.950 at 25 °C? The pure-water vapor pressure at 25 °C is 23.8 mmHg.

P = 0.950 × 23.8 = 22.6 mmHg

The solute knocked the vapor pressure down by 1.2 mmHg. That number drives boiling-point elevation: less vapor pressure at any given temperature means you need a higher temperature to reach atmospheric pressure and boil.

Mole fraction → molality

Convert X_solute = 0.0200 in water to molality.

Assume 1 mol of mixture total:

  1. Moles of solute = 0.0200, moles of water = 0.980.
  2. Mass of water = 0.980 × 18.015 = 17.65 g = 0.01765 kg.
  3. m = 0.0200 ÷ 0.01765 = 1.13 m.

The trick is the assumption “1 mol of total mixture” — it lets you treat the mole fractions as actual mol counts and back out the solvent mass.

Dalton’s Law: partial pressures

For an ideal gas mixture, P_i = X_i × P_total.

Air is 78.1% N₂ by moles. At sea level (1.00 atm total):

P(N₂) = 0.781 × 1.00 = 0.781 atm

Same equation underlies how anesthesiologists adjust gas blends, how scuba mixes are computed, how partial-pressure-of-oxygen targets are set in mountaineering. Mole fractions multiply through to partial pressures cleanly because gases at low pressure all have the same molar volume — 22.4 L per mol at STP.

Common slips

  1. Using grams instead of moles. A 50/50 mass split between methanol and water is not a 50/50 mole split — methanol is much lighter per molecule, so you have more methanol moles than water moles. Always convert first.
  2. Forgetting the solvent in the denominator. The total moles is solute plus solvent. Leave out the solvent and your X_solute will be artificially huge.
  3. Confusing mole fraction with mole percent. Mole fraction is between 0 and 1. Mole percent is between 0 and 100. Multiply by 100 to convert; divide by 100 to go back. Use the form your equation expects.

Practice

Try these, then verify in the Solution Concentration Calculator:

  1. X(NaCl) for 5.85 g NaCl (M = 58.44) in 180.0 g water?
  2. A gas mixture is 20.0% CO₂ and 80.0% N₂ by mass. Find both mole fractions.
  3. X(sucrose) = 0.0150 in water. What is the molality?
  4. Vapor pressure where X_water = 0.980 at 100 °C (P°_water = 760 mmHg)?
  5. 0.500 mol acetone with 2.00 mol chloroform at 35 °C — find both mole fractions and the total vapor pressure (P°_acetone = 345 mmHg, P°_chloroform = 293 mmHg, ideal behavior).

Ready to try it yourself?

Open Calculator

Related Guides