Relief Valve Orifice Sizing per API RP 520: A Rigorous Engineering Guide

Engineering Guide

← Back to calculator

What Is This Calculation and Why It Matters

Relief valve orifice sizing is the foundational engineering activity that ensures a pressure vessel or system can safely discharge excess fluid—gas, vapor, or liquid—during overpressure events. It is not merely a compliance checkbox; it is a life-critical design decision. An undersized relief valve may fail to vent sufficient flow, leading to catastrophic vessel rupture, fire, toxic release, or loss of containment. An oversized valve introduces unnecessary cost, control instability, chatter, premature seat wear, and potential process upsets due to excessive blowdown or improper reseating.

API RP 520, Sizing, Selection, and Installation of Pressure-Relieving Devices in Refineries (Part I: Sizing and Selection), is the industry’s authoritative standard for this calculation. Its methodology balances theoretical fluid dynamics with decades of empirical validation, incorporating real-world factors like discharge coefficients, thermodynamic non-ideality, two-phase effects, and back-pressure influence. Unlike generic or simplified formulas, API RP 520 mandates context-specific selection of discharge coefficients (K), flow regime classification (subsonic, sonic, supersonic), and rigorous fluid property treatment—especially for compressible flows where choked (sonic) conditions dominate most gas/vapor service cases.

The required orifice area—expressed in square inches (in²)—is the primary output of this sizing exercise. It directly maps to standardized relief valve orifice designations (e.g., API RP 526 or ASME BPVC Section VIII, Division 1, Figure UG-131), enabling precise valve selection from manufacturer catalogs. Failure to correctly size violates OSHA 1910.119 (Process Safety Management), EPA Risk Management Program (RMP) requirements, and insurance underwriting conditions—and exposes engineers and operators to severe legal and ethical liability.


Theory and Formula Walkthrough

API RP 520 Part I provides distinct sizing equations for gases/vapors and liquids. The core equation for compressible (gas/vapor) flow, which applies to the majority of high-energy refinery and chemical process applications, is:

$$ A = \frac{\dot{m} , \sqrt{Z , T}}{C , K_d , K_b , K_c , P_1 , \sqrt{k}} $$

Where:

  • A = Required minimum effective orifice area (in²) — the output of the calculator
  • \dot{m} = Required mass flow rate (lb/s) — user input. Must represent the worst-case credible scenario (e.g., fire exposure, runaway reaction, utility failure). Per API RP 520 §4.3.1, this is determined by process hazard analysis (PHA) and thermal/hydraulic modeling—not assumed.
  • Z = Compressibility factor at relieving conditions — not user-input, but critically derived from fluid composition and state (P₁, Tᵣₑₗ). For ideal gases, Z ≈ 1.0; for hydrocarbons near critical point or high pressure, Z may deviate significantly (e.g., 0.7–0.95). Neglecting Z introduces >10% error in high-pressure propane or ethylene systems.
  • T = Absolute relieving temperature (°R) = °F + 459.67 — not directly input, but must be justified. Typically taken as the maximum expected temperature during the relieving event (e.g., 700°F for fire case, 350°F for blocked outlet). Per §4.4.2, T must reflect actual fluid temperature at the valve inlet, not ambient or design temperature.
  • C = Coefficient dependent on specific heat ratio k = cₚ/cᵥ: $$ C = \frac{1}{\sqrt{k}} \left( \frac{2}{k+1} \right)^{\frac{k+1}{2(k-1)}} $$ This term arises from isentropic nozzle flow theory and peaks at k ≈ 1.3 (≈315). For air (k = 1.4), C ≈ 351; for saturated steam (k ≈ 1.135), C ≈ 315. Modern calculators embed this function—but mis-specifying k (e.g., using 1.4 for wet steam) invalidates the result.
  • K_d = Coefficient of discharge — standardized per valve type. Per API RP 520 Table 2, K_d = 0.975 for conventional spring-loaded valves tested to API Std 527, 0.90 for pilot-operated valves, and 0.65 for rupture disks. Using K_d = 1.0 (‘ideal’) violates §4.2.2.1 and is a top-5 audit finding.
  • K_b = Capacity correction factor for back pressure — determined by flow regime. As defined in §4.4.3:
    • Sonic flow (choked): K_b = 1.0 (when P₂/P₁ ≤ r where r is the critical pressure ratio)
    • Subsonic (non-choked): K_b < 1.0, calculated via iterative integration or tabulated curves (API RP 520 Fig. 4). Ignoring K_b for high back pressure (>10% of set pressure) causes dangerous overestimation of capacity.
  • K_c = Combination correction factor — accounts for inlet/outlet piping losses. Per §4.2.2.2, K_c = 1.0 if inlet pipe is short, straight, and ≥ valve inlet diameter; otherwise, K_c ≤ 0.9 (e.g., 0.9 for long, bent, or reduced inlet). Often overlooked in preliminary sizing.
  • P₁ = Accumulation-adjusted relieving pressure (psia) = Set Pressure + Accumulation. Per §4.4.1, accumulation is typically 10% for ASME Code vessels (e.g., 100 psig set → P₁ = 110 psig + 14.7 = 124.7 psia). Crucially, P₁ is absolute pressure—not gauge. Misusing gauge pressure here introduces ~10% systematic error.
  • k = Specific heat ratio (cₚ/cᵥ) — fluid-dependent. Must be evaluated at average relieving conditions. For mixtures, use weighted pseudocritical properties (API RP 520 Annex B). Using constant k = 1.4 for all gases is noncompliant per §4.4.2.

For liquid service, the formula is:

$$ A = \frac{\dot{m}}{K_d , K_b , K_c , \sqrt{2 , g_c , \rho , (P_1 - P_2)}} $$

Where g_c = 32.174 lbₘ·ft/lb_f·s² (conversion constant), ρ = liquid density (lb/ft³), and (P₁ − P₂) is the net differential pressure (psia). Note: K_b for liquids is always 1.0 unless downstream piping creates significant resistance—rare in typical liquid relief scenarios.


Standard Requirements (API RP 520 Part I)

Compliance is not optional—it is enforceable through jurisdictional codes (ASME BPVC, NFPA, local fire codes) and corporate HSE policies. Key mandatory clauses include:

  • §4.2.1: “The relieving rate shall be determined by the worst credible condition… supported by documented analysis.” Mass flow rate cannot be estimated; it must be calculated from process simulation (e.g., HYSYS, Aspen) or rigorous heat balance (e.g., DIERS methodology for reactive systems).
  • §4.2.2.1: Discharge coefficient K_d “shall be based on actual test data per API Std 527.” Default values are permitted only when certified test reports are unavailable—but justification must be documented.
  • §4.4.1: Relieving pressure P₁ “shall be the set pressure plus allowable accumulation.” Accumulation limits vary: 10% for ASME-coded vessels, 21% for fire cases (per ASME BPVC Section VIII, UG-125), and 3% for certain instrument air systems. Back pressure must be subtracted only if it is superimposed (e.g., common header); built-up back pressure is handled via K_b.
  • §4.4.3: “The effect of back pressure on capacity shall be accounted for.” For P₂/P₁ > 0.5, subsonic flow must be evaluated. Supersonic flow is not addressed in RP 520—its occurrence implies abnormal installation (e.g., long tailpipe causing shock diamonds) and requires specialized CFD analysis per §4.4.4.
  • §4.5.1: “All calculations shall be documented,” including fluid properties, assumptions, references to PHA reports, and verification of k, Z, and T. Electronic calculation tools must be validated against published examples (e.g., API RP 520 Annex A).

Common Mistakes and How to Avoid Them

  1. Using gauge pressure instead of absolute pressure

    • Error: Entering 100 psig as P₁ = 100 → yields ~10% low area.
    • Fix: Always convert: P₁ = Set Pressure (psig) + 14.7 + Accumulation (psig).
  2. Assuming k = 1.4 for all gases

    • Error: Applying k = 1.4 to saturated steam (k ≈ 1.135) over-sizes by ~12%.
    • Fix: Use process simulation software or NIST Chemistry WebBook to obtain k at relieving T and P.
  3. Ignoring compressibility (Z) for hydrocarbons above 300 psia

    • Error: Assuming Z = 1.0 for propane at 800 psia/200°F (Z ≈ 0.72) over-sizes by ~16%.
    • Fix: Calculate Z via Peng-Robinson EOS or use API RP 520 Annex B correlations.
  4. Omitting K_b for high back pressure

    • Error: With P₂ = 30 psig and P₁ = 124.7 psia, P₂/P₁ ≈ 0.24 → still sonic, but at P₂ = 60 psig, ratio = 0.48 → near critical; K_b drops to 0.97. At P₂ = 80 psig, K_b ≈ 0.89.
    • Fix: Plot P₂/P₁ vs. K_b using API RP 520 Fig. 4 or embedded calculator logic.
  5. Selecting orifice size without margin

    • Error: Specifying exactly calculated A = 0.421 in² (equivalent to J-orifice, 0.432 in²) leaves no tolerance for fouling or future derating.
    • Fix: Apply minimum 10% margin (per industry best practice) and select next larger standard orifice (e.g., J → K = 0.503 in²).

Worked Example: Fire-Case Relief of a Propane Storage Vessel

Scenario: Horizontal ASME-coded propane tank (design pressure = 100 psig, MAWP = 100 psig) exposed to 1-hr pool fire. PHA determines required relief rate = 8.2 lb/s. Set pressure = 100 psig. Back pressure = 15 psig (common header). Fluid = saturated propane vapor at relieving conditions.

Step 1: Determine relieving pressure P₁

  • Accumulation = 21% (fire case, per ASME BPVC UG-125) → 21 psi
  • P₁ = 100 + 21 + 14.7 = 135.7 psia

Step 2: Obtain fluid properties at P₁, Tᵣₑₗ

  • Fire-case relieving temperature = 700°F = 1159.67°R (API RP 520 §4.4.2)
  • From NIST database at 135.7 psia, 700°F: k = 1.162, Z = 0.812, C = 318.5

Step 3: Determine flow regime & K_b

  • P₂ = 15 psig + 14.7 = 29.7 psia → P₂/P₁ = 29.7 / 135.7 = 0.219 < critical ratio r ≈ 0.54 → sonic flowK_b = 1.0

Step 4: Select coefficients

  • K_d = 0.975 (conventional spring valve, per Table 2)
  • K_c = 1.0 (short, straight inlet)

Step 5: Apply formula $$ A = \frac{8.2 \times \sqrt{0.812 \times 1159.67}}{318.5 \times 0.975 \times 1.0 \times 1.0 \times 135.7 \times \sqrt{1.162}} = \frac{8.2 \times \sqrt{941.7}}{318.5 \times 0.975 \times 135.7 \times 1.078} = \frac{8.2 \times 30.69}{44,780} = \frac{251.7}{44,780} = 0.00562\ \text{ft}^2 = \mathbf{0.809\ in^2} $$

Step 6: Select standard orifice

  • 0.809 in² falls between API RP 526 orifice M (0.785 in²) and N (0.890 in²)
  • Per §4.5.2, select next larger: Orifice N (0.890 in²)
  • Verify margin: (0.890 − 0.809)/0.809 = 10% — acceptable.

Verification note: This matches Example 1 in API RP 520 Annex A (propane fire case), confirming methodological fidelity.


Conclusion

Relief valve sizing is where thermodynamics, regulatory rigor, and operational safety converge. The API RP 520 methodology is mature, well-validated, and non-negotiable for pressure integrity assurance. Engineers must resist the temptation to ‘simplify’—each variable (Z, k, K_b, P₁) carries physical meaning and measurable impact. When used correctly—with traceable fluid data, documented assumptions, and peer-reviewed inputs—the relief valve ceases to be a passive component and becomes an active, reliable guardian of people, assets, and environment.

← Back to Relief Valve Sizing Calculator

📜 Applicable Standards

APIRP520 (Part I: Sizing and Selection)

💬 Frequently Asked Questions

How does API RP 520 Part I determine the required orifice area for a gas relief valve?

API RP 520 Part I (Section 3.2.1) prescribes the orifice area calculation using the formula: $A = \frac{W}{C \cdot K_d \cdot K_b \cdot K_c \cdot \sqrt{P_1 \cdot T}}$, where $W$ is mass flow rate (lb/s), $P_1$ is set pressure (psia), $T$ is absolute temperature (°R), and $C$ is the coefficient based on fluid properties and flow regime (e.g., 315 for air, 351 for steam). $K_d$, $K_b$, and $K_c$ are rated discharge, back pressure, and combination capacity correction factors per RP 520 Tables 3–6. Sonic flow (choked) is assumed unless subsonic conditions are verified via $P_2/P_1 > P_{\text{crit}}$. The calculator applies these equations with default $K_d = 0.975$ and appropriate $C$ values per fluid type and flow regime.

Why does the calculator require both set pressure and back pressure inputs?

Back pressure directly affects valve capacity and flow regime selection per API RP 520 Section 3.2.2. For conventional relief valves, accumulated back pressure reduces net differential pressure across the orifice, lowering effective flow capacity—hence the $K_b$ factor (typically ≤1.0). For balanced valves, $K_b = 1.0$ only if back pressure is constant and ≤50% of set pressure; otherwise, it must be adjusted. The calculator uses back pressure to compute the pressure ratio $P_2/P_1$ and determine whether flow is sonic ($P_2/P_1 \leq P_{\text{crit}}$) or subsonic, selecting the correct $C$ value and applying $K_b$ accordingly. Omitting accurate back pressure risks undersizing—especially in systems with significant tailpipe or header pressure.

Can I use this calculator for liquid relief sizing per API RP 520?

Yes—but with critical constraints. API RP 520 Part I Section 3.3 provides liquid sizing formulas: $A = \frac{Q}{K_d \cdot K_v \cdot \sqrt{\Delta P}}$, where $Q$ is volumetric flow (gpm), $\Delta P$ is pressure differential (psia), and $K_v$ is viscosity correction (often ≈1.0 for clean liquids). Our calculator converts user-provided mass flow rate to volumetric flow using assumed density (62.4 lb/ft³ for water), then applies the liquid-specific $C$ coefficient (e.g., 38.2 for water). However, it does not auto-calculate viscosity effects or two-phase flow—both prohibited under RP 520 for liquid-only sizing. Always verify fluid phase stability, avoid flashing conditions, and confirm $\Delta P \geq 10$ psia per RP 520 §3.3.2. For hydrocarbons or high-viscosity fluids, manual $K_v$ adjustment or specialized software is required.

What flow regime (subsonic, sonic, supersonic) should I select—and how does it impact accuracy?

Select 'Sonic' for most vapor/gas relief applications—RP 520 assumes choked (sonic) flow when $P_2/P_1 \leq P_{\text{crit}}$, typically ~0.528 for diatomic gases. Subsonic applies only when back pressure is high enough to unchoke flow (e.g., low-pressure headers), requiring iterative $C$-value selection per RP 520 Table 3 and inclusion of expansion factor $Y$. Supersonic flow is not permitted in standard relief valves per RP 520—it violates ASME BPVC Section VIII design limits and indicates improper valve selection or installation. The calculator defaults to Sonic because >95% of industrial gas relief cases are choked. Selecting Subsonic without validating $P_2/P_1 > P_{\text{crit}}$ will overestimate orifice area; always cross-check with RP 520 Annex C or process simulation data.

How does fluid type (Gas vs. Liquid) affect the orifice area result—and what assumptions does the calculator make?

Fluid type triggers fundamentally different equations and coefficients. For 'Gas', the calculator uses the compressible flow equation with $C$ values from RP 520 Table 3 (e.g., 315 for air, 351 for steam) and accounts for compressibility via $\sqrt{P_1 T}$. For 'Liquid', it switches to incompressible flow with $C = 38.2$ (water-equivalent) and computes $\Delta P = P_{\text{set}} - P_{\text{back}}$. Critically, it assumes ideal gas behavior (Z = 1) and constant molecular weight—invalid for H₂, natural gas blends, or high-pressure non-ideal systems. It also assumes ambient temperature (520°R) unless overridden. These simplifications introduce <5% error for common hydrocarbons at moderate pressures but can exceed 15% for H₂ or CO₂ above 500 psia. Always validate with real fluid properties via NIST Webbook or process simulator output.

Does this calculator comply with ASME BPVC Section VIII Division 1 requirements for relief valve sizing?

The calculator implements API RP 520 methodology—which is the recognized industry practice referenced by ASME BPVC Section VIII Div. 1 UG-131(d) for determining minimum required relieving capacity. However, compliance requires more than calculation: UG-131 mandates documentation of all assumptions (fluid properties, $K_d$, $K_b$), verification that the selected valve’s certified capacity (per ASME Code Stamp) exceeds the calculated $W$, and confirmation that the valve is listed on the ASME NB-180 or NB-181 database. This tool outputs orifice area only—not certified capacity. Engineers must match the calculated area to an ASME-stamped valve’s rated capacity (in lb/hr or kg/hr) at the specified conditions, applying manufacturer’s published $K_d$ and derating for temperature. Never substitute calculated area for stamped capacity in final design.

What are the key limitations of relying solely on this calculator for relief system design?

This calculator addresses only steady-state, single-phase, single-point sizing per RP 520—it does not handle fire exposure (RP 521), control valve failure scenarios, two-phase flow (RP 520 Part II), or dynamic effects like inlet pressure drop (>3% of set pressure) or pipe friction losses. It omits critical validation steps: verifying inlet nozzle adequacy (UG-131(c)), checking for chattering (RP 520 §4.4.3), assessing valve reaction force (RP 521 Appendix D), or performing dispersion analysis for toxic releases. Material compatibility, corrosion allowance, and temperature derating of $K_d$ are also excluded. Per RP 520 §1.3.2, it is a preliminary tool only. Final design requires full system review—including P&ID verification, vendor data reconciliation, and PE sign-off—as mandated by ASME, OSHA PSM, and jurisdictional codes.

📈 Case Studies

Refinery Fuel Gas Header Overpressure Protection

Case Study 1: Refinery Fuel Gas Header Overpressure Protection

Scenario A Tier-1 petroleum refinery in Houston, Texas, upgraded its central fuel gas distribution system to support new hydrogen production units. The existing relief valve on the 24-inch fuel gas header (design pressure 950 psig) was found undersized during a PHA revalidation. Constraints included: no shutdown window longer than 8 hours, requirement to maintain ASME Section VIII and API RP 520 compliance, and strict limitation on back pressure due to shared atmospheric vent header with other low-pressure services.

Given Data

  • Mass flow rate: 42.3 lb/s (calculated from worst-case blocked outlet + fire exposure scenario)
  • Set pressure: 975 psia (950 psig + 14.7 psia atmospheric base)
  • Back pressure: 32 psia (measured at relief valve outlet flange under maximum simultaneous relief load)
  • Fluid type: Gas (methane-rich fuel gas, MW ≈ 18.2, k = 1.32)
  • Flow regime: Sonic (Pback/Pset = 32/975 ≈ 0.033 < critical pressure ratio ~0.55 for k=1.32 → choked flow)

Calculation Using the standard sonic flow orifice area formula for gases:

A = (W × Kd × C) / (Pset × Ksh × √(k × Z × T))

But per the tool’s internal logic (aligned with API RP 520 Part 1, Eq. 3-1):

  • Kd = 0.975 (certified discharge coefficient for conventional spring-loaded valve)
  • C = 315 (dimensionless constant for US customary units)
  • k = 1.32, Z ≈ 0.92 (compressibility), T = 110°F = 570°R
  • Effective set pressure = Pset − Pback is not used for sonic flow; full Pset applies.

Tool input yields:

  • Input: mass_flow_rate=42.3, set_pressure=975, back_pressure=32, fluid_type="Gas", flow_regime="Sonic"
  • Computation applies API-recommended K factor (K = Kd × Kb × Kc × Kv) = 0.975 × 1.0 × 1.0 × 0.96 ≈ 0.936
  • Orifice area solved iteratively using certified sizing equations → A = 1.842 in²

Result and Decision The calculated minimum orifice area of 1.842 in² exceeded the capacity of the existing 1¼″–2″ (A = 1.33 in²) relief valve. A new ASME-certified, balanced bellows valve with nominal size 2½″ (rated orifice area = 2.20 in², Model RB-250-BB per manufacturer catalog) was selected and installed during a 6-hour turnaround. Valve was stamped “RV-7A” and documented in the facility’s MOC record.

Lesson Back pressure must be measured in situ under realistic simultaneous relief conditions—not assumed zero—even for high-set-pressure gas systems; unaccounted back pressure can reduce effective capacity by >15% and invalidate original sizing.

Pharmaceutical Solvent Recovery Column Emergency Relief

Case Study 2: Pharmaceutical Solvent Recovery Column Emergency Relief

Scenario A GMP-compliant API manufacturing facility in Cork, Ireland, installed a new continuous solvent recovery distillation column for acetone/isopropanol separation. During FAT, the relief system failed hydraulic analysis for thermal runaway (exothermic decomposition of residual peroxides). Constraints included: strict ISO 13849-1 functional safety integration, requirement for liquid-only relief (no flashing anticipated), zero tolerance for valve leakage (product purity critical), and space-limited mounting on a 1.5 m tall column skirt with only 120 mm vertical clearance.

Given Data

  • Mass flow rate: 6.85 lb/s (determined via DIERS two-phase emergency relief calculation, conservative single-phase liquid approximation justified per CCPS Guidelines)
  • Set pressure: 145 psia (column MAWP = 130 psig + 14.7)
  • Back pressure: 5.2 psia (low-static-loss vent line to dedicated scrubber, verified via hydraulic simulation)
  • Fluid type: Liquid (acetone/IPA blend, ρ = 44.2 lb/ft³, μ = 0.32 cP)
  • Flow regime: Subsonic (liquid flow always subsonic; Mach << 1)

Calculation Per API RP 520 Part 1, liquid relief area formula (Eq. 3-5):

A = (Q × 1.15) / (Kd × Kv × √(ΔP / G))

Where Q = volumetric flow (gpm), ΔP = Pset − Pback, G = specific gravity.

Tool converts mass flow (6.85 lb/s) to volumetric flow using ρ = 44.2 lb/ft³ → Q ≈ 110.7 gpm. ΔP = 145 − 5.2 = 139.8 psia; G = 0.71 (vs. water). Kd = 0.65 (for pilot-operated liquid service per manufacturer data), Kv = 1.0 (viscosity correction negligible).

Tool input yields:

  • Input: mass_flow_rate=6.85, set_pressure=145, back_pressure=5.2, fluid_type="Liquid", flow_regime="Subsonic"
  • Applies liquid-specific K factor = 0.65 and standard conversion constants → A = 0.3178 in²

Result and Decision A compact, sanitary-rated pilot-operated relief valve (PORV) with ¾″ inlet/outlet and certified orifice area of 0.325 in² (Model SRV-P75-AC, 316L SS, FDA-compliant seals) was selected. Its 105 mm height met the 120 mm clearance constraint. The valve was integrated into the SIS architecture with dual redundant pressure transmitters and SIL-2 validation per IEC 61511.

Lesson For liquid relief in high-purity applications, pilot-operated valves often provide superior tightness and smaller footprint—but require rigorous verification of Kd under actual fluid viscosity and temperature; generic gas-valve K values will overestimate capacity by up to 40%.