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.
Quick Conversion
Formula: mol% = x × 100
Two-Beaker Mixture + Mole Fraction Pie
Common Mixture Presets
Mole Fraction Examples (binary mixture)
| n_A (mol) | n_B (mol) | x_A | x_B |
|---|---|---|---|
| 0.001 | 55.51 | 0.00002 | 0.99998 |
| 0.01 | 55.51 | 0.00018 | 0.99982 |
| 0.1 | 55.51 | 0.00180 | 0.99820 |
| 1 | 55.51 | 0.01770 | 0.98230 |
| 5 | 55.51 | 0.08263 | 0.91737 |
| 10 | 50 | 0.16667 | 0.83333 |
| 25 | 25 | 0.50000 | 0.50000 |
| 50 | 50 | 0.50000 | 0.50000 |
| 0.3 | 0.7 | 0.30000 | 0.70000 |
| 0.5 | 0.5 | 0.50000 | 0.50000 |
| 0.7 | 0.3 | 0.70000 | 0.30000 |
| 0.9 | 0.1 | 0.90000 | 0.10000 |
See also Molarity (mol/L) or Molality (mol/kg).
Formula
x_A = n_A / (n_A + n_B) • x_B = 1 - x_AWorked: 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
- 1Find moles of soluteConvert solute mass to moles (n = m / M_solute). For 5 g NaCl: 5 / 58.44 = 0.0856 mol.
- 2Find moles of solventConvert solvent mass or volume to moles. 1 L water at 25 °C: 997 g / 18.015 = 55.34 mol H₂O.
- 3Apply x_A = n_A / ΣnDivide solute moles by total moles. The beakers update height, and the pie snaps to x_A : x_B.
- 4Verify Σx = 1Check x_solute + x_solvent equals 1.000000 in the side panel. Any deviation flags a math error.
- 5Tag and saveLabel 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.
What process and atmospheric chemists say
“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.”
“We track CO₂ mole fraction in urban-air monitoring. The widget's sum-to-1 pie reinforces the dimensionless nature for grad students new to atmospheric stoichiometry. Excellent pedagogical tool.”
“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.”
“My second-year undergrads now reach for this before opening Aspen. The Raoult's law-friendly mole fraction layout matches our distillation tutorial perfectly. Diamond Grade indeed.”
Love using our calculator?
Related Calculators
Related Articles
Dive deeper with our expert guides and tutorials related to Mole Fraction Calculator