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.
Method last updated (calculation changelog) · fixture-verified on every build — most recently 2026-09-03.
Built and fixture-verified by Matthew Norris, P.E. — active P.E. licensure in Arizona, California, Kansas, Missouri, North Carolina, Texas.
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.
.pcp project files and the batch runner —
$2.99 / month. Compare tiers →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 | ||
|---|---|---|
| code | Governing pipeline code — B31.4, B31.8 or B31.11 (report label; selects no factor) | — |
| P | Internal design gauge pressure | psi |
| D | Pipe outside diameter | in |
| SMYS | Specified minimum yield strength from the pipe spec (user-supplied) | psi |
| F | Design / location-class factor (user-supplied from the governing edition) | — |
| E | Longitudinal joint factor (user-supplied) | — |
| T | Temperature derating factor, 1.0 where the Code has none (user-supplied) | — |
| A | Additional thickness allowance — corrosion, erosion, mechanical | in |
| Outputs | ||
| t | Pressure design thickness | in |
| tn | Nominal required thickness t + A | in |
| hoopUtilization | Hoop stress at tn as a fraction of SMYS | — |
Limitations — what this calculator is not
- Internal pressure only. No external pressure, vacuum or collapse check, and no buckling or ovality assessment for deepwater or deeply buried line.
- No longitudinal or combined stress evaluation — the restrained-line checks of B31.4 ¶402.6 and the combined-stress limits of B31.8 ¶833 are not performed here, and they frequently govern buried lines with thermal expansion or settlement.
- The calculator does not select F for you. Establishing the location class (or the fluid-service design factor) and reading it from the governing edition is the engineer’s responsibility; the B31.4/B31.8/B31.11 selector is a label on the report and changes nothing in the arithmetic.
- No mill under-tolerance gross-up is applied — the pipeline codes work in nominal wall, unlike the B31.3 process-piping calculation. If your purchase specification requires the delivered wall to be covered, add the tolerance to A or use the B31.3 Wall Thickness calculator’s ordering-thickness output as the pattern.
- Sound, uncorroded pipe only. For a line with measured metal loss, use the B31G Remaining Strength calculator on the Fatigue line.
- Rating an existing wall for pressure is the inverse problem — use the Pipeline Allowable Pressure calculator rather than back-solving this one.
- The thin-wall Barlow form is applied as written; the calculator does not invoke the special design considerations the codes require for very thick-wall, low-D/t pipe, nor does it check flange, valve or fitting ratings, hydrostatic test requirements, or MAOP uprating rules.
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 | ||
|---|---|---|
| Code | B31.4 (liquid) | — |
| Design pressure P | 1,440 | psi |
| Outside diameter D | 12.75 | in |
| SMYS (X52) | 52,000 | psi |
| Design factor F | 0.72 | — |
| Joint factor E | 1.0 | — |
| Derating T | 1.0 | — |
| Allowance A | 0 | in |
Step by step
- Design hoop stress basis: SMYS·F·E·T = 52,000·0.72·1.0·1.0 = 37,440 psi.
- Denominator: 2·(SMYS·F·E·T) = 2·37,440 = 74,880 psi.
- Numerator: P·D = 1,440·12.75 = 18,360 lb/in.
- Pressure design thickness: t = 18,360 / 74,880 = 0.24519 in.
- Nominal required thickness: tn = t + A = 0.24519 + 0 = 0.24519 in.
- 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 thickness | 0.24519 | in |
| tn — nominal required thickness | 0.24519 | in |
| 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.
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.00001B31.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.00001Sources & citations
- ASME B31.4, Pipeline Transportation Systems for Liquids and Slurries — ¶403.2.1, internal design pressure and straight-pipe wall thickness (numbered ¶404.1.2 in older editions).
- ASME B31.8, Gas Transmission and Distribution Piping Systems — ¶841.1.1 steel pipe design formula; design factor F by location class per ¶841.1.6, longitudinal joint factor E and temperature derating factor T per the same section — values user-supplied, not embedded.
- ASME B31.11, Slurry Transportation Piping Systems — ¶1104.1.2, straight pipe under internal pressure.
- ASME B31.4 ¶402.6 and ASME B31.8 ¶833 — longitudinal and combined stress limits for restrained and unrestrained pipe; outside the scope of this calculator.
- API 5L (or the applicable material specification) — source of SMYS and of the pipe manufacturing process that governs E; entered by the user.
Per the source & citation policy, allowable-stress and factor table values are user-supplied. Where a page does reproduce specific ASME data (the B16.5 ratings, the quick-reference tables), it states the source table and conditions inline.
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. The one place the label does real work is downstream, in audit: the report stating 'B31.8, F = 0.72, Location Class 1' lets a reviewer check the factor against the code's own table for that class, which is the entire compliance question on a pipeline wall calculation. A bare thickness with unstated factors is unauditable regardless of how correct it happens to be — the selector exists to make the basis part of the record.
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. The philosophical difference is worth one sentence, because it explains several other divergences between the books: the pipeline codes regulate stress as a fraction of specified minimum yield with location-dependent factors, while B31.3 regulates against allowable stress with explicit deductions — two self-consistent systems that cannot be mixed piecemeal. Importing B31.3 habits (tolerance gross-ups, allowable-stress thinking) into a pipeline calculation, or vice versa, produces numbers that satisfy neither book; pick the system the contract names and stay inside it.
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. It is also the fastest cross-check against the mirror calculation: rating an existing wall with the Pipeline Allowable Pressure card at the same inputs must return a pressure whose utilization is exactly F — if the two cards disagree, an input differs, and the utilization line is where the discrepancy shows first. Reviewers can use the same property: any submitted design whose stated factor and computed utilization do not match has an arithmetic or basis error worth finding before the pipe is ordered.
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. Restrained-line behavior is the mechanism behind most of those additional checks, and it is worth understanding rather than just delegating: buried pipe cannot expand axially, so temperature and Poisson effects build longitudinal stress that above-ground piping relieves by moving — which is why a buried line's governing case is frequently the combined-stress check at a bend or tie-in, not the hoop check this card performs. Pressure containment sizes the wall; the restrained-line checks decide whether that wall survives being buried.
Related calculators
- B31G Corroded Pipe Remaining Strength Calculator (Level 1) — Re-rate the same line once metal loss is measured
- ASME B31.3 Pipe Wall Thickness Calculator — Plant piping uses the B31.3 allowable-stress form instead
- Hydrostatic / Pneumatic Leak Test Pressure Calculator (ASME B31.3) — Test pressure once the wall is set
- Pipeline MAOP Calculator — Maximum Allowable Operating Pressure (ASME B31.8 / B31.4) — The wall you just sized sets one of the three MAOP ceilings
- Pipeline Hydrostatic Test Pressure Calculator (ASME B31.4 / B31.8) — Check the wall survives its own strength test before ordering it