THERMODYNAMICS • MIXTURES AND HUMID AIR

Mass & Mole Fractions — Apply mass and mole fraction relationships

Quantify the composition of thermodynamic mixtures using mass and mole fraction relationships essential for engineering analysis.

Historical Context & Motivation

The quantitative study of mixtures stretches back to the dawn of modern chemistry and thermodynamics. Before engineers could design distillation columns, combustion chambers, or atmospheric-control systems, they needed a rigorous language for describing how much of each constituent is present in a mixture. The concepts of mass fraction and mole fraction emerged from centuries of experimental and theoretical work, bridging the gap between macroscopic measurements and molecular-scale understanding. Today, these quantities form the backbone of mixture thermodynamics, appearing in equations of state, psychrometric analyses, and chemical equilibrium calculations.

1801
Dalton's Law of Partial Pressures
John Dalton proposed that the total pressure of a gas mixture equals the sum of the partial pressures of each component, implicitly requiring a way to quantify each species' contribution to the whole—a precursor to mole fraction concepts.
1811
Avogadro's Hypothesis
Amedeo Avogadro suggested that equal volumes of ideal gases at the same temperature and pressure contain equal numbers of molecules, providing the molecular basis for defining mole fractions as volume-equivalent ratios in ideal gas mixtures.
1875
Gibbs's Thermodynamic Framework
J. Willard Gibbs developed the concept of chemical potential and partial molar properties, formalizing the use of mole fractions in multi-component thermodynamic equilibrium and phase-rule analysis.
1902
Carrier's Psychrometric Chart
Willis Carrier published the first psychrometric chart for humid air, relying on mass and mole fractions of water vapor and dry air to characterize air-conditioning processes—an industrial application that cemented these quantities in engineering practice.
1940s
Standardization in Engineering Curricula
Mass and mole fraction notation became standard in thermodynamics textbooks. Authors such as Keenan and Keyes codified the interconversion formulas that undergraduate engineers use to this day.

The central question motivating this lesson is deceptively simple: given a mixture of known species, how do we express and interconvert its composition in terms that are most useful for a particular thermodynamic analysis? Mass fractions connect directly to gravimetric measurements and conservation of mass, while mole fractions connect to molecular interactions and partial-pressure calculations. Mastering both representations—and the conversion between them—is essential for any rigorous treatment of mixtures and humid air.

Core Principles & Definitions

Before diving into equations, it is important to establish a clear vocabulary. A mixture in thermodynamics refers to a system composed of two or more chemically distinct species that do not react with each other under the conditions of interest. Each species is called a component. We characterize the composition of such a mixture using intensive, dimensionless quantities—fractions—rather than extensive ones such as total mass or total moles. The two principal composition measures are the mass fraction and the mole fraction, each offering distinct advantages depending on whether the analysis emphasizes gravimetric data or molecular-level behavior.

1

Mass Fraction (mfᵢ or wᵢ)

The ratio of the mass of component i to the total mass of the mixture: mfi = mi / mtotal. Always between 0 and 1, and all mass fractions sum to unity.
2

Mole Fraction (yᵢ or xᵢ)

The ratio of the number of moles of component i to the total moles in the mixture: yi = ni / ntotal. All mole fractions also sum to unity. Convention: y for gas phases, x for liquid phases.
3

Summation Constraint

Both sets of fractions satisfy a closure relation: Σ mfi = 1 and Σ yi = 1. This constraint means specifying (k − 1) fractions in a k-component mixture automatically determines the last one.
4

Apparent Molar Mass

The mixture's apparent (average) molar mass Mmix = Σ yi Mi serves as the bridge linking mole fractions and mass fractions and enables conversion between the two.
KEY TAKEAWAY
Think of a mixture like a jar of mixed nuts. The mass fraction tells you what fraction of the total weight comes from, say, almonds versus cashews—useful when you care about how heavy each contribution is. The mole fraction tells you what fraction of the total count of nuts is almonds versus cashews—useful when you care about the number of individual particles interacting. Because almonds and cashews have different 'per-nut' masses (analogous to different molar masses), these two fractions will generally differ, and converting between them requires knowing each species' molar mass.

Visual Explanation

The following diagram contrasts mass fraction and mole fraction for a simple binary mixture of nitrogen (N2, M = 28 g/mol) and carbon dioxide (CO2, M = 44 g/mol). Notice how the heavier species (CO2) occupies a larger share of the mass bar than of the mole bar, illustrating the central principle that mass and mole fractions diverge whenever the components have unequal molar masses.

Figure 1 — A 50/50 molar mixture of N2 and CO2. The top bar shows equal mole fractions (0.500 each). The bottom bar reveals that CO2 dominates by mass (0.611 vs. 0.389) because of its higher molar mass.

The visual makes a critical point: mole fractions and mass fractions are only equal when every component has the same molar mass. In all other situations, the heavier species will have a mass fraction that exceeds its mole fraction, while the lighter species will have a mass fraction smaller than its mole fraction. This systematic shift is governed entirely by the ratio of individual molar masses to the apparent molar mass of the mixture, as formalized in Section 4.

Mathematical Framework

The algebraic relationships between mass fraction, mole fraction, and molar mass form a tightly connected set. Starting from definitions and the constraint that all fractions sum to one, we can derive every conversion formula needed in engineering practice. Throughout, let a mixture contain k components, indexed by i = 1, 2, …, k, with Mi denoting the molar mass of species i.

MASS FRACTION DEFINITION
mfᵢ = mᵢ / m_total = mᵢ / Σⱼ mⱼ
mfi = mass fraction of component i; mi = mass of component i; mtotal = total mixture mass. Dimensionless; 0 ≤ mfi ≤ 1.
MOLE FRACTION DEFINITION
yᵢ = nᵢ / n_total = nᵢ / Σⱼ nⱼ
yi = mole fraction of component i; ni = moles of component i; ntotal = total moles. For ideal gases, yi = Pi / P (partial-pressure ratio) = Vi / V (volume fraction).
APPARENT (AVERAGE) MOLAR MASS
M_mix = Σᵢ yᵢ Mᵢ or equivalently M_mix = m_total / n_total
Mmix = apparent molar mass of the mixture (g/mol or kg/kmol). This quantity acts as the bridge between mole-based and mass-based descriptions. An alternative form using mass fractions is 1/Mmix = Σ mfi / Mi.
CONVERSION — MOLE FRACTION → MASS FRACTION
mfᵢ = yᵢ Mᵢ / M_mix = yᵢ Mᵢ / Σⱼ (yⱼ Mⱼ)
To obtain mass fractions from mole fractions, weight each mole fraction by its molar mass and normalize by the mixture molar mass. This is the most commonly used conversion in gas-mixture problems.
CONVERSION — MASS FRACTION → MOLE FRACTION
yᵢ = (mfᵢ / Mᵢ) / Σⱼ (mfⱼ / Mⱼ)
The inverse conversion: divide each mass fraction by its molar mass to get a 'mole-proportional' quantity, then normalize by the sum over all species. Equivalently, yi = mfi × Mmix / Mi.
📐 Derivation Sketch
Starting from mfi = mi/mtotal, substitute mi = ni Mi for each component. Dividing numerator and denominator by ntotal replaces ni/ntotal with yi, yielding mfi = yi Mi / Σ yj Mj directly. The inverse follows by algebraic rearrangement.

Detailed Conversion Flowchart & Classification

In practice, a thermodynamics problem may state composition in one form and require the other. The flowchart below provides a systematic pathway. Starting from either mass fractions or mole fractions, you can compute the mixture molar mass and then convert to the other representation. The chart also shows how partial pressures and specific properties branch from these quantities.

Figure 2 — Flowchart showing conversion paths between mass fractions (left, violet) and mole fractions (right, cyan), with the apparent molar mass Mmix (amber, center) as the hub. Downstream quantities—partial pressures, specific mixture properties, and the mixture gas constant—are shown at the bottom.
Table 1 — Key composition quantities and their primary applications
QuantitySymbolComputed FromWhen To Use
Mass fractionmfimi / mtotalMass balances, specific enthalpy/entropy of mixtures on a mass basis
Mole fractionyini / ntotalPartial pressures, ideal-gas law, chemical equilibrium, Dalton's law
Apparent molar massMmixΣ yi MiIdeal-gas equation for mixture, converting between mass and mole bases
Partial pressurePiyi × PPhase equilibrium, saturation analysis, psychrometrics

Worked Example

Consider a combustion-product gas mixture at 1 atm containing three species by mass: 72 % nitrogen (N2), 15 % carbon dioxide (CO2), and 13 % water vapor (H2O). We wish to find the mole fractions, the apparent molar mass, and the partial pressure of each species.

Mass Fraction → Mole Fraction Conversion for a 3-Component Gas Mixture
1
Step 1 — State Given Mass Fractions and Molar Massesmf(N2) = 0.72, M(N2) = 28.014 g/mol. mf(CO2) = 0.15, M(CO2) = 44.009 g/mol. mf(H2O) = 0.13, M(H2O) = 18.015 g/mol. Verify: 0.72 + 0.15 + 0.13 = 1.00 ✓
2
Step 2 — Compute mfᵢ / Mᵢ for Each SpeciesN2: 0.72 / 28.014 = 0.025703 mol/g. CO2: 0.15 / 44.009 = 0.003408 mol/g. H2O: 0.13 / 18.015 = 0.007216 mol/g.
3
Step 3 — Sum the RatiosΣ (mfi / Mi) = 0.025703 + 0.003408 + 0.007216 = 0.036327 mol/g.
Σ = 0.036327 mol/g → Mmix = 1 / 0.036327 = 27.53 g/mol
4
Step 4 — Calculate Mole Fractionsyi = (mfi / Mi) / Σ. N2: 0.025703 / 0.036327 = 0.7076. CO2: 0.003408 / 0.036327 = 0.0938. H2O: 0.007216 / 0.036327 = 0.1986.
y(N₂) = 0.708, y(CO₂) = 0.094, y(H₂O) = 0.199 (sum ≈ 1.001 — rounding)
5
Step 5 — Compute Partial Pressures at P = 1 atmPi = yi × P. P(N2) = 0.708 × 1 = 0.708 atm. P(CO2) = 0.094 × 1 = 0.094 atm. P(H2O) = 0.199 × 1 = 0.199 atm.
P(N₂) = 0.708 atm, P(CO₂) = 0.094 atm, P(H₂O) = 0.199 atm
6
Step 6 — Verify with Cross-CheckMmix via mole-fraction route: Σ yi Mi = 0.7076 × 28.014 + 0.0938 × 44.009 + 0.1986 × 18.015 = 19.822 + 4.128 + 3.578 = 27.53 g/mol ✓. This matches the value from Step 3, confirming internal consistency.
All checks pass — the conversions are consistent.

Mass vs. Mole Basis — Strengths & Limitations

Choosing between mass fractions and mole fractions is not merely a matter of personal preference; each representation has inherent advantages depending on the type of analysis being performed. Understanding these strengths and limitations helps the engineer select the most efficient starting point and avoid unnecessary conversions that introduce rounding errors.

Table 2 — Comparative advantages of mass-based vs. mole-based composition descriptions
CriterionMass Fraction (mfᵢ)Mole Fraction (yᵢ)
MeasurementDirectly obtained from weighing (gravimetric analysis). No molecular-weight knowledge needed to measure.Requires conversion from mass measurements using molar masses. For ideal gases, equal to volume fraction—measurable by gas chromatography.
Conservation LawMass is conserved in all processes (including reactions). Mass flow rate splits directly with mfᵢ.Moles are conserved only in non-reacting systems. Reacting systems change total moles, complicating mole-fraction-based balances.
Ideal-Gas LawLess natural—requires mixture R or mixture M to apply PV = mRT / M.Natural fit: Pᵢ = yᵢP. Dalton's and Amagat's models both use mole fractions directly.
Specific PropertiesSpecific enthalpy, entropy, and heat capacity of mixtures are straightforward mass-weighted averages: h_mix = Σ mfᵢ hᵢ.Molar properties use mole-fraction weighting: h̄_mix = Σ yᵢ h̄ᵢ. Requires care to distinguish molar from specific quantities.
PsychrometricsHumidity ratio ω = m_v / m_a is a mass-based quantity closely related to mass fractions.Mole fractions of vapor and dry air connect directly to partial pressures and saturation conditions.
⚙️ PRACTICAL GUIDELINE
In engineering practice, think of the choice between mass and mole fractions as analogous to choosing between Cartesian and polar coordinates in a mechanics problem: both describe the same physical system, but one usually makes the governing equations simpler. For energy balances involving specific properties, mass fractions are typically more convenient. For partial-pressure and chemical-equilibrium calculations, mole fractions are the natural choice. Always verify your final answers by checking that all fractions sum to unity and that independent cross-conversion reproduces the original values.

Connection to Advanced Mixture Thermodynamics

Mass and mole fractions are the entry point to a much deeper framework. In graduate-level thermodynamics and chemical engineering, these composition variables feed into concepts such as fugacity, activity coefficients, and chemical potential, all of which require mole fractions in their definitions. The table below maps the introductory concepts covered in this lesson to their advanced counterparts, providing a roadmap for further study.

Table 3 — From introductory composition variables to advanced mixture thermodynamics
Introductory ConceptAdvanced ExtensionWhere It Appears
Mole fraction yᵢChemical potential μᵢ = μᵢ° + RT ln(yᵢ) for ideal mixtures; μᵢ = μᵢ° + RT ln(aᵢ) for non-idealPhase equilibrium, Gibbs energy minimization
Partial pressure Pᵢ = yᵢPFugacity f̂ᵢ = φ̂ᵢ yᵢ P, where φ̂ᵢ accounts for non-ideal gas interactionsHigh-pressure gas mixtures, equation-of-state calculations
M_mix = Σ yᵢ Mᵢ (ideal)Partial molar properties: V̄ᵢ = (∂V/∂nᵢ)_{T,P,nⱼ≠ᵢ} — volume does not mix ideallyLiquid mixtures, excess properties, activity models (Margules, Van Laar, NRTL)
Humidity ratio ω = mf_v / mf_aEnthalpy of moist air h = h_a + ω h_v; wet-bulb / dew-point analysesPsychrometric calculations, HVAC system design, cooling-tower analysis

The key takeaway for students at this stage is that mastering the mechanical skill of interconverting mass and mole fractions is not an end in itself—it is the prerequisite for virtually every advanced topic in mixture thermodynamics. Whether you progress to vapor–liquid equilibrium (VLE), reacting gas mixtures, or psychrometric process design, the composition variables and conversion machinery introduced here will remain the foundation of your analysis.

Practice Problems

PROBLEM 1CONCEPTUAL
A binary gas mixture contains one heavy species (M = 80 g/mol) and one light species (M = 4 g/mol) in equal mole fractions. Without computing exact numbers, explain qualitatively which species has the larger mass fraction and why the two sets of fractions differ.
PROBLEM 2BASIC CALCULATION
A gas mixture at 100 kPa contains 3 kmol of O2 (M = 32 kg/kmol) and 7 kmol of N2 (M = 28 kg/kmol). Calculate the mole fractions, mass fractions, apparent molar mass, and partial pressure of each species.
PROBLEM 3INTERMEDIATE
Flue gas has the following composition by mass: 70 % N2 (M = 28), 18 % CO2 (M = 44), 8 % H2O (M = 18), and 4 % O2 (M = 32). Convert to mole fractions. Then, if the total pressure is 101.325 kPa, determine the partial pressure of H2O and compare it with the saturation pressure at 60 °C (≈ 19.94 kPa) to determine whether condensation would occur.
PROBLEM 4APPLIED
An air-conditioning engineer treats moist air as a binary mixture of dry air (Ma = 28.97 g/mol) and water vapor (Mv = 18.015 g/mol). The humidity ratio is ω = 0.020 kgv/kga. Express ω in terms of mass fractions and then derive the mole fraction of water vapor. Assume atmospheric pressure of 101.325 kPa and verify that Pv equals yv × P.
PROBLEM 5CRITICAL THINKING
Prove algebraically that for any binary ideal-gas mixture (species A and B), mfA > yA if and only if MA > MB. Then discuss what happens to this inequality in a mixture with more than two components—does an analogous single condition exist?

Lesson Summary

This lesson established the two fundamental ways to describe the composition of a thermodynamic mixture: mass fraction (mfi = mi / mtotal) and mole fraction (yi = ni / ntotal). Both are dimensionless, bounded between 0 and 1, and obey the summation constraint Σ = 1. The apparent molar mass Mmix = Σ yi Mi serves as the conversion bridge: mfi = yi Mi / Mmix and yi = (mfi / Mi) / Σ(mfj / Mj).

For ideal-gas mixtures, mole fraction equals volume fraction and pressure fraction (Dalton's law: Pi = yi P). Mass fractions are preferred for specific-property calculations and mass balances, while mole fractions are essential for partial-pressure and chemical-equilibrium analyses. In psychrometric applications, the humidity ratio ω links the mass-fraction world to the mole-fraction world through ω = 0.622 Pv / (P − Pv). These composition variables form the indispensable foundation for all advanced mixture and humid-air thermodynamics.

Varsity Tutors • Thermodynamics • Mass & Mole Fractions