Category

Mole Fraction Calculator — Find X for Solute, Solvent and Gas Mixtures

Calculate the mole fraction of any solute or solvent using two methods: moles of solute + solvent, or moles of solute + total solution. Supports metric (g, kg) and imperial (oz, lb) units. Also finds mole percent and molality.

0 calculations

Calculation Parameters

mol
g
g/mol
mol
kg
g/mol
mol

Enter Parameters

Fill in the form on the left and click "Calculate Mole Fraction".

What is mole fraction?

Mole fraction is a dimensionless concentration unit that expresses the ratio of the number of moles of one component to the total number of moles in a mixture or solution. It is represented by the symbol X (or sometimes χ) and always lies between 0 and 1 inclusive.

One key property: the sum of all mole fractions in a mixture always equals 1. This makes mole fraction particularly useful in thermodynamics, phase equilibrium calculations, and Raoult's law applications.

How to use the mole fraction calculator?

Our calculator supports two methods depending on the information you have:

⚫ Method 1 — Solute + Solvent moles

Use this method when you know the moles of solute and the moles of solvent separately:

  1. Select Method 1 at the top of the form.
  2. Enter the moles of solute (or tick "Calculate from mass" and enter mass + molar mass).
  3. Enter the moles of solvent (or tick "Calculate from mass" and enter mass + molar mass).
  4. Click Calculate Mole Fraction.

Tip: If you enter solvent mass in Method 1, the calculator also computes molality automatically.

⚫ Method 2 — Solute + Total solution moles

Use this method when you know the total moles in the entire solution:

  1. Select Method 2 at the top of the form.
  2. Enter the moles of solute.
  3. Enter the total moles of solution.
  4. Click Calculate Mole Fraction.

Note: The moles of solute must be less than the total moles of solution.

How to calculate the mole fraction of a solution

The mole fraction formula is:

Xsolute = nsolute / (nsolute + nsolvent)

or equivalently:

Xsolute = nsolute / ntotal

where n denotes the amount in moles. The mole fraction of the solvent is:

Xsolvent = 1 − Xsolute

Example

You dissolve 2 mol of NaCl (table salt) in 8 mol of water (H₂O):

  • nNaCl = 2 mol
  • nH₂O = 8 mol
  • ntotal = 10 mol
  • XNaCl = 2 / 10 = 0.2
  • XH₂O = 8 / 10 = 0.8

How to calculate the mole fraction of a gas?

For gas mixtures, the mole fraction of a particular gas equals the ratio of its partial pressure to the total pressure (Dalton's Law of Partial Pressures):

XA = PA / Ptotal = nA / ntotal

For example, dry air contains approximately 78.09% N₂ by mole fraction (XN₂ = 0.7809), 20.95% O₂ (XO₂ = 0.2095), and 0.93% Ar (XAr = 0.0093).

How to find mole percent

Mole percent (mol%) is simply the mole fraction multiplied by 100:

Mole % = X × 100%

In the NaCl example above, the mole percent of salt is 0.2 × 100 = 20 mol%.

How to convert mole fraction to molality

Molality (b) expresses the amount of solute per kilogram of solvent. To convert from mole fraction, you need the molar mass of the solvent (Msolvent):

b = Xsolute / (Xsolvent × Msolvent / 1000)

or equivalently:

b = nsolute / msolvent(kg)

Our calculator computes molality automatically when you enter solvent mass in Method 1.

Metric and imperial units

When entering mass to calculate moles, our tool supports:

  • Metric: solute in grams (g), solvent in kilograms (kg)
  • Imperial: solute in ounces (oz), solvent in pounds (lb)

Select your preferred unit system with the radio buttons, then enter the mass and molar mass — the calculator handles the unit conversion automatically.

FAQs

Can the mole fraction be greater than 1?
No. Mole fraction is always between 0 and 1 (inclusive), because it is a ratio of parts to the whole.
What does a mole fraction of 0 mean?
A mole fraction of 0 means the component is absent from the mixture.
What does a mole fraction of 1 mean?
A mole fraction of 1 means the substance is pure — it is the only component present.
Is mole fraction the same as mole percent?
No, but they are directly related. Mole percent = mole fraction × 100.
Why use mole fraction instead of molarity?
Unlike molarity, mole fraction is independent of temperature and pressure because it is based on moles, not volume. This makes it preferred in thermodynamics and gas-phase calculations.
How do I find the mole fraction of multiple solutes?
Run the calculator once for each solute using the same total moles of solution (Method 2). Or use Method 1 and add the moles of all other solutes to the "moles of solvent" field.

Calculation History

Loading...