How to Calculate Mole Fraction of Vapor
Use this premium calculator to compute vapor mole fractions from either Raoult’s law inputs or direct vapor mole data.
Component B in liquid is xB = 1 – xA.
yA = (xA · P*A,sat) / (xA · P*A,sat + xB · P*B,sat)
yA = nA / (nA + nB), yB = nB / (nA + nB)
Expert Guide: How to Calculate Mole Fraction of Vapor Correctly
Mole fraction in the vapor phase is one of the most important composition metrics in chemical engineering, environmental engineering, distillation design, HVAC psychrometrics, and laboratory thermodynamics. If you are working with a two-component system, the vapor mole fraction for component A, written as yA, tells you what part of total vapor molecules belong to A. It is dimensionless and always ranges from 0 to 1.
The core reason this matters is practical: phase equilibrium decisions depend on vapor composition, not only liquid composition. In many systems, the vapor phase is richer in the more volatile component. That difference is exactly what drives separation. If you can calculate vapor mole fractions accurately, you can estimate relative volatility effects, process safety limits, vent composition, and likely condenser loads.
What Is Mole Fraction of Vapor?
Mole fraction in a vapor mixture is defined as: yi = ni / ntotal, where ni is moles of component i in the vapor phase and ntotal is the sum of vapor moles of all components. For a binary mixture (A + B), you only need one independent vapor mole fraction because: yA + yB = 1.
- If yA = 0.90, 90% of vapor molecules are A and 10% are B.
- If yA = 0.50, vapor is equimolar in A and B.
- If yA is much higher than xA (liquid mole fraction), A is significantly more volatile than B under those conditions.
Two Standard Ways to Calculate Vapor Mole Fraction
Most engineers use one of two routes depending on available data:
- Direct vapor mole method: If you directly know moles in vapor (for example, from a gas analyzer or mass balance), compute yi by dividing each component’s vapor moles by total vapor moles.
- Raoult’s law method for ideal or near-ideal mixtures: If vapor moles are not directly measured, use liquid composition and component saturation pressures to estimate partial pressures and then yi.
Method 1: Direct Vapor Mole Method
This is mathematically simple and experimentally robust. For a binary vapor: yA = nA / (nA + nB) and yB = nB / (nA + nB). If your analyzer gives mole percent, divide by 100 to get mole fraction.
Example: Suppose vapor contains 1.2 mol A and 0.8 mol B. Then: yA = 1.2 / (1.2 + 0.8) = 0.60 and yB = 0.40. This method is preferred when composition data is measured directly and does not require assumptions about ideal behavior.
Method 2: Raoult’s Law Method for Binary Mixtures
For ideal-liquid behavior at equilibrium: pA = xA · P*A,sat and pB = xB · P*B,sat. Total pressure is P = pA + pB, and vapor mole fraction follows Dalton’s law: yA = pA / P, yB = pB / P.
Combined into one expression: yA = (xA · P*A,sat) / (xA · P*A,sat + xB · P*B,sat). This is exactly what the calculator above computes in Raoult mode.
Data Table 1: Saturation Vapor Pressure of Water (Reference Values)
The numbers below are widely reported in thermodynamic databases and are consistent with values used in engineering handbooks. These illustrate how sensitive vapor behavior is to temperature.
| Temperature (°C) | Water Saturation Vapor Pressure, P* (kPa) | Practical Interpretation |
|---|---|---|
| 20 | 2.34 | Low evaporation potential relative to warm conditions |
| 30 | 4.24 | Nearly 2x higher than at 20°C |
| 40 | 7.38 | Substantial increase in vapor-phase water tendency |
| 60 | 19.95 | Strong volatility increase, critical for drying and humidification |
Worked Example Using Raoult’s Law
Assume a binary liquid at fixed temperature has xA = 0.40 and xB = 0.60. Let P*A,sat = 46.8 kPa and P*B,sat = 19.9 kPa. Then pA = 0.40 × 46.8 = 18.72 kPa, pB = 0.60 × 19.9 = 11.94 kPa, and total pressure P = 30.66 kPa. Therefore: yA = 18.72 / 30.66 = 0.6106 and yB = 0.3894.
Notice that A is only 40% in liquid but about 61% in vapor. That enrichment indicates A is more volatile than B under this condition. This is the same physical basis that makes distillation possible.
Data Table 2: Binary Example (Benzene-Toluene at Fixed Temperature)
Using representative saturation pressures around 80°C (benzene ~101.0 kPa, toluene ~38.6 kPa), you can see how vapor enrichment changes with liquid composition.
| xBenzene in Liquid | pBenzene (kPa) | pToluene (kPa) | Total P (kPa) | yBenzene in Vapor |
|---|---|---|---|---|
| 0.20 | 20.2 | 30.9 | 51.1 | 0.395 |
| 0.50 | 50.5 | 19.3 | 69.8 | 0.724 |
| 0.80 | 80.8 | 7.7 | 88.5 | 0.913 |
When Calculations Deviate from Reality
Real mixtures are not always ideal. Strong interactions, polarity effects, hydrogen bonding, and association can cause non-ideal vapor-liquid equilibrium. In those systems, corrected models use activity coefficients: pA = xA · gammaA · P*A,sat. If gammaA or gammaB differs substantially from 1, Raoult-only estimates may be biased.
- Use activity coefficient models (Wilson, NRTL, UNIQUAC) for rigorous design.
- Use experimental VLE data for safety-critical or high-purity separations.
- Keep temperature consistent with vapor pressure source data.
- Never mix units between Pa, kPa, bar, and mmHg without conversion.
Step-by-Step Workflow You Can Reuse
- Define system and components (binary or multicomponent).
- Gather temperature and pressure basis.
- Collect x values in liquid and P* values at the same temperature.
- Compute each partial pressure: pi = xi · P*i,sat (or with gamma correction).
- Sum partial pressures to get total vapor pressure, P.
- Compute each vapor mole fraction: yi = pi / P.
- Verify all yi values sum to 1.000 within rounding tolerance.
Common Mistakes and How to Avoid Them
- Using wrong temperature: vapor pressure is highly temperature-sensitive, so even small errors can move yi significantly.
- Confusing mass fraction with mole fraction: always convert using molecular weights before applying mole-fraction formulas.
- Ignoring non-ideal behavior: if system is strongly non-ideal, Raoult’s law alone can underpredict or overpredict vapor enrichment.
- Unit inconsistency: partial pressures and total pressure must be in the same unit before dividing.
- Rounding too early: keep at least 4 to 6 significant digits during intermediate steps.
How This Applies in Practice
In distillation, vapor mole fractions define tray-by-tray enrichment and therefore energy duty and column height. In environmental control, vapor mole fraction predicts volatile emissions from storage systems. In humidity calculations, water vapor mole fraction links to relative humidity, dew point, and latent load. In laboratory work, yi is often the bridge between equilibrium theory and chromatographic measurements.
Authoritative References for Further Validation
- NIST Chemistry WebBook (.gov) for vapor pressure data and thermophysical references.
- NOAA Water Vapor Educational Resource (.gov) for atmospheric vapor fundamentals.
- MIT OpenCourseWare Thermodynamics (.edu) for equilibrium derivations and engineering context.
Professional tip: for quick screening, Raoult’s law is excellent. For design-grade decisions, verify with measured VLE data or activity-coefficient-based simulation, especially for polar or associating mixtures.