HomeCalculatorsChemistryMole Fraction Calculator

Mole Fraction Calculator

Chemistry

Calculate the mole fraction of each component in a mixture of two or three substances. Enter moles for each component and get the dimensionless mole fraction instantly.

2 mol
mol
3 mol
mol
0 mol
mol

Mole Fraction of A (χA)

0.4
Mole Fraction of B (χB)
0.6
Mole Fraction of C (χC)
0
Total Moles (mol)
5

Breakdown

How the total splits

Mole Fraction of A (χA)
0.4
Mole Fraction of B (χB)
0.6
Mole Fraction of C (χC)
0

This calculator computes your Mole Fraction of A (χA), Mole Fraction of B (χB), Mole Fraction of C (χC), Total Moles (mol) from the values you enter.

Inputs
Moles of Component AMoles of Component BMoles of Component C (optional)
Outputs
Mole Fraction of A (χA)Mole Fraction of B (χB)Mole Fraction of C (χC)Total Moles (mol)

What is a Mole Fraction?

The Mole Fraction Calculator determines the mole fraction of each component in a mixture of two or three substances. Mole fraction (symbol χ, pronounced "chi") is a dimensionless concentration measure that expresses the proportion of one component relative to the total moles of all components in a mixture. Unlike molarity or molality, mole fraction has no units and is completely independent of temperature and pressure, making it one of the most fundamental composition descriptors in physical chemistry and thermodynamics.

For a mixture containing components A, B, and C with nA, nB, and nC moles respectively, the mole fraction of A is χA = nA ÷ (nA + nB + nC). The mole fractions of all components always sum to exactly 1. This property makes mole fraction particularly useful in equations where proportions matter more than absolute quantities.

Mole fraction is the concentration unit required for Raoult's law — the relationship between solution composition and vapour pressure: partial pressure PA = χA × P°A. It also appears in Henry's law for gas solubility, in activity coefficients for non-ideal solutions, and in thermodynamic equations for Gibbs free energy of mixing. For the related Molarity Calculator or Molality Calculator, different inputs apply; mole fraction is the choice when the calculation involves vapour pressures or thermodynamic mixing quantities.

Indian students encounter mole fraction in NCERT Class 12 Chapter 2 (Solutions) and apply it extensively in JEE and NEET questions on vapour pressure depression and Raoult's law. The pie chart visualisation generated by this calculator maps directly to how mixture composition is typically illustrated in textbook diagrams.

How to use this Mole Fraction calculator

  1. Enter Moles of Component A — type the moles of your first component into the Moles of Component A field, in mol. If you have grams rather than moles, convert using the Grams to Moles Calculator first.
  2. Enter Moles of Component B — type the moles of your second component into the Moles of Component B field, in mol.
  3. Enter Moles of Component C (optional) — for a three-component mixture, type the moles of the third component into Moles of Component C (optional). Leave at 0 for a two-component calculation.
  4. Read the mole fractions — the highlighted Mole Fraction of A (χA) shows the primary result, with χB and χC shown alongside. Confirm they sum to 1 as a quick accuracy check.
  5. Check Total Moles — verify that the Total Moles (mol) output equals nA + nB + nC as expected.
  6. Use the pie chart — the pie chart shows the proportional composition at a glance. Use χA and χB directly in Raoult's law (PA = χA × P°A) or in Dalton's law for gas mixtures (PA = χA × Ptotal).

Formula & Methodology

Mole fraction formula:

> χA = nA ÷ (nA + nB + nC)
> χB = nB ÷ (nA + nB + nC)
> χC = nC ÷ (nA + nB + nC)

Where:
- χ = mole fraction (dimensionless, 0 to 1)
- nA, nB, nC = moles of each component (mol)
- nA + nB + nC = total moles

Verification: χA + χB + χC = 1 always holds.

Worked example — binary solution:

A solution is prepared by dissolving 9 g of water (H₂O, M_r = 18.015 g/mol) in 46 g of ethanol (C₂H₅OH, M_r = 46.07 g/mol).

- nA (water) = 9 ÷ 18.015 = 0.4996 mol
- nB (ethanol) = 46 ÷ 46.07 = 0.9985 mol
- Total moles = 0.4996 + 0.9985 = 1.4981 mol
- χ(water) = 0.4996 ÷ 1.4981 = 0.3335
- χ(ethanol) = 0.9985 ÷ 1.4981 = 0.6665

Applying Raoult's law at 25 °C (pure vapour pressures: P°water = 23.8 mmHg, P°ethanol = 59.0 mmHg):
- P(water) = 0.3335 × 23.8 = 7.94 mmHg
- P(ethanol) = 0.6665 × 59.0 = 39.32 mmHg
- Total vapour pressure = 47.26 mmHg

This is a standard JEE-style Raoult's law problem where the mole fraction calculation is the critical first step.

Frequently Asked Questions

Mole fraction is the ratio of the number of moles of one component to the total number of moles of all components in a mixture. It is a dimensionless quantity represented by the symbol χ (chi) and always has a value between 0 and 1. For a mixture of components A, B, and C, the mole fractions of all components always sum to exactly 1: χA + χB + χC = 1.
The mole fraction of component A in a mixture is χA = nA ÷ (nA + nB + nC + ...), where nA, nB, nC are the moles of each component and the denominator is the total moles. For a two-component mixture: χA = nA ÷ (nA + nB) and χB = 1 − χA. The formula works for any number of components; just include all moles in the denominator.
Mole fraction is dimensionless and represents the proportion of one component among all components by mole count. Molarity (mol/L) represents the moles of solute per litre of solution and depends on the volume of the solution, which changes with temperature. Mole fraction is preferred in thermodynamics and vapour pressure calculations because it is intensive (does not depend on the amount of mixture) and temperature-independent.
Mass fraction is the mass of one component divided by the total mass of the mixture, while mole fraction uses moles rather than masses. For components with equal molar masses, mass fraction and mole fraction are identical; otherwise they differ. Mass fraction is commonly used in engineering and materials science, while mole fraction is standard in physical chemistry and thermodynamics.
Molality (mol/kg) is defined as moles of solute per kilogram of solvent and distinguishes between solute and solvent. Mole fraction treats all components equally and expresses each as a fraction of the total. Both are temperature-independent, but mole fraction is used in Raoult's law for vapour pressure and in thermodynamic activity calculations, while molality is used in colligative property equations like boiling point elevation and freezing point depression.
Raoult's law states that the partial vapour pressure of a component in an ideal solution equals the mole fraction of that component multiplied by its pure vapour pressure: PA = χA × P°A. For a binary mixture, the total vapour pressure is Ptotal = χA × P°A + χB × P°B. To apply Raoult's law, calculate the mole fraction first using this calculator, then multiply by the pure vapour pressure of each component.
A mole fraction of 1 means the substance is pure — all moles present belong to that single component, with no other components in the mixture. A mole fraction of 0 means the substance is completely absent from the mixture. In practice, real mixtures have mole fractions between 0 and 1 exclusive. The closer a component's mole fraction is to 1, the purer or more dominant it is in the mixture.
Yes — first convert each component's mass to moles by dividing by its molar mass (moles = mass ÷ molar mass), then enter the moles into this calculator. For example, a mixture of 18 g of water (M_r = 18.015, n = 0.9992 mol) and 46 g of ethanol (M_r = 46.07, n = 0.9985 mol) gives χ(water) = 0.9992 ÷ 1.9977 = 0.5002. Use the [Mole Calculator](/mole-calculator/) or [Grams to Moles Calculator](/grams-to-moles-calculator/) to find the moles first.
The partial pressure of a gas in a mixture equals its mole fraction multiplied by the total pressure: PA = χA × Ptotal (Dalton's law of partial pressures). For example, if a gas mixture contains 2 mol of N₂ and 3 mol of O₂ at a total pressure of 5 atm, then χ(N₂) = 0.4 and P(N₂) = 0.4 × 5 = 2 atm. The Mole Fraction Calculator gives you χA and χB; multiply by total pressure to find partial pressures.
Mole fraction is taught in NCERT Class 12 Chemistry Chapter 2 (Solutions) as one of the four principal concentration units alongside molarity, molality, and mass fraction. It appears in JEE Main and Advanced questions on vapour pressure (Raoult's law), colligative properties, and Henry's law for gas solubility. Problems often require switching between concentration units, and mole fraction is the starting point for vapour pressure problems.
Yes, by definition the mole fractions of all components in any mixture must sum to exactly 1 (or 100% if expressed as a percentage). This is because each mole fraction represents a component's share of the total moles, and all shares together must account for 100% of the mixture. The calculator confirms this implicitly — if you add χA, χB, and χC from the outputs, the total is always 1.00000.
The Mole Fraction Calculator supports up to three components directly (A, B, and optional C). For mixtures with more components, calculate the total moles of all components manually, then use χ = moles of component ÷ total moles for each additional component. Alternatively, group minor components into a combined total and treat them as a single component C if their individual fractions are not required separately.
Also known as
mole fraction formulachi calculatormixture compositionmolar fractionpartial pressure fraction