molecalculator

Moles & Molar Mass

Mole Fraction: Definition, Formula & Examples

Calculator No. 01-12507 · Updated · Formula and assumptions shown below

Mole fraction of solute 0.0036
Molarity
0.2000 mol/L
= Mass of solute ÷ Molar mass ÷ (Final solution volume ÷ 1000)
Concentration in millimolar
200.00 mM
= Molarity × 1000
Mass of solute
2.922 g
Set in the form below
You enter
Mass of solute (g), Molar mass (g/mol), Final solution volume (mL)
You get
Mole fraction of solute, Molarity (mol/L), Concentration in millimolar (mM)
Rounding
4 dp · 2 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

This calculator finds the mole fraction of a component in a mixture. You enter the mass of the solute, its molar mass, and the final solution volume, and it returns the mole fraction of the solute (and the molarity). The mole fraction is a dimensionless number that expresses the ratio of moles of one component to the total moles of all components in a mixture.

Formula

The mole fraction of a component i in a mixture is defined as:

xi = ni / ntotal

where:

  • xi = mole fraction of component i (dimensionless, 0 to 1)
  • ni = number of moles of component i (mol)
  • ntotal = total moles of all components in the mixture (mol)

For a solution made by dissolving a solute in a solvent, the mole fraction of the solute is:

xsolute = nsolute / (nsolute + nsolvent)

In this calculator, the solvent is assumed to be water at 25 °C with a density of 997 g/L and a molar mass of 18.015 g/mol. The number of moles of solute is mass divided by molar mass, and the number of moles of solvent is (volume in L) × density / molar mass.

Worked Example

Using the default values: mass of solute = 2.922 g, molar mass = 58.44 g/mol (NaCl), final volume = 250 mL.

  1. Moles of solute: nsolute = 2.922 g / 58.44 g/mol = 0.05000 mol
  2. Volume in liters: 250 mL = 0.250 L
  3. Mass of water: 0.250 L × 997 g/L = 249.25 g
  4. Moles of water: 249.25 g / 18.015 g/mol = 13.836 mol
  5. Total moles: 0.05000 + 13.836 = 13.886 mol
  6. Mole fraction of solute: 0.05000 / 13.886 = 0.003601
  7. Molarity: 0.05000 mol / 0.250 L = 0.2000 mol/L

The calculator gives x = 0.0036 (rounded to 4 decimal places) and molarity = 0.2000 mol/L. Notice that the mole fraction is much smaller than the molarity because the solvent contributes many more moles.

Assumptions

  • The solvent is pure water at 25 °C with density 997 g/L.
  • The solute dissolves completely and does not change the volume significantly (the final volume is used, not the solvent volume).
  • For ionic solutes like NaCl, the mole fraction of the undissociated formula unit is calculated; if you want the mole fraction of individual ions, you would multiply by the number of ions per formula unit (e.g., 2 for NaCl).
  • No other components are present.

What Is Mole Fraction Used For?

Mole fraction is a concentration unit used in chemistry and physics whenever the ratio of moles matters more than volume. It appears in Raoult’s law for vapor pressure lowering, in Henry’s law for gas solubility, in the Nernst equation for electrochemical cells, and in the calculation of partial pressures in gas mixtures. Because it is temperature-independent (unlike molarity, which changes with volume), mole fraction is preferred in thermodynamics and colligative property calculations.

In a gas mixture, the mole fraction of a gas is equal to its partial pressure divided by the total pressure (Dalton’s law). In solutions, mole fraction is used to express the composition of ideal solutions and to calculate properties like freezing point depression and boiling point elevation, though molality is more common for those.

How to Read the Result

The mole fraction is always between 0 and 1. A value of 0.0036 means that out of every 10,000 moles of mixture, 36 moles are solute. For a dilute solution, the mole fraction of solute is small, and the mole fraction of solvent is close to 1. The sum of all mole fractions in a mixture always equals 1.

In the calculator, the first output is the mole fraction of the solute. The second and third outputs give molarity and millimolar concentration, which are volume-based and often more familiar. If you need the mole fraction of the solvent, subtract the solute’s mole fraction from 1.

Common Mistakes and How to Avoid Them

  • Using mass instead of moles: Mole fraction requires moles, not grams. Always convert mass to moles using molar mass.
  • Forgetting the solvent’s moles: For a solution, you must include the solvent’s moles. Many people mistakenly use only the solute moles.
  • Using volume instead of mass for solvent: To get moles of solvent, you need its mass. If you have volume, multiply by density to get mass, then divide by molar mass.
  • Ignoring temperature: Density of water changes with temperature. At 25 °C it is 997 g/L, but at 20 °C it is 998 g/L, and at 100 °C it is 958 g/L. For precise work, use the density at your actual temperature.
  • Confusing mole fraction with mass fraction: Mass fraction uses masses, not moles. They are numerically different unless the molar masses are equal.

Limitations of the Calculator

This calculator assumes the solute does not significantly change the solution volume and that the solvent is pure water. For concentrated solutions, the volume may change upon mixing, and the density of the solution may differ from that of pure water. In such cases, you need the actual density of the solution to compute accurate moles of solvent.

For ionic solutes, the mole fraction of the formula unit (e.g., NaCl) is given. If you need the mole fraction of individual ions (Na⁺ and Cl⁻), you must account for the number of particles formed. For a strong electrolyte like NaCl, each formula unit gives two ions, so the total moles of particles would be nsolute × 2. However, the mole fraction of the compound as a whole is still nsolute / (nsolute + nsolvent).

For gases, mole fraction is often used with partial pressures. The calculator here is for a liquid solution; for gas mixtures, you would use the same formula with moles of each gas from the ideal gas law.

Frequently Asked Questions

What is the difference between mole fraction and molarity?

Mole fraction is the ratio of moles of one component to total moles of all components; it has no units and does not depend on temperature. Molarity is moles of solute per liter of solution; it has units of mol/L and changes with temperature because volume changes. For dilute aqueous solutions, molarity and molality are numerically close, but mole fraction is always different.

Can mole fraction be greater than 1?

No. Mole fraction is a ratio of a part to the whole, so it must be between 0 and 1. The sum of all mole fractions in a mixture is exactly 1. If you get a value greater than 1, you likely made an arithmetic error or used mass instead of moles.

How do I calculate mole fraction of a gas in a mixture?

For an ideal gas mixture, the mole fraction of gas A is nA / ntotal, where n is the number of moles. By Dalton’s law, this equals the partial pressure of A divided by the total pressure: xA = PA / Ptotal. You can use either moles or pressures, as long as you are consistent.

Why is mole fraction used in Raoult’s law?

Raoult’s law states that the partial vapor pressure of a component in an ideal solution is equal to the mole fraction of that component times its pure vapor pressure: PA = xA × PA°. Because mole fraction directly reflects the proportion of molecules at the surface, it is the natural concentration measure for vapor pressure and other colligative properties.

What is the mole fraction of water in a 1 M NaCl solution?

For a 1 M NaCl solution, you have 1 mole of NaCl in 1 liter of solution. Assuming the volume is 1 L and the density of water is 997 g/L, the mass of water is about 997 g, which is 997/18.015 ≈ 55.3 mol. Total moles = 1 + 55.3 = 56.3. Mole fraction of water = 55.3/56.3 ≈ 0.982. The mole fraction of NaCl is 1/56.3 ≈ 0.0178.

Does mole fraction change with temperature?

No, mole fraction is based on moles, which do not change with temperature (assuming no reaction or phase change). Molarity and molality can change with temperature because volume or mass of solvent may change, but mole fraction remains constant as long as the composition is fixed.

Related

Formula used
in m | Mass of solute | g | 2.922 | 0
in mm | Molar mass | g/mol | 58.44 | 0.001
in v | Final solution volume | mL | 250 | 0.001
out x | Mole fraction of solute | - | (m / mm) / ((m / mm) + (v / 1000) * 997 / 18.015) | 4
out c | Molarity | mol/L | m / mm / (v / 1000) | 4
out cmm | Concentration in millimolar | mM | c * 1000 | 2

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

The whole Moles & Molar Mass section →