molecalculator

Moles & Molar Mass

Mole Fraction to Mass Fraction: Step-by-Step

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

Mass fraction of component 1 0.1153
Mass fraction of component 2
0.8847
= 1 − Mass fraction of component 1
Mole fraction of component 1
0.25
Set in the form below
Molar mass of component 1
18.015 g/mol
Set in the form below
You enter
Mole fraction of component 1, Molar mass of component 1 (g/mol), Molar mass of component 2 (g/mol)
You get
Mass fraction of component 1, Mass fraction of component 2
Rounding
4 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.

This guide shows you how to convert a mole fraction (the ratio of moles of one component to total moles) into a mass fraction (the ratio of that component’s mass to the total mass of the mixture). You’ll need the molar masses of all components in the mixture. The conversion is essential when you have a composition expressed in moles but need it in mass for preparing solutions or calculating weight-based properties.

Formula

For a binary mixture (two components), the mass fraction of component 1 is:

w₁ = (x₁ × M₁) / (x₁ × M₁ + x₂ × M₂)

where:

  • x₁ = mole fraction of component 1 (dimensionless, 0 to 1)
  • x₂ = mole fraction of component 2 = 1 − x₁ (dimensionless)
  • M₁ = molar mass of component 1 (g/mol)
  • M₂ = molar mass of component 2 (g/mol)
  • w₁ = mass fraction of component 1 (dimensionless, 0 to 1)

For mixtures with more than two components, extend the denominator to include every component: wᵢ = (xᵢ × Mᵢ) / Σ(xⱼ × Mⱼ) over all j.

Worked Example

Suppose you have a mixture of water (H₂O, M₁ = 18.015 g/mol) and ethanol (C₂H₅OH, M₂ = 46.07 g/mol) with a mole fraction of water x₁ = 0.25. Then x₂ = 1 − 0.25 = 0.75.

Step 1: Multiply each mole fraction by its molar mass:

For water: 0.25 × 18.015 = 4.50375 g (per mole of mixture)

For ethanol: 0.75 × 46.07 = 34.5525 g (per mole of mixture)

Step 2: Add these to get the total mass per mole of mixture:

4.50375 + 34.5525 = 39.05625 g/mol

Step 3: Divide the component’s mass by the total:

w₁ = 4.50375 / 39.05625 ≈ 0.1153 (or 11.53%)

So the mass fraction of water is about 0.1153, and the mass fraction of ethanol is 1 − 0.1153 = 0.8847 (88.47%). The calculator above gives the same result.

Assumptions

  • The mixture is homogeneous and the mole fractions sum to 1.
  • You are using the molar masses of the pure components (not the mixture’s average molar mass).
  • Mass is additive (no chemical reaction or volume change affects the mass).

When to Use This Conversion

Use this conversion whenever you have a composition given in mole fraction (common in gas mixtures, vapor-liquid equilibrium, and reaction stoichiometry) but need the mass fraction for practical work like preparing solutions by weight, calculating density, or reporting weight percent. For example, air is often described by mole fraction (78% N₂, 21% O₂), but if you need to know how many grams of oxygen are in a liter of air, you convert to mass fraction.

How to Read the Result

The mass fraction is a dimensionless number between 0 and 1. Multiply by 100 to get weight percent. In the example, a mass fraction of 0.1153 means that 11.53% of the total mass is water, even though water is only 25% of the moles. This happens because ethanol is heavier per mole.

Common Mistakes

  • Forgetting that mole fractions sum to 1: If you have x₁, you must use x₂ = 1 − x₁, not a separate value that might not sum correctly.
  • Using mass fractions instead of mole fractions in the formula: The formula requires mole fractions, not percentages by mass. Convert weight percent to mole fraction first if needed.
  • Mixing up molar masses: Use the molar mass of each pure component, not the mixture’s average molar mass. For water, use 18.015 g/mol, not 18.0 if you need precision.
  • Rounding too early: Round only at the final step. In the example, if you round 4.50375 to 4.5 and 34.5525 to 34.55, you get 0.1152 instead of 0.1153, a small but avoidable error.
  • Ignoring units: Molar masses must be in the same units (g/mol). If you have kg/mol, convert to g/mol first.

Tips

  • Check that your mole fractions add to 1. If not, normalize them by dividing each by the sum.
  • For multi-component mixtures, use a spreadsheet or the calculator above with the extended formula.
  • If you need to go the other way (mass fraction to mole fraction), use x₁ = (w₁/M₁) / (w₁/M₁ + w₂/M₂ + …).
  • Remember that mass fraction is independent of the total amount, so it’s a convenient way to express composition.

Troubleshooting

If your result seems off, first verify that your mole fractions sum to 1. If they don’t, you may have copied a percentage without dividing by 100. For example, 25% should be 0.25, not 25.

If you’re getting a mass fraction greater than 1, check that you didn’t accidentally use the mole fraction of the wrong component in the numerator. The numerator must be the component you’re calculating the mass fraction for.

If you’re working with a mixture of more than two components, make sure you include all components in the denominator. Omitting one will overestimate the mass fraction.

If you’re unsure about the molar masses, look up the IUPAC standard atomic weights. For example, use 1.008 for H, 12.011 for C, 15.999 for O, and 14.007 for N. For compounds, sum the atomic weights times the number of atoms.

Frequently Asked Questions

Q: Can I convert mole fraction to mass fraction without molar masses?
A: No, you need the molar mass of every component. The conversion relies on the relationship between moles and mass through molar mass.

Q: What if I have more than two components?
A: Use the general formula: wᵢ = (xᵢ × Mᵢ) / Σ(xⱼ × Mⱼ) for all components j. The calculator above is for two components, but you can extend the formula manually.

Q: Is mass fraction the same as weight percent?
A: Yes, weight percent is mass fraction multiplied by 100. For example, a mass fraction of 0.1153 is 11.53 wt%.

Q: Why does the mass fraction differ from the mole fraction?
A> Because different substances have different molar masses. A component with a heavier molar mass will have a larger mass fraction than its mole fraction, and vice versa.

Q: Can I use this for gases?
A: Yes, for ideal gas mixtures, mole fraction is equal to volume fraction, so you can convert from volume percent to mass percent using the same method with molar masses.

Q: How do I convert mass fraction back to mole fraction?
A: Use x₁ = (w₁/M₁) / (w₁/M₁ + w₂/M₂ + …). This is the inverse operation.

Related

Formula used
in n1 | Mole fraction of component 1 | - | 0.25 | 0 | 1
in m1 | Molar mass of component 1 | g/mol | 18.015 | 0.001
in m2 | Molar mass of component 2 | g/mol | 46.07 | 0.001
out w1 | Mass fraction of component 1 | - | (n1 * m1) / (n1 * m1 + (1 - n1) * m2) | 4
out w2 | Mass fraction of component 2 | - | 1 - w1 | 4

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 →