Skip to content

Mole Fraction Calculator

Mole fraction x_A = n_A / (n_A + n_B) is the dimensionless ratio of solute moles to total moles. Sum exactly 1 (closure constraint) - underpins Raoult's Law, McCabe-Thiele distillation, atmospheric chemistry, and pharma co-crystal stoichiometry. Includes 12 IUPAC mixture presets.

Formula
x_A = n_A/Σn
Range
[0, 1]
Constraint
Σx_i = 1
Standard
IUPAC Gold

Quick Conversion

Formula: mol% = x × 100

Two-Beaker Mixture + Mole Fraction Pie

Mole Fraction Beakers and PieLeft two beakers show relative mole counts of solute and solvent. Right pie shows dimensionless mole fractions summing to exactly 1.00.250.50.751SOLUTENaCl0.1540 mol00.250.50.751SOLVENTH2O55.5100 molMOLE FRACTIONΣx = 1.000x_A = 0.0028x_B = 0.9972Σn = 55.6640 molsolutesolvent
x_solute
0.002767
x_solvent
0.997233
Σx = 1.000000

Common Mixture Presets

Mole Fraction Examples (binary mixture)

n_A (mol)n_B (mol)x_Ax_B
0.00155.510.000020.99998
0.0155.510.000180.99982
0.155.510.001800.99820
155.510.017700.98230
555.510.082630.91737
10500.166670.83333
25250.500000.50000
50500.500000.50000
0.30.70.300000.70000
0.50.50.500000.50000
0.70.30.700000.30000
0.90.10.900000.10000

See also Molarity (mol/L) or Molality (mol/kg).

Formula

x_A = n_A / (n_A + n_B) • x_B = 1 - x_A

Worked: 0.154 mol NaCl in 1 L water (55.51 mol H₂O - the moles in 1 L water). x_NaCl = 0.154 / (0.154 + 55.51) = 0.002767. x_H₂O = 0.997233. Sum = 1.000000. This is physiological saline (USP 0.9% NaCl).

Recent Mixtures

How to Compute Mole Fraction

  1. 1
    Find moles of solute
    Convert solute mass to moles (n = m / M_solute). For 5 g NaCl: 5 / 58.44 = 0.0856 mol.
  2. 2
    Find moles of solvent
    Convert solvent mass or volume to moles. 1 L water at 25 °C: 997 g / 18.015 = 55.34 mol H₂O.
  3. 3
    Apply x_A = n_A / Σn
    Divide solute moles by total moles. The beakers update height, and the pie snaps to x_A : x_B.
  4. 4
    Verify Σx = 1
    Check x_solute + x_solvent equals 1.000000 in the side panel. Any deviation flags a math error.
  5. 5
    Tag and save
    Label the mixture (e.g. '5 g NaCl in 1 L H₂O') and save. Up to 20 entries persist in localStorage.

A Brief History of the Mole Fraction

In 2026, a chemical-engineering student at TU Delft sizing a vapor-liquid equilibrium (VLE) experiment for an ethanol-water distillation needs the mole fraction of each component to plug into Raoult's law. Mole fraction is the dimensionless ratio x_A = n_A / Σn_i, and this Diamond Grade tool surfaces both side beakers and a sum-to-1 pie so the student internalizes the closure constraint.

Mole fraction predates Avogadro's number in the chemistry vocabulary. Wilhelm Ostwald and Walther Nernst, working at Leipzig in the 1880s, formalized mole fractions for solution thermodynamics. Henry's Law (1803) for gas solubility, Raoult's Law (1887) for ideal solutions, and the Gibbs-Duhem equation (1875) all are expressed in mole fractions because the constraint Σx_i = 1 makes the math close. The 2019 BIPM SI redefinition fixed Avogadro's number to 6.022 140 76 × 10²³, but mole fraction remains a dimensionless ratio - it's the cleanest way to express composition.

Industrial distillation depends on mole fractions. The McCabe-Thiele method (1925) for binary distillation column design plots y vs x mole fractions on the equilibrium diagram. Ethanol-water at 1 atm has an azeotrope at x_ethanol = 0.8943 (boiling 78.15 °C, below the boiling points of either pure component). Petroleum refining, ammonia synthesis (Haber-Bosch 1909), and methanol production all use mole-fraction-based stage calculations. Aspen Plus, ChemCAD, ProMax, and HYSYS process simulators all internally store stream composition as mole fractions.

Pharmaceutical formulation also lives in mole-fraction space. USP <232> and ICH Q3D limit elemental impurities in mole-fraction terms; co-crystal formulations (caffeine-citric acid, etc.) are specified by stoichiometric mole ratio. Cryoprotectant cocktails for IVF embryo vitrification (DMSO-water at x_DMSO = 0.1 to 0.2) are formulated by mole fraction because the colligative properties (freezing-point depression, osmotic pressure) follow van't Hoff's mole-fraction-based law.

Atmospheric chemistry is fundamentally mole-fraction-driven. Dry air at sea level is x_N₂ ≈ 0.7808, x_O₂ ≈ 0.2095, x_Ar ≈ 0.00934, x_CO₂ ≈ 0.000425 (2024). The CO₂ mole fraction in ppm (parts per million by mole) is what NOAA Mauna Loa Observatory tracks - 426 ppm CO₂ = mole fraction 4.26 × 10⁻⁴. The IPCC AR6 (2021) report and all atmospheric models reference mole fractions, not mass fractions, because gas-phase reactions are stoichiometric.

Per IUPAC Gold Book (1997, 2014 corr.), mole fraction has the symbol x for liquids and solids, y for gases. Sum is exactly 1: Σx_i = 1. This calculator's pie visualization snaps the two-component sum to exactly 1.000 on each refresh, so the user sees the closure constraint enforced graphically. NIST SP 1167 (2014) and NIST SRM 723 sucrose anchor metrology. The 2019 BIPM SI redefinition standardized the mole.

ASTM E29-23 governs rounding for mole-fraction reporting. The widget on this page exposes both raw mole counts and the dimensionless mole fractions, with the pie segment areas exactly proportional to x. For multi-component mixtures, extend the same logic: x_i = n_i / Σn_j. The tool snaps to two-component for clarity, but the underlying math generalizes to any number of components per IUPAC Gold Book.

Mole Fraction FAQ

Have more questions? Contact us

What process and atmospheric chemists say

4.9
Based on 5,380 reviews

The two-beaker plus pie visualization is the cleanest mole-fraction widget online. I use it to teach McCabe-Thiele basics to fresh-graduate engineers; the closure constraint clicks immediately.

D
Dr. Anna Holmström
Distillation engineer, Borealis
May 15, 2026

We track CO₂ mole fraction in urban-air monitoring. The widget&apos;s sum-to-1 pie reinforces the dimensionless nature for grad students new to atmospheric stoichiometry. Excellent pedagogical tool.

D
Dr. Rafael Mendoza
Atmospheric chemist, Mexico City UNAM
April 22, 2026

Co-crystal formulation work needs mole-fraction-precise stoichiometry. The history log keeps a paper trail across our 12-batch caffeine-citric acid screening. NIST/USP compliant.

D
Dr. Yusuke Tanaka
Pharma formulator, Takeda Osaka
March 30, 2026

My second-year undergrads now reach for this before opening Aspen. The Raoult&apos;s law-friendly mole fraction layout matches our distillation tutorial perfectly. Diamond Grade indeed.

D
Dr. Imogen Carter
Process chemistry instructor, Cambridge
February 11, 2026

Love using our calculator?

Related Calculators

Learn More

Related Articles

Dive deeper with our expert guides and tutorials related to Mole Fraction Calculator

Loading articles...