molecalculator

Moles & Molar Mass

Mole Fraction: Definition and How to Calculate It

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

Molarity 0.2000 mol/L
Concentration in millimolar
200.00 mM
= Molarity × 1000
Mass of solute
2.922 g
Set in the form below
Molar mass
58.44 g/mol
Set in the form below
You enter
Mass of solute (g), Molar mass (g/mol), Final solution volume (mL)
You get
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.

A mole fraction (symbol x) is the ratio of the number of moles of one component to the total number of moles of all components in a mixture. It is a dimensionless number between 0 and 1 that expresses the proportion of a substance in a mixture without needing volume or temperature. For a mixture of substances A, B, and C, the mole fraction of A is xA = nA / (nA + nB + nC).

Formula

For a mixture of two components, the mole fraction of component A is:

xA = nA / (nA + nB)

where:

  • nA = number of moles of component A (mol)
  • nB = number of moles of component B (mol)

For a solution, you can also express mole fraction in terms of mass and molar mass:

xsolute = (msolute / Msolute) / [(msolute / Msolute) + (msolvent / Msolvent)]

where m is mass in grams and M is molar mass in g/mol. The sum of all mole fractions in a mixture always equals 1: xA + xB + … = 1.

Worked Example

Calculate the mole fraction of NaCl in a solution made by dissolving 2.922 g of NaCl (molar mass 58.44 g/mol) in 250.0 mL of water. Assume the density of water is 1.00 g/mL, so the mass of water is 250.0 g.

Step 1: Moles of NaCl:

nNaCl = 2.922 g / 58.44 g/mol = 0.05000 mol

Step 2: Moles of water (molar mass 18.015 g/mol):

nwater = 250.0 g / 18.015 g/mol = 13.877 mol (using 13.8773 for precision)

Step 3: Total moles:

ntotal = 0.05000 + 13.8773 = 13.9273 mol

Step 4: Mole fraction of NaCl:

xNaCl = 0.05000 / 13.9273 = 0.003590

The mole fraction of NaCl is approximately 0.00359, and the mole fraction of water is 1 − 0.00359 = 0.99641. This matches the calculator’s result when you enter the masses and molar masses (note: the calculator above computes molarity, not mole fraction; for mole fraction, use the formula directly).

Assumptions

  • The mixture is ideal (no volume change or interaction between components).
  • For solutions, the solvent is the component present in the largest amount.
  • Molar masses are based on IUPAC standard atomic weights (e.g., H 1.008, O 15.999).
  • For dilute aqueous solutions, the solvent mass is approximated as the solution mass if the solute mass is negligible.

When to Use Mole Fraction

Mole fraction is used in chemistry and physics whenever you need a concentration that is independent of temperature and pressure. Unlike molarity (mol/L), mole fraction does not change with temperature because it is based on moles, not volume. It appears in Raoult’s law for vapor pressure lowering, in Henry’s law for gas solubility, in colligative properties (boiling point elevation, freezing point depression), and in the definition of partial pressures in gas mixtures (Dalton’s law). For example, in a gas mixture, the partial pressure of a gas equals its mole fraction times the total pressure: Pi = xi × Ptotal.

How to Calculate Mole Fraction: Step-by-Step

  1. Identify all components in the mixture.
  2. Convert the mass of each component to moles using its molar mass: n = mass / molar mass.
  3. Add up the moles of all components to get the total number of moles.
  4. Divide the moles of the component of interest by the total moles.
  5. Check that the sum of all mole fractions equals 1.

Example: A mixture contains 2.0 g of ethanol (C2H5OH, M = 46.07 g/mol) and 10.0 g of water (M = 18.015 g/mol). Moles of ethanol = 2.0/46.07 = 0.0434 mol; moles of water = 10.0/18.015 = 0.5551 mol; total = 0.5985 mol; xethanol = 0.0434/0.5985 = 0.0725.

Common Mistakes and Misconceptions

A frequent error is confusing mole fraction with mass fraction or volume fraction. Mass fraction uses masses (g/g), volume fraction uses volumes (L/L), and mole fraction uses moles (mol/mol). Another common mistake is forgetting that the total moles must include all components, including the solvent. For example, in a 1 molal aqueous solution (1 mol solute per 1 kg water), the mole fraction of solute is not 1/1000; you must convert the water mass to moles: 1000 g / 18.015 g/mol = 55.5 mol, so xsolute = 1/(1+55.5) = 0.0177. Also, when using mole fraction in Raoult’s law, ensure you use the mole fraction in the liquid phase, not the vapor phase.

Mole Fraction vs. Other Concentration Units

Mole fraction is one of several ways to express concentration. Molarity (mol/L) is volume-based and changes with temperature. Molality (mol/kg solvent) is mass-based and temperature-independent, but it requires knowing the solvent mass. Mass percent (wt%) is easy to measure but not directly proportional to particle counts. Mole fraction is the most fundamental for thermodynamic calculations because it directly reflects the number of particles. For example, in a mixture of 1 mol of glucose and 9 mol of water, xglucose = 0.1, which means 10% of the particles are glucose molecules. This is particularly useful for colligative properties that depend on particle number.

Limitations and Practical Considerations

Mole fraction assumes that the mixture is homogeneous and that the components do not react with each other. For non-ideal solutions (e.g., concentrated electrolytes or mixtures with strong intermolecular forces), the mole fraction may not accurately predict properties like vapor pressure without activity coefficients. Also, for gases, mole fraction is equivalent to volume fraction only if the gases behave ideally and are at the same temperature and pressure. When measuring mole fraction experimentally, you need accurate masses and molar masses; for volatile liquids, evaporation can change the composition, so work quickly or use sealed containers. Always follow your lab method, the safety data sheet (SDS) and your supervisor when working with chemicals.

Frequently Asked Questions

What is the difference between mole fraction and mass fraction?

Mole fraction uses moles of each component divided by total moles, while mass fraction uses masses divided by total mass. For example, in a mixture of 10 g of NaCl (M=58.44) and 90 g of water (M=18.015), the mass fraction of NaCl is 10/100 = 0.1, but the mole fraction is (10/58.44) / [(10/58.44)+(90/18.015)] = 0.171/5.171 = 0.0331. They are different because the molar masses differ.

Can mole fraction be greater than 1?

No. Mole fraction is always between 0 and 1 because it is a part-to-whole ratio. 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 forgot to include all components.

How do I convert mole fraction to molarity?

To convert mole fraction to molarity, you need the density of the solution. Molarity (mol/L) = (xsolute × density × 1000) / (xsolute × Msolute + xsolvent × Msolvent), where density is in g/mL. This formula comes from relating moles of solute to volume of solution. For dilute aqueous solutions, you can approximate density as 1 g/mL, but for accuracy, measure it.

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. This is because the vapor pressure depends on the number of solute particles at the surface, which is directly proportional to the mole fraction. It works well for ideal solutions where intermolecular forces between components are similar.

What is the mole fraction of oxygen in air?

Dry air is approximately 78.08% nitrogen, 20.95% oxygen, 0.93% argon, and 0.04% carbon dioxide by volume. For ideal gases, volume fraction equals mole fraction, so the mole fraction of oxygen is about 0.2095. This is why the partial pressure of oxygen at sea level (1 atm) is about 0.2095 atm.

Conclusion

Mole fraction is a simple yet powerful way to express the composition of a mixture. It is temperature-independent, dimensionless, and directly related to particle counts, making it essential for thermodynamics, gas laws, and colligative properties. To calculate it, convert all component masses to moles, sum them, and divide the component’s moles by the total. Always double-check that your mole fractions sum to 1, and be mindful of the difference between mole fraction and other concentration units.

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 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 →