Mole Fraction Calculator
Calculate mole fractions of up to four components from moles or from masses with molar masses.
Used for solution concentration and gas mixtures.
Mole Fraction
Mole fraction (denoted χ or x) is the ratio of moles of one component to total moles in a mixture. Unlike mass percent, it is dimensionless and scales perfectly with the gas laws and Raoult’s law.
Formula
χᵢ = nᵢ / Σnⱼ
The sum of all mole fractions in any mixture equals exactly 1.
Worked Example: 50 g Water + 30 g Ethanol
- Water: 50 g ÷ 18.015 g/mol = 2.776 mol
- Ethanol: 30 g ÷ 46.07 g/mol = 0.651 mol
- Total: 3.427 mol
- χ_water = 2.776 / 3.427 = 0.810
- χ_ethanol = 0.651 / 3.427 = 0.190
The sum 0.810 + 0.190 = 1.000 ✓.
Why Use Mole Fraction Instead of Mass %?
| Property | Best Concentration Unit |
|---|---|
| Gas mixture partial pressures | Mole fraction (Dalton’s law) |
| Vapor-liquid equilibrium | Mole fraction (Raoult’s law) |
| Colligative properties | Mole fraction or molality |
| Density / volume calc | Mass fraction |
| Cooking, casual mixing | Mass or volume percent |
Dalton’s Law Connection
For an ideal gas mixture:
P_i = χᵢ × P_total
Each component’s partial pressure equals its mole fraction times the total pressure. This is why mole fractions are the natural variable for atmospheric chemistry, scuba mixes, and chemical reactor design.
Raoult’s Law Connection
For an ideal liquid mixture:
P_i = χᵢ × P*ᵢ
where P*ᵢ is the pure-component vapor pressure. Real mixtures deviate from Raoult’s law, but the mole fraction is still the right axis to plot vapor-liquid diagrams against.
Common Conversions
mole fraction → molality (m): m = χ_solute / (χ_solvent × M_solvent), where M_solvent is in kg/mol (0.018015 for water) mole fraction → ppm: ppm ≈ χ × 10⁶ (for dilute mixtures)
Caveats
When mixing components by mass or volume, you cannot just average mole fractions.
Convert each component to moles first, then take the ratio.
For non-ideal solutions, especially near phase boundaries or high concentrations, activities replace simple mole fractions in the equilibrium equations.
Mass Percent Is Not Mole Fraction
The two rankings can even disagree about which component dominates. Take the 50 g water plus 30 g ethanol mixture above: water is 62.5% by mass but 81.0% by mole, because an ethanol molecule weighs about two and a half times what a water molecule does. Anything driven by how many particles are present, which covers vapor pressure, freezing point and osmotic pressure, tracks the 81% figure, not the 62.5% one. That is the whole reason mole fraction exists as a separate unit.
If you are working in mass mode, fill in a molar mass for every component you enter. A component with a mass but no molar mass cannot be converted to moles, so it is dropped from the total, and the page will tell you which ones it skipped.
How we build and check this calculator
This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.
SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.
More Chemistry Calculators
- Antoine Vapor Pressure Calculator
- Beer-Lambert Law Absorbance Calculator
- Crystal Lattice Density Calculator
- Electronegativity and Bond Type Calculator
- ICE Table Equilibrium Calculator
- Isoelectric Point (pI) Calculator
- Ka and pH Calculator (Acid Dissociation)
- Mass Percent Calculator
- Oxidation State Calculator
- Percent Ionization Calculator
- PPM / PPB Concentration Converter
- Acid-Base Neutralization Calculator