Piping Toolset
HomeCalculators › ASME B31.4 / B31.8 / B31.11 Pipeline Wall Thickness Calculator

ASME B31.4 / B31.8 / B31.11 Pipeline Wall Thickness Calculator

Returns the pressure design thickness t, the nominal required thickness tn after the corrosion allowance, and the hoop-stress utilization, from the Barlow form shared by ASME B31.4 ¶403.2.1, B31.8 ¶841.1.1 and B31.11 ¶1104.1.2. SMYS, design factor F, joint factor E and derating T stay user inputs.

Computes the wall thickness required to contain internal design pressure in a buried or above-ground transportation pipeline, for all three ASME B31 pipeline codes — B31.4 (liquids), B31.8 (gas transmission & distribution) and B31.11 (slurry). All three use the same closed form; what differs is which factors the governing Code entitles you to use. Specified minimum yield strength SMYS comes from the pipe specification (API 5L or equivalent), and the design/location-class factor F, longitudinal joint factor E and temperature derating factor T are entered by you from the governing edition — no Code table values are embedded, and the code selector is a report label only.

Open this calculator → Download sample report

Method

Pressure design of straight pipe, Barlow form with the pipeline design factors applied to SMYS:

t = P·D / ( 2 · SMYS · F · E · T )

tn = t + A

hoop utilization = P·D / ( 2·tn ) / SMYS

B31.8 ¶841.1.1 states the same relation solved for pressure, P = (2·S·t/D)·F·E·T, where S is SMYS; B31.4 ¶403.2.1 and B31.11 ¶1104.1.2 fold F, E and T into the design stress before dividing. Here P is the internal design gauge pressure, D the outside diameter, SMYS the specified minimum yield strength from the pipe spec, F the design factor set by location class or fluid service, E the longitudinal joint factor for the pipe manufacturing process, T the temperature derating factor (1.0 where the Code applies none), and A the additional thickness allowance for corrosion, erosion and threading or grooving. Hoop utilization is reported as a fraction of SMYS so the delivered design can be compared directly against the factor that was claimed.

Inputs
codeGoverning pipeline code — B31.4, B31.8 or B31.11 (report label; selects no factor)
PInternal design gauge pressurepsi
DPipe outside diameterin
SMYSSpecified minimum yield strength from the pipe spec (user-supplied)psi
FDesign / location-class factor (user-supplied from the governing edition)
ELongitudinal joint factor (user-supplied)
TTemperature derating factor, 1.0 where the Code has none (user-supplied)
AAdditional thickness allowance — corrosion, erosion, mechanicalin
Outputs
tPressure design thicknessin
tnNominal required thickness t + Ain
hoopUtilizationHoop stress at tn as a fraction of SMYS

Limitations — what this calculator is not

Worked example — fixture-verified

NPS 12 (12.75 in OD) API 5L X52 liquid transmission line to ASME B31.4 at 1,440 psi internal design pressure. Design factor F = 0.72, seamless/ERW joint factor E = 1.0, no temperature derating (T = 1.0), and no corrosion allowance taken (A = 0) so the pressure design thickness is seen bare.

Given
CodeB31.4 (liquid)
Design pressure P1,440psi
Outside diameter D12.75in
SMYS (X52)52,000psi
Design factor F0.72
Joint factor E1.0
Derating T1.0
Allowance A0in

Step by step

  1. Design hoop stress basis: SMYS·F·E·T = 52,000·0.72·1.0·1.0 = 37,440 psi.
  2. Denominator: 2·(SMYS·F·E·T) = 2·37,440 = 74,880 psi.
  3. Numerator: P·D = 1,440·12.75 = 18,360 lb/in.
  4. Pressure design thickness: t = 18,360 / 74,880 = 0.24519 in.
  5. Nominal required thickness: tn = t + A = 0.24519 + 0 = 0.24519 in.
  6. Hoop utilization: P·D / (2·tn) / SMYS = 18,360 / (2·0.24519) / 52,000 = 0.72 — with no allowance added, utilization returns exactly the design factor claimed, which is the arithmetic check on the whole calculation.
Result COMPUTED
t — pressure design thickness0.24519in
tn — nominal required thickness0.24519in
Hoop utilization (fraction of SMYS)0.72

0.24519 in sits just under the 0.250 in wall commonly stocked for NPS 12 X52, so this line lands on a standard order with almost nothing to spare — add any corrosion allowance and it moves up a wall. The same fixture carries the two sibling cases that show how much the user-supplied factor drives the answer: the identical pipe designed to B31.8 at a location-class factor F = 0.5 with a 0.05 in allowance needs t = 0.35308 in and t<sub>n</sub> = 0.40308 in, while an NPS 10.75 X42 slurry line to B31.11 at F = 0.80, 1,000 psi and a 0.0625 in allowance needs t = 0.15997 in and t<sub>n</sub> = 0.22247 in. One equation, three codes, three factors you supply.

Why you can trust these numbers: this exact case is fixture b31-pipeline-thickness.json — case “B31.4 liquid: NPS 12 X52 @ 1440 psi, F=0.72, E=1, T=1, A=0” (tolerance 0.00001) — in the calc-core release gate. It re-runs on every commit; a red fixture blocks deployment. See the validation methodology.

Additional verified cases in this fixture

B31.8 gas: same pipe, location-class F=0.5, A=0.05 COMPUTED
input:  {"code":"B31.8","P":1440,"D":12.75,"SMYS":52000,"F":0.5,"E":1,"T":1,"A":0.05}
expect: {"t":0.35308,"tn":0.40308}
tol:    0.00001
B31.11 slurry: F=0.80 COMPUTED
input:  {"code":"B31.11","P":1000,"D":10.75,"SMYS":42000,"F":0.8,"E":1,"T":1,"A":0.0625}
expect: {"t":0.15997,"tn":0.22247}
tol:    0.00001

Sources & citations

Per the source & citation policy, allowable-stress and factor table values are user-supplied — this page and the app cite paragraph numbers and never reproduce ASME table data.

FAQ

Does selecting B31.4, B31.8 or B31.11 change the result?

No. All three codes design straight pipe for internal pressure with the same form, t = P·D / (2·SMYS·F·E·T), so the selector is a label carried onto the report — it selects no factor and alters no arithmetic. What actually changes between the codes is which values of F, E and T you are entitled to use, and those you enter from the governing edition. Note also that recent B31.4 editions have absorbed slurry service; confirm which document your project is contracted to before citing B31.11.

Why is there no mill under-tolerance gross-up like the B31.3 calculator has?

Because the pipeline codes are written on nominal wall: the design factor F already holds the calculated hoop stress well below SMYS, and the manufacturing tolerance is absorbed in the material specification rather than added by the designer. If your purchase specification or company standard does require the delivered minimum wall to be covered, put the tolerance into the allowance A so it shows on the face of the calculation instead of being applied silently.

What is the hoop utilization output for?

It reports the hoop stress at the nominal thickness as a fraction of SMYS, so you can confirm the design you are ordering actually delivers the factor you claimed. With no allowance added it returns the design factor exactly (0.72 in the worked example). Once an allowance is included the utilization drops below F, and the gap is a direct measure of the margin the corrosion allowance is buying.

Is this enough to size a buried pipeline?

No — it is the pressure-containment half only. Buried lines still need the longitudinal and combined stress checks (B31.4 ¶402.6, B31.8 ¶833) for thermal expansion, soil restraint and settlement, plus external-load, crossing and depth-of-cover requirements, none of which this calculator performs. Corrosion defects on an in-service line go to the B31G Corroded Pipe calculator, and rating an existing wall for pressure goes to the Pipeline Allowable Pressure calculator.

Related calculators

Open this calculator → All calculators