Mole Fraction Calculator

Enter the components of a mixture in moles or grams to instantly calculate the mole fraction and mole percent of each component.

Use the Mole Fraction Calculator

Mixture Components

Add at least two components and click Calculate

Summary

The mole fraction of a component is the ratio of its moles to the total moles of all components in the mixture. It is a dimensionless quantity between 0 and 1 and the sum of all mole fractions in a mixture always equals exactly 1. Mole fractions are widely used in thermodynamics, gas laws, and solution chemistry to express composition independent of temperature and pressure.

How it works

  1. Add each component of your mixture using the "Add Component" button.
  2. For each component, enter a name, the amount, and choose the unit: moles or grams.
  3. If you enter grams, also provide the molar mass (g/mol) so the tool converts to moles.
  4. Click "Calculate" to compute the total moles and the mole fraction of each component.
  5. The mole fraction is displayed along with the mole percent and a visual proportion bar.
  6. Adjust any value and recalculate at any time; the table updates immediately.

Use cases

  • Determine vapor composition from Raoult's Law calculations.
  • Express gas mixture composition for ideal gas law problems.
  • Prepare solutions with a precise molar ratio of solutes.
  • Verify stoichiometric ratios in reaction mixtures.
  • Convert mass-based mixture data to mole-based quantities.
  • Calculate partial pressures from total pressure and mole fractions.
  • Teach or study colligative property calculations in physical chemistry.
  • Quality control checks for industrial chemical blending.

Frequently Asked Questions

Last updated: 2026-09-30 · Reviewed by Nham Vu