Mole Fractions and Gas Mixtures
Air is roughly one-fifth oxygen and four-fifths nitrogen. But what does "one-fifth" actually mean at the molecular level? The answer is the mole fraction. It is the simplest and most useful way to describe composition in a gas mixture. It converts a vague idea like "mostly nitrogen" into a precise number. That number can be plugged into an equation. Mole fractions matter for almost every practical gas calculation. This includes scuba tank blending, industrial reactor feeds, and atmospheric chemistry. Each of these starts by asking how much of each gas is present. Partial pressures, reaction quotients, and vapor-liquid equilibria all trace back to one dimensionless ratio. This article defines mole fraction rigorously. It links mole fraction to Dalton's law of partial pressures. You will see the core equations derived from first principles. Then you will work two full numerical examples. Finally, you will see how this foundation sets up the study of real gas mixtures.
- Mole fraction is the fraction of all moles in a mixture that belong to gas ; it is dimensionless and always between 0 and 1.
- Mole fractions of every component in a mixture always sum to exactly 1.
- For an ideal gas mixture, partial pressure equals mole fraction times total pressure: .
- This relation follows directly from Dalton's law and the ideal gas equation applied to each component separately.
- Mole fraction is composition-scale-independent — it does not care whether you have 1 mole or 1000 moles of gas, only the ratio.
- Key idea: in an ideal gas mixture, each component contributes to the total pressure in exact proportion to its mole fraction.
Because every ideal gas molecule occupies the same average volume regardless of its identity, the fraction of pressure that a gas contributes to a mixture equals the fraction of molecules (moles) that it contributes — this single proportionality, , is what makes mole fraction the natural currency of gas composition.
The physical picture
Picture a rigid, sealed container holding a mixture of nitrogen, oxygen, and argon — essentially dry air. Each gas molecule dashes around independently, colliding with the walls and with other molecules. In the ideal gas limit, molecules are treated as point particles that do not interact except through instantaneous elastic collisions. This means each gas behaves as though the others were not there, each exerting its own partial pressure exactly as it would if it alone filled the container at the same temperature. The total pressure the container walls feel is just the sum of these independent contributions — that is Dalton's law, a result you have already met. Mole fraction takes this one step further: it tells you what share of the total moles (and hence, for an ideal gas, what share of the total pressure) belongs to each component. If a container holds 4 mol of N₂ and 1 mol of O₂, then 4 out of every 5 moles are nitrogen. The mole fraction of nitrogen is 0.80, and nitrogen must therefore account for 80% of the total pressure. This proportionality is not an approximation layered on top of Dalton's law — it is a direct algebraic consequence of applying the ideal gas equation to each gas separately and then dividing by the total. The derivation below makes that explicit.
The core relations
where is the moles of component and is the sum of moles of every component present.
where the sum runs over all components in the mixture — a consequence of the definition, not an extra assumption.
where is the partial pressure of component and is the total pressure of the mixture.
where this is Dalton's law of partial pressures, restated for reference.
Goal. Show that the partial-pressure/mole-fraction relation follows directly from the ideal gas law applied component by component, with no extra assumptions beyond ideality.
Step 1. Write the ideal gas law for each component separately. Because ideal gas molecules do not interact, each component behaves as if it alone occupied the full container volume at the mixture temperature . So for component ,
where is the pressure component would exert alone in volume at temperature , and is the gas constant.
Step 2. Solve for the partial pressure of each component.
This says the partial pressure is directly proportional to the moles of that one component, with common to every gas in the mixture.
Step 3. Sum over all components to recover Dalton's law.
This is just the ideal gas law applied to the mixture as a whole, confirming that the total pressure depends only on total moles, not on identity.
Step 4. Divide the single-component result by the total.
The factor cancels exactly, leaving a pure ratio of moles.
Step 5. Recognize the mole fraction and rearrange. By definition , so
This is exact for ideal gases at any temperature and total pressure, since no approximation was made beyond ideality itself.
Worked examples
Example 1 — Foundational: composition of a lab gas cylinder A rigid 20.0 L cylinder at 298 K contains 3.00 mol of nitrogen, 1.00 mol of oxygen, and 0.50 mol of carbon dioxide. Find each mole fraction, the total pressure, and each partial pressure. Step 1 — total moles.
Step 2 — mole fractions.
Check: ✓ (sums to 1, as it must). Step 3 — total pressure from the ideal gas law.
Step 4 — partial pressures using .
Sanity check: , matching the total pressure computed independently. The largest mole fraction (N₂) correctly carries the largest partial pressure.
Example 2 — Applied: blending a nitrox diving gas from partial pressures A dive shop fills a tank to a final total pressure of 200.0 atm with a "nitrox 32" mixture (32.0% O₂ by mole, balance N₂). The tank volume is 12.0 L and the fill temperature is 293 K. Find the partial pressure of each gas, the moles of each gas needed, and how much pure oxygen (in moles, then in liters at 1.00 atm and 293 K) must be added on top of ordinary air (which is 21.0% O₂) to reach this blend, assuming the tank is first filled with air to some pressure and topped off with pure O₂. Step 1 — mole fractions and partial pressures at final fill.
Step 2 — total moles of gas in the finished tank.
Step 3 — moles of each gas in the final mixture.
Step 4 — the "partial pressure blending" trick used by divers. The shop first partial-fills with air until the nitrogen partial pressure alone reaches 136.0 atm (since topping off with pure O₂ adds no more N₂). Air is 21.0% O₂ and 79.0% N₂, so the air-fill pressure satisfies
At this partial fill, the oxygen already present contributes
Step 5 — pure oxygen top-off needed.
Converting to a volume at 1.00 atm and 293 K (the size of a standard O₂ cylinder delivering this gas):
Sanity check: total pressure after topping off is atm ✓, and final ✓, exactly the target nitrox blend.
Limiting cases & common traps
| Situation | Correct behavior | Common mistake |
|---|---|---|
| Pure gas | for the only component, | Forgetting a single-component mixture is a valid (trivial) case |
| Trace component | still gives smoothly | Assuming trace gases need a separate formula |
| Adding an inert gas at constant | Total rises; each original and for the other gases drops even though their moles are unchanged | Thinking partial pressures of untouched gases stay fixed |
| Mole fraction vs. mass fraction | uses moles; mass fraction uses mass and requires molar masses to convert | Silently swapping mole % for mass % (common with humid air, isotopes) |
| Mixing at constant total pressure | Mole fractions still sum to 1; use with the fixed | Forgetting itself may change if volume or moles change too |
The chemist behind it
John Dalton, working in Manchester in the early 1800s, was primarily interested in atomic theory and meteorology — he kept detailed weather diaries and puzzled over why water vapor did not simply "dissolve" into air-like a solute. His 1801 law of partial pressures grew directly out of trying to explain how several gases could occupy the same space at once, each behaving as though the others were absent. Mole fraction as a formal quantity came later, once Avogadro's hypothesis and the mole concept matured, but it slots perfectly into Dalton's framework: it is simply the bookkeeping tool that tells you how much of the total pressure "belongs" to each gas Dalton had already shown behaves independently.
Origins · 1 minJohn Dalton and how this was discovered
Ask the tutor: How does the mole-fraction/partial-pressure relation change once we account for intermolecular forces in real gas mixtures?
Is mole fraction the same as percent composition by volume?
For ideal gases at the same temperature and pressure, yes — equal moles occupy equal volumes (Avogadro's principle), so volume fraction and mole fraction coincide numerically. This is why "21% oxygen by volume" and "mole fraction of oxygen is 0.21" describe the same air. This equivalence assumes ideal behavior; for real gases at high pressure it can break down slightly, foreshadowing the deviations from ideality covered next.
Does p_i = x_i P require the total pressure to be low?
No — it is an exact identity for ideal gases at any pressure, since it derives purely from applying to each component and to the mixture, with the factor canceling algebraically. The approximation lives entirely in the ideal gas law itself, not in the mole-fraction relation. At very high pressures, real gases deviate from , and then becomes only approximate too.
Can mole fraction be negative or greater than 1?
No. Since and are both non-negative quantities of matter, and always, mole fraction is confined to the range 0 to 1 inclusive. A value of 0 means the component is absent; a value of 1 means it is the only component present (a pure substance).
How is mole fraction used beyond gas mixtures?
The same definition, , applies to liquid solutions and solid solutions, not just gases. It underlies Raoult's law for vapor pressures of solutions and appears throughout phase-equilibrium calculations. The gas-phase relation is a special case that works specifically because ideal gas particles do not interact, a simplification not available in condensed phases.
Why doesn't mole fraction have units?
It is a ratio of two quantities with the same units (moles divided by moles), so all units cancel, leaving a pure number between 0 and 1. This is precisely what makes it so convenient: it can be multiplied directly by a total pressure, a total volume, or a total number of moles to extract the corresponding partial quantity, without any unit-conversion factors.