🔧

B31 Pipe Wall Thickness Calculator

ASME B31.3 / B31.4 / B31.8 Pressure Design

B31 Pipe Wall Thickness Calculator
Calculate required pipe wall thickness per ASME B31.3 (process piping), B31.4 (liquid transportation), or B31.8 (gas transmission). Automatically selects the lightest standard pipe schedule that meets design requirements, calculates MAOP of the selected pipe, and provides pressure margin analysis.

Applicable Code

Pipe Geometry

Pipe Material

Design Conditions

psig
°F

Allowances

in

Typical: 0.0625" (1/16") for carbon steel, 0 for stainless

%

Standard: 12.5% per ASTM A530 / API 5L

Joint & Weld Factors

-

B31.3 only. W = 1.0 below creep range; < 1.0 at elevated temperatures.

B31.8 Design Factors

Understanding B31 Pipe Wall Thickness

B31.3 Process Piping
Uses t = PD / (2(SEW + PY)). The Y coefficient (typically 0.4 for ferritic steels below 900°F) accounts for thick-wall stress redistribution. Covers refinery, chemical plant, and gas processing facility piping.
B31.4 / B31.8 Pipelines
Transportation codes use Barlow's formula with design factor F. B31.8 further derates by location class (F = 0.72 to 0.40) and temperature factor T. B31.4 applies to liquid hydrocarbons; B31.8 to gas transmission.
From Minimum to Nominal Thickness:
t_min (from code formula) + corrosion allowance = t_required. Then t_nominal = t_required / (1 - mill_tolerance). The selected pipe schedule must have wall thickness >= t_nominal.

Formulas

B31.3: t = PD / (2(SEW + PY))
B31.4: t = PD / (2SEF)
B31.8: t = PD / (2SFET)
P = Design pressure (psig)
D = Outside diameter (in)
S = Allowable stress at temperature (psi)
E = Longitudinal joint factor
W = Weld strength reduction factor (B31.3)
Y = Coefficient (0.4 for ferritic <900°F)
F = Design factor (B31.4 / B31.8)
T = Temperature derating (B31.8)

Standards & References

  • ASME B31.3-2022
    Process Piping, Section 304.1.2
  • ASME B31.4-2022
    Liquid Transportation, Section 404.1.2
  • ASME B31.8-2022
    Gas Transmission, Section 841.1.1
  • 49 CFR Part 192
    Transportation of Natural Gas
  • API 5L (46th Ed.)
    Line Pipe Specification
  • ASTM A530
    General Requirements for Pipe

Engineering Notes

  • Mill tolerance: Standard 12.5% undertolerance per ASTM A530 and API 5L
  • Corrosion allowance: Typical 1/16" for carbon steel; 0 for stainless; increase for sour service
  • D/t ratio: Values >96 indicate thin-wall pipe susceptible to external pressure collapse
  • B31.3 Y factor: 0.4 for ferritic steels below 900°F; increases at creep temperatures
  • Weight: Calculated as 10.69 x (D - t) x t lb/ft per ANSI/ASME formula