Skip to main content

Relief Valve Sizing Calculator (API 520 / API 526)

Size a pressure relief valve for gas, steam, or liquid service per API 520 Part I (10th edition). The calculator returns the required effective discharge area, selects the next standard API 526 orifice letter, and applies back-pressure (Kb/Kw), viscosity (Kv), superheat (KSH), and rupture-disc (Kc) corrections.

Preliminary sizing only. This tool uses the API 520 effective discharge coefficients and API 526 effective orifice areas — correct for selecting a preliminary valve size, but final selection must pair the manufacturer's ACTUAL orifice area with its CERTIFIED discharge coefficient, verified against the applicable code (ASME Section VIII, PED/EN ISO 4126) by the engineer responsible for the installation.
Gas / Vapor Sizing (API 520)

Size a relief valve in gas or vapor service. Critical (choked) flow is detected automatically; subcritical cases use the F2 method. Real-gas compressibility Z is computed with Peng-Robinson for the selected gas.

kPa(g)
kPa

Superimposed = pressure at the valve outlet before it opens (a level, gauge or absolute per the unit); built-up = the rise created by the valve's own discharge flow (a difference, so no gauge/absolute basis). Their sum is the total back pressure used for Kb/Kw and the flow regime. If the superimposed pressure varies in service, treat the variation as built-up for the 10% rule.

Near-ideal gas — Z = 1 assumed.

Relieving pressure P1 = 1,201.3 kPa (absolute) · set pressure 1,000 kPa(g) · back pressure = 0% of set (gauge)

Required Orifice Area
502.3 mm²
Required Orifice Area (in²)
0.779
API 526 Orifice
H
Capacity Margin
+1%

Selected Orifice Area: 506.5 mm² (0.785 in²)

Flow regime: critical (choked) — back pressure does not affect capacity.

C = 0.0270 · Kd = 0.975 · Kb = 1.000 · Kc = 1

How API 520 Relief Valve Sizing Works

Relief valve sizing determines the orifice area a pressure relief valve (PSV) needs to discharge the required relieving rate at the relieving pressure. The method comes from API 520 Part I; the standardized orifice sizes come from API 526. Sizing is the third step of a four-step process: identify the overpressure scenarios (API 521), establish the governing relieving rate, compute the required area, and select the next-larger standard orifice.

Set pressure, overpressure, and relieving pressure

The valve is sized at the relieving pressure P1 — the set pressure plus the allowed overpressure, in absolute terms. ASME Section VIII permits 10% accumulation for a single valve in a non-fire case, 16% for multiple valves, and 21% for the external fire case; the overpressure selector above applies the matching factor to the set pressure.

Gas and vapor service

For critical (choked) flow — the usual case, whenever the back pressure is below roughly half the relieving pressure — the required area in SI units is:

A=WCKdP1KbKcTZMA = \frac{W}{C \, K_d \, P_1 \, K_b \, K_c} \sqrt{\frac{T Z}{M}}
  • AArequired effective discharge area (mm²)
  • WWrequired relieving rate (kg/h)
  • CCcoefficient from the specific-heat ratio k (≈ 0.027 for air)
  • P1P_1relieving pressure (kPa absolute)
  • T,Z,MT, Z, Mtemperature (K), compressibility, and molecular mass

When the back pressure is above the critical ratio, the flow is subcritical and the F2 method applies — the calculator switches automatically. For balanced-bellows valves, the back-pressure correction Kb from API 520 Figure 30 is used instead, up to 50% gauge back pressure.

Steam service

Steam sizing uses the Napier equation with two corrections: KN for set pressures above about 10.3 MPa, and the superheat correction KSH interpolated from the API 520 table (saturated steam has KSH = 1).

A=190.5WP1KdKbKcKNKSHA = \frac{190.5 \, W}{P_1 \, K_d \, K_b \, K_c \, K_N \, K_{SH}}

Liquid service

For liquid service with a certified valve, the SI form is:

A=11.78QKdKwKcKvGP1P2A = \frac{11.78 \, Q}{K_d \, K_w \, K_c \, K_v} \sqrt{\frac{G}{P_1 - P_2}}
  • QQrequired relieving rate (L/min)
  • GGspecific gravity relative to water
  • Kd,Kw,KvK_d, K_w, K_vdischarge coefficient (0.65), back-pressure correction (balanced valves), and viscosity correction from the Reynolds number
  • P1P2P_1 - P_2relieving pressure minus total back pressure (kPa)

API 526 standard orifices

You do not buy an orifice of exactly the computed area: API 526 standardizes fourteen lettered orifice sizes from D (71 mm²) to T (16,774 mm²), and the next letter larger than the required area is selected. Resist adding margin by jumping extra letters — an oversized relief valve lifts, dumps more than the system supplies, slams shut, and repeats. That cycle is chatter, and it destroys seats.

Effective vs certified values

This calculator uses the API effective discharge coefficients (0.975 gas/steam, 0.65 liquid) with the API 526 effective areas — the preliminary-sizing system. The final check must use the manufacturer's actual orifice area together with its certified (National Board tested) discharge coefficient. Never mix one system's area with the other's coefficient.

What this calculator does not do

Two-phase and flashing-liquid relief is a specialist topic covered by API 520 Annex C and the DIERS methodology — none of the single-phase equations here may be extrapolated to it. Scenario determination (what governs: fire, blocked outlet, tube rupture…) and relieving-rate calculation per API 521 also sit upstream of this tool.

The two piping checks that make the valve work

A correctly sized valve is routinely wrecked by its piping. API 520 Part II limits the non-recoverable inlet-line loss to 3% of set pressure at rated flow — more, and the valve chatters. And the discharge flow creates built-up back pressure in the tailpipe: over 10% of set pressure, a conventional valve loses capacity and stability, which is what forces the switch to a balanced-bellows valve.

Both are ordinary compressible pressure-drop calculations on the inlet stub and tailpipe — exactly what a pipe network simulator answers.

For the full guide — terminology, certifications (ASME V/UV stamps, PED Category IV), and safe venting practice — see Safety Valve vs Relief Valve: Sizing & Certification Guide.

Related calculators & references

API 526 Orifice Letters and Areas

The fourteen standard orifice designations of API 526. Areas are the API effective areas used in preliminary sizing.

OrificeArea (mm²)Area (in²)
D710.110
E126.50.196
F198.10.307
G324.50.503
H506.50.785
J830.31.29
K1,185.81.84
L1,840.62.85
M2,322.63.60
N2,8004.34
P4,116.16.38
Q7,12911.1
R10,322.616.0
T16,774.226.0
Inputs and outputs explained
  • Required relieving rate. The flow the valve must pass in the governing scenario — a mass flow for gas and steam, a volumetric flow for liquid. It is an input: the scenario analysis (blocked outlet, external fire, control-valve failure, thermal expansion, …) that produces it is API 521 work and is not done here.
  • Set pressure and relieving pressure P1. Set pressure is the nameplate value at which the valve starts to open (gauge). Relieving pressure P1 = gauge set pressure × (1 + overpressure) + atmospheric, in absolute terms — the pressure the sizing equations use. Enter either; the summary line shows both.
  • Allowed overpressure. 10 % for a single valve on an ASME VIII vessel, 16 % where several valves share the duty, 21 % for the external-fire case. It raises P1 and, for balanced valves, sets which Kb curve applies.
  • Back pressure. Superimposed (present at the outlet before the valve opens) plus built-up (created by the valve's own discharge). Their sum is the total back pressure P2 that decides critical versus subcritical flow and, for balanced valves, the Kb / Kw correction. API 520 and most manufacturers limit built-up back pressure on a conventional valve to about 10 % of set pressure.
  • Valve type. Conventional and pilot-operated valves are sized without a back-pressure factor (a conventional valve's back pressure must stay within its limit instead). A balanced-bellows valve uses the critical-flow equation with Kb (gas) or Kw (liquid) up to 50 % gauge back pressure; beyond that the correlation ends and the valve choice must change.
  • Discharge coefficient Kd and Kc. API 520's effective coefficients for preliminary sizing: 0.975 for gas and steam, 0.65 for liquid on a certified valve, paired with the API 526 effective areas. Kc = 0.9 when a rupture disc is installed upstream and the combination is not certified; otherwise 1.
  • Gas properties. Molecular mass M, ideal-gas ratio k = Cp/Cv, and compressibility Z at relieving conditions — Peng-Robinson for a preset gas with critical properties, otherwise the value you enter (1 for a near-ideal gas). For steam the tab uses the Napier equation with KN above 10.3 MPa and the superheat factor KSH from the API 520 table.
  • Liquid properties. Specific gravity G relative to water and dynamic viscosity. Above a few centipoise the viscosity correction Kv falls below 1; it depends on the Reynolds number at the selected orifice, so the calculator sizes with Kv = 1, picks the orifice, evaluates Re there, and steps up a size if the corrected area no longer fits.
  • Correction factors. C — the critical-flow coefficient from k; F2 — the subcritical-flow coefficient from k and P2/P1; Kb / Kw — balanced-bellows back-pressure corrections for gas / liquid; Kv — the liquid viscosity correction from the Reynolds number; KN / KSH — the Napier high-pressure and superheat corrections for steam; Kc — the rupture-disc combination factor. The constants 0.03948, 17.9 and 190.5 in the equations are the unit-consistent SI constants of API 520 for W in kg/h, P in kPa and A in mm².
  • Outputs. The required effective discharge area, the next-larger API 526 orifice letter (D to T) with its effective area and the capacity margin, the flow regime, and the factors used (C, Kd, Kb, Kc; KN, KSH; Kw, Kv, Re).
Worked example — API 520 Part I, Example 1

The standard's first sizing example, worked with the equations above: a hydrocarbon vapour relief of 24,270 kg/h at relieving pressure 670 kPa (absolute) and 348 K, M = 51, k = 1.11, Z = 0.90, discharging to atmosphere through a conventional valve (Kd = 0.975, Kb = Kc = 1).

  1. Flow regime: back pressure over relieving pressure P2/P1 = 101.3/670 = 0.151; the critical-pressure ratio (2/(k+1))^(k/(k−1)) = 0.583. P2/P1 is less than the critical ratio, so the flow is critical (choked) and the back pressure does not enter the area.
  2. Coefficient C = 0.03948 · √(k · (2/(k+1))^((k+1)/(k−1))) = 0.02489 (SI form: W in kg/h, P1 in kPa, A in mm²).
  3. Required area A = W / (C · Kd · P1 · Kb · Kc) · √(T·Z/M) = 24,270 / (0.02489 × 0.975 × 670) · √(348 × 0.90 / 51) = 3,699 mm². The standard prints 3,698 mm² — its intermediate coefficients are rounded.
  4. Orifice: the next-larger API 526 effective area is the P orifice, 4,116 mm², a 11.3 % capacity margin.
  5. Example 2, subcritical: the same relief against 532 kPa (absolute) back pressure. P2/P1 = 0.794 exceeds 0.583, so the F2 method applies: F2 = 0.8548, A = 17.9 · W / (F2 · Kd · Kc) · √(T·Z / (M · P1 · (P1 − P2))) = 4,248 mm² (standard: 4,248).
  6. Example 4, superheated steam: 69,615 kg/h at 707 K (813 °F) and 12,236 kPa (absolute). Napier with the high-pressure factor KN = 1.0115 and the superheat factor KSH = 0.855: A = 190.5 · W / (P1 · Kd · Kb · Kc · KN · KSH) = 1,285 mm² (standard: 1,285).
  7. Example 5, liquid on a balanced valve: 1,800 US gpm of crude oil, G = 0.90, set 250 psig at 10 % overpressure, 50 psig back pressure (ΔP = 1,551 kPa). Back pressure is 20 % of set, so Kw = 0.9724 from the API 520 curve (the standard reads ≈ 0.97 off the figure); Kd = 0.65. First pass with Kv = 1: A = 3,059 mm² (standard: 3,066 — a 0.2 % rounding residual). The standard then checks the viscosity correction at the selected orifice, as the Liquid tab does automatically.

Regression summary — the standard's printed answers against this calculator, recomputed on every page load:

API 520 Part I (10th ed.) worked exampleStandard's answerThis calculator
Example 1 — gas, critical flow3,698 mm²3,699 mm²
Example 2 — gas, subcritical flow (F2)4,248 mm²4,248 mm²
Example 4 — superheated steam (KN, KSH)1,285 mm²1,285 mm²
Example 5 — liquid, balanced valve (Kw)3,066 mm²3,059 mm²

Small deviations come from the standard's own intermediate rounding (it works with rounded coefficients and unit conversions); the sizing functions are also verified term by term against the open-source fluids library's API 520 implementation.

These figures are computed by the same functions the tabs above run. To reproduce Example 1 on the Gas / Vapor tab: enter 24,270 kg/h and 348 with the K unit; switch the pressure field to Relieving Pressure (P1), select kPa(a) and enter 670 at 10 % overpressure; leave both back-pressure fields at their atmospheric defaults; pick a custom gas with M = 51, k = 1.11, Z = 0.90.

Assumptions and limits
  • Preliminary sizing per API 520 Part I with the effective discharge coefficients (Kd 0.975 gas/steam, 0.65 liquid) and the API 526 effective orifice areas. Final selection pairs the manufacturer's actual orifice area with its certified coefficient and is verified against the governing code (ASME VIII, PED / EN ISO 4126) by the responsible engineer.
  • Single-phase flow only — gas or vapour, dry or superheated steam, or liquid. Two-phase and flashing relief (API 520 Annex C, the DIERS omega method) is deliberately not implemented; a flashing liquid or a vapour–liquid mixture at the inlet needs that analysis.
  • Gas: ideal-gas critical-flow coefficient C from k, with compressibility Z at relieving conditions. Subcritical flow uses the F2 method for conventional and pilot valves; a balanced-bellows valve is sized on the critical equation with Kb, valid to 50 % gauge back pressure.
  • Steam: the Napier equation with KN for P1 above 10.3 MPa and KSH from the API 520 superheat table, valid to 649 °C and 22.06 MPa; beyond the table the gas method applies.
  • Liquid: the certified-valve method with Kw for balanced bellows and the Reynolds-number viscosity correction Kv evaluated at the selected orifice. Non-certified (ASME-capacity) liquid valves use a different procedure that is not offered here.
  • The relieving rate is an input. Scenario definition and load calculation — fire, blocked outlet, control-valve failure, thermal expansion, tube rupture — follow API 521 and are not performed by this page.
  • Installation is not checked: the 3 % inlet-loss rule, the built-up back-pressure limit and the outlet-line reaction force are API 520 Part II checks on the piping around the valve.

Those piping checks are the part a network solver answers — the inlet and discharge lines can be modelled in the SimuPipe sandbox to read the inlet loss and the built-up back pressure at the relieving flow. The full equation set is in the calculation methodology.

References

Standards and sources behind this page:

  • API Standard 520, Part I (2020). Sizing, Selection, and Installation of Pressure-relieving Devices — Part I: Sizing and Selection, 10th ed., American Petroleum Institute — the sizing equations, C, F2, Kb, Kw, Kv, KN and KSH, and the worked examples above.
  • API Standard 520, Part II (2020). Part II: Installation, 7th ed. — the inlet-loss and back-pressure installation rules.
  • API Standard 526 (2017). Flanged Steel Pressure-relief Valves, 7th ed. — the standard orifice letters D–T and their effective areas.
  • API Standard 521 (2020). Pressure-relieving and Depressuring Systems, 7th ed. — relieving-scenario definition and load calculation.
  • ASME Boiler and Pressure Vessel Code, Section VIII, Division 1, UG-125 to UG-140 — the overpressure allowances (10 / 16 / 21 %) and certification basis.
  • ISO 4126-1:2013. Safety devices for protection against excessive pressure — Part 1: Safety valvesthe European safety-valve standard for PED installations.
  • Bell, C. et al. fluids: Fluid dynamics component of Chemical Engineering Design Library (ChEDL). github.com/CalebBell/fluidsopen-source API 520 implementation the sizing functions are verified against.

Frequently Asked Questions

What is the difference between a safety valve and a relief valve?
A relief valve opens in proportion to the overpressure and is intended primarily for liquid service. A safety valve opens rapidly to full lift (pop action) and is intended for compressible service — gas, vapor, and steam. A safety relief valve is built to behave either way. All are sized with the same API 520 method; what changes between services is the equation (gas, steam, or liquid).
What is relieving pressure and how is it different from set pressure?
Set pressure is where the valve begins to open; relieving pressure is the pressure at which it delivers rated capacity — set pressure plus the allowed overpressure, expressed in absolute terms. ASME Section VIII allows 10% overpressure for a single valve (non-fire), 16% for multiple valves, and 21% for the fire case, which is why the calculator asks for the scenario.
What are API 526 orifice letters?
API 526 standardizes fourteen relief valve orifice sizes, lettered D (71 mm²) through T (16,774 mm²), together with standard center-to-face dimensions and flange ratings, so valves are interchangeable across manufacturers. You size to the required area and select the next larger letter.
Why shouldn't I oversize a relief valve?
An oversized relief valve lifts, discharges far more than the system is supplying, collapses the inlet pressure, slams shut, and repeats — a destructive cycle called chatter that damages the seat and can fatigue the inlet nozzle. Select the next standard orifice above the required area, not several letters above it.
What back pressure limit applies to a conventional relief valve?
For a conventional spring-loaded valve, the built-up back pressure should not exceed 10% of set pressure — beyond that, capacity and stability suffer, because back pressure adds to the spring's closing force. Balanced-bellows valves tolerate roughly 30-50% (with the Kb correction this calculator applies), and pilot-operated valves more still. The back pressure itself comes from a pressure-drop calculation on the discharge piping.
When do I need a balanced-bellows relief valve?
When the total back pressure — superimposed plus built-up — exceeds what a conventional valve tolerates (about 10% of set pressure for the variable part), or when the back pressure varies. The bellows isolates the spring from the outlet pressure, so the set point stays put; capacity is corrected with the Kb factor from API 520 Figure 30.
What is Kd and why is it 0.975 for gas but 0.65 for liquid?
Kd is the effective discharge coefficient — the ratio of real flow through the valve to ideal nozzle flow. API 520 gives 0.975 for gas/vapor/steam service and 0.65 for liquid service as preliminary-sizing values, paired with the API 526 effective orifice areas. The manufacturer's certified coefficient (from National Board testing, rated at 90% of the tested average) paired with the actual orifice area governs the final check.
Can this calculator size two-phase or flashing relief?
No — deliberately. Two-phase and flashing-liquid relief requires the API 520 Annex C / DIERS methodology, and extrapolating single-phase equations to it is unsafe. If your relieving fluid flashes across the valve, use a tool that implements the omega method or engage a specialist.
Does this replace certified sizing from a valve manufacturer?
No. It gives you a correct preliminary size per API 520 — the right orifice letter to inquire about. The final selection must be verified against the manufacturer's certified capacity data and the applicable code (ASME Section I or VIII in the ASME system, PED 2014/68/EU with EN ISO 4126 in Europe), by the engineer responsible for the equipment.

Check the piping around your relief valve

The 3% inlet-loss rule and the built-up back pressure are compressible pressure-drop calculations — model the inlet stub, tailpipe, or a whole relief header in SimuPipe's visual simulator.