Mole Fraction Calculator

Find mole fractions from moles or masses and use them for partial pressures, step by step
Mole fraction of ethanol in 3.00 mol ethanol + 7.00 mol water
Mole fractions of 46.0 g ethanol in 100.0 g water
Partial pressure of O2 in 2.00 mol N2 + 1.00 mol O2 + 0.500 mol CO2 at 3.50 atm
Moles of solute if the mole fraction is 0.150 in 4.00 mol total

The Mole Fraction Formula

The mole fraction of a component AA is the share of the mixture's particles that are AA:

xA=nAntotal=nAnA+nB+nC+x_A = \frac{n_A}{n_{\text{total}}} = \frac{n_A}{n_A + n_B + n_C + \cdots}

  • nAn_A — moles of component AA.
  • ntotaln_{\text{total}} — moles of every component, solvent included.
  • xAx_A — a pure number between 0 and 1, with no units, because moles cancel.

Two consequences follow immediately. The fractions of all components sum to exactly one,

ixi=1\sum_i x_i = 1

which gives a free check on any answer, and the relation inverts to nA=xAntotaln_A = x_A n_{\text{total}}.

Why it is used. Because it is a ratio of amounts rather than of volumes, mole fraction is independent of temperature — unlike molarity, which shifts as a solution expands. That makes it the natural composition variable in the laws that treat all particles alike: Dalton's law of partial pressures, pA=xAPtotalp_A = x_A P_{\text{total}}, and Raoult's law for an ideal solution, pA=xApAp_A = x_A p_A^{\circ}. Both assume ideal behaviour: for gases, no intermolecular forces; for solutions, that A-B interactions resemble A-A and B-B interactions.

How to Calculate a Mole Fraction

From moles

  1. Add up the moles of every component to get ntotaln_{\text{total}}.
  2. Divide each component's moles by that total.
  3. Check that the fractions add to 1.000.

From masses

Masses cannot be added directly — convert each one to moles first:

ni=miMin_i = \frac{m_i}{\mathcal{M}_i}

A 50:50 mixture by mass is nowhere near 50:50 by mole unless the two molar masses happen to match.

From a volume of solution

A volume on its own is not an amount. Convert it with the concentration, n=cVn = cV, or for a pure liquid with the density and molar mass, n=ρV/Mn = \rho V / \mathcal{M}. Only then can it enter the sum.

Back to moles

nA=xAntotaln_A = x_A\, n_{\text{total}}

If only xAx_A and nBn_B are known for a two-component mixture, use xB=1xAx_B = 1 - x_A and ntotal=nB/xBn_{\text{total}} = n_B/x_B.

Significant figures

A mole fraction is a quotient, so it takes the fewest significant figures among the inputs. Because the fractions must sum to 1, rounding each one independently can leave a sum such as 1.001 — quote the components consistently and note the total is exact.

Common Mistakes to Avoid

  • Leaving the solvent out of the total. ntotaln_{\text{total}} includes the solvent. Dividing solute moles by solute moles alone always gives 1.
  • Adding masses instead of moles. 46.0 g of ethanol and 100.0 g of water is not a mole fraction of 0.315; converting first gives 0.152.
  • Attaching units. A mole fraction is dimensionless. Writing 0.300 mol for xx confuses it with an amount.
  • Using mole fraction where molarity is required. They answer different questions; only molarity carries a per-litre meaning.
  • Forgetting that a dissolved salt splits into ions when the question asks about particles rather than formula units.
  • Skipping the sum check. If the fractions do not add to 1, a component has been left out of the denominator.

Examples

Step 1: Total moles: ntotal=3.00+7.00=10.00n_{\text{total}} = 3.00 + 7.00 = 10.00 mol
Step 2: xethanol=3.0010.00=0.300x_{\text{ethanol}} = \dfrac{3.00}{10.00} = 0.300
Step 3: xwater=7.0010.00=0.700x_{\text{water}} = \dfrac{7.00}{10.00} = 0.700
Step 4: Check: 0.300+0.700=1.0000.300 + 0.700 = 1.000
Answer: xethanol=0.300x_{\text{ethanol}} = 0.300, xwater=0.700x_{\text{water}} = 0.700

Step 1: nethanol=46.046.07=0.99848n_{\text{ethanol}} = \dfrac{46.0}{46.07} = 0.99848 mol
Step 2: nwater=100.018.02=5.5494n_{\text{water}} = \dfrac{100.0}{18.02} = 5.5494 mol
Step 3: ntotal=0.99848+5.5494=6.5479n_{\text{total}} = 0.99848 + 5.5494 = 6.5479 mol
Step 4: xethanol=0.998486.5479=0.15249x_{\text{ethanol}} = \dfrac{0.99848}{6.5479} = 0.15249, and xwater=10.152=0.848x_{\text{water}} = 1 - 0.152 = 0.848
Step 5: The mass 46.0 g has 3 significant figures, so the fraction is quoted to 3
Answer: xethanol=0.152x_{\text{ethanol}} = 0.152, xwater=0.848x_{\text{water}} = 0.848

Step 1: ntotal=2.00+1.00+0.500=3.50n_{\text{total}} = 2.00 + 1.00 + 0.500 = 3.50 mol
Step 2: xO2=1.003.50=0.28571x_{\mathrm{O_2}} = \dfrac{1.00}{3.50} = 0.28571
Step 3: Dalton's law: pO2=xO2Ptotal=0.28571×3.50=1.00p_{\mathrm{O_2}} = x_{\mathrm{O_2}} P_{\text{total}} = 0.28571 \times 3.50 = 1.00 atm
Step 4: The others follow the same way: pN2=2.00p_{\mathrm{N_2}} = 2.00 atm and pCO2=0.500p_{\mathrm{CO_2}} = 0.500 atm
Step 5: Check: 1.00+2.00+0.500=3.501.00 + 2.00 + 0.500 = 3.50 atm
Answer: xO2=0.286x_{\mathrm{O_2}} = 0.286 and pO2=1.00p_{\mathrm{O_2}} = 1.00 atm

Frequently Asked Questions

x_A = n_A / n_total, where n_total is the sum of the moles of every component including the solvent. The result is dimensionless and lies between 0 and 1, and the fractions of all components sum to exactly 1.

Multiply by the total: n_A = x_A x n_total. In a two-component mixture where only x_A and the moles of B are known, use x_B = 1 - x_A and n_total = n_B / x_B, then multiply.

A volume is not an amount on its own. For a solution, multiply by the molarity after converting to litres: n = c x V. For a pure liquid, multiply by the density to get a mass, then divide by the molar mass: n = (density x volume) / molar mass.

Mole percent is simply the mole fraction times 100. A mole fraction of 0.152 is 15.2 mol %. Mole percents across a mixture sum to 100, just as the fractions sum to 1.

Related Solvers

Try AI-Math for Free

Get step-by-step solutions to any math problem. Upload a photo or type your question.

Start Solving