Mole Fraction Calculator
A 3 mol share of nitrogen in 4.05 mol of mixed gas has a mole fraction of 0.7407, which is 74.07 mole percent. Divide the moles of one component by the total moles of the mixture, then multiply that fraction by the total pressure to get the partial pressure of that component.
| Component | Moles | Mole fraction | Mole % | Mass % | Partial pressure |
|---|
Every component goes into the denominator, and the fractions are shown to four places, so they can add to 0.9999. All of the arithmetic runs in your browser and nothing is uploaded.
Enter the moles or the grams of each component in a mixture and get the mole fraction, mole percent, mass percent and, if you give a total pressure, the partial pressure of each part.
Key takeaways
- Mole fraction = moles of one component / total moles, so 3 / 4.05 = 0.7407 for nitrogen
- Mole percent is the fraction times 100, so 0.7407 becomes 74.07 percent
- Partial pressure = mole fraction x total pressure, so 0.7407 x 101.325 kPa = 75.06 kPa
- Equal weights are not equal shares: 100 g water plus 100 g ethanol is 71.88 mole percent water
- Every component has to go into the denominator, and the finished fractions must add up to 1
On this page
- Mole fraction is a share of particles, not of weight
- The formula: one part divided by the whole
- Worked example: 3 mol nitrogen, 1 mol oxygen, 0.05 mol argon
- Same mass, different mole fraction
- Reading the air around you
- Mole fraction, molality, molarity and mass percent
- Where mole fraction earns its place, and where it misleads
Mole fraction is a share of particles, not of weight
A mole fraction answers a question about a mixture that a scale cannot: of every hundred particles in the pot, how many belong to one component. It is written with the Greek letter chi, runs from 0 to 1, and the fractions of all components add up to exactly 1.
Weight is a poor guide to that share because molecules differ in mass. A mix that is half sugar and half water by weight is mostly water by particle count, since one water molecule weighs 18.02 units against 342.30 for one sucrose molecule. Mole fraction puts every component on the same footing, one particle at a time, which is why gas pressures, boiling points and reaction ratios are worked out with it rather than with percentages by weight.
Two numbers describe the same idea. The mole fraction is the decimal, 0.7407. The mole percent is that decimal times 100, or 74.07 percent. The mole itself was pinned down in 2019, when the SI fixed the Avogadro constant at 6.02214076 x 10^23 particles per mole, as NIST describes. That decision set how many particles a mole holds, not how a share is counted.
The formula: one part divided by the whole
Mole fraction of a component equals its moles divided by the total moles of every component in the mixture. The denominator includes the components present in tiny amounts, which is where most arithmetic slips happen.
- Nitrogen: 3 / 4.05 = 0.7407
- Oxygen: 1 / 4.05 = 0.2469
- Argon: 0.05 / 4.05 = 0.0123
Add those three and you get 0.9999, short of 1 only because each figure was rounded to four places. The exact sum is 1.
In a gas mixture the fraction does a second job. Dalton's law says each gas pushes with its own partial pressure, and that pressure is the fraction times the total, so the partial pressure equals the fraction multiplied by the total pressure. At one atmosphere total, nitrogen carries 0.7407 atm of the load. In kilopascals the same bar reads 0.7407 x 101.325 = 75.06 kPa.
With two components there is a shortcut: the second fraction is 1 minus the first. With three or more, every component has to be divided by the total on its own, and the results must be checked against 1.
Worked example: 3 mol nitrogen, 1 mol oxygen, 0.05 mol argon
Take a mixed gas bottle holding 3 moles of nitrogen, 1 mole of oxygen and 0.05 mole of argon. The total is 4.05 moles. The table below gives the share and the pressure of each part at a total pressure of 101.325 kPa, which is one atmosphere.
| Component | Moles | Mole fraction | Mole percent | Partial pressure |
|---|---|---|---|---|
| Nitrogen | 3 | 0.7407 | 74.07 | 75.06 kPa |
| Oxygen | 1 | 0.2469 | 24.69 | 25.02 kPa |
| Argon | 0.05 | 0.0123 | 1.23 | 1.25 kPa |
| Total | 4.05 | 1.0000 | 100.00 | 101.33 kPa |
The pressure column adds back to 101.33 kPa, which is the total rounded. Argon is 1.23 percent of the particles and 1.25 kPa of the pressure: for an ideal gas the share of particles and the share of pressure are the same number. That is the practical value of a mole fraction on a gas line, since a pressure gauge reads the fraction directly.
Same mass, different mole fraction
Weight percentages hide the particle count, and the gap shows up as soon as the two components have different molar masses. Mix 100 grams of water with 100 grams of ethanol. The water is 100 / 18.02 = 5.5494 moles and the ethanol is 100 / 46.07 = 2.1706 moles, so the mixture holds 7.72 moles in total.
| Component | Mass | Molar mass | Moles | Mass percent | Mole percent |
|---|---|---|---|---|---|
| Water | 100 g | 18.02 g/mol | 5.5494 | 50.00 | 71.88 |
| Ethanol | 100 g | 46.07 g/mol | 2.1706 | 50.00 | 28.12 |
| Total | 200 g | 7.72 | 100.00 | 100.00 |
An even split by weight is 71.88 percent water by particles, because an ethanol molecule is 46.07 / 18.02 = 2.56 times heavier than a water molecule, so the same weight brings fewer of them.
A salt solution shows the same effect in the other direction. In 100 grams of a 10 percent brine there are 10 grams of sodium chloride, which is 10 / 58.44 = 0.1711 mole, and 90 grams of water, which is 90 / 18.02 = 4.994 moles. The mole fraction of salt is 0.1711 / 5.166 = 0.0331, so a solution labeled 10 percent holds 3.31 mole percent salt. Reading that label as a particle count overstates the salt by a factor of three.
Reading the air around you
Dry air is the mixture most people already own a sample of. NOAA lists the makeup of the atmosphere as 78.084 percent nitrogen, 20.946 percent oxygen and 0.934 percent argon by volume, with carbon dioxide and trace gases making up the rest. For a gas at ordinary pressure, percent by volume and mole percent are the same number.
| Gas | Share by volume | Mole fraction | Partial pressure at 101.325 kPa |
|---|---|---|---|
| Nitrogen | 78.084% | 0.78084 | 79.12 kPa |
| Oxygen | 20.946% | 0.20946 | 21.22 kPa |
| Argon | 0.934% | 0.00934 | 0.95 kPa |
Those three rows add up to 101.29 kPa, a little under the 101.325 kPa total, and the missing 0.04 kPa is the carbon dioxide and the trace gases left out of the table. A breath of air at sea level therefore pushes oxygen into your lungs at about 21.2 kPa, which is the number that matters at altitude: the fraction stays near 0.21 while the total pressure falls, so the oxygen pressure drops with it.
Water vapor is the part that moves. NOAA puts it at up to about 4 percent of the total volume, so a muggy day can hold a water mole fraction near 0.04, which at one atmosphere is 0.04 x 101.325 = 4.05 kPa of water vapor pressure.
Mole fraction, molality, molarity and mass percent
Four measures get used for the same solution, and they answer different questions. The table lines them up so you can tell which one a recipe or a lab sheet is quoting.
| Measure | Formula | Moves with temperature | Where it shows up |
|---|---|---|---|
| Mole fraction | moles of one part / total moles | No | Gas mixtures, vapor pressure, distillation |
| Mole percent | mole fraction x 100 | No | Labels and quick comparisons |
| Mass percent | mass of one part / total mass x 100 | No | Brines, alloys, cleaning solutions |
| Molality | moles of solute / kilograms of solvent | No | Freezing point and boiling point work |
| Molarity | moles of solute / liters of solution | Yes, the volume expands | Titrations and stock solutions |
Water is the bridge between mole fraction and molality, because one kilogram of water is 1000 / 18.02 = 55.51 moles. For a dilute water solution the fraction of solute is roughly molality divided by molality plus 55.51, or about 0.018 times the molality. A 1 molal solution works out to 1 / 56.51 = 0.0177, and a 0.5 molal solution to 0.5 / 56.01 = 0.0089.
That shortcut breaks once the solute is a large share of the mixture. At 10 mole percent the denominator is doing real work, and at 50 mole percent the approximation is useless. Use the full division whenever the solute is more than a few percent of the particles.
Where mole fraction earns its place, and where it misleads
Raoult's law is the classic use. The vapor pressure above a solution is the mole fraction of the solvent times the vapor pressure of the pure solvent. A 10 percent brine has a water fraction of 4.994 / (4.994 + 0.1711) = 0.9669, so its vapor pressure is 96.69 percent of pure water at the same temperature. That small drop is the reason salt water boils a touch hotter and why a salted road stays wet longer.
Distillation leans on the same number, because vapor is richer in the lighter component than the liquid it left. The ethanol and water pair never fully separates by simple distillation: it stalls at an azeotrope near 95.6 percent ethanol by weight, where the vapor has the same composition as the liquid and the fraction stops changing.
Three places where the number misleads:
- It says nothing about volume in a liquid mixture. Fifty milliliters of water plus fifty milliliters of ethanol comes out a little under one hundred milliliters, so a mole fraction cannot be turned into a volume without the density of the final mix.
- It assumes the components behave ideally. Real mixtures pull on each other, and the ethanol and water pair is the standard example of a mixture that does not follow Raoult's law across the whole range.
- It is not a mass. Turning a fraction back into grams needs each molar mass, which is why a lab sheet usually gives both.
Related tools cover the neighbouring steps. The molarity calculator works in moles per liter of solution, the molar mass calculator builds a molar mass from a formula, and grams to moles handles the weight to particle step. This page starts where those stop: several components in one pot, and the share each one holds. When the components then react, percent yield picks up from the mole count.
Frequently asked questions
How do you calculate mole fraction?
Divide the moles of one component by the total moles of every component in the mixture. For 3 moles of nitrogen in a 4.05 mole gas mix, 3 / 4.05 = 0.7407, which is 74.07 mole percent.
What is the mole fraction of air?
Dry air is 0.78084 nitrogen, 0.20946 oxygen and 0.00934 argon by mole fraction, using the NOAA figures of 78.084, 20.946 and 0.934 percent by volume.
How do I turn a mass percent into a mole fraction?
Convert each mass to moles first. A 10 percent brine has 10 grams of salt and 90 grams of water per 100 grams, which is 0.1711 mole of salt and 4.994 moles of water, so the salt fraction is 0.0331.
Do mole fractions add up to 1?
Yes, exactly, because every component is divided by the same total. Rounding each figure to four places can leave a sum of 0.9999, which is a rounding gap, not an error.
What is the difference between mole fraction and mole percent?
One multiplication by 100. A fraction of 0.2469 is 24.69 mole percent. The fraction is what goes into formulas, the percent is what goes on a label or into a report.
How do I get partial pressure from a mole fraction?
Multiply the fraction by the total pressure. Oxygen at a fraction of 0.20946 in air at 101.325 kPa carries 0.20946 x 101.325 = 21.22 kPa.
Is mole fraction affected by temperature?
No, as long as nothing evaporates or reacts. It counts particles, not volume, so a warm solution and a cold one hold the same fraction, unlike molarity, which shifts as the solution expands.
What is the mole fraction of a 1 molal solution?
About 0.0177 in water. One kilogram of water is 55.51 moles, so 1 / (1 + 55.51) = 0.0177. The shortcut that multiplies molality by 0.018 holds only while the solution stays dilute.
Can a mole fraction be greater than 1?
No. If a result comes out above 1, the denominator is missing a component or the arithmetic dropped a term, since the parts can never exceed the whole.
Why is 50 percent ethanol by weight not 50 percent by moles?
Because an ethanol molecule weighs 46.07 and a water molecule weighs 18.02. Equal weights give 2.1706 moles of ethanol against 5.5494 moles of water, so ethanol is 28.12 mole percent.
How do I convert ppm to a mole fraction?
One part per million is a mole fraction of 0.000001, so multiply ppm by 1e-6. At 101.325 kPa one ppm of a gas has a partial pressure of 0.101325 Pa.
Does the calculator work for solids and liquids?
Yes, the division is the same for any mixture. Molar masses are entered per component, so an alloy or a solvent blend works the same way as a gas bottle.
Why is the argon row small in mole percent but still worth counting?
Argon is 0.934 percent of dry air, which is 0.00934 as a fraction and 0.95 kPa at sea level. Leaving it out shifts the nitrogen and oxygen fractions by about one percent of their own value.
How is this different from the molarity calculator?
Molarity is moles per liter of solution and needs a volume. Mole fraction needs only the moles of each component and stays valid when volume changes, which is why gas work uses it.
Spotted a wrong number or a broken result?
More Math tools
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.