Skip to content

Mole Fraction & Mass Percent Calculator

Convert between mole fraction, mass percent and ppm for mixtures of up to six components, with average molar mass and partial pressures by Dalton’s law.

Calculator Details

Mole fraction of component 1:0.718885See results ↓

Masses in grams or amounts in moles

Up to six substances in the mixture

Component 1

Mass in grams, or amount in moles, depending on the basis

g/mol from standard atomic weights

Component 2

Mass in grams, or amount in moles, depending on the basis

g/mol from standard atomic weights

For partial pressures by Dalton’s law; 101.325 kPa = 1 atm

Your Results

Mole fraction of component 1: 0.718885

Mole fraction of component 1

0.718885

50% by mass

Total amount

7.72159 mol

Total mass

200 g

Average molar mass

25.9014 g/mol

Total mass ÷ total moles

In 200 g (7.722 mol) of mixture: component 1 χ = 0.7189 (50% by mass), component 2 χ = 0.2811 (50% by mass).

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Mole fractions

Mole fractions

Detailed Breakdown

Composition of the mixturePartial pressures assume an ideal gas mixture at 101.325 kPa.
ComponentMolesMass (g)Mole fractionMass %ppm (mass)Partial pressure (kPa)
Component 15.550931000.71888550500,00072.841
Component 22.170661000.28111550500,00028.484
Total7.7215920011001,000,000101.325

How This Calculator Works

How It’s Calculated

nᵢ = mᵢ ÷ Mᵢ  ·  χᵢ = nᵢ ÷ Σn  ·  wᵢ = mᵢ ÷ Σm × 100%  ·  pᵢ = χᵢ × P

Your calculation: component 1 is 5.55093 mol out of 7.72159 mol in total, so χ₁ = 5.55093 ÷ 7.72159 = 0.718885. By mass it is 100 g of 200 g = 50%. The mole fractions add up to 1 and the mass percentages to 100.

Frequently Asked Questions

What is a mole fraction?

The amount of one component divided by the total amount of all components, in moles: χᵢ = nᵢ ÷ Σn. It has no unit, and the mole fractions of a mixture add up to exactly 1. IUPAC calls it the amount fraction.

How do I convert mass percent to mole fraction?

Take 100 g of the mixture, so each mass percent becomes grams. Divide each by its molar mass to get moles, add them up, and divide each component’s moles by the total. Equal masses of water and ethanol give a water mole fraction of about 0.72, because a water molecule is much lighter.

What is the difference between mole fraction and mass fraction?

Mole fraction counts molecules; mass fraction weighs them. They differ whenever the components have different molar masses. Mass fraction (or mass percent) is easier to measure on a balance; mole fraction is what gas laws, Raoult’s law and many equilibrium calculations use.

What is Dalton’s law of partial pressures?

In a mixture of ideal gases, each gas exerts the pressure it would have alone, and the partial pressures add up to the total: P = Σpᵢ. Each partial pressure is pᵢ = χᵢ × P. Oxygen at a mole fraction of 0.21 in air at 101.325 kPa has a partial pressure of about 21.3 kPa.

What does ppm mean?

Parts per million. By mass, 1 ppm is 1 mg of a substance per kg of mixture (0.0001%). Gas concentrations are often quoted in ppm by volume, which for ideal gases equals mole fraction × 10⁶. This calculator shows ppm by mass.

Why use mole fraction instead of molarity?

Mole fraction doesn’t depend on temperature or volume, works for gases, liquids and solids alike, and doesn’t need a density. Molarity is more convenient for preparing solutions in volumetric glassware. The two are linked through the density of the solution.

What is the average molar mass of a mixture?

The total mass divided by the total moles, which is also Σχᵢ × Mᵢ. Dry air has an average molar mass of about 28.96 g/mol. It is the molar mass to use when treating a gas mixture as a single ideal gas.

Uses the IUPAC definitions of amount (mole) fraction and mass fraction for up to six components, with molar masses you enter, and Dalton's law for partial pressures of ideal gases. It leaves out non-ideal gas behaviour, ppm by volume for non-ideal mixtures, dissociation of salts into ions in solution, and component names (they are numbered). Results are rounded to 6 significant figures.

Mole Fraction Calculator: Mass Percent, ppm and Partial Pressure

By FindMySum · Last reviewed

A mole fraction calculator describes what a mixture is made of in two ways at once: by the number of molecules of each component (mole fraction) and by weight (mass percent). It also gives parts per million, the average molar mass of the mixture and, for gases, each component's partial pressure. Enter masses or moles with molar masses for up to six components; this article explains the conversions behind the result.

Mole fraction and mass fraction

For a mixture of components i:

  • Moles: nᵢ = mᵢ ÷ Mᵢ (mass divided by molar mass)
  • Mole fraction: χᵢ = nᵢ ÷ Σn
  • Mass fraction: wᵢ = mᵢ ÷ Σm, or × 100 for mass percent

Both kinds of fraction are pure numbers. The mole fractions add up to 1 and the mass fractions to 1 (100%), which is a useful check on any hand calculation.

Worked example: the calculator's defaults

A mixture of 100 g of water (18.015 g/mol) and 100 g of ethanol (46.069 g/mol):

  1. Moles of water: 100 ÷ 18.015 = 5.551 mol.
  2. Moles of ethanol: 100 ÷ 46.069 = 2.171 mol.
  3. Total: 7.722 mol.
  4. Mole fraction of water: 5.551 ÷ 7.722 = 0.719; of ethanol, 0.281.

By mass the mixture is 50 : 50, but by molecules it is about 72 : 28, because a water molecule weighs less than half as much as an ethanol molecule. The average molar mass is 200 g ÷ 7.722 mol = 25.90 g/mol.

From mass percent to mole fraction, and back

If you only know mass percentages, imagine 100 g of mixture: each percentage becomes a mass in grams, and you can enter those directly. To go the other way, enter amounts in moles: the calculator multiplies each by its molar mass to get masses, then the mass percentages. With 2 mol of nitrogen (28.014 g/mol) and 0.5 mol of oxygen (31.998 g/mol), the mole fraction of nitrogen is 0.800 but its mass percent is 77.8%.

Parts per million

For trace components, percentages get awkward. Parts per million by mass is the mass fraction times one million: 1 mg of a substance in 1 kg of mixture is 1 ppm, or 0.0001%. Drinking-water limits and soil contamination levels are often quoted this way. For gases, ppm usually means parts per million by volume, which for ideal gases equals the mole fraction times one million; the calculator's mole fraction column gives that directly.

Dalton's law of partial pressures

In a mixture of ideal gases each gas behaves as if it were alone in the container. Its partial pressure is:

pᵢ = χᵢ × P

and the partial pressures add up to the total pressure P. In air at 101.325 kPa, oxygen at a mole fraction of 0.21 contributes about 21.3 kPa. At the top of a 5,000 m mountain the total pressure is roughly half, so oxygen's partial pressure is roughly half too, even though its mole fraction is unchanged; that is why breathing is harder at altitude. Divers use the same law to keep the oxygen partial pressure in their breathing gas within safe limits at depth.

Average molar mass

The average molar mass of a mixture is its total mass divided by its total moles, or equivalently Σχᵢ × Mᵢ. It lets you treat a mixture as a single substance, for example to find the density of a gas mixture with the ideal gas law. Dry air comes out at about 28.96 g/mol.

Getting good inputs

Use molar masses from standard atomic weights, and include water of crystallisation for hydrated salts. Make sure every component is counted: leaving out the solvent is the most common way to get mole fractions that don't add up. For gas mixtures, use absolute rather than gauge pressure for the total. The calculator numbers the components 1 to 6; keep a note of which substance is which.

More questions

How does mole fraction relate to Raoult's law?

Raoult's law says the vapour pressure of a component above an ideal liquid mixture is its mole fraction in the liquid times its pure vapour pressure: pᵢ = χᵢ × pᵢ*. That is why mole fraction, not mass percent, is the natural measure for boiling points, distillation and vapour-pressure lowering by a dissolved solute.

Can a mole fraction be greater than 1?

No. Each mole fraction is part of a total, so it lies between 0 and 1, and all of them together add up to exactly 1. If a calculation gives more than 1, a mass was probably divided by the wrong molar mass or one component was left out of the total.

How do I handle a salt that dissociates in water?

It depends on the question. For composition by formula units, use the salt's molar mass as entered. For colligative properties, each formula unit of NaCl gives two ions in solution, so the effective number of dissolved particles doubles. Enter the ions as separate components if you need particle fractions.

What is the mole fraction of oxygen in air?

Dry air is about 78.08% nitrogen, 20.95% oxygen, 0.93% argon and 0.04% carbon dioxide by volume, which for ideal gases equals mole fraction. Oxygen's mole fraction is about 0.21 at any altitude; what falls with height is the total pressure, and with it the partial pressure of oxygen.

What is mass percent of a solution?

The mass of solute divided by the mass of the whole solution, times 100. A solution made from 10 g of salt and 90 g of water is 10% by mass, not 11%: the total is 100 g. Mass percent is the w/w figure on many reagent bottles.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy