Mole Fraction Calculator
Find the mole fraction of any component from mole amounts or from masses, and convert a known mole fraction into mass percent and molality.
⚗️ What is Mole Fraction?
Mole fraction is the amount of one component in a mixture divided by the total amount of everything present, counted in moles rather than grams or litres. For a component A the definition is xA = nA / ntotal, and in a simple two component mixture that becomes xA = nA / (nA + nB). It is dimensionless, it always lies between 0 and 1, and the fractions of all components in any mixture add to exactly 1. Multiply by 100 and you have mole percent, the same information on a per hundred scale. Because it counts particles instead of weighing them, mole fraction is the natural concentration unit whenever the physics depends on how many molecules are present rather than how heavy they are.
That distinction shows up constantly in practice. Raoult's law expresses the vapour pressure above a solution as the mole fraction of each component times its pure vapour pressure, because vapour pressure lowering is a counting effect at the liquid surface. Dalton's law does the same thing for gases, where an ideal gas mixture has partial pressures equal to mole fraction times total pressure, and where mole fraction is numerically identical to volume fraction. Chemical engineers write distillation and absorption balances in mole fractions so that the equilibrium relationships stay linear. Colligative property calculations for freezing point depression and boiling point elevation lean on the same counting logic, which is why mole fraction and molality, not molarity, appear in their derivations.
The most common misconception is that mole fraction and mass percent are interchangeable. They agree only when the components share the same molar mass, which almost never happens. A water and ethanol mixture at 25 mole percent ethanol works out to about 46 mass percent ethanol, because ethanol at 46.07 g/mol is roughly 2.6 times heavier per molecule than water at 18.015 g/mol. A related point is that mole fraction is temperature independent, since amounts of substance do not change when a solution warms up. Molarity does change, because volume expands, and that is precisely why phase equilibrium work avoids molarity.
This calculator handles the three routes chemists actually take. Enter mole amounts directly and it returns each component's mole fraction, the mole percent, and the total. Enter masses with molar masses and it converts to moles first, reports both mole fractions, and builds a table of moles, fractions, and mass percent for each component so you can see where the numbers diverge. Enter a known solute mole fraction with the two molar masses and it converts to mass percent and molality on a one mole basis, showing every intermediate mass. Each mode plots the relationship it computes, including the mass percent curve against an equal molar mass reference line that makes the size of the molar mass effect immediately visible.
📐 Formula
📖 How to Use This Calculator
Steps
💡 Example Calculations
Example 1 — A Simple Two Component Mixture
2 mol of component A mixed with 3 mol of component B
Example 2 — A Dilute Component
0.75 mol of a minor component with 2.25 mol of the major component
Example 3 — Ethanol in Water from Masses
23.0 g of ethanol (46.07 g/mol) dissolved in 100 g of water (18.015 g/mol)
Example 4 — One Mole of Salt in a Kilogram of Water
58.44 g of NaCl (58.44 g/mol) in 900 g of water (18.015 g/mol)
Example 5 — Converting a Salt Mole Fraction to Mass Percent and Molality
Mole fraction 0.05 of NaCl (58.44 g/mol) in water (18.015 g/mol)
Example 6 — The Ethanol Mole Fraction versus Mass Percent Gap
Mole fraction 0.25 of ethanol (46.07 g/mol) in water (18.015 g/mol)
❓ Frequently Asked Questions
🔗 Related Calculators
What is the mole fraction formula?
The mole fraction of component A is x_A = n_A / n_total, the moles of A divided by the total moles of everything present. In a two component mixture that is x_A = n_A / (n_A + n_B). Mole fraction is dimensionless, always falls between 0 and 1, and all component fractions in a mixture sum to exactly 1.
How do you calculate mole fraction from mass?
Convert each mass to moles by dividing by its molar mass, then divide one component's moles by the total. For 23.0 g of ethanol (46.07 g/mol) in 100 g of water (18.015 g/mol): n = 0.4992 and 5.5509 mol, total 6.0502 mol, so the ethanol mole fraction is 0.4992/6.0502 = 0.0825.
Is mole fraction the same as mass percent?
No, unless every component has an identical molar mass. Mole fraction counts molecules while mass percent weighs them. A solution that is 25 mole percent ethanol in water is about 46.02 mass percent ethanol, because each ethanol molecule carries about 2.6 times the mass of a water molecule.
How do you convert mole fraction to mass percent?
Take a basis of exactly 1 mole of solution. The solute contributes x times its molar mass in grams, the solvent contributes (1 - x) times its molar mass. Mass percent = 100 x (x times M_solute) divided by the sum. With x = 0.05 for NaCl (58.44 g/mol) in water (18.015 g/mol), that gives 14.58%.
How do you convert mole fraction to molality?
Molality = 1000 x / [(1 - x) x M_solvent], with the solvent molar mass in g/mol. For x = 0.05 NaCl in water, molality = 1000 x 0.05 / (0.95 x 18.015) = 2.9215 mol/kg. The formula comes from a 1 mole basis, where the solvent mass in kilograms is (1 - x) times M_solvent divided by 1000.
Why do mole fractions always add up to 1?
Because each fraction is that component's share of the same total. Summing them gives (n_A + n_B + ...) divided by n_total, which is n_total divided by n_total, exactly 1. Any set of computed fractions that fails to sum to 1 contains an arithmetic error, so the check costs nothing and catches a lot.
What is mole percent?
Mole percent is simply the mole fraction multiplied by 100. A mole fraction of 0.4 is 40 mole percent. It is the same quantity expressed on a per hundred scale, and mole percents across a mixture sum to 100 exactly as fractions sum to 1.
Why does Raoult's law use mole fraction rather than mass percent?
Because vapour pressure lowering depends on how many solvent molecules occupy the surface, not on how heavy they are. Raoult's law states that the partial vapour pressure of a component equals its mole fraction in the liquid times its pure vapour pressure, so it is inherently a counting relationship.
Is mole fraction affected by temperature?
No. Mole fraction depends only on amounts of substance, which do not change when a solution is heated or cooled. Molarity does change with temperature because the solution volume expands. That temperature independence is exactly why mole fraction and molality are preferred in phase equilibrium and colligative property work.
How is mole fraction used for gas mixtures?
For ideal gases the mole fraction equals the volume fraction, and by Dalton's law the partial pressure of a component is its mole fraction times the total pressure. Dry air at a 0.209 oxygen mole fraction and 101.325 kPa total gives an oxygen partial pressure of 21.18 kPa.
Can mole fraction be greater than 1?
No. Every mole fraction lies between 0 and 1 inclusive, because the numerator is always part of the denominator. A value of 1 means the sample is a pure substance with nothing else present, and a value of 0 means the component is entirely absent.
What is the difference between mole fraction and molality?
Mole fraction divides the solute moles by the total moles of solution, so it is bounded between 0 and 1. Molality divides the solute moles by the solvent mass in kilograms, so it has units of mol/kg and grows without bound as the solvent fraction shrinks. Both are temperature independent, unlike molarity.