Mole Fraction Calculator
Calculate mole fraction (X) of components in a mixture. Mole fraction = moles of component / total moles
Mole Fraction: X = n / n(total)
Total Moles
2.0000 mol
Mole Fraction A (XA)
0.500000
Mole %
50.00%
Mole Fraction B (XB)
0.500000
Mole %
50.00%
Verification:
XA + XB = 1.000000
Sum of all mole fractions should equal 1
What is Mole Fraction?
Mole fraction (X) is a way of expressing the concentration of a component in a mixture as the ratio of the number of moles of that component to the total number of moles of all components. It is a dimensionless quantity that ranges from 0 to 1. The sum of all mole fractions in a mixture always equals 1. Mole fractions are particularly useful in gas mixtures and for calculating partial pressures using Dalton's law.
What Is Mole Fraction?
Mole fraction (X) is a dimensionless concentration unit that expresses the ratio of the number of moles of one component to the total number of moles of all components in a mixture. It ranges from 0 to 1, and the sum of all mole fractions in any mixture must equal exactly 1. Mole fraction is one of the most fundamental concentration units because it relates directly to the number of molecules, which governs thermodynamic behavior.
Mole fraction is particularly important in gas-phase chemistry and physical chemistry. Dalton's law of partial pressures states that the partial pressure of a gas in a mixture equals its mole fraction times the total pressure. Raoult's law uses mole fraction to calculate the vapor pressure of solvents in ideal solutions. These relationships make mole fraction the natural unit for thermodynamic calculations involving phase equilibria.
Unlike molarity, mole fraction is independent of temperature and pressure. Unlike molality, it accounts for the relative amounts of all components in the mixture, not just solute relative to solvent. This makes it ideal for describing the composition of gas mixtures, azeotropes, and multi-component liquid systems in chemical engineering.
The Mole Fraction Formula
The mole fraction is calculated by dividing the moles of a specific component by the total moles of all components in the mixture.
Mole Fraction Formula
Where:
- X_i= Mole fraction of component i (dimensionless, 0 to 1)
- n_i= Number of moles of component i
- n_total= Total number of moles of all components
How to Use This Calculator
Calculate mole fractions for binary or ternary mixtures:
- Select Number of Components: Choose 2 for a binary mixture or 3 for a ternary mixture.
- Enter Moles of Component A: Input the number of moles for the first component.
- Enter Moles of Component B: Input the number of moles for the second component.
- Enter Moles of Component C (if applicable): For ternary mixtures, input the third component's moles.
- View Results: The calculator displays each mole fraction as a decimal and percentage, the total moles, and a verification that the fractions sum to 1.
The progress bars visually represent each component's mole fraction, making it easy to compare relative amounts at a glance.
Converting Between Concentration Units
Mole fraction can be converted to other concentration units if additional information is available. To convert mole fraction to molarity, you need the density of the solution and the molar mass of the solute. To convert to molality, you need the molar mass of the solvent. These conversions are essential for connecting thermodynamic calculations (which use mole fraction) to laboratory measurements (which often use molarity).
For binary solutions, the conversion from mole fraction Xβ to molality mβ is: mβ = Xβ / (Mβ Γ (1 β Xβ)), where Mβ is the molar mass of the solvent in kg/mol. For converting to molarity: Mβ = (Xβ Γ Ο Γ 1000) / (Mβ Γ (1 β Xβ) + Mβ Γ Xβ), where Ο is the solution density.
These conversions highlight why mole fraction is preferred in physical chemistry β it requires no volume measurements and is independent of temperature, making it the most fundamental way to express composition.
Real-World Applications
Mole fraction is essential in gas-phase thermodynamics. Dalton's law states that the partial pressure of each gas in a mixture equals its mole fraction multiplied by the total pressure. This is critical for calculating gas partial pressures in respiration, combustion, and atmospheric chemistry. For example, the mole fraction of COβ in Earth's atmosphere is approximately 0.00042 (420 ppm), which determines its partial pressure and greenhouse effect contribution.
In distillation and vapor-liquid equilibrium, Raoult's law relates the vapor composition to the liquid mole fractions. Distillation column design relies on these relationships to separate components based on their different volatilities. Azeotropic mixtures, where vapor and liquid have the same composition, represent a fundamental limit on distillation separation.
In electrolyte solutions, mole fractions are used in activity coefficient calculations that correct for non-ideal behavior. The Debye-HΓΌckel theory and its extensions use mole fractions to describe how ions interact in concentrated solutions. In materials science, alloy phase diagrams plot phase boundaries as functions of mole fractions.
Worked Examples
Binary Mixture
Problem:
A mixture contains 3 moles of ethanol and 7 moles of water. Calculate the mole fractions.
Solution Steps:
- 1Total moles = 3 + 7 = 10 mol
- 2X(ethanol) = 3 / 10 = 0.3000
- 3X(water) = 7 / 10 = 0.7000
- 4Verification: 0.3000 + 0.7000 = 1.0000
Result:
X(ethanol) = 0.3000 (30.00%), X(water) = 0.7000 (70.00%)
Ternary Gas Mixture
Problem:
A gas mixture contains 2 mol Nβ, 1 mol Oβ, and 0.5 mol Ar. Find the mole fractions.
Solution Steps:
- 1Total moles = 2 + 1 + 0.5 = 3.5 mol
- 2X(Nβ) = 2 / 3.5 = 0.5714
- 3X(Oβ) = 1 / 3.5 = 0.2857
- 4X(Ar) = 0.5 / 3.5 = 0.1429
- 5Verification: 0.5714 + 0.2857 + 0.1429 = 1.0000
Result:
X(Nβ) = 0.5714 (57.14%), X(Oβ) = 0.2857 (28.57%), X(Ar) = 0.1429 (14.29%)
Partial Pressure from Mole Fraction
Problem:
In a gas mixture at 2 atm total pressure, the mole fraction of COβ is 0.05. What is the partial pressure of COβ?
Solution Steps:
- 1Dalton's law: P_i = X_i Γ P_total
- 2P(COβ) = 0.05 Γ 2 atm
- 3P(COβ) = 0.10 atm = 10.13 kPa
Result:
Partial pressure of COβ = 0.10 atm (10.13 kPa)
Tips & Best Practices
- βMole fraction is dimensionless β it has no units.
- βThe sum of all mole fractions must equal exactly 1.000 β use this as a verification check.
- βMole fraction is temperature-independent, unlike molarity.
- βUse Dalton's law to convert mole fractions to partial pressures for gas mixtures.
- βMole fraction is the natural unit for Raoult's law and vapor-liquid equilibrium calculations.
- βFor binary mixtures, X_A + X_B = 1, so knowing one mole fraction automatically gives the other.
Frequently Asked Questions
Sources & References
Last updated: 2026-06-06
Help us improve!
How would you rate the Mole Fraction Calculator?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: Chemistry: The Central Science
by Brown, LeMay, Bursten