PRV Sizing (API 520) Back
FLUID

Pressure Relief Valve Sizing (API 520)

Calculate required orifice area per API 520 and select the API letter designation. Handles gas, vapor, and liquid service with back-pressure correction (Kb) and discharge coefficient (Kd).

Parameters
Phase Gas/Vapor
Set Pressure P_set 1000 kPa
Back Pressure P_back 100 kPa
Molecular Weight MW 28 g/mol
Temperature T 400 K
Required Flow Q 1000 kg/h
■ Gas/Vapor (API 520 Part I)
$A = \dfrac{W}{C \cdot K_D \cdot P_1 \cdot K_b}\sqrt{\dfrac{TZ}{M}}$

$C = 0.03948\sqrt{k\left(\dfrac{2}{k+1}\right)^{\frac{k+1}{k-1}}}$

■ Liquid (API 520 Part I)
$A = \dfrac{Q}{38 K_D K_w K_v K_c}\sqrt{\dfrac{G}{P_1 - P_2}}$

P₁ = P_set × 1.1 + 101.325 [kPa abs]
K_D = 0.65 (liquid), 0.975 (gas/vapor)
Required Area A (mm²)
API Orifice Selection
Back-pressure Factor Kb
Relieving Pressure P₁ (kPa)
Flow Rate vs Required Orifice Area
API Standard Orifice Sizes (selected highlighted)
LetterArea (mm²)Area (in²)Status

What is API 520 PRV Sizing?

🧑‍🎓
What exactly is a Pressure Relief Valve (PRV) and why do we need a special standard like API 520 to size it?
🎓
Basically, a PRV is a safety device on equipment like tanks or reactors. If pressure gets dangerously high, it opens to vent fluid and prevent an explosion. API 520 is the industry bible for calculating the *exact* size of the valve's opening (the orifice) so it can release *just enough* flow to bring the pressure down safely. If you undersize it, the equipment could still rupture. Try moving the "Required Flow Rate (W)" slider in the simulator above to see how the required area changes instantly.
🧑‍🎓
Wait, really? The formula looks different for gas and liquid. Why is that, and what's that "C" constant in the gas equation?
🎓
Great observation! Gases are compressible and their flow depends heavily on properties like specific heat ratio (k). The constant "C" encapsulates that physics. For liquids, which are nearly incompressible, the sizing is more about density and flow rate. In the simulator, when you switch the service type selector from "Gas/Vapor" to "Liquid", you'll see the underlying equation change. A common case is sizing a valve for a propane vapor line versus one for a water pump discharge.
🧑‍🎓
I see the "Kb" and "Kd" factors in the simulator. What are those for, and what happens if I set them wrong?
🎓
Those are crucial correction factors. Kd is the "discharge coefficient," which accounts for real-world flow losses through the valve (it's always less than 1). Kb is the "backpressure correction factor." If there's pressure in the discharge pipe, it can hinder the valve's flow! For instance, in a flare header system, high backpressure can choke the valve. If you ignore Kb (set it to 1), you might undersize the valve. Try adjusting the Kb slider from 1.0 down to 0.8 and watch the required area jump.

Physical Model & Key Equations

The governing equation for gas or vapor service calculates the minimum required orifice area (A) based on the mass flow rate of the relieving fluid and its thermodynamic properties.

$$A = \dfrac{W}{C \cdot K_D \cdot P_1 \cdot K_b}\sqrt{\dfrac{T \cdot Z}{M}}$$

Where:
A = Required orifice area (mm² or in²).
W = Required mass flow rate (kg/h or lb/h).
C = Gas flow constant, derived from the specific heat ratio (k).
K_D = Rated discharge coefficient (typically 0.975 for vapor).
P_1 = Upstream relieving pressure (barg or psig).
K_b = Backpressure correction factor.
T = Relieving temperature (K or °R).
Z = Compressibility factor.
M = Molecular mass of the gas.

The gas constant C is not arbitrary; it comes from isentropic nozzle flow theory, linking the valve's critical flow to the fluid's energy capacity.

$$C = 0.03948 \sqrt{k \left( \dfrac{2}{k+1}\right)^{\frac{k+1}{k-1}}}$$

Where:
k = Specific heat ratio (Cp/Cv). This value determines how the gas expands and accelerates through the orifice. A higher k (like for air = 1.4) results in a different C than a lower k (like for steam ≈ 1.3). This is why you must input the correct fluid property in the simulator.

Real-World Applications

Refinery & Chemical Plant Protection: Every distillation column, reactor, and pressure vessel in a refinery has multiple PRVs. Engineers use API 520 to size valves for scenarios like a cooling water failure causing a column to overheat and overpressure. The simulator's parameters mirror the real data they work with.

LNG (Liquefied Natural Gas) Terminals: Sizing valves for cold methane vapor (-160°C) requires careful input of temperature (T), molecular weight (M), and compressibility (Z). An undersized valve could lead to a catastrophic release of flammable gas.

Pharmaceutical Batch Reactors: During an exothermic (heat-releasing) reaction, a runaway reaction can generate gas faster than the system can handle. API 520 sizing determines the valve area needed to vent this sudden gas generation and keep operators safe.

Oil & Gas Pipeline Stations: Pumps and compressors are protected by PRVs. High backpressure in a discharge header (modeled by the Kb factor) is a common issue here. The standard ensures the selected valve letter designation (like 'P' or 'Q') has enough area even under backpressure conditions.

Common Misconceptions and Points to Note

When you start using this tool, there are a few pitfalls that engineers, especially those with less field experience, often stumble into. First and foremost, do not confuse "set pressure" with "operating pressure". The "Absolute Set Pressure P1" you input into the tool is the absolute pressure, which is the pressure at which the valve starts to open (the set pressure) plus atmospheric pressure. For example, if the set pressure is 10 barg (gauge), P1 becomes approximately 11 bara. Getting this wrong will throw off all your calculations, so be careful.

Next, do not assume that "back pressure is always atmospheric pressure". If the valve outlet is connected to a closed system or a flare header, the back pressure is constantly fluctuating. Especially for conventional safety valves (not balanced bellows type), rising back pressure significantly weakens the valve opening force due to the "backpressure effect". You should consider keeping Kb at 1.0 in the tool as representing an almost ideal condition only.

Finally, remember that a valve with the exact "Required Orifice Area" from your calculation results does not exist. You select a standard size valve (e.g., D0.5 inch, D1 inch, etc.) from the catalog that has the closest, and greater, flow capacity to the calculated area. Choosing a valve that is "just enough" is ill-advised. It's practical wisdom to include a reasonable margin, anticipating process variations or future production increases.

Related Engineering Fields

The calculation for this safety valve design is not just a simple application of formulas; it consolidates knowledge from several important engineering fields. At its core are Thermodynamics and Fluid Dynamics. The specific heat ratio k and compressibility factor Z that appear in the gas flow formulas are core parameters describing gas behavior in thermodynamics. Particularly when dealing with steam flow, property values differ greatly between saturated and superheated steam, so you'll also need to know how to work with steam tables.

Another is Process Safety Engineering itself. A safety valve is one of the "last lines of defense," a safety protection layer (an Independent Protection Layer in LOPA: Layer of Protection Analysis). The "Hazard Analysis" results, which determine what failure scenarios (e.g., loss of cooling water, controller failure) will cause how much flow, form the basis for the input "Mass Flow Rate W" in the tool. You could say the calculation is the final output of quantitative risk assessment in safety engineering.

Furthermore, understanding the mechanical behavior of the valve itself requires perspectives from Mechanical Dynamics and Material Mechanics. It deeply interacts with fields that realize the performance calculated here as actual equipment, such as spring constants, bellows pressure resistance, and seat tightness.

For Further Learning

First, I recommend reading the API 520 standard itself, which underlies this tool. It's divided into Part I (Design) and Part II (Installation), detailing the derivation background of the formulas, their limits of application, and how to read the charts. It might seem difficult at first, but if you have experience playing with the tool, you will certainly find parts you can understand by connecting them to concrete examples.

If you want to deepen your understanding of the mathematical background, study the nozzle theory for isentropic flow, which is at the heart of the gas flow equations. An important phenomenon occurs in the "choked flow" state where the flow through the orifice reaches sonic velocity: the flow rate stops changing even if the upstream pressure drops. The equation representing this state is expressed as: $$ \dot{m} = A \cdot P_1 \cdot \sqrt{\frac{M}{Z R T}} \cdot \sqrt{\gamma \left( \frac{2}{\gamma+1} \right)^{\frac{\gamma+1}{\gamma-1}}} $$ The "gas constant C" in the tool's formula comes from this square root term.

For the next step, it's good to look at several actual safety valve datasheets and see how calculation results are documented. Also, expanding your perspective to consider overall system safety design by learning not only about safety valves but also other pressure relief devices (e.g., rupture discs or their combinations) is a growth path for you as a practical engineer.