Mole Fraction Calculator

Quick answer

The mole fraction calculator finds the mole fraction and mole percent of a solute and solvent from their moles, from masses and molar masses, from the total moles, or from partial pressures, and converts the result to molality.

Default: ethanol

Default: water

Mole fraction of solute / gas (χ_A)
0.143535
Mole fraction of solvent / rest (χ_B)
0.856465
Mole percent of A
14.3535 mol%
Moles of solute
0.651197
Moles of solvent
3.885651
Total moles
4.536848
Mole ratio A : B
0.16759
Mass percent of A
30 %
Molality of A
9.302816

The mole fraction χ (chi) of a component is its share of all the moles in a mixture. It is a pure number between 0 and 1, and the mole fractions of all components always add up to exactly 1. Multiply by 100 and you get the mole percent. Because it counts particles rather than masses or volumes, the mole fraction is the natural concentration unit for mixtures of gases and for laws that depend on how many molecules are present.

Raoult’s law (the vapour pressure of a solvent is χ_solvent × p°), Dalton’s law (each gas contributes χ_i × p_total to the pressure) and the ideal-mixing equations of thermodynamics are all written with mole fractions. Like molality, the mole fraction does not change with temperature, since it involves no volumes.

Enter the moles of solute and solvent, the moles of solute and of the whole solution, the masses and molar masses of two components, or the partial pressure of a gas and the total pressure. The calculator gives both mole fractions, the mole percent and, for liquid solutions, the equivalent molality.

How to use the Mole Fraction Calculator

  1. I know
  2. Moles of solute (A)
  3. Moles of solvent (B)
  4. Total moles of solution
  5. Mass of solute (A)
  6. Molar mass of A: Default: ethanol
  7. Mass of solvent (B)
  8. Molar mass of B: Default: water
  9. Molar mass of the solvent: Used only for the molality (18.015 g/mol for water).
  10. Partial pressure of the gas
  11. Total pressure

Results update as you type, every field has its own unit menu, and everything is calculated in your browser.

How it works

Moles of each component are added to get the total; each component’s moles divided by the total is its mole fraction. With masses, each mass is first divided by its molar mass. For gases, the partial pressure divided by the total pressure equals the mole fraction. Molality follows from the solute-to-solvent mole ratio and the solvent molar mass.

Worked example

A mixture of 30 g ethanol (46.069 g/mol) and 70 g water (18.015 g/mol): n(ethanol) = 30 ÷ 46.069 = 0.6512 mol, n(water) = 70 ÷ 18.015 = 3.8857 mol, total 4.5369 mol. χ(ethanol) = 0.6512 ÷ 4.5369 = 0.1435 (14.35 mol%) and χ(water) = 0.8565. Although ethanol is 30% of the mass, it is only about one molecule in seven. The molality of ethanol is 0.6512 ÷ 0.070 kg = 9.30 mol/kg.

Where mole fractions are used

  • Dalton’s law (partial pressure of each gas): p_i = χ_i × p_total.
  • Raoult’s law (vapour pressure lowering): p = χ_solvent × p°.
  • Distillation and phase diagrams: compositions of liquid and vapour are plotted as mole fractions.
  • Gas analysis: mol% (equal to vol% for ideal gases) and ppmv.

Inputs explained

Field What to enter
I know Choose one: Moles of solute and moles of solvent, Moles of solute and total moles of solution, Masses and molar masses of solute and solvent, Partial pressure of a gas and total pressure
Moles of solute (A) Units: mol, mmol, µmol, nmol, kmol
Moles of solvent (B) Units: mol, mmol, µmol, nmol, kmol
Total moles of solution Units: mol, mmol, µmol, nmol, kmol
Mass of solute (A) Units: g, mg, µg, kg, oz, lb
Molar mass of A Units: g/mol, kg/mol, Da (u), kDa. Default: ethanol
Mass of solvent (B) Units: g, mg, µg, kg, oz, lb
Molar mass of B Units: g/mol, kg/mol, Da (u), kDa. Default: water
Molar mass of the solvent Units: g/mol, kg/mol, Da (u), kDa. Used only for the molality (18.015 g/mol for water).
Partial pressure of the gas Units: atm, kPa, Pa, bar, mmHg (Torr), psi
Total pressure Units: atm, kPa, Pa, bar, mmHg (Torr), psi

What each result means

  • Mole fraction of solute / gas (χ_A) = [Moles of A]÷[Total]
  • Mole fraction of solvent / rest (χ_B) = 1 – [Moles of A]÷[Total]
  • Mole percent of A = [Moles of A]÷[Total]×100
  • Moles of solute = [Moles of A]
  • Moles of solvent = [Total] – [Moles of A]
  • Total moles = [Total]
  • Mole ratio A : B = [Moles of A]÷([Total] – [Moles of A])
  • Mass percent of A = ([Mass of solute (A)]÷([Mass of solute (A)] + [Mass of solvent (B)]))×100
  • Partial pressure of the rest = [Total pressure] – [Partial pressure of the gas]

Example values

How the main result changes when Moles of solute changes and everything else stays at the example values above:

Moles of solute (A) (mol) Mole fraction of solute / gas (χ_A)
0.5 0.1435
0.75 0.1435
1 0.1435
1.25 0.1435
1.5 0.1435
2 0.1435

Formula

χ_A = n_A ÷ (n_A + n_B) = n_A ÷ n_total · χ_A + χ_B = 1 · mol% = χ × 100 Gases: χ_i = p_i ÷ p_total · molality b = χ_A ÷ (χ_B × M_B) × 1000

Worked example

Inputs: I know: Masses and molar masses of solute and solvent; Mass of solute (A): 30 g; Molar mass of A: 46.069 g/mol; Mass of solvent (B): 70 g; Molar mass of B: 18.015 g/mol.
Results: Mole fraction of solute / gas (χ_A) = 0.143535; Mole fraction of solvent / rest (χ_B) = 0.856465; Mole percent of A = 14.3535 mol%; Moles of solute = 0.651197 mol; Moles of solvent = 3.885651 mol; Total moles = 4.536848 mol; Mole ratio A : B = 0.16759; Mass percent of A = 30 %; Molality of A = 9.302816 mol/kg.

Key terms

Mole fraction (χ)
Amount of one component divided by the total amount of all components.
Mole percent
Mole fraction × 100.
Partial pressure
The pressure one gas in a mixture would exert alone; p_i = χ_i × p_total (Dalton's law).
Raoult's law
The vapour pressure of a solvent equals its mole fraction times the vapour pressure of the pure solvent.

Frequently asked questions

What is a mole fraction?

The moles of one component divided by the total moles of all components. It has no unit and lies between 0 and 1.

Do mole fractions always add up to 1?

Yes. In a two-component mixture χ_B = 1 − χ_A; with more components, all χ values together sum to 1.

How do I find mole fraction from mass?

Convert every mass to moles with its molar mass, then divide each by the total. 30 g ethanol + 70 g water: 0.6512 mol and 3.8857 mol, so χ(ethanol) = 0.6512 ÷ 4.5369 = 0.1435.

What is the mole fraction of oxygen in air?

About 0.2095 (20.95 mol%) in dry air, so at 1 atm the partial pressure of O₂ is 0.2095 atm.

How do I convert mole fraction to molality?

b = χ_solute ÷ (χ_solvent × M_solvent) × 1000, with M in g/mol. For χ = 0.02 in water: 0.02 ÷ (0.98 × 18.015) × 1000 = 1.133 mol/kg.

What is the difference between mole fraction and mole percent?

Mole percent is simply the mole fraction × 100; χ = 0.25 is 25 mol%.

Is mole fraction the same as volume fraction for gases?

For ideal gases, yes: equal volumes contain equal numbers of moles at the same temperature and pressure, so mol% = vol%.

Sources

  1. IUPAC Compendium of Chemical Terminology (Gold Book)
  2. OpenStax: Chemistry 2e
  3. LibreTexts Chemistry

Cite this calculator

Speedy Calculator. (2026). Mole Fraction Calculator. Speedy Calculator. https://speedycalculator.com/calculators/chemistry/mole-fraction/