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 Valve vs Relief Valve: Sizing & Certification Guide.
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 |
- 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).
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).
- 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.
- 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²).
- 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.
- Orifice: the next-larger API 526 effective area is the P orifice, 4,116 mm², a 11.3 % capacity margin.
- 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).
- 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).
- 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 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 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.
- 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.
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 valves — the European safety-valve standard for PED installations.
- Bell, C. et al. fluids: Fluid dynamics component of Chemical Engineering Design Library (ChEDL). github.com/CalebBell/fluids — open-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?
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.
