Relief Line & Flare Header Sizing
Inlet-line pressure loss (the 3% rule), and built-up, superimposed and total back pressure from the outlet line for a PSV, with choked-line detection, reusing this app's compressible-flow relations (S17).
Overview
What it calculates
This calculator checks the piping on both sides of a gas relief valve. On the inlet side it computes the friction loss from the vessel at set pressure to the valve and compares it with the API 520 Part II 3 percent rule. On the outlet side it works back from the flare header or atmosphere to find the built-up back pressure at the valve outlet. It adds the terminus pressure as superimposed back pressure and reports the total. Both lines use the isothermal general flow equation with a Colebrook friction factor, as in Gas Line Pressure Drop (General / Fundamental Flow Equation).
When to use it
Use it after picking a valve, to confirm the inlet and tailpipe will not make it chatter or lose capacity. It suits a single valve's inlet and discharge line. A full flare header with many sources relieving at once needs a network model.
Inputs that matter most
Diameter dominates. Pressure drop in a gas line goes roughly with D^-5 at fixed mass flow, so one pipe size up usually solves a failing check. Enter each line length with fittings already added as equivalent length. Use Equivalent Length of Fittings & Valves for that. The relief rate matters too. API 520 Part II bases the inlet loss on the valve's rated capacity, not the required load, so enter the rated flow of the selected orifice when checking the 3 percent rule.
Reading the results
A conventional valve passes when built-up back pressure is no more than 10 percent of set (gauge). Balanced bellows and pilot valves pass when total back pressure stays within the manufacturer limit you enter. An outlet Mach number above 0.7 is flagged. If either line reaches the isothermal choking limit, Mach 1/√k, it is reported as choked and no pressure drop is given.
Limits and common mistakes
The relieving temperature and Z apply along the whole line, which ignores the cooling of gas as it expands. The 10 percent conventional limit assumes 10 percent overpressure. Fire cases allow more. A superimposed back pressure that varies, because other valves share the header, needs a balanced or pilot valve.
Equations
Source: API 520 Part II
| Symbol | Meaning | Units (US / SI) |
|---|---|---|
| Set pressure | psig / kPag |
Source: API 520 Part II
| Symbol | Meaning | Units (US / SI) |
|---|---|---|
| Inlet pressure loss fraction | - |
Inputs
| Input | Symbol | Default | Typical range or options |
|---|---|---|---|
| Relief rate | 10,000 lb/hr (4,536 kg/h) | ||
| Molecular weight | 32 lb/lbmol (32 kg/kmol) | ||
| Relieving temperature | 170.3 °F (76.85 °C) | ||
| Specific heat ratio | 1.3 | ||
| Compressibility factor | 0.95 | ||
| Set pressure | 170.3 psig (1,174 kPag) | ||
| Inlet line diameter | 4.026 in (102.3 mm) | ||
| Inlet line length (incl. fittings as equivalent length) | 9.843 ft (3 m) | ||
| Inlet pipe material | Commercial steel | Commercial steel | |
| Outlet line diameter | 6.068 in (154.1 mm) | ||
| Outlet line length (incl. fittings as equivalent length) | 98.43 ft (30 m) | ||
| Terminus pressure (flare header / atmosphere) | 14.7 psia (101.3 kPaa) | ||
| Relief valve type | Conventional spring-loaded (built-up ≤ 10% of set) | Conventional spring-loaded (built-up ≤ 10% of set) Balanced bellows (total vs manufacturer limit) Pilot-operated (total vs manufacturer limit) | |
| Manufacturer total back-pressure limit (% of set, gauge) | 50 |
Outputs
- Inlet ΔP as % of set pressure ()
- Built-up back pressure (outlet-line loss) ()
- Superimposed back pressure (terminus) ()
- Total back pressure at the valve outlet ()
- Built-up back pressure as % of set (gauge)
- Total back pressure as % of set (gauge)
- Inlet line ΔP
- Outlet line ΔP
- Mach number in the outlet line ()
- Passes the 3% inlet rule?
- Passes the back-pressure limit for the selected valve type?
Assumptions and limitations
Assumptions
- Built-up back pressure is the pressure increase at the valve outlet caused by flow in the discharge line (the outlet-line loss). Superimposed back pressure is the terminus (flare header or atmosphere) pressure. Total back pressure is their sum, the pressure at the valve outlet (API 520 Part I, API 521).
- Back-pressure check: conventional valves pass when built-up back pressure is no more than 10% of set (gauge), the allowable overpressure for the usual 10% case. Balanced bellows and pilot-operated valves pass when total back pressure is within the manufacturer limit entered. For fire cases (21% overpressure) a conventional valve can accept more built-up back pressure than the 10% used here.
- Choked flow: the isothermal line equation reaches its maximum flow when the Mach number at the low-pressure end reaches 1/√k. An inlet line that reaches this limit at the valve end, or an outlet line that reaches it at the terminus, is reported as choked with no pressure-drop result.
- Both lines use the same isothermal general-flow-equation core as S17-08 (Colebrook friction factor, single-pass evaluation at the known relief rate — no flow/pressure iteration is needed since W is given).
- The outlet line's built-up back pressure is computed from the terminus (flare header or atmospheric) pressure back to the valve outlet, at the same relief rate.
Limitations
- Fittings are entered as an equivalent length added directly to the physical line length, not itemized by fitting type.
Worked example
W=1.26 kg/s, MW=32, T=350K, k=1.3, Z=0.95, short/large inlet line, long/small outlet line to atmosphere
Inputs
| Relief rate | 10,000 lb/hr (4,536 kg/h) |
|---|---|
| Molecular weight | 32 lb/lbmol (32 kg/kmol) |
| Relieving temperature | 170.3 °F (76.85 °C) |
| Specific heat ratio | 1.3 |
| Compressibility factor | 0.95 |
| Set pressure | 170.3 psig (1,174 kPag) |
| Inlet line diameter | 4.026 in (102.3 mm) |
| Inlet line length (incl. fittings as equivalent length) | 9.843 ft (3 m) |
| Inlet pipe material | Commercial steel |
| Outlet line diameter | 6.068 in (154.1 mm) |
| Outlet line length (incl. fittings as equivalent length) | 98.43 ft (30 m) |
| Terminus pressure (flare header / atmosphere) | 14.7 psia (101.3 kPaa) |
| Relief valve type | Conventional spring-loaded (built-up ≤ 10% of set) |
| Manufacturer total back-pressure limit (% of set, gauge) | 50 |
Expected results
| Mach number in the outlet line | 0.1718 |
|---|
No published worked example exists for this reused-solver combination calculator; the check value is this implementation's own self-consistent result, verified by an independent hand mass/energy balance rather than a published figure.
The calculator's test suite checks that the solver reproduces these results.
References
- Standard Gas Processing Engineering Practice
- API Standard 520, Part II
Guides that use this calculator
Pitfalls to watch for
- The PID Gospel: Reaching for a PID loop and tuning for every control problem, including those it handles poorly.
- The Drain & Flare Forgetfulness: Giving the main units careful design while relief headers, the flare and drains get the leftovers.
Fluid failures
- The Seal Leg Blowout: 1 ft of water seal holds about 0.43 psi (US units). 1 m of water seal holds about 9.8 kPa (SI units).
Distress signals
- Relief Valve Simmering: Run at or below 90% of set pressure (US and SI units).
Page last updated 2026-10-28.