Mole Fraction Calculator

This calculator finds the mole fraction of each component in a mixture, a fundamental way of expressing composition in chemistry. The mole fraction of a component is the number of moles of that component divided by the total number of moles of all components in the mixture. It tells you what proportion of the molecules present are of each kind, and because it is a ratio of like quantities it has no units and all the mole fractions in a mixture always add up to exactly one. Mole fraction is the natural way to describe composition in many areas of chemistry and physics: it appears in Raoult's law and Dalton's law of partial pressures for gases and solutions, in colligative properties like boiling point elevation and freezing point depression, and throughout thermodynamics, where it is often preferred over mass-based measures because chemical behaviour depends on numbers of molecules. This tool computes it. You enter the number of moles of each component, for up to three components, and the calculator returns the mole fraction of each, along with the total number of moles. The results update as you type, and you can confirm that the fractions sum to one. Use it for chemistry homework, for solution and gas calculations, or whenever you need composition in terms of moles. To find the moles of a component from a mass, divide the mass by the molar mass first. A common task is finding the mole fraction of a solute in a solvent, such as salt dissolved in water, where the solvent usually has many more moles and so the larger mole fraction. Leave a component at zero if your mixture has fewer than three parts.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner
0.4
mole fraction of A
Mole fraction of B0.6
Mole fraction of C0
Total moles5

Mole fraction = moles of component / total moles. All mole fractions sum to 1. Dimensionless. Convert a mass to moles by dividing by the molar mass first.

How it works

The total number of moles is the sum of the moles of all the components. The mole fraction of each component is its own moles divided by that total. Because each fraction is a part of the same whole, all the mole fractions in the mixture add up to exactly one, a useful check on the calculation.

Worked example

For a mixture of 2 moles of component A and 3 moles of component B, the total is 5 moles. The mole fraction of A is 2 divided by 5, which is 0.4, and the mole fraction of B is 3 divided by 5, which is 0.6. The two fractions add to 1, as they must.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-06-07 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.