Mole fraction (symbol x) is the ratio of the number of moles of one component to the total number of moles in a mixture. It is a dimensionless number that always falls between 0 and 1, and the sum of all mole fractions in a mixture equals 1.
Formula
For a mixture of components A, B, C, …, the mole fraction of component A is:
xA = nA / (nA + nB + nC + …)
- xA – mole fraction of component A (unitless)
- nA – amount of component A in moles (mol)
- nB, nC – amounts of other components in moles (mol)
Because the total moles appear in the denominator, mole fraction is always between 0 and 1. If you have only one component, its mole fraction is 1. The sum of all mole fractions in a mixture is always exactly 1.
Worked Example
Suppose you have 0.5 mol of NaCl (component 1) and 1.5 mol of water (component 2). Using the calculator defaults:
- Total moles = 0.5 + 1.5 = 2.0 mol
- Mole fraction of NaCl = 0.5 / 2.0 = 0.25
- Mole fraction of water = 1.5 / 2.0 = 0.75
- Check: 0.25 + 0.75 = 1.0
The calculator gives the same result: xNaCl = 0.2500 and xwater = 0.7500.
Assumptions
- The mixture is homogeneous and the amounts are expressed in moles (not grams or liters).
- No chemical reaction occurs between components; the mole fraction simply reflects the composition.
- For gases, mole fraction is equivalent to the partial pressure divided by total pressure (Dalton’s law) only if the gases behave ideally.
Why Use Mole Fraction Instead of Molarity or Molality?
Mole fraction is temperature-independent because it is based on moles, not volume. Molarity (mol/L) changes with temperature because liquids expand or contract, altering volume. Molality (mol/kg solvent) is also temperature-independent, but mole fraction is more convenient when you have multiple solutes or when you are working with gas mixtures. In physical chemistry, mole fraction appears in Raoult’s law, Henry’s law, and in expressing equilibrium constants for reactions in solution.
For example, the vapor pressure of a solvent above a solution is given by Raoult’s law: Psolvent = xsolvent × P°solvent, where P° is the vapor pressure of the pure solvent. This works best for ideal solutions.
How to Calculate Mole Fraction from Mass or Volume
Often you are given masses or volumes, not moles. The steps are:
- Convert each mass to moles using the molar mass: n = mass (g) / molar mass (g/mol).
- If you have a volume of a solution and its density, convert volume to mass first, then to moles.
- Add all mole amounts to get total moles.
- Divide each component’s moles by the total.
Example: 10 g of NaCl (molar mass 58.44 g/mol) in 100 g of water (molar mass 18.015 g/mol).
- Moles NaCl = 10 / 58.44 = 0.1711 mol
- Moles water = 100 / 18.015 = 5.551 mol
- Total = 5.722 mol
- xNaCl = 0.1711 / 5.722 = 0.0299 ≈ 0.03
- xwater = 5.551 / 5.722 = 0.9701 ≈ 0.97
Notice that even though the mass of water is 10 times the mass of NaCl, the mole fraction of NaCl is small because water’s molar mass is much lower.
Common Mistakes and Misconceptions
- Using grams instead of moles: Mole fraction is a ratio of moles, not masses. You must convert.
- Forgetting to include all components: In a solution with a solute and solvent, both count. In air, nitrogen, oxygen, argon, and carbon dioxide all count.
- Assuming mole fraction equals mass fraction: They are different. Mass fraction uses masses, mole fraction uses moles.
- Thinking mole fraction can exceed 1: It cannot by definition.
- Confusing mole fraction with molarity: Molarity has units mol/L; mole fraction is unitless.
Mole Fraction in Gas Mixtures
For an ideal gas mixture, the mole fraction of a gas is equal to the ratio of its partial pressure to the total pressure:
xi = Pi / Ptotal
This follows from the ideal gas law, where the number of moles of each gas is proportional to its partial pressure at constant temperature and volume. For example, dry air at sea level has approximately xN2 = 0.78, xO2 = 0.21, and xAr = 0.01. If the total pressure is 1 atm, the partial pressure of oxygen is 0.21 atm.
This relationship is used in scuba diving (to calculate partial pressures of breathing gases), in respiratory physiology, and in industrial gas mixtures.
Mole Fraction in Solutions and Colligative Properties
Colligative properties (vapor pressure lowering, boiling point elevation, freezing point depression, osmotic pressure) depend on the number of solute particles, not their identity. Mole fraction is directly used in Raoult’s law for vapor pressure lowering:
ΔP = xsolute × P°solvent
For a non-volatile solute, the vapor pressure of the solvent decreases proportionally to the solute’s mole fraction. In a dilute solution, mole fraction is approximately equal to the ratio of moles of solute to moles of solvent, which is often small (e.g., 0.01).
For freezing point depression, the formula uses molality, not mole fraction, but mole fraction is still useful for understanding the thermodynamics of mixing.
Frequently Asked Questions
Is mole fraction the same as mole percent?
Mole percent is mole fraction multiplied by 100. For example, a mole fraction of 0.25 is 25 mole percent. Both are unitless ratios; mole percent is just a way to express the same number as a percentage.
Can mole fraction be negative?
No. Moles are always positive or zero, so mole fraction is always between 0 and 1. A negative mole fraction would imply a negative amount of a substance, which is physically impossible.
How do I find mole fraction if I only have molarity?
You need the density of the solution and the molar masses. Molarity gives moles of solute per liter of solution. From density, you can find the mass of 1 L of solution, subtract the mass of solute, and get the mass of solvent. Convert that to moles, then compute mole fraction.
Why is mole fraction used in Raoult’s law instead of molarity?
Raoult’s law describes the vapor pressure of a solvent over a solution based on the fraction of solvent molecules at the surface. That fraction is best represented by the mole fraction, because it counts molecules (moles) relative to all molecules present. Molarity depends on volume, which changes with temperature, and does not directly reflect the proportion of solvent molecules.
Does mole fraction change with temperature?
No, because mole fraction is based on moles, not volume. Moles do not change with temperature (unless a reaction occurs or components evaporate). Molarity changes with temperature because volume changes.
What is the sum of all mole fractions in a mixture?
It is always exactly 1. This is a useful check for your calculations. If the sum is not 1, you have either missed a component or made an arithmetic error.
Related
Formula used
in m1 | Moles of component 1 | mol | 0.5 | 0 in m2 | Moles of component 2 | mol | 1.5 | 0 out x1 | Mole fraction of component 1 | - | m1 / (m1 + m2) | 4 out x2 | Mole fraction of component 2 | - | m2 / (m1 + m2) | 4
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Liquid Mole Fraction: Definition & How to Calculate
- Mole Fraction Calculator & Definition Explained0.200000
- Mole Fraction: Formula and Calculation Steps0.2000 mol/L
- Tidal Volume Percent: Normal Range & How to Calculate87.0 %
- PPM to Volume Percentage: How to Convert0.0500 %
- PowerShell Set Volume to 80%: Script & Guide