Mole Fraction Calculator

Calculate the mole fraction of components in solutions and gas mixtures. Enter moles directly, use partial pressures via Dalton's Law, or convert from mass using molar masses. The mole fraction (χ) is a dimensionless quantity ranging from 0 to 1 that expresses the ratio of moles of one component to the total moles in a mixture.

χsolute = nsolute / (nsolute + nsolvent)
Default: 1 mol NaCl in 55.5 mol H₂O
χa = Pa / Ptotal  (Dalton's Law)
Default: O₂ in air — PO₂ = 160 mmHg, Ptotal = 760 mmHg
χsolute = (masssolute/Msolute) / (masssolute/Msolute + masssolvent/Msolvent)
Enter mass and molar mass to auto-calculate moles, then mole fraction

Results

What Is Mole Fraction?

Mole fraction is one of the most fundamental ways to express the concentration of a component in a mixture. Represented by the Greek letter chi (χ), the mole fraction of a substance is defined as the number of moles of that substance divided by the total number of moles of all substances present in the mixture. Because it is a ratio of moles to moles, the mole fraction is a dimensionless quantity that always falls between 0 and 1.

Unlike molarity or molality, mole fraction does not depend on volume or temperature, which makes it especially useful in thermodynamic calculations, gas-phase chemistry, and colligative property equations. Whenever a chemist needs a concentration unit that remains constant regardless of temperature changes or pressure fluctuations, mole fraction is the preferred choice.

The concept can be applied to any homogeneous mixture, including liquid solutions, gas mixtures, and even solid alloys. For a two-component system, the mole fraction of component A is written as χA, and the mole fraction of component B is χB. A key property of mole fractions is that the sum of all mole fractions in a mixture must always equal exactly 1.

The Mole Fraction Formula

For a mixture containing k components, the mole fraction of the i-th component is given by:

χi = ni / (n1 + n2 + ... + nk) = ni / ntotal

Where ni is the number of moles of component i and ntotal is the total number of moles of all components combined. The constraint is:

χ1 + χ2 + ... + χk = 1

This formula applies universally to all mixtures. For a simple two-component solution of solute dissolved in a solvent, the formula simplifies to:

χsolute = nsolute / (nsolute + nsolvent)

And correspondingly:

χsolvent = nsolvent / (nsolute + nsolvent) = 1 − χsolute

Mole Fraction for Solutions

When working with liquid solutions, the mole fraction provides a temperature-independent measure of concentration. To calculate the mole fraction of a solute in solution, you need to know the number of moles of the solute and the number of moles of the solvent.

Worked Example — NaCl in Water:

Suppose you dissolve 1 mole of sodium chloride (NaCl) in 1 liter of water. Since the molar mass of water is 18.015 g/mol and 1 liter of water has a mass of approximately 1000 g:

nsolvent = 1000 g / 18.015 g/mol = 55.51 mol

χNaCl = 1 / (1 + 55.51) = 1 / 56.51 = 0.0177

χH₂O = 55.51 / 56.51 = 0.9823

Verification: 0.0177 + 0.9823 = 1.0000

This example illustrates an important practical point: in dilute aqueous solutions, the mole fraction of the solvent (water) is very close to 1, while the mole fraction of the solute is very small. This is because 1 liter of water contains about 55.5 moles, so even substantial amounts of solute contribute only a small fraction of the total moles.

Mole Fraction for Gases (Dalton's Law)

For ideal gas mixtures, the mole fraction has an especially elegant relationship with partial pressures, described by Dalton's Law of Partial Pressures. According to Dalton's Law, the total pressure of a gas mixture is the sum of the partial pressures of each individual gas:

Ptotal = P1 + P2 + ... + Pk

The mole fraction of any gas in the mixture can be calculated directly from its partial pressure:

χa = Pa / Ptotal

This relationship holds because, for an ideal gas, pressure is directly proportional to the number of moles at constant temperature and volume (from the ideal gas law PV = nRT). Therefore, the ratio of partial pressure to total pressure equals the ratio of moles of that gas to total moles.

Worked Example — Oxygen in Air:

At sea level, the total atmospheric pressure is 760 mmHg. The partial pressure of oxygen is approximately 160 mmHg.

χO₂ = 160 mmHg / 760 mmHg = 0.2105

This means oxygen makes up about 21.05% of air by moles, which aligns with the well-known composition of dry air (approximately 21% oxygen by volume).

Worked Examples

Example 1: Oxygen in Air

As shown above, the partial pressure of O₂ in the atmosphere at sea level is about 160 mmHg, while the total atmospheric pressure is 760 mmHg. Using Dalton's Law:

χO₂ = 160 / 760 = 0.2105

The mole percent of oxygen is 21.05%. The remaining 78.95% is predominantly nitrogen (about 78.08%), argon (0.93%), carbon dioxide (0.04%), and trace gases.

Example 2: 17.5% HNO₃ Solution

A nitric acid solution is labeled as 17.5% by mass. This means that for every 100 g of solution, there are 17.5 g of HNO₃ and 82.5 g of water.

Step 1: Calculate moles of each component.
Molar mass of HNO₃ = 63.01 g/mol
Molar mass of H₂O = 18.015 g/mol

nHNO₃ = 17.5 / 63.01 = 0.2778 mol
nH₂O = 82.5 / 18.015 = 4.5796 mol

Step 2: Calculate mole fraction.
χHNO₃ = 0.2778 / (0.2778 + 4.5796) = 0.2778 / 4.8574 = 0.0572

Step 3: Verify.
χH₂O = 4.5796 / 4.8574 = 0.9428
Sum = 0.0572 + 0.9428 = 1.0000

Example 3: Ethanol-Water Mixture

Consider a mixture containing 46.07 g of ethanol (C₂H₅OH) and 180.15 g of water.

Step 1: Calculate moles.
Molar mass of ethanol = 46.07 g/mol
Molar mass of water = 18.015 g/mol

nethanol = 46.07 / 46.07 = 1.000 mol
nwater = 180.15 / 18.015 = 10.000 mol

Step 2: Calculate mole fractions.
χethanol = 1.000 / (1.000 + 10.000) = 1 / 11 = 0.0909
χwater = 10.000 / 11.000 = 0.9091

Sum = 0.0909 + 0.9091 = 1.0000

Why Mole Fractions Always Sum to 1

This is not merely a convention but a mathematical necessity. Consider a mixture of k components with moles n1, n2, ..., nk. The total moles are:

ntotal = n1 + n2 + ... + nk

The sum of all mole fractions is:

∑χi = χ1 + χ2 + ... + χk = n1/ntotal + n2/ntotal + ... + nk/ntotal

Factoring out 1/ntotal:

∑χi = (n1 + n2 + ... + nk) / ntotal = ntotal / ntotal = 1

This proof shows that the sum-to-one property is inherent in the definition of mole fraction. It serves as a useful verification tool: if the sum of your calculated mole fractions does not equal 1 (within rounding error), there is an error in your calculation. Our calculator above automatically performs this verification for you.

Mole Fraction vs. Other Concentration Units

Chemists use several different units to express concentration, each with its own advantages. Understanding when to use mole fraction versus other units is essential for solving chemistry problems correctly.

Unit Definition Temperature Dependent? Best Used For
Mole Fraction (χ) mol of component / total mol No Thermodynamics, gas laws, Raoult's Law
Molarity (M) mol of solute / L of solution Yes (volume changes) Titrations, stoichiometric calculations
Molality (m) mol of solute / kg of solvent No Colligative properties, precise work
Mass Percent (%) mass of component / total mass × 100 No Commercial products, labeling
Parts per million (ppm) mass of solute / mass of solution × 106 No Trace analysis, environmental science

Mole Fraction vs. Molarity

Molarity (M) is defined as moles of solute per liter of solution. Since the volume of a liquid changes with temperature (thermal expansion), molarity is temperature-dependent. Mole fraction, being a ratio of moles, does not change with temperature. This makes mole fraction more reliable for thermodynamic calculations and situations where temperature varies significantly.

Mole Fraction vs. Molality

Molality (m) is defined as moles of solute per kilogram of solvent. Like mole fraction, it is temperature-independent. There is an approximate relationship between the two:

χsolute ≈ m × Msolvent / (1000 + m × Msolvent)

Where m is the molality and Msolvent is the molar mass of the solvent in g/mol. For dilute solutions, where m × Msolvent is much less than 1000, this simplifies to χ ≈ m × Msolvent / 1000.

Mole Fraction vs. Mass Percent

Mass percent expresses concentration as (mass of component / total mass) × 100. To convert between mass percent and mole fraction, you must know the molar masses of all components. Mass percent is commonly used for commercial and industrial applications, while mole fraction is preferred in academic and research settings for its thermodynamic convenience.

Converting Mole Fraction to Molality

The conversion between mole fraction and molality is frequently needed in chemistry. For a two-component solution:

m = (χsolute × 1000) / ((1 − χsolute) × Msolvent)

Where m is the molality (mol/kg solvent), χsolute is the mole fraction of the solute, and Msolvent is the molar mass of the solvent in g/mol.

Example: Convert χNaCl = 0.0177 to molality in an aqueous solution.

m = (0.0177 × 1000) / ((1 − 0.0177) × 18.015)
m = 17.7 / (0.9823 × 18.015)
m = 17.7 / 17.693
m = 1.000 mol/kg

This confirms that 1 mol NaCl in 55.5 mol water corresponds to approximately 1 molal.

Conversely, to convert from molality to mole fraction:

χsolute = (m × Msolvent) / (1000 + m × Msolvent)

Applications of Mole Fraction

Mole fraction plays a central role in several important areas of chemistry and chemical engineering.

Raoult's Law

Raoult's Law states that the partial vapor pressure of each component in an ideal solution is equal to the product of the mole fraction of that component and the vapor pressure of the pure component:

PA = χA × PA°

This law is fundamental for understanding vapor-liquid equilibrium, distillation, and boiling point behavior. It applies most accurately to ideal solutions where the intermolecular forces between different components are similar to those between like molecules.

Colligative Properties

Colligative properties — boiling point elevation, freezing point depression, vapor pressure lowering, and osmotic pressure — all depend on the number of solute particles in solution, not their identity. Mole fraction provides a direct measure of this. For example, vapor pressure lowering is directly expressed using mole fraction:

ΔP = χsolute × Psolvent°

Gas Mixtures and Partial Pressures

In gas-phase chemistry and atmospheric science, mole fraction is the standard way to express composition. The composition of Earth's atmosphere, industrial gas mixtures, and combustion products are all routinely described using mole fractions. Since the mole fraction of a gas equals the ratio of its partial pressure to total pressure, it provides a direct link between composition and measurable pressure values.

Chemical Engineering and Phase Equilibria

In chemical engineering, mole fraction is used extensively in phase diagrams, activity coefficient models (such as the Van Laar, Margules, Wilson, NRTL, and UNIQUAC equations), and equation-of-state calculations. These applications require mole fraction because the underlying thermodynamic equations are derived in terms of mole-based quantities.

Frequently Asked Questions

What is the difference between mole fraction and mole percent?
Mole percent is simply the mole fraction multiplied by 100. For example, if the mole fraction of oxygen in air is 0.2105, then the mole percent is 21.05%. While mole fraction is a decimal between 0 and 1, mole percent is expressed as a percentage between 0% and 100%. Both convey the same information, but mole percent can be more intuitive for everyday communication.
Can mole fraction be greater than 1?
No. By definition, mole fraction is a ratio of a part to the whole, so it must be between 0 and 1 (inclusive). A mole fraction of 0 means the component is absent, while a mole fraction of 1 means the mixture consists entirely of that one component (a pure substance). If your calculation yields a value outside this range, there is an error in your input values.
Why do mole fractions always add up to 1?
This is a mathematical consequence of the definition. Each mole fraction is ni/ntotal. When you add all of them together, the numerators sum to ntotal, giving ntotal/ntotal = 1. This property is extremely useful as a self-check for your calculations.
When should I use mole fraction instead of molarity?
Use mole fraction when dealing with thermodynamic calculations (Raoult's Law, activity coefficients), gas mixtures (Dalton's Law), and situations where temperature independence is important. Molarity is more convenient for bench-top chemistry involving solutions at a fixed temperature, such as titrations and dilution calculations.
How do I convert mass percent to mole fraction?
Assume you have 100 g of solution. For each component, divide its mass (in grams, equal to its mass percent) by its molar mass to get moles. Then divide the moles of the target component by the total moles of all components. Our "From Mass" calculator method above performs this conversion automatically.
Does mole fraction change with temperature?
No. Mole fraction is defined as a ratio of moles, and the number of moles of each component does not change with temperature (assuming no chemical reaction occurs). This is one of the key advantages of mole fraction over molarity, which changes with temperature because solution volume depends on temperature.
What is the mole fraction of water in pure water?
The mole fraction of water in pure water is exactly 1. Since there is only one component, the mole fraction equals nwater/ntotal = nwater/nwater = 1. As soon as any solute is added, the mole fraction of water decreases below 1.
How is mole fraction used in Raoult's Law?
Raoult's Law states that the vapor pressure of a solvent above a solution equals the mole fraction of the solvent multiplied by the vapor pressure of the pure solvent: P = χsolvent × P°. This means dissolving a solute lowers the vapor pressure of the solvent in direct proportion to the solute's mole fraction, which explains boiling point elevation and freezing point depression.