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²

API 526 J78.892% used
Orifice used78.892%

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

Pass

2.66% of set

ΔP 2.658 psi · limit 3 (3%)

Outlet · 10% rule

Pass

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

Downsize
inlet

2″

Keep
outlet

4″ → 3″

Downsize

Smallest 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.
air / inertAir100 °F · 100 psig

Carbon steel

A216 WCB / A105 · SA-216 WCB · to 800 °F

Fits this serviceAPI 526 standard

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

Recommendedlowest costAPI 526 standard

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

Budget optionmid costAPI 526 standard

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

Upgrademid costAPI 526 standard

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. 
  
INPUTSValue
Fluid presentAir
Mass flow W10,000
Relieving temperature T100
Set pressure100
Overpressure10
Superimposed backpressure0
Atmospheric pressure14.696
Molecular weight M28.97
Ratio of specific heats k1.4
Compressibility Z1
Viscosity μ0.018
Discharge coefficient Kd0.975
Backpressure factor Kb1
Combination factor Kc1
  
RESULTSValue
Relieving pressure P1fx124.7
Absolute backpressure P2fx14.696
Absolute temperaturefx559.67
Pressure ratio rfx0.1179
Critical ratio rcfx0.5283
Flow regimefxCritical
Coefficient Cfx356.06
Subcritical F2 
Required area Afx1.0153
Required areafx655.06
Selected orificefxJ
Letter areafx1.287
Valve countfx1
Installed areafx1.287
Rated capacityfx12,676
Orifice usedfx0.789
  
PIPING (API 520 Part II)Value
Valve typeconventional
Backpressure limitfx0.1
Inlet NPS2
Inlet schedule40
Inlet length3
Inlet Σ Le/D16
Outlet NPS4
Outlet schedule40
Outlet length15
Outlet Σ Le/D32
Inlet IDfx2.067
Outlet IDfx4.026
Inlet Leqfx5.76
Outlet Leqfx25.736
Darcy f (inlet)0.0192
Darcy f (outlet)0.0169
Piping flow Wfxrated
Inlet ΔPfx2.6577
Built-up backpressurefx2.8504
3% of setfx3
Inlet lossfx0.0266
Inlet 3% rulefxPASS
10% of setfx10
Total backpressurefx2.85
Outlet lossfx0.0285
Outlet 10% rulefxPASS
Outlet reaction force116.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.