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.
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.
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)
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
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:
- — required effective discharge area (mm²)
- — required relieving rate (kg/h)
- — coefficient from the specific-heat ratio k (≈ 0.027 for air)
- — relieving pressure (kPa absolute)
- — temperature (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).
Liquid service
For liquid service with a certified valve, the SI form is:
- — required relieving rate (L/min)
- — specific gravity relative to water
- — discharge coefficient (0.65), back-pressure correction (balanced valves), and viscosity correction from the Reynolds number
- — relieving 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
The fourteen standard orifice designations of API 526. Areas are the API effective areas used in preliminary sizing.
| Orifice | Area (mm²) | Area (in²) |
|---|---|---|
| D | 71 | 0.110 |
| E | 126.5 | 0.196 |
| F | 198.1 | 0.307 |
| G | 324.5 | 0.503 |
| H | 506.5 | 0.785 |
| J | 830.3 | 1.29 |
| K | 1,185.8 | 1.84 |
| L | 1,840.6 | 2.85 |
| M | 2,322.6 | 3.60 |
| N | 2,800 | 4.34 |
| P | 4,116.1 | 6.38 |
| Q | 7,129 | 11.1 |
| R | 10,322.6 | 16.0 |
| T | 16,774.2 | 26.0 |
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:
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 example | Standard's answer | This calculator |
|---|---|---|
| Example 1 — gas, critical flow | 3,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?
What is relieving pressure and how is it different from set pressure?
What are API 526 orifice letters?
Why shouldn't I oversize a relief valve?
What back pressure limit applies to a conventional relief valve?
When do I need a balanced-bellows relief valve?
What is Kd and why is it 0.975 for gas but 0.65 for liquid?
Can this calculator size two-phase or flashing relief?
Does this replace certified sizing from a valve manufacturer?
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.
