ChemProCal
Academy Knowledge Base + New Calculation Login Sign Up
Thermodynamics Rachford-Rice Flash Calculation VLE

The Rachford-Rice Equation: Thermodynamic Derivation, Phase Boundary Diagnostics & Robust Numerical Solvers

Rigorous engineering guide to isothermal Vapor-Liquid Equilibrium (VLE) flash calculations. Details the mathematical derivation of the Rachford-Rice objective function, phase boundary diagnostics (subcooled liquid vs superheated vapor), asymptotes and poles, safeguarded Brent / bounded Newton-Raphso

Published
October 23, 2026
Reading Time
~16 Minutes
Technical Review
ChemProCal Engineering Editorial Team
📑 Table of Contents (Tap to view sections)

    Interactive Engineering Calculation Tool: Model isothermal vapor-liquid equilibrium flashes, calculate equilibrium vapor fractions ($\psi = V/F$), and generate multi-component equilibrium phase compositions ($x_i, y_i$) using the companion Isothermal Flash Tank (VLE) Sizer.


    1. Executive Summary & Flash Thermodynamics

    In chemical processing, petroleum refining, and natural gas production, an isothermal flash is a fundamental unit operation in which a multi-component fluid stream undergoes a pressure letdown (or temperature change) inside an equilibrium vessel (such as a flash drum, knockout pot, or column feed stage). The fluid partially vaporizes into coexisting vapor and liquid phases that achieve thermodynamic phase equilibrium.

    The fundamental objective of an isothermal flash calculation is to determine: 1. The Phase Split: The molar vapor fraction ($\psi = V/F$) and molar liquid fraction ($L/F = 1 - \psi$). 2. Equilibrium Compositions: The exact mole fractions of every chemical component in the equilibrium vapor phase ($y_i$) and liquid phase ($x_i$).

                     ISOTHERMAL FLASH EQUILIBRIUM STAGE
    
                         Feed Stream (F, z_i)
                         at Temperature T, Pressure P
                                  |
                                  v
                       +---------------------+
                       |   FLASH DRUM /      |====> Equilibrium Vapor (V, y_i)
                       |   EQUILIBRIUM STAGE |      y_i = K_i * x_i
                       |   (T, P Constant)   |
                       +----------+----------+
                                  |
                                  v
                         Equilibrium Liquid (L, x_i)
                         x_i = z_i / [1 + psi*(K_i - 1)]
    

    Flash calculations are executed millions of times per second inside commercial process simulators (e.g., Aspen Plus, Aspen HYSYS, PRO/II) to model distillation trays, pipeline two-phase flow envelopes, and oil-gas separator trains. At the heart of every isothermal flash algorithm lies the Rachford-Rice Equation (Rachford & Rice, 1952).


    2. Rigorous Mathematical Derivation of the Rachford-Rice Formulation

    Consider a feed stream with a total molar flow rate $F$ and overall component mole fractions $z_i$ ($i = 1, 2, \dots, C$, with $\sum_{i=1}^C z_i = 1$). Inside the equilibrium stage at temperature $T$ and pressure $P$, the feed separates into $V$ moles of vapor and $L$ moles of liquid.

    2.1 Material Balances

    1. Overall Molar Balance:

    2. Component Material Balance:

    Dividing the component balance by total feed $F$ and defining the molar vapor fraction $\psi \equiv V/F$:

    2.2 Phase Equilibrium & Equilibrium Ratio ($K_i$)

    Thermodynamic equilibrium demands that the chemical potential (or fugacity) of each component must be identical in both phases:

    This equilibrium relationship is expressed using the equilibrium ratio (K-value):

    Where $\hat{\phi}_i^L$ and $\hat{\phi}_i^V$ are the fugacity coefficients of component $i$ in the liquid and vapor mixtures, respectively (calculated via an Equation of State such as Peng-Robinson or Soave-Redlich-Kwong).

    2.3 Expressing Phase Compositions in Terms of $\psi$

    Substituting $y_i = K_i x_i$ into the normalized component balance:

    Solving for the liquid phase mole fraction $x_i$:

    The equilibrium vapor mole fraction $y_i$ is immediately obtained:

    2.4 The Sum of Fractions Constraint & Objective Function

    By definition of mole fractions, the sum of all components in each phase must independently equal unity:

    While one could solve either $\sum x_i - 1 = 0$ or $\sum y_i - 1 = 0$, both forms are highly non-linear and numerically ill-conditioned. Rachford and Rice recognized that subtracting the two constraints eliminates the $1.0$ term and produces a self-normalizing, symmetric objective function:

    Substituting the expressions for $x_i$ and $y_i$:

    Factoring out $z_i$:

    This is the canonical Rachford-Rice Equation.


    3. Phase Boundary Diagnostics: Does a Root in $[0, 1]$ Always Exist?

    A widespread misconception in introductory engineering texts is that “the Rachford-Rice equation always has exactly one real root between 0 and 1.”

    [!IMPORTANT] Engineering Reality: A real root in the physical domain $0 < \psi < 1$ exists if and only if the mixture is inside the two-phase (VLE) region at the specified $T$ and $P$. If the mixture is outside the two-phase envelope, no physical root exists in $[0, 1]$. Attempting to solve Rachford-Rice directly on a single-phase fluid without boundary diagnostics causes numerical solvers to fail, loop indefinitely, or converge to non-physical negative compositions.

    Before initiating any root-finding algorithm, a robust flash routine must evaluate the phase boundaries at $\psi = 0$ and $\psi = 1$:

                       PHASE BOUNDARY DECISION LOGIC
                                   |
                                   v
                +--------------------------------------+
                | Evaluate f(0) = sum(z_i * K_i) - 1   |
                +------------------+-------------------+
                                   |
                       f(0) <= 0   |   f(0) > 0
                +------------------+-------------------+
                |                                      |
                v                                      v
      +-----------------------+              +-------------------------------------+
      | SUBCOOLED LIQUID      |              | Evaluate f(1) = 1 - sum(z_i / K_i)  |
      | psi = 0.0 (No Vapor)  |              +------------------+------------------+
      | x_i = z_i, y_i undefined             |                  |
      +-----------------------+                  f(1) >= 0      |   f(1) < 0
                                             +------------------+------------------+
                                             |                                     |
                                             v                                     v
                                   +--------------------+               +--------------------+
                                   | SUPERHEATED VAPOR  |               | TWO-PHASE (VLE)    |
                                   | psi = 1.0 (No Liq) |               | Physical root in   |
                                   | y_i = z_i          |               | 0 < psi < 1 exists |
                                   +--------------------+               +---------+----------+
                                                                                  |
                                                                                  v
                                                                        Proceed to Solve
                                                                        Rachford-Rice f(psi)=0
    

    3.1 Subcooled Liquid Diagnostic ($\psi = 0$)

    At the bubble point ($\psi = 0$), the first bubble of vapor is formed. Evaluating $f(0)$:

    • If $f(0) < 0$ ($\sum z_i K_i < 1$): The mixture is subcooled liquid. The system pressure exceeds the bubble point pressure at temperature $T$. No vapor exists:
    • If $f(0) = 0$ ($\sum z_i K_i = 1$): The mixture is exactly at its saturated bubble point.

    3.2 Superheated Vapor Diagnostic ($\psi = 1$)

    At the dew point ($\psi = 1$), the last droplet of liquid condenses. Evaluating $f(1)$:

    • If $f(1) > 0$ ($\sum \frac{z_i}{K_i} < 1$): The mixture is superheated vapor. The system temperature exceeds the dew point temperature at pressure $P$. No liquid exists:
    • If $f(1) = 0$ ($\sum \frac{z_i}{K_i} = 1$): The mixture is exactly at its saturated dew point.

    3.3 Two-Phase Existence Criterion

    A valid physical root strictly in $0 < \psi < 1$ exists if and only if:


    4. Mathematical Poles, Monotonicity & Why Naive Newton-Raphson Diverges

    4.1 Strict Monotonicity in the Physical Domain

    The derivative of $f(\psi)$ with respect to $\psi$ is given by:

    Since $z_i > 0$ and $(K_i - 1)^2 \ge 0$, every term in the summation is strictly non-negative. Because the entire sum is preceded by a negative sign:

    Because $f'(\psi)$ is strictly negative throughout $[0, 1]$, $f(\psi)$ is strictly monotonically decreasing from $f(0) > 0$ to $f(1) < 0$. By the Intermediate Value Theorem, this guarantees that inside $[0, 1]$, the function crosses zero at exactly one unique point.

    4.2 Singular Poles (Asymptotes) Outside $[0, 1]$

    The denominator of term $i$ becomes zero when:

    • For volatile components with $K_i > 1$: $\psi_{pole, i} = \frac{1}{-(K_i - 1)} < 0$ (all poles lie to the left of 0).
    • For heavy components with $K_i < 1$: $\psi_{pole, i} = \frac{1}{1 - K_i} > 1$ (all poles lie to the right of 1).

    The poles closest to the physical domain define the strict mathematical bounds:

                  RACHFORD-RICE FUNCTION BEHAVIOR & POLES
       f(psi)
         ^         |                                       |
     +inf|         |                                       |   /
         |         |   f(0) > 0                            |  /
         |         |      \                                | /
         |         |       \                               |/
      0 -+---------+--------\------------------------------+------> psi
         |         |         \                             |
         |         |          \                            |
         |         |           \                           |
         |        /|            f(1) < 0                   |
     -inf|       / |                                       |
         +---------+---------------------------------------+
                 psi_min                                 psi_max
             = 1/(1-K_max)                            = 1/(1-K_min)
                 (< 0)                                   (> 1)
    

    4.3 The Failure Mode of Naive Newton-Raphson

    The unconstrained Newton-Raphson formula is:

    If an initial guess $\psi^{(0)}$ is chosen where $|f'(\psi)|$ is small, the calculated step $\Delta \psi = -f / f'$ can be massive, throwing the next estimate $\psi^{(k+1)}$ outside the interval $(\psi_{min}, \psi_{max})$ across a vertical pole.

    Once the iteration crosses a pole, $f(\psi)$ switches signs discontinuously, sending the solver into wild divergence, NaN loops, or convergence to a non-physical root where $x_i < 0$ or $y_i > 1$.


    5. Robust Numerical Solvers for Process Engineering

    To guarantee $100\%$ convergence reliability in industrial applications, chemical engineers employ safeguarded numerical algorithms:

    5.1 Bounded Newton-Raphson with Step Clipping

    Before accepting a Newton step $\psi^{(k+1)}$, the algorithm verifies that the new value remains strictly within safe bounds: 1. Initialize $\psi^{(0)} = 0.5$ (or calculate using the Wilson approximation). 2. Set dynamic bounds: $a = 0.0$ and $b = 1.0$. 3. Compute Newton step: $\Delta \psi = -f(\psi) / f'(\psi)$. 4. If $\psi + \Delta \psi \le a$ or $\psi + \Delta \psi \ge b$: * Reject the Newton step. * Fallback to a safe Bisection step: $\psi^{(k+1)} = \frac{a + b}{2}$. 5. If $f(\psi^{(k+1)}) > 0$, update lower bound $a = \psi^{(k+1)}$; else update upper bound $b = \psi^{(k+1)}$. 6. Repeat until $|f(\psi)| < 10^{-10}$ or $|\Delta \psi| < 10^{-8}$ (typically $4\text{--}6$ iterations).

    5.2 Brent's Root-Finding Algorithm

    Brent’s method combines bisection, secant, and inverse quadratic interpolation. It is mathematically guaranteed to converge as fast as secant method while retaining the absolute convergence safety of bisection. It is the gold standard solver in open-source thermo libraries (e.g., SciPy scipy.optimize.brentq).

    5.3 The Negative Flash Extension (Whitson & Michelsen)

    In compositional reservoir simulation, fluid phases frequently cross between single-phase and two-phase regions during depletion. Whitson and Michelsen (1989) formulated the Negative Flash, permitting $\psi$ to take mathematical values $< 0$ or $> 1$ within the extended domain $(\psi_{min}, \psi_{max})$. * If $\psi < 0$: The fluid is single-phase liquid, and the magnitude of $|\psi|$ indicates the distance from the bubble point. * If $\psi > 1$: The fluid is single-phase gas, and $(\psi - 1)$ indicates the degree of superheat.


    6. K-Value Estimation: Ideal vs. Rigorous Thermodynamic Models

    The accuracy of any flash calculation depends directly on the quality of the equilibrium ratios $K_i$:

    6.1 Low-Pressure Ideal Systems: Raoult's Law & Antoine

    At pressures below $2\text{--}3\ \text{bar}$ with chemically similar hydrocarbons: Where $P_i^{sat}(T)$ is the pure component vapor pressure calculated via the Antoine equation:

    6.2 Wilson's Empirical Correlation

    For non-ideal hydrocarbon systems up to moderate pressures ($P < 35\ \text{bar}$), Wilson's equation provides rapid, reliable estimates: Where $T_{c, i}$ is critical temperature, $P_{c, i}$ is critical pressure, and $\omega_i$ is Pitzer's acentric factor.

    6.3 Rigorous High-Pressure EOS Modeling

    At elevated pressures ($> 10\ \text{bar}$) and near-critical conditions, real gas compressibility and liquid solution non-ideality require rigorous Equations of State (Peng-Robinson or SRK): Because the fugacity coefficients depend on the unknown compositions $\mathbf{x}$ and $\mathbf{y}$, the flash becomes a two-tier nested iteration: * Inner Loop: Solve the Rachford-Rice equation for $\psi$ using constant $K_i$. * Outer Loop: Update compositions $\mathbf{x}, \mathbf{y}$, recalculate fugacities via EOS, and update $K_i$ via Successive Substitution (SSI) or Accelerated Newton-Raphson until fugacity ratios reach unity:


    7. Fully Worked Industrial Engineering Example

    Problem Statement:

    A natural gas condensate stream enters an inlet flash drum at $T = 310\ \text{K}$ ($36.85^\circ\text{C} / 98.3^\circ\text{F}$) and $P = 40.0\ \text{bar}$ ($4{,}000\ \text{kPa} / 580.2\ \text{psia}$). The feed composition and Wilson K-values at flash conditions are:

    Component Feed Fraction ($z_i$) $T_c$ ($\text{K}$) $P_c$ ($\text{bar}$) Acentric ($\omega$) Wilson $K_i$
    Methane ($\text{CH}_4$) $0.450$ $190.56$ $45.99$ $0.011$ $4.150$
    Ethane ($\text{C}_2\text{H}_6$) $0.150$ $305.32$ $48.72$ $0.099$ $1.185$
    Propane ($\text{C}_3\text{H}_8$) $0.150$ $369.83$ $42.48$ $0.152$ $0.485$
    n-Butane ($\text{n-C}_4$) $0.120$ $425.12$ $37.96$ $0.200$ $0.195$
    n-Pentane ($\text{n-C}_5$) $0.130$ $469.70$ $33.70$ $0.251$ $0.065$

    Step 1: Phase Boundary Diagnostics

    1. Bubble Point Check at $\psi = 0$: Conclusion: Mixture is above its bubble point (vapor WILL form).

    2. Dew Point Check at $\psi = 1$: Conclusion: Mixture is below its dew point (liquid WILL condense).

    3. Phase Identification: Since $f(0) = +1.150 > 0$ and $f(1) = -2.160 < 0$, the mixture lies firmly in the two-phase (VLE) region. A unique physical root strictly exists in $0 < \psi < 1$.

    Step 2: Bounded Newton-Raphson Solution

    We initialize at $\psi^{(0)} = 0.500$.

    Iteration 1:

    Evaluating $f(0.5)$ and $f'(0.5)$: * For $\text{CH}_4$: Denom $= 1 + 0.5(4.15 - 1) = 2.575$. Term $= \frac{0.45 \times 3.15}{2.575} = +0.5505$. Deriv $= -\frac{0.45 \times 3.15^2}{2.575^2} = -0.6726$ * For $\text{C}_2\text{H}_6$: Denom $= 1 + 0.5(0.185) = 1.0925$. Term $= \frac{0.15 \times 0.185}{1.0925} = +0.0254$. Deriv $= -0.0043$ * For $\text{C}_3\text{H}_8$: Denom $= 1 + 0.5(-0.515) = 0.7425$. Term $= \frac{0.15 \times (-0.515)}{0.7425} = -0.1040$. Deriv $= -0.0722$ * For $\text{n-C}_4$: Denom $= 1 + 0.5(-0.805) = 0.5975$. Term $= \frac{0.12 \times (-0.805)}{0.5975} = -0.1617$. Deriv $= -0.2177$ * For $\text{n-C}_5$: Denom $= 1 + 0.5(-0.935) = 0.5325$. Term $= \frac{0.13 \times (-0.935)}{0.5325} = -0.2283$. Deriv $= -0.4011$

    Summing terms:

    Updating $\psi$:

    Iteration 2:

    Evaluating at $\psi^{(1)} = 0.5599$:

    Iteration 3:

    Evaluating at $\psi = 0.5572$:

    Step 3: Calculating Equilibrium Phase Compositions

    Using $\psi = 0.5572$:

    Component Feed ($z_i$) Liquid Mole Fraction ($x_i$) Vapor Mole Fraction ($y_i$) Check: $y_i - x_i$
    Methane ($\text{CH}_4$) $0.450$ $0.1633$ $0.6777$ $+0.5144$
    Ethane ($\text{C}_2\text{H}_6$) $0.150$ $0.1360$ $0.1612$ $+0.0252$
    Propane ($\text{C}_3\text{H}_8$) $0.150$ $0.2104$ $0.1020$ $-0.1084$
    n-Butane ($\text{n-C}_4$) $0.120$ $0.2176$ $0.0424$ $-0.1752$
    n-Pentane ($\text{n-C}_5$) $0.130$ $0.2713$ $0.0176$ $-0.2537$
    SUM $1.000$ $0.9986 \approx 1.000$ $1.0009 \approx 1.000$ $\approx 0.0000$

    Verification: Notice how methane concentrates massively into the vapor phase ($67.8\ \text{mol}\%$), while the heavy butane and pentane fractions remain concentrated in the liquid phase ($21.8\%$ and $27.1\%$). The sum of fractions in both phases independently equals $1.00$, and the sum of differences equals zero, proving rigorous thermodynamic closure.


    8. Diagnostic Troubleshooting & Convergence Failure Matrix

    Phenomenon / Error Thermodynamic Mechanism Diagnostic Symptom Remediation Action
    Solver Converges to Negative Compositions ($x_i < 0$) Unconstrained Newton step jumped across a pole ($\psi_{pole} = 1/(1-K_i)$). $\psi > \psi_{max}$ or $\psi < \psi_{min}$; sum of fractions diverges. Implement step clipping: restrict step to $\psi \in [0, 1]$; fall back to bisection if Newton step exits bounds.
    Solver Loops Forever Near Critical Point Near-critical retrogrades: $K_i \to 1.0$ for all components; $f'(\psi) \to 0$. Derivative vanishes ($f' \to 0$); infinite step size $\Delta \psi \to \infty$. Switch to Gibbs free energy minimization (Michelsen's tangent plane distance analysis).
    False Two-Phase Solution in Single-Phase Liquid Phase boundary check skipped; $f(0) < 0$ but solver was forced to solve $f(\psi) = 0$. Solver finds a mathematical root at $\psi < 0$ (Whitson negative flash). Enforce mandatory diagnostic check: if $f(0) \le 0$, immediately assign $\psi = 0, x_i = z_i$.
    False Two-Phase Solution in Superheated Gas Phase boundary check skipped; $f(1) > 0$ but solver was forced to run. Solver finds a mathematical root at $\psi > 1.0$. Enforce mandatory diagnostic check: if $f(1) \ge 0$, immediately assign $\psi = 1, y_i = z_i$.

    Engineering Design Verification: To execute rigorous isothermal flash calculations with multi-component hydrocarbon feeds and Wilson or EOS K-values, use the Isothermal Flash Tank (VLE) Sizer.

    
    Apply This Fundamental

    Isothermal Flash Tank (VLE)

    Apply this methodology directly in the ChemProCal calculator.

    Open Calculator →

    Engineering Standards & Peer-Review Governance

    Technical Standard Review: ChemProCal Engineering Editorial Team

    Rigorously audited against multi-component Vapor-Liquid Equilibrium (VLE) thermodynamics, isothermal flash material balances, phase boundary diagnostics (subcooled vs superheated checks), and robust numerical root-finding algorithms (safeguarded Brent and bounded Newton-Raphson).

    Domain Thermodynamics
    Governing Standards API RP 521, GPSA Section 25, Perry Chemical Engineers Handbook (Sec 13)
    Content Classification Design Guide
    Cite this technical guide:
    ChemProCal Engineering (2026). "The Rachford-Rice Equation: Thermodynamic Derivation, Phase Boundary Diagnostics & Robust Numerical Solvers." ChemProCal Engineering Fundamentals. https://chemprocal.com/blog/rachford-rice-flash/