molecalculator

Moles & Molar Mass

Mass Fraction to Mole Fraction Calculator

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

Component mole fraction 0.5195 fraction
Component mole percent
51.95 mol%
= Component mole fraction × 100
Component mass fraction
0.25 fraction
Set in the form below
Component molar mass
18.015 g/mol
Set in the form below
You enter
Component mass fraction (fraction), Component molar mass (g/mol), Other component molar mass (g/mol)
You get
Component mole fraction (fraction), Component mole percent (mol%)
Rounding
4 dp · 2 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 calculator converts a component’s mass fraction into its mole fraction using the component and mixture molar masses. Enter the component mass fraction and both molar masses; it returns the component’s mole fraction, a dimensionless value from 0 to 1.

Formula

For a binary mixture, the mole fraction of component A is its amount in moles divided by the total amount in moles. When the mixture is described by mass fraction, the equivalent formula is:

xA = (wA/MA) / [(wA/MA) + ((1 − wA)/MB)]

  • xA is the mole fraction of component A, in mol/mol (dimensionless).
  • wA is the mass fraction of A, in g/g (dimensionless); its value is between 0 and 1.
  • MA is A’s molar mass, in g/mol.
  • MB is the other component’s molar mass, in g/mol.

The expression calculates the mole amount represented by each component in a hypothetical 1 g mixture. The component amounts are proportional to wA/MA and (1 − wA)/MB; dividing A’s amount by their sum gives its mole fraction. The 1 g basis is only a convenient calculation device. Any total sample mass produces the same fraction.

Worked Example

Use the calculator defaults: w = 0.25, MA = 18.015 g/mol, and MB = 58.44 g/mol. For a 1 g mixture, the mass of A is 0.25 g and the mass of B is 1 − 0.25 = 0.75 g.

  1. Amount of A: 0.25 g / 18.015 g/mol = 0.0138776 mol.
  2. Amount of B: 0.75 g / 58.44 g/mol = 0.0128337 mol.
  3. Total amount: 0.0138776 mol + 0.0128337 mol = 0.0267113 mol.
  4. Mole fraction of A: 0.0138776 mol / 0.0267113 mol = 0.51955, which rounds to 0.5196.
  5. Mole percent: 0.51955 × 100 = 51.955 mol%, which rounds to 51.96 mol%.

Thus, a component that makes up 25% of the mixture by mass makes up about 51.96% of its moles in this example. The difference occurs because the example’s component A has a much lower molar mass than component B, so the same mass corresponds to more molecules in molar accounting.

Assumptions

  • The mixture has exactly two components, and their mass fractions sum to 1.
  • The supplied molar masses apply to the substances and forms present in the mixture.
  • The calculation describes composition; it does not assume ideal mixing or require a particular temperature or pressure.
  • Mass fractions and mole fractions are ratios, not percentages. Enter 25% as 0.25, not 25.

How the Conversion Works

Mass fraction and mole fraction describe different ways of expressing composition. A mass fraction compares a component’s mass with the total mixture mass. A mole fraction compares its amount of substance, measured in moles, with the total moles of all components. Molar mass links the two: divide a component’s mass by its molar mass to obtain its amount in moles.

For a two-component mixture, the other component’s mass fraction is 1 − wA. For example, if A is 0.25 by mass, B is 0.75 by mass. Convert each component’s mass to moles before forming the mole fraction. It is not correct to divide the mass fraction by the total molar mass or to assume mass percent and mole percent are interchangeable.

For a mixture with more than two components, use the general form:

xi = (wi/Mi) / Σj(wj/Mj)

Here, each component i has mass fraction wi and molar mass Mi; the sum includes every component. The calculator on this page is specifically for a binary mixture. For multiple components, calculate each wj/Mj, add those amounts, and divide each component’s amount by the total.

Using and Interpreting the Result

Enter mass fraction as a decimal from 0 to 1. A value of 0.08 means 8% by mass; a value of 1 means the sample consists entirely of A. Enter molar masses in g/mol. If a molar mass is supplied in another unit, convert it to g/mol before using this calculator. The output is dimensionless: 0.5196 means 0.5196 mol of A per mole of total mixture, or 51.96 mol%.

The component’s identity matters because its molar mass determines how many moles correspond to a given mass. If MA equals MB, the mole fraction equals the mass fraction. If MA is lower than MB, then for an interior mass fraction (between 0 and 1) the mole fraction of A is higher than its mass fraction. If MA is higher, its mole fraction is lower. At the pure-component limits, 0 and 1, the mass and mole fractions match.

Common Errors and Limits

  • Entering a percentage as a whole number: enter 40% as 0.40. The calculator accepts fractions, not percentage numbers.
  • Using the wrong molar mass: check the chemical formula and relevant form, such as whether a compound includes water of crystallization or a counterion.
  • Mixing units: both molar masses must use the same unit. This calculator labels them g/mol.
  • Rounding too soon: keep several digits through the mole calculations, then round the final result to an appropriate precision.
  • Applying the two-component expression to a larger mixture: include every component in the denominator for a multicomponent mixture.

The calculation assumes the stated composition and molar masses are known. It does not determine composition from measured data, account for uncertainty, or tell you whether a mixture is chemically stable. For a solution, the solvent and every dissolved component must be included if the desired mole fraction is for the complete mixture. If data are reported on a dry-mass basis or omit some species, the result describes only that defined basis.

Frequently Asked Questions

How do I convert mass fraction to mole fraction?
Divide each component’s mass fraction by its molar mass, then divide the component’s result by the sum of those values for all components. For a binary mixture, the other mass fraction is 1 − wA.

Can mole fraction be greater than 1?
No. A mole fraction ranges from 0 to 1, inclusive. The mole fractions of all components in a complete mixture add up to 1, subject to rounding.

Is mass fraction the same as mass percent?
Mass percent is mass fraction multiplied by 100. For example, a mass fraction of 0.12 is 12% by mass. Convert the percent to a decimal before entering it here.

Does this work for more than two components?
Yes, the principle extends to any number of components, but the binary calculator does not accept a full component list. Calculate wi/Mi for every component and divide each value by their total sum.

Why can mole fraction differ greatly from mass fraction?
Mole fraction counts moles, while mass fraction compares masses. Components with lower molar masses contribute more moles per gram, so their mole fractions can be much larger than their mass fractions.

Related

Formula used
in w | Component mass fraction | fraction | 0.25 | 0 | 1
in ma | Component molar mass | g/mol | 18.015 | 0.000001
in mb | Other component molar mass | g/mol | 58.44 | 0.000001
out x | Component mole fraction | fraction | (w / ma) / ((w / ma) + ((1 - w) / mb)) | 4
out pct | Component mole percent | mol% | x * 100 | 2

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 →