Introduction to Petroleum Piping Systems: Pipe Standards, Wall Thickness Design, and Pressure Rating Selection
Piping systems are the circulatory system of the petroleum industry. Every barrel of crude oil produced, every cubic meter of natural gas processed, and every product stream from a refinery travels through a network of pipes whose design, fabrication, inspection, and maintenance determine whether the facility operates safely, reliably, and economically for its design life. A petrochemical plant or refinery contains thousands of kilometers of piping in a single facility, ranging from small-bore instrument tubing at 6 mm diameter to large-bore transfer lines at 1,200 mm diameter, carrying fluids from ambient temperature to 650°C and from vacuum to 700 bar pressure. Each of these pipes is a pressure vessel in the regulatory sense: it contains fluid under pressure and must be designed, fabricated, tested, and inspected to a standard that prevents failure under all credible operating conditions. The discipline of piping engineering encompasses the mechanical design of individual pipes (wall thickness, material selection, pressure rating), the structural analysis of complete piping systems (thermal expansion, support design, flexibility analysis), the specification of valves, fittings, and flanges that complete the system, and the quality assurance of fabrication and installation. Getting piping engineering wrong has consequences that range from minor leaks requiring maintenance shutdown to catastrophic failures releasing large hydrocarbon inventories at ignition risk - the difference between a nuisance event and a major accident is often a matter of centimeters of pipe wall thickness, a single incorrectly torqued flange bolt, or a missed corrosion inspection. This guide covers the fundamental engineering basis for petroleum piping: the international codes and standards that define the design rules, the wall thickness calculation that is the foundation of every pipe specification, the pressure rating system for piping components, and the material selection logic that determines which pipe material is appropriate for each service condition.
1. Piping Codes and Standards: The Regulatory Framework
1.1 Principal Piping Design Codes
Petroleum piping is designed, fabricated, and inspected under a hierarchy of international standards that specify the design rules, material requirements, fabrication tolerances, examination requirements, and pressure testing criteria that must be met before a piping system can be placed in service. Understanding which code applies to a specific service is the first step in any piping design activity:
| Code/Standard | Scope and Application | Primary Industry | Design Basis |
|---|---|---|---|
| ASME B31.3 (Process Piping) | Chemical plants, refineries, petroleum terminals, and all onshore processing facilities. The most widely used piping code globally for process plant applications. Covers metallic and non-metallic piping. | Refining, Petrochemical, Upstream processing | Allowable stress basis. Design factor fd applied to yield or ultimate strength. |
| ASME B31.4 (Pipeline Transportation - Liquid) | Liquid petroleum, crude oil, liquid petroleum products, and slurry pipelines. Cross-country and gathering pipelines. Does NOT cover process piping within plant battery limits. | Liquid pipeline transport | Design factor 0.72 on SMYS for typical cross-country service. |
| ASME B31.8 (Gas Transmission and Distribution) | Natural gas transmission pipelines, gas distribution networks, gas gathering systems. Location class system determines design factor (0.40-0.72 based on population density near pipeline). | Natural gas transmission | Location class design factors: Class 1 = 0.72, Class 2 = 0.60, Class 3 = 0.50, Class 4 = 0.40 |
| ISO 13623 / DNV OS-F101 (Offshore Pipelines) | Submarine pipelines for oil and gas service. DNV OS-F101 is the dominant code for offshore pipeline design globally, using a limit state design basis with partial safety factors. | Offshore subsea pipelines | Limit state design. Partial safety factors applied to load and resistance. Safety class concept (low/medium/normal/high). |
| EN 13480 (European Metallic Industrial Piping) | Industrial process piping in European facilities. Broadly equivalent to ASME B31.3 in scope but uses European material standards (EN 10216, EN 10217) and design methodology. | European petroleum and chemical processing | Allowable stress from European material standards. Slightly different safety factors vs ASME. |
1.2 Pipe Specifications: ASME Standards for Pipe Dimensions
ASME B36.10 and B36.19 pipe dimension system:
Pipe is specified by Nominal Pipe Size (NPS) and Schedule (wall thickness designation)
NPS designation:
NPS = Nominal Pipe Size in inches (does NOT equal actual pipe OD for NPS ≤ 12")
For NPS ≥ 14": OD = NPS in inches (1" = 25.4 mm)
For NPS < 14": OD is standardized but does not equal NPS numerically
Examples:
NPS 2" pipe: OD = 2.375" = 60.33 mm (NOT 2" = 50.8 mm)
NPS 4" pipe: OD = 4.500" = 114.3 mm (NOT 4" = 101.6 mm)
NPS 6" pipe: OD = 6.625" = 168.3 mm
NPS 8" pipe: OD = 8.625" = 219.1 mm
NPS 12" pipe: OD = 12.750" = 323.9 mm
NPS 16" pipe: OD = 16.000" = 406.4 mm (now equals NPS)
NPS 24" pipe: OD = 24.000" = 609.6 mm
Schedule designation (wall thickness):
Standard schedules: SCH 5, 10, 20, 30, 40, 60, 80, 100, 120, 140, 160
Special designations: SCH STD (Standard), SCH XS (Extra Strong), SCH XXS (Double Extra Strong)
Note: SCH 40 = SCH STD for NPS ≤ 10"; SCH 80 = SCH XS for most sizes
Example wall thicknesses for NPS 6" (OD = 168.3 mm):
SCH 10: t = 3.40 mm → ID = 168.3 - 2×3.40 = 161.5 mm
SCH 40: t = 7.11 mm → ID = 168.3 - 2×7.11 = 154.1 mm
SCH 80: t = 10.97 mm → ID = 168.3 - 2×10.97 = 146.4 mm
SCH 160: t = 18.26 mm → ID = 168.3 - 2×18.26 = 131.8 mm
Flow area comparison (NPS 6" SCH 40 vs SCH 160):
A_SCH40 = pi/4 x 0.1541^2 = 0.01865 m2
A_SCH160 = pi/4 x 0.1318^2 = 0.01364 m2
SCH 160 has 26.9% less flow area than SCH 40 for the same nominal pipe size → higher velocity, higher pressure drop at same flow rate
2. Wall Thickness Calculation: ASME B31.3
2.1 The Design Equation and Its Parameters
The fundamental wall thickness equation in ASME B31.3 is derived from the thin-wall pressure vessel hoop stress formula, modified for practical pipe construction by introducing allowances for manufacturing tolerances, corrosion, and threading losses. The design equation relates the internal pressure to the hoop stress in the pipe wall through the pipe geometry and the material's allowable stress:
ASME B31.3 wall thickness equation:
t_min = (P x D) / (2 x (S x E + P x Y))
Where:
t_min = minimum required wall thickness (mm or inches)
P = internal design gauge pressure (MPa or psi)
D = pipe outside diameter (mm or inches)
S = allowable stress for pipe material at design temperature (MPa or psi)
E = longitudinal joint quality factor (1.0 for seamless pipe, 0.80-0.85 for seam-welded)
Y = coefficient for material at design temperature
For ferritic steels T ≤ 482°C: Y = 0.4
For ferritic steels 482 < T ≤ 510°C: Y = 0.5
For austenitic steels: Y = 0.4
Adding allowances to get nominal (specified) wall thickness:
t_nominal ≥ (t_min + c) / (1 - mill_tolerance/100)
Where:
c = sum of mechanical, corrosion, and erosion allowances (mm)
mill_tolerance = pipe manufacturing tolerance = 12.5% for ASME B36.10 carbon steel pipe
Worked example - crude oil transfer line:
Service: Crude oil, 50°C operating temperature
Design pressure: P = 8.0 MPa (80 bar)
Pipe: NPS 8" (OD = 219.1 mm = D)
Material: ASTM A106 Grade B seamless carbon steel
SMYS (Specified Minimum Yield Strength): 241 MPa
Allowable stress at 50°C: S = 117.9 MPa (from ASME B31.3 Table A-1 for A106 Gr.B at 50°C)
E = 1.0 (seamless pipe)
Y = 0.4 (ferritic steel, T < 482°C)
Corrosion allowance: c = 3.0 mm (for crude service with H2S potential)
Mill tolerance: 12.5%
Step 1: Calculate t_min:
t_min = (8.0 x 219.1) / (2 x (117.9 x 1.0 + 8.0 x 0.4))
= 1,752.8 / (2 x (117.9 + 3.2))
= 1,752.8 / (2 x 121.1)
= 1,752.8 / 242.2 = 7.237 mm minimum pressure wall thickness**
**Step 2: Add corrosion allowance and mill tolerance:
t_required = (t_min + c) / (1 - 0.125)
= (7.237 + 3.0) / 0.875
= 10.237 / 0.875 = 11.70 mm required nominal wall thickness**
**Step 3: Select standard schedule:
From B36.10 for NPS 8":
SCH 40: t = 8.18 mm (below 11.70 mm required → INADEQUATE)
SCH 60: t = 10.31 mm (below 11.70 mm → INADEQUATE)
SCH 80: t = 12.70 mm (above 11.70 mm → ADEQUATE)
Selected pipe: NPS 8" SCH 80 (t = 12.70 mm, A106 Gr.B seamless)**
**Verification check - actual allowable pressure for selected schedule:
P_allowable = 2 x S x E x (t - c x 0.875) / (D - 2 x Y x (t - c x 0.875))
Effective pressure wall thickness: t_eff = t x 0.875 - c = 12.70 x 0.875 - 3.0 = 11.11 - 3.0 = 8.11 mm
P_allow = 2 x 117.9 x 1.0 x 8.11 / (219.1 - 2 x 0.4 x 8.11)
= 2 x 117.9 x 8.11 / (219.1 - 6.49)
= 1,912.8 / 212.6 = 8.99 MPa allowable pressure**
**P_allow = 8.99 MPa > P_design = 8.0 MPa → CONFIRMED ADEQUATE with 12.4% margin
2.2 High-Temperature Piping: Creep Range Design
Creep and allowable stress reduction at high temperature:
Above approximately 370°C for carbon steel and 480-540°C for stainless steel, the material enters the creep range where time-dependent deformation and rupture at stresses below the yield strength become the controlling failure mechanism. ASME B31.3 allowable stresses at elevated temperature are set by the minimum of:
1. 1/3 of tensile strength (UTS)
2. 2/3 of yield strength (SMYS)
3. 2/3 of 0.2% yield strength at temperature
4. 100% of average stress for 0.01% creep/1,000 hours
5. 67% of average stress to rupture in 100,000 hours
Example: Steam superheater pipe at 520°C service:
Service: High-pressure steam, T = 520°C, P = 12 MPa
Pipe: NPS 4" (OD = 114.3 mm), ASTM A335 Grade P11 (1.25Cr-0.5Mo alloy steel)
E = 1.0 (seamless), Y = 0.4
Allowable stress for P11 at 520°C from ASME B31.3 Table A-1:
S_520 = 44.8 MPa** (significantly reduced from room temperature value of 124 MPa)**
**t_min = (P x D) / (2 x (S x E + P x Y))
= (12.0 x 114.3) / (2 x (44.8 x 1.0 + 12.0 x 0.4))
= 1,371.6 / (2 x (44.8 + 4.8))
= 1,371.6 / (2 x 49.6)
= 1,371.6 / 99.2 = 13.83 mm at 520°C**
**Compare to room temperature calculation (S = 124 MPa):
t_min_RT = (12.0 x 114.3) / (2 x (124 + 4.8)) = 1,371.6 / 257.6 = 5.33 mm at room temperature**
**The high-temperature service requires 13.83 mm vs 5.33 mm at ambient → 2.59x thicker wall due to creep-governed allowable stress reduction.**
With 1.5 mm oxidation/corrosion allowance and 12.5% mill tolerance:
t_required = (13.83 + 1.5) / 0.875 = 15.33/0.875 = 17.52 mm required nominal**
**From B36.10 NPS 4": SCH 160 has t = 17.12 mm (slightly insufficient), XXS has t = 19.56 mm → Select NPS 4" XXS (t = 19.56 mm, P11 seamless)
3. Pressure Rating Systems for Piping Components
3.1 ASME B16.5 Flanges: Class Rating System
Flanges, valves, and fittings are not custom-designed for each pressure condition like pipe walls - they are manufactured in standardized pressure classes (ratings) that correspond to defined maximum allowable working pressures at specific temperatures. The ASME B16.5 standard defines seven pressure classes for flanges and fittings in metallic pipe sizes NPS ½" through NPS 24":
ASME B16.5 pressure class rating system:
Class 150: Base rating ≈ 285 psi (19.6 bar) at ambient temperature, Group 1.1 materials
Class 300: Base rating ≈ 740 psi (51.0 bar) at ambient temperature
Class 600: Base rating ≈ 1,480 psi (102 bar) at ambient temperature
Class 900: Base rating ≈ 2,220 psi (153 bar) at ambient temperature
Class 1500: Base rating ≈ 3,705 psi (255 bar) at ambient temperature
Class 2500: Base rating ≈ 6,170 psi (425 bar) at ambient temperature
Class rating selection example:
Design pressure: 8.0 MPa = 1,160 psi at 50°C
Material: ASTM A105 carbon steel (Group 1.1 in B16.5)
MAWP for Group 1.1 carbon steel flanges at 50°C:
Class 150: 1,480 kPa (14.8 bar = 215 psi) - INADEQUATE
Class 300: 5,110 kPa (51.1 bar = 740 psi) - INADEQUATE
Class 600: 10,210 kPa (102.1 bar = 1,480 psi) - ADEQUATE (100 bar > 80 bar design)
Selected: Class 600 flanges for 8.0 MPa service at 50°C**
**Temperature effect on pressure rating:
Allowable pressure for ASME B16.5 flanges DECREASES with increasing temperature (same as allowable stress)
For Class 600, A105 carbon steel:
At 38°C: MAWP = 10,210 kPa (102.1 bar)
At 260°C: MAWP = 8,620 kPa (86.2 bar) - reduced
At 425°C: MAWP = 7,240 kPa (72.4 bar) - significantly reduced
If service temperature is 425°C: need Class 900 to maintain adequate margin at 8.0 MPa design pressure
Class 900 at 425°C: MAWP = 10,860 kPa (108.6 bar) > 80 bar → ADEQUATE
Key principle: Always check pressure rating at DESIGN TEMPERATURE, not just at ambient. High-temperature service often requires jumping to the next higher flange class.
Economic impact of flange class upgrade:
Class 600 flange, NPS 8", A105: approximately $485/flange
Class 900 flange, NPS 8", A105: approximately $1,250/flange
A typical process unit has 50-200 flanged connections per 100 meters of piping
Upgrading 100 flanges from Class 600 to Class 900: 100 x ($1,250 - $485) = $76,500 additional cost**
**This demonstrates why operating temperature has a larger economic impact than operating pressure on piping system cost: the temperature-driven class upgrade multiplies the cost of every flange, valve, and fitting in the system.
3.2 API 6A / API 17D Equipment Ratings for Wellhead Service
| API Rating Class | Rated Working Pressure | Application | Typical Service |
|---|---|---|---|
| 2,000 psi (138 bar) | 2,000 psi | Low-pressure onshore wellheads, shallow gas wells, water injection wellheads | Shallow production wells |
| 3,000 psi (207 bar) | 3,000 psi | Medium-pressure onshore, some offshore production trees | Conventional onshore production |
| 5,000 psi (345 bar) | 5,000 psi | Most common offshore wellhead and tree rating for moderate-pressure fields | Standard offshore production |
| 10,000 psi (690 bar) | 10,000 psi | High-pressure offshore and deepwater wellheads, subsea trees. Most common deepwater rating. | Deepwater production standard |
| 15,000 psi (1,035 bar) | 15,000 psi | HPHT (High Pressure High Temperature) wells. Ultra-deep wells with very high reservoir pressures. | HPHT wells |
| 20,000 psi (1,380 bar) | 20,000 psi | Extreme HPHT wells. Emerging technology standard. Few commercial applications to date. | Extreme HPHT |
4. Pipe Material Selection
4.1 Material Selection Logic for Petroleum Piping
Material selection decision framework:
Step 1: Temperature range screening
T < -29°C: Low temperature service → Carbon steel loses toughness → Use Low Temperature Carbon Steel (ASTM A333 Gr.6) or 3.5% Nickel steel
T = -29°C to +343°C: Normal carbon steel range → A106 Gr.B or A53 (ASME B31.3 preferred materials)
T = 343°C to 538°C: Alloy steel required → Chrome-Moly grades (P11, P22, P91)
T > 538°C: Austenitic stainless steel (316/321/347) or high-alloy
Step 2: Fluid corrosivity assessment
Dry hydrocarbon (no water): Carbon steel adequate for most services
Wet sour service (H2S + water): NACE MR0175/ISO 15156 compliance required → hardness limits → restrict to HRC ≤ 22 (Vickers ≤ 248 HV)
Chloride stress corrosion: Austenitic SS susceptible to SCC above 60°C in high chloride → use duplex or nickel alloy
CO2 + water (carbonic acid): Carbon steel corrodes at up to 10 mm/year → CRA (Corrosion Resistant Alloy) or high corrosion allowance + inhibitor
Concentrated acids: Specialty alloys (Hastelloy, Inconel) required
Step 3: Pressure-temperature class determination
From wall thickness calculation and flange class selection (above)
Step 4: Weldability and fabrication requirements
P91 (9Cr-1Mo) requires PWHT (Post Weld Heat Treatment) at 730-770°C → increases fabrication cost significantly
316L stainless: Can be welded without PWHT in most services
Duplex stainless: Requires careful heat input control to maintain austenite/ferrite phase balance
Common material specifications for petroleum piping:
Carbon steel pipe: ASTM A106 Grade B (seamless), A53 Grade B (ERW for lower pressures)
Low temperature pipe: ASTM A333 Grade 6 (-46°C minimum)
Chrome-moly pipe: ASTM A335 P11 (1.25Cr-0.5Mo), P22 (2.25Cr-1Mo), P91 (9Cr-1Mo)
Austenitic SS pipe: ASTM A312 TP316L, TP321, TP347
Duplex SS pipe: ASTM A790 UNS S31803 (2205) or S32750 (2507 super duplex)
Sour service example calculation - NACE MR0175 compliance check:
Service: Wet sour crude oil with H2S partial pressure = 0.0015 MPa (1.5 kPa)
H2S threshold for sour service (NACE): P_H2S > 0.0003 MPa AND P_total > 0.448 MPa
1.5 kPa = 0.0015 MPa > 0.0003 MPa threshold → SOUR SERVICE APPLIES**
**Requirement: All carbon steel must have hardness ≤ HRC 22 (248 Vickers)
A106 Gr.B standard hardness: maximum 187 HB ≈ HRC 9 → COMPLIANT for sour service**
**But: Welds and heat-affected zones may have higher hardness → Weld Procedure Qualification must include hardness survey
Maximum weld HAZ hardness measured: 210 HV (example) → 210 HV < 248 HV → COMPLIANT
Conclusion
The wall thickness calculation in this article - t_min = 7.237 mm for an 8 MPa crude oil service in NPS 8" pipe, increasing to 11.70 mm after adding the 3.0 mm corrosion allowance and 12.5% mill tolerance, requiring SCH 80 (t = 12.70 mm) rather than the SCH 40 commonly assumed for moderate pressures - demonstrates why proper piping design cannot be performed by approximate selection from memory or rule-of-thumb tables. The difference between SCH 40 (t = 8.18 mm) and SCH 80 (t = 12.70 mm) for an NPS 8" pipe is not a minor detail: it represents 54% more steel, a pipe that weighs 54% more per meter, costs approximately 40% more per meter, and creates significantly higher loads on supports and nozzles. Installing SCH 40 where SCH 80 is required creates a pipe that is technically adequate for the pressure but has no corrosion allowance remaining after the mill tolerance is consumed - meaning the first significant corrosion event will breach the minimum required wall thickness and create a leakage risk. Installing SCH 80 everywhere when SCH 40 would be adequate wastes capital and adds structural load unnecessarily. The calculation is not optional engineering formality; it is the difference between a correctly specified system and one that is either unsafe or unnecessarily expensive.
The high-temperature comparison t_min = 5.33 mm at ambient versus 13.83 mm at 520°C for the same NPS 4" pipe at 12 MPa demonstrates that operating temperature is often a more severe design constraint than operating pressure for petroleum process piping. The 2.59x wall thickness increase from ambient to 520°C is driven entirely by the reduction in allowable stress from creep: the A335 P11 material has an allowable stress of 124 MPa at ambient but only 44.8 MPa at 520°C (64% reduction). Every high-temperature service requires this calculation to be performed specifically for the maximum design temperature, not estimated from ambient-temperature charts. A piping engineer who specifies pipe for a reformer effluent service based on the ambient-temperature allowable stress will undersize the pipe wall by a factor of nearly three, creating a system that is grossly inadequate for its service conditions before corrosion allowance or temperature cycling effects are even considered.
For piping engineers building expertise in process piping design and code compliance, the following references provide the essential technical foundation: ASME B31.3 Process Piping Design Handbook covers the complete wall thickness calculation methodology, allowable stress tables, and component pressure ratings required for B31.3 compliance, while Petroleum Refinery Piping Engineering and Material Selection provides the practical engineering framework for material selection, sour service compliance, and high-temperature piping design in petroleum processing facilities.
Want to access our piping design toolkit with ASME B31.3 wall thickness calculator, schedule selection tool, flange class selector, sour service NACE compliance checker, and high-temperature allowable stress lookup, or discuss piping specification for a specific service condition? Join our Telegram group for piping engineering and petroleum processing discussions, or visit our YouTube channel for step-by-step tutorials on wall thickness calculation, flange class selection, and material selection for petroleum piping services.
Disclosure: This article contains affiliate links. If you purchase a book through these links, Petrosmart Academy may earn a small commission at no additional cost to you. We only recommend resources that provide genuine value to piping engineers and petroleum processing professionals.
.jpg)
0 Comments