What it is for
ASME B31.4 (Pipeline Transportation Systems for Liquids and Slurries) governs pipelines carrying crude oil, refined products, LPG, ammonia and slurries. Wall thickness for internal pressure is calculated in section 403.2.1 with the Barlow formula. It answers two questions: what thickness the line needs, and what pressure an existing pipe can hold.
The formulas
| Step | Formula | Meaning |
|---|---|---|
| Allowable stress | S = F · E · T · Sy | Sy: specified minimum yield strength of the steel |
| Pressure thickness | tr = P · D / (2 · S) | P: design pressure; D: outside diameter |
| Required thickness | t = tr + A | A: allowance for corrosion, erosion and threading |
| Allowable pressure | Pmax = 2 · S · (t_actual − A) / D | with the actual thickness minus the allowance |
The factors:
- F, design factor: 0.72 for the general pipeline. Crossings, stations and special areas use lower values per the code.
- E, weld joint factor: 1.00 for seamless, submerged-arc or electric-resistance-welded (ERW) pipe accepted by the code.
- T, temperature derating factor: 1.00 at normal pipeline operating temperatures.
Worked example
8" line (D = 8.625 in), API 5L X52 steel (Sy = 52,000 psi), design pressure 1,440 psi, corrosion allowance 0.0625 in, actual wall 0.322 in (SCH 40).
- S = 0.72 × 1.00 × 1.00 × 52,000 = 37,440 psi
- tr = 1,440 × 8.625 / (2 × 37,440) = 0.166 in
- t = 0.166 + 0.0625 = 0.228 in → the actual 0.322 in wall complies.
- Pmax = 2 × 37,440 × (0.322 − 0.0625) / 8.625 = 2,253 psi → above 1,440 psi, complies.
Common mistakes
- Using the inside diameter. The B31.4 formula uses the outside diameter.
- Forgetting the allowance when checking an existing line. Allowable pressure uses the thickness left at end of life (t_actual − A).
- Applying F = 0.72 along the whole route. Road, river and station crossings have stricter factors.
- Mixing up B31.4 and B31.8. Natural gas falls under ASME B31.8, with factors by location class.
How to document it
A wall-thickness calculation report should show the code and edition, the inputs with their source (design pressure, certified material), the formulas with values substituted, and the check of the actual thickness. In Wedoengineer, the "Pipe wall thickness" tool runs this calculation, stores each version without recalculating it, and brings it into the calculation report, whose delivered revision carries a QR code that tells whether it is the latest version.
