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):
- Moles of water: 100 ÷ 18.015 = 5.551 mol.
- Moles of ethanol: 100 ÷ 46.069 = 2.171 mol.
- Total: 7.722 mol.
- 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.