1. Overview
Pipe wall thickness is the fundamental pressure design calculation in pipeline and process engineering. The goal is to determine the minimum wall thickness that safely contains the design pressure at the design temperature, then select the lightest standard pipe schedule that meets this requirement.
Three ASME B31 codes govern pipe wall thickness for different service types:
| Code | Scope | Governing Section |
|---|---|---|
| ASME B31.3 | Process piping within facilities (refineries, gas plants, chemical plants) | Section 304.1.2 |
| ASME B31.4 | Liquid transportation pipelines (crude, NGL, refined products) | Section 404.1.2 |
| ASME B31.8 | Gas transmission and distribution pipelines | Section 841.1.1 |
Design Thickness vs. Nominal Thickness
The calculation proceeds in three steps from code minimum to the orderable pipe:
- t_min = Code minimum thickness from the applicable formula (contains pressure only)
- t_required = t_min + corrosion allowance (accounts for material loss over service life)
- t_nominal = t_required / (1 - mill_tolerance) (accounts for manufacturing variation)
The selected pipe schedule must have a wall thickness equal to or greater than t_nominal.
2. Code Formulas
B31.3 - Process Piping (Section 304.1.2)
The Y coefficient accounts for stress redistribution in the pipe wall under internal pressure. For thin-wall pipe (t < D/6), it has a modest effect; for thick-wall pipe, it becomes more significant.
| Material | Temperature < 900°F | Temperature ≥ 900°F |
|---|---|---|
| Ferritic steels | Y = 0.4 | Y = 0.7 |
| Austenitic steels | Y = 0.4 | Y = 0.7 |
| Nickel alloys, high alloy | Y = 0.4 | Y = 0.7 |
B31.4 - Liquid Transportation (Section 404.1.2)
Unlike B31.3, the pipeline codes (B31.4 and B31.8) use SMYS rather than an allowable stress at temperature. The design factor F provides the safety margin.
B31.8 - Gas Transmission (Section 841.1.1)
Design Factor F - Location Class (B31.8)
| Class | F | Max % SMYS | Description |
|---|---|---|---|
| Class 1 | 0.72 | 72% | ≤10 buildings in a 1-mile by 440-yard unit; rural areas |
| Class 2 | 0.60 | 60% | 11-46 buildings; fringe areas, industrial, farms |
| Class 3 | 0.50 | 50% | ≥46 buildings or near places of public assembly |
| Class 4 | 0.40 | 40% | Areas with multi-story buildings (≥4 stories) |
Temperature Derating Factor T (B31.8)
| Temperature (°F) | T |
|---|---|
| ≤250 | 1.000 |
| 300 | 0.967 |
| 350 | 0.933 |
| 400 | 0.900 |
| 450 | 0.867 |
3. Code Comparison
Although all three codes are based on Barlow's formula, they differ in how they apply safety factors:
| Feature | B31.3 | B31.4 | B31.8 |
|---|---|---|---|
| Stress basis | Allowable stress S (from Table A-1) | SMYS | SMYS |
| Safety factor approach | Built into allowable stress (S ≈ SMYS/1.75 to SMYS/3) | Design factor F | Design factor F (by location class) |
| Thick-wall correction | Y coefficient (PY term) | None | None |
| Temperature handling | Reduced allowable stress | N/A (low temp) | Derating factor T |
| Weld factor at temp | W factor (creep range) | N/A | N/A |
| Location class | N/A (within facility) | Limited | Classes 1-4 per 49 CFR 192 |
4. Material Selection
Material grade determines the SMYS and allowable stress, which directly controls the required wall thickness. Higher-grade materials allow thinner walls for the same pressure.
Common Pipe Materials and SMYS
| Material | SMYS (psi) | Specification | Typical Application |
|---|---|---|---|
| A106 Gr. B | 35,000 | ASTM A106 | Process piping, general service |
| A333 Gr. 6 | 35,000 | ASTM A333 | Low temperature service (down to -50°F) |
| TP304 | 30,000 | ASTM A312 | Corrosive service, high temperature |
| TP316 | 30,000 | ASTM A312 | Marine, chemical, chloride environments |
| API 5L Gr. B | 35,500 | API 5L | General pipeline service |
| API 5L X42 | 42,000 | API 5L | Gathering lines, low-pressure transmission |
| API 5L X52 | 52,000 | API 5L | Standard transmission pipeline |
| API 5L X60 | 60,000 | API 5L | High-pressure gas transmission |
| API 5L X65 | 65,000 | API 5L | High-pressure, large-diameter pipelines |
| API 5L X70 | 70,000 | API 5L | Major cross-country pipelines |
| API 5L X80 | 80,000 | API 5L | Ultra-high pressure, heavy wall |
Longitudinal Joint Factor (E)
| Pipe Manufacturing Method | E Factor |
|---|---|
| Seamless (SMLS) | 1.00 |
| Electric Resistance Welded (ERW) | 1.00 |
| Double Submerged Arc Welded (DSAW) | 1.00 |
| Flash Welded | 1.00 |
| ERW (pre-1970, unverified) | 0.85 |
| Furnace Lap Welded | 0.80 |
| Furnace Butt Welded | 0.60 |
5. Temperature Effects
Temperature affects pipe wall thickness requirements in two ways: it reduces the allowable stress of the material, and in extreme cases it can change the failure mode from yielding to creep rupture.
B31.3 - Allowable Stress Reduction
For carbon steel (A106 Gr. B), the allowable stress from B31.3 Table A-1 varies with temperature:
| Temperature (°F) | Allowable Stress (psi) | % of Room Temp Value |
|---|---|---|
| ≤400 | 20,000 | 100% |
| 500 | 18,900 | 94.5% |
| 600 | 17,300 | 86.5% |
| 700 | 14,400 | 72.0% |
| 800 | 10,800 | 54.0% |
| 900 | 6,500 | 32.5% |
| 1000 | 2,500 | 12.5% |
B31.8 - Temperature Derating
For gas transmission pipelines, the T factor applies a simple derating above 250°F. Most gas pipelines operate well below 250°F, so T = 1.0 in the vast majority of cases. Exceptions include lines near compressor discharge (hot gas bypass) and heated pipelines for hydrate prevention.
Stainless Steel Advantage at High Temperature
Austenitic stainless steels (TP304, TP316) retain much higher allowable stress at elevated temperatures compared to carbon steel. At 1000°F, TP304 has an allowable stress of approximately 13,000 psi versus only 2,500 psi for A106 Gr. B. This makes stainless steel the preferred choice for high-temperature process piping despite its higher initial cost.
6. Pipe Schedule Selection
After calculating t_nominal, the engineer selects the lightest standard pipe schedule whose wall thickness equals or exceeds the requirement. Standard schedules per ANSI/ASME B36.10M (carbon steel) and B36.19M (stainless) include:
| Schedule | Relative Weight | Notes |
|---|---|---|
| 5S, 10S | Very Light | Stainless only (B36.19M); gauging/sampling lines |
| 10, 20 | Light | Low-pressure utility lines |
| 30 | Medium-Light | Available in sizes 8" and larger |
| STD | Standard | Standard Weight; equals Sch 40 for NPS ≤10" |
| 40 | Standard | Most commonly specified schedule |
| 60 | Medium-Heavy | Available in sizes 4" and larger |
| 80 | Heavy | Extra Strong (XS) for NPS ≤8" |
| 100, 120 | Very Heavy | High-pressure service |
| 140, 160 | Extra Heavy | Very high pressure or thick CA |
| XXS | Double Extra Strong | Maximum standard wall; small bore only |
Mill Tolerance
Per ASTM A530 and API 5L, the standard manufacturing (mill) tolerance for seamless and welded pipe is 12.5% undertolerance on wall thickness. This means the thinnest allowable pipe in a given shipment can be:
D/t Ratio
The diameter-to-thickness (D/t) ratio is an important indicator of pipe structural behavior:
- D/t < 20: Thick-wall pipe. May require B31.3 Section 304.1.2(b) thick-wall provisions.
- 20 < D/t < 96: Normal range for most pressure piping applications.
- D/t > 96: Thin-wall pipe. Susceptible to external pressure collapse, handling damage, and ovality. Check external loading per applicable code.
7. Worked Example
Given: 8" NPS pipeline, API 5L X52, 1480 psig design pressure, 150°F, Class 1 location (B31.8), seamless pipe, 1/16" corrosion allowance.
References
- ASME B31.3-2022, Process Piping
- ASME B31.4-2022, Pipeline Transportation Systems for Liquids and Slurries
- ASME B31.8-2022, Gas Transmission and Distribution Piping Systems
- 49 CFR Part 192, Transportation of Natural and Other Gas by Pipeline
- API Specification 5L, 46th Edition, Line Pipe
- ASTM A530/A530M, General Requirements for Specialized Carbon and Alloy Steel Pipe
- ANSI/ASME B36.10M, Welded and Seamless Wrought Steel Pipe
- ANSI/ASME B36.19M, Stainless Steel Pipe
Ready to use the calculator?
→ Launch B31 Wall Thickness Calculator