Pipe Wall Thickness Calculation

Barlow's formula, the ASME B31.3 refinement of it, and the two steps after the equation — corrosion allowance and mill tolerance — that decide which schedule you actually buy.

Barlow's formula
t = P·D / 2S
ASME B31.3
t = P·D / 2(SEW + PY)
Mill tolerance
−12.5% on nominal wall
Worked example
NPS 6 at 900 psig

Short answer. Barlow's formula, t = PD/2S, gives the wall thickness needed to contain pressure in a thin-walled pipe. ASME B31.3 uses a refined version that adds the joint quality factor E, the weld strength reduction factor W and the coefficient Y. Whichever you use, the pressure design thickness is only the starting point: corrosion allowance is added to it, and the sum is then divided by 0.875 to allow for the 12.5% mill tolerance before a schedule is chosen.

Barlow's formula

Barlow's formula comes straight from a force balance on a thin cylinder. Internal pressure acting across the diameter must be carried by hoop stress in two wall sections:

P · D = 2 · S · t  ⟹  t = P·D / (2·S)  ·  P = 2·S·t / D

D is the outside diameter, which makes the result conservative — the true hoop stress is developed at the mean diameter. S is the allowable stress for the material at the design temperature, not the yield or tensile strength.

The ASME B31.3 equation

B31.3 paragraph 304.1.2 refines Barlow with three factors:

t = P·D / [ 2 · (S·E·W + P·Y) ]

Terms in the ASME B31.3 pressure design thickness equation.
SymbolMeaningTypical value
PInternal design gauge pressureFrom the process design
DPipe outside diameterFrom ASME B36.10M
SAllowable stress at design temperature20,000 psi for A106 Gr B at ambient
EQuality factor — the longitudinal weld joint factor1.00 seamless, 0.85 ERW, 0.60 furnace butt welded
WWeld strength reduction factor1.00 below about 950 °F
YCoefficient from B31.3 Table 304.1.10.4 for ferritic steel below 900 °F

Y accounts for the difference between thin-wall and thick-wall behaviour; the equation reduces to Barlow when Y = 0.

Worked example: NPS 6 at 900 psig

Seamless A106 Gr B pipe, outside diameter 6.625 in (168.3 mm), design pressure 900 psig, allowable stress 20,000 psi, E = 1.0, W = 1.0, Y = 0.4, corrosion allowance 1/16 in.

  1. Barlow: t = 900 × 6.625 / (2 × 20000) = 0.1491 in
  2. B31.3: t = 900 × 6.625 / [2 × (20000 × 1.0 × 1.0 + 900 × 0.4)] = 0.1464 in
  3. Add corrosion allowance: 0.1464 + 0.0625 = 0.2089 in required minimum
  4. Allow mill tolerance: 0.2089 / 0.875 = 0.2388 in nominal wall required
  5. Select a schedule: the thinnest NPS 6 schedule meeting 0.2388 in is Schedule 40 at 0.280 in.

Note how little difference the B31.3 refinement makes here — 0.1464 in against Barlow's 0.1491 in. The PY term matters at high pressure and thick wall; at moderate pressure Barlow is a perfectly good first pass.

The 12.5% mill tolerance

This is the step most often skipped, and it is not optional. Pipe is permitted to be manufactured up to 12.5% thinner than its nominal wall. The calculation produces a minimum thickness, so the nominal wall ordered must be that minimum divided by 0.875 — about 14.3% thicker. Buying to the calculated figure means accepting pipe that can legally arrive under it.

tnominal = (tpressure + corrosion allowance) / 0.875

Allowable pressure by schedule, NPS 6

The same equation rearranged: what each published NPS 6 schedule will hold at S = 20,000 psi, E = 1.0, Y = 0.4.

Dimensions are given in inches, with the millimetre equivalent beneath in grey.

NPS 6 allowable pressure by schedule, S = 20,000 psi.
ScheduleNominal wallWall at −12.5%Allowable P (B31.3)Allowable P (Barlow)Meets 0.239 in?
Sch 50.1092.77 mm0.09542.42 mm667 psig658 psigNo
Sch 100.1343.40 mm0.11732.98 mm822 psig809 psigNo
Sch 400.2807.11 mm0.24506.22 mm1,750 psig1,691 psigYes
STD0.2807.11 mm0.24506.22 mm1,750 psig1,691 psigYes
Sch 800.43210.97 mm0.37809.60 mm2,752 psig2,608 psigYes
XS0.43210.97 mm0.37809.60 mm2,752 psig2,608 psigYes
Sch 1200.56214.27 mm0.491812.49 mm3,640 psig3,393 psigYes
Sch 1600.71918.26 mm0.629115.98 mm4,754 psig4,341 psigYes
XXS0.86421.95 mm0.756019.20 mm5,824 psig5,217 psigYes

Pressure design only — no allowance for bending, external load, thermal expansion or occasional loads, all of which B31.3 requires to be considered separately.

What the equation does not cover

Pressure design thickness is one of several checks. B31.3 also requires the wall to handle sustained loads including weight, thermal expansion stress, occasional loads such as wind and seismic, and any external pressure. On a large-diameter thin-wall line, collapse under vacuum or under burial load frequently governs over internal pressure entirely.

Common questions

What is Barlow's formula?

t = PD / 2S, relating wall thickness to internal pressure, outside diameter and allowable stress. Rearranged as P = 2St / D it gives the pressure a known wall will hold.

Why divide by 0.875 in wall thickness calculations?

Because pipe may be manufactured up to 12.5% under its nominal wall. The calculation gives a required minimum, so the nominal wall ordered must be that minimum divided by 0.875.

Does Barlow's formula use the inside or outside diameter?

The outside diameter. Using the OD makes the result conservative, since the actual hoop stress develops at the mean diameter.

What allowable stress should I use for A106 Grade B?

20,000 psi up to about 400 °F, falling as temperature rises — 17,300 psi at 650 °F and lower above that. The values come from ASME B31.3 Table A-1 and must be read at the design temperature.

Is the pressure design thickness the final wall?

No. Add corrosion allowance, any threading or grooving depth, and then allow for mill tolerance. Sustained loads, thermal expansion and external pressure must also be checked separately.