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 Valves vs Relief Valves: Sizing, Certification, and Venting Safely.

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
How accurate is this sizing calculation?

The calculator implements the API 520 Part I (10th edition) equations directly, and its numerical engine is verified case-by-case against the open-source fluids engineering library's API 520 implementation. You can check it against the standard's own worked example:

Worked example (API 520, gas)

A hydrocarbon vapor relief of 24,270 kg/h at relieving pressure 670 kPa (absolute), 348 K, M = 51, k = 1.11, Z = 0.9, discharging to atmosphere: the required area is 3,699 mm² (the standard prints 3,698, from its rounded intermediate coefficients), which rounds up to a P orifice (4,116 mm²). To reproduce it on the Gas / Vapor tab: enter the relieving rate 24,270 kg/h and temperature 348 with the K unit; switch the pressure field to Relieving Pressure (P1), select the kPa(a) unit, then enter 670 at 10% overpressure; leave both back-pressure fields at their defaults (atmospheric discharge; the fields convert automatically when you change units); and pick a custom gas with M = 51, k = 1.11, Z = 0.9.

Every release of this calculator is regression-tested against the standard's own worked examples. Current results:

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 underlying engine is also verified case-by-case against the open-source fluids library.

For the full equation set and standards references, see our calculation methodology.

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.