1. Home
  2. Chemistry
  3. Solutions & concentration
  4. Mole Fraction Calculator

Mole Fraction Calculator

Mole fractions of solute and solvent from their masses and molar masses.

ChemistryGrades 11–12BeginnerStep-by-step solution

Practice questions

Textbook-style questions. Press Solve in the tool to load the values and see the full solution. Underlined words are explained below.

  1. 46 g of ethanol (46 g/mol) is mixed with 90 g of water (18 g/mol). Find the mole fraction of each.

  2. Find the mole fraction of glucose when 18 g (180 g/mol) dissolves in 180 g of water.

Worked example

Here's the first practice question solved in full, so you can see exactly what you'll get. Try it on paper before you read the steps.

Question: 46 g of ethanol (46 g/mol) is mixed with 90 g of water (18 g/mol). Find the mole fraction of each.

Plan: how this problem is solved
  1. Write the given values in SI units
  2. Moles of solute
  3. Moles of solvent
  4. Mole fraction of solute
  5. Mole fraction of solvent (they add up to 1)
Answer
Mole fraction of solutexB = 0.1667
Mole fraction of solventxA = 0.8333
Step-by-step solution
  1. Write the given values in SI units
    wB=46 g
    MB=46 g/mol
    wA=90 g
    MA=18 g/mol
  2. Moles of solute
    nB=wBMB
    =4646
    =1 mol
  3. Moles of solvent
    nA=wAMA
    =9018
    =5 mol
  4. Mole fraction of solute
    xB=nBnA + nB
    =15 + 1
    =0.1667
  5. Mole fraction of solvent (they add up to 1)
    xA=1 − xB
    =1 − 0.1667
    =0.8333
Key idea: Mole fractions have no units and always add up to 1. They're used in Raoult's law for vapour pressure.

Terms used on this page

New to a word in the question or the solution? Here it is in simple language.

Solute, solvent and solution
The solute is what you dissolve (salt, sugar), the solvent is what it dissolves in (usually water), and the mixture is the solution.
Mole (mol)
A counting unit for particles: 1 mol = 6.022 × 10²³ particles. Moles = mass in grams ÷ molar mass.
Molar mass
Mass of one mole of a substance in grams. Add the atomic masses: NaOH = 23 + 16 + 1 = 40 g/mol.
Molarity (M)
Moles of solute in one litre of solution, in mol/L (written M). A 1 M NaOH solution has 40 g of NaOH in every litre.
Pressure (P)
Force per unit area. For gases it's often given in atm or bar; 1 atm = 101,325 Pa, 1 bar = 100,000 Pa.

Symbols in this solver

What each box asks for, and its unit.

SymbolWhat it meansSI unit
wBMass of soluteg (or mg, kg)
MBMolar mass of soluteg/mol
wAMass of solventg (or mg, kg)
MAMolar mass of solventg/mol

Formula & concept

Mole fractions of the solute and solvent in a two-part solution from their masses and molar masses.

xB = nBnA + nB

Key idea: Mole fractions have no units and always add up to 1. They're used in Raoult's law for vapour pressure.

How to use this calculator

  1. Type the known values from your question and pick the unit for each one.
  2. Press Solve step by step.
  3. Read the plan first. It lists the steps the solution will follow. Want to try it yourself? Tick Practice mode and the answer stays hidden until you ask for it.
  4. Check the answer, then go through each numbered step. Where there's a second method, it's shown after the main one.
  5. Stuck on a word? The terms section explains it in simple language.

Frequently asked questions

How does the Mole Fraction work?
You enter the values you know, pick their units and press Solve. The tool changes everything to SI units, applies the formula xB = (nB)/(nA + nB) and shows you each step: given data, formula, substitution and the final answer.
What is the key idea behind it?
Mole fractions have no units and always add up to 1. They're used in Raoult's law for vapour pressure.
Can I enter values in km, mm, kN or °C?
Yes. Each box has a unit list. The conversion to SI units is shown as the first step of the solution.
What if my answer doesn't match my book?
First check that you've picked the right units. Then see which constants your book uses and how many figures it rounds to. You can change the number of figures under Settings in the solver. A small difference in the last digit is usually just rounding.
Can I see how to solve it without seeing the answer?
Yes. Tick Practice mode under the solver. You'll get the plan of steps only, so you can work it out on paper. One click then shows the full solution.
Is the Mole Fraction free to use?
Yes, it's free with no sign-up. All calculations happen inside your browser and nothing you type is stored.
Which grades is it useful for?
It's made for Grades 11–12 (A-Level · AP · IB · Class 11–12 · JEE · NEET). The working follows the method used in textbooks and exams.