Pressure relief calculator
Size the valve. Paste the sheet.
API 520 / 521 orifice sizing, API 526 letter areas and body materials, API 2000 conservation vents, inlet 3% and outlet backpressure piping checks, plus Google Sheets formulas you can paste into A1. Library G, μ, Z, and k follow relieving T and P. Open About or Calc, then Cite, for the table or standard. The Example tab walks every input — why it is required and which term it feeds. Mix units per field — °C with lb/h is fine.
API 520 Part I/Critical and subcritical vapor relieving area from mass flow, k, and relieving pressure.
Inputs
At 100 °F · 124.7 psia · ρ 0.604 lb/ft³ · μ 0.0189 cP · Z 0.997 · k 1.4Peng–Robinson Z · Lucas/JST μ · tabulated k(T). Follows T and P for library fluids. Cite on the fluid field names the table.
PSV piping
NPS + schedule look up the inside diameter. ID updates with either control.
Elbows · tees · ends
In
Out
Elbows
90° LR elbow 16
90° SR elbow 30
45° elbow 16
180° return 50
90° miter (1 weld) 60
Tees
Tee, run-through 20
Tee, branch 60
Ends
Vessel entrance 26
Pipe exit 53
Valves · losses
In
Out
Valves
Gate valve (open) 8
Globe valve (open) 340
Angle valve (open) 150
Ball valve, full-port 3
Butterfly valve 45
Plug valve (open) 18
Swing check 100
Lift check 600
Losses
Sudden contraction 20
Sudden enlargement 30
Concentric reducer 10
Inlet Σ Le/D 16 · outlet Σ Le/D 32. Leq = L + (Σ Le/D) · D. Crane TP-410 (f_T ≈ 0.019); entrance/exit from K = 0.5 / 1.0.
Spring-loaded, no bellows. Total backpressure ≤ 10% of set (API 520 Part I / II).
Results
Required area
1.0153in²
P1
124.7psia
P2
14.696psia
Regime
Critical
C
356.06
rc
0.5283
r = P2/P1
0.1179
Rated W
12,676lb/h
Inlet 3% · outlet 10%
Inlet · 3% rule
2.66% of set
ΔP 2.658 psi · limit 3 (3%)
Outlet · 10% rule
2.85% of set
Total back 2.85 psig · limit 10 (10%)
Inlet ID / Leq
2.067″ · 5.8ft
Inlet velocity
251.22ft/s · Ma 0.22
Built-up backpressure
2.85psig · 2.9%
Outlet ID / Leq
4.026″ · 25.736ft
Outlet velocity
512.2ft/s · Ma 0.44
Darcy f · Re (inlet)
0.0192 · 2,151,759
Recommended NPS
2″
Keep4″ → 3″
DownsizeSmallest passing NPS at the current schedule — not so small it fails, not larger than it needs to be.
Outlet reaction force
116.26lbf
- Inlet and outlet losses use the rated capacity of the selected API 526 letter (API 520 Part II).
- Recommended NPS is the smallest at this schedule that still passes. Confirm it still matches the valve flanges.
Carbon steel
A216 WCB / A105 · SA-216 WCB · to 800 °F
Best performing environments. Dry air, nitrogen, sweet hydrocarbons, treated steam to ~800 °F, anhydrous ammonia, dry chlorine, and concentrated 93–98% sulfuric storage at ambient — the acid passivates iron with a ferrous-sulfate film. This is the default API 526 body (SA-216 WCB / WCC) and the cheapest flanged-steel PRV.
Recommended body for Air.
Vs Air. Air has no reducing-acid or wet-chloride mechanism. Compatibility with CS is “nothing in the fluid attacks iron” at 100 °F, provided T is inside the WCB envelope.
Also serviceable. Lean amine with a corrosion allowance; mild sour gas with NACE-hardness trim; oleum if kept dry.
Do not use. Dilute sulfuric (10–78%) eats CS extremely fast — the 93–98% film does not apply. Also nitric, HCl, organic acids, wet chlorine, seawater, and wet H2S without NACE. Derated above ~800 °F.
Trim. API 526 standard trim is 316 / 316L nozzle and disc; Stellite 6 facing for steam.
API 526. SA-216 WCB is a core API 526 flanged-steel body. Inlet × outlet flanges and orifice letters (D–T) follow API 526 for this material class.
Source
For this service
Carbon steel
WCB / A216 · A105 · to 800 °F
Carbon steel is the default body for Air.
Best in. Sweet HC, steam <800 °F, 93–98% H2SO4 ambient.
Why it is compatible. Air has no reducing-acid or wet-chloride mechanism. Compatibility with CS is “nothing in the fluid attacks iron” at 100 °F, provided T is inside the WCB envelope.
Benefits. Dry air, N₂, sweet hydrocarbons, alcohols, and water (non-seawater) are not corrosive to iron. WCB is the cheapest API 526 body to ~800 °F.
Watch. Wet H₂S, chlorides, and acids are the exceptions — they are different services. For Air at 100 °F, CS is compatible.
Cost. lowest installed cost among these picks.
Typical use. Hydrocarbon PRVs, steam below ~800 °F, concentrated sulfuric storage.
API 526. SA-216 WCB is a core API 526 flanged-steel body. Inlet × outlet flanges and orifice letters (D–T) follow API 526 for this material class.
Source
304 / 304L stainless
CF8 / CF3 · 304L · to 1500 °F
304L is a cheaper stainless than 316 for clean Air.
Best in. Nitric acid, clean steam, food-grade, alcohols.
316 / 316L stainless
CF8M / CF3M · 316L · to 1500 °F
316L is the cleanliness / chloride-trace upgrade for Air.
Best in. Organics, acetic, formalin, amine, solvents, steam.
Google Sheet
Copies a live calculator: highlighted cells are inputs, the rest are formulas. Open a blank Google Sheet, click A1, paste.
| ReliefCalc — Gas / vapor (API 520) | |
| Paste into A1 of a blank Google Sheet. Edit INPUT cells in column B — orifice and piping formulas stay live. | |
| INPUTS | Value |
| Fluid present | Air |
| Mass flow W | 10,000 |
| Relieving temperature T | 100 |
| Set pressure | 100 |
| Overpressure | 10 |
| Superimposed backpressure | 0 |
| Atmospheric pressure | 14.696 |
| Molecular weight M | 28.97 |
| Ratio of specific heats k | 1.4 |
| Compressibility Z | 1 |
| Viscosity μ | 0.018 |
| Discharge coefficient Kd | 0.975 |
| Backpressure factor Kb | 1 |
| Combination factor Kc | 1 |
| RESULTS | Value |
| Relieving pressure P1 | fx124.7 |
| Absolute backpressure P2 | fx14.696 |
| Absolute temperature | fx559.67 |
| Pressure ratio r | fx0.1179 |
| Critical ratio rc | fx0.5283 |
| Flow regime | fxCritical |
| Coefficient C | fx356.06 |
| Subcritical F2 | |
| Required area A | fx1.0153 |
| Required area | fx655.06 |
| Selected orifice | fxJ |
| Letter area | fx1.287 |
| Valve count | fx1 |
| Installed area | fx1.287 |
| Rated capacity | fx12,676 |
| Orifice used | fx0.789 |
| PIPING (API 520 Part II) | Value |
| Valve type | conventional |
| Backpressure limit | fx0.1 |
| Inlet NPS | 2 |
| Inlet schedule | 40 |
| Inlet length | 3 |
| Inlet Σ Le/D | 16 |
| Outlet NPS | 4 |
| Outlet schedule | 40 |
| Outlet length | 15 |
| Outlet Σ Le/D | 32 |
| Inlet ID | fx2.067 |
| Outlet ID | fx4.026 |
| Inlet Leq | fx5.76 |
| Outlet Leq | fx25.736 |
| Darcy f (inlet) | 0.0192 |
| Darcy f (outlet) | 0.0169 |
| Piping flow W | fxrated |
| Inlet ΔP | fx2.6577 |
| Built-up backpressure | fx2.8504 |
| 3% of set | fx3 |
| Inlet loss | fx0.0266 |
| Inlet 3% rule | fxPASS |
| 10% of set | fx10 |
| Total backpressure | fx2.85 |
| Outlet loss | fx0.0285 |
| Outlet 10% rule | fxPASS |
| Outlet reaction force | 116.26 |
| Methods: API 520 Part I (gas/vapor) and Part II (3% inlet / valve-type outlet). Kd, Kb, Kc from the valve manufacturer. Not a stamped design. |