Piping Toolset
HomeCalculators › ASME B31.3 Pipe Wall Thickness Calculator

ASME B31.3 Pipe Wall Thickness Calculator

Returns the pressure design thickness t, the minimum required thickness tm, and the ordering thickness grossed up for mill under-tolerance, per ASME B31.3 ¶304.1.2 Eq. (3a). Allowable stress S, factors E and W, and coefficient Y stay user inputs from the governing Code edition.

Computes the pressure design thickness t, the minimum required thickness tm, and the ordering thickness for straight pipe under internal pressure per ASME B31.3 ¶304.1.2, Eq. (3a). Allowable stress S, quality factor E, weld joint strength reduction factor W, and coefficient Y are entered by you from the Code tables — no ASME table values are embedded.

Open this calculator → Download sample report

Method

B31.3 Eq. (3a) for straight pipe under internal pressure, thin-wall form:

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

tm = t + c

torder = tm / (1 − mill tolerance)

where P is the internal design gauge pressure, D the outside diameter, and c the sum of the corrosion/erosion allowance and any mechanical allowances (threading, grooving). The ordering thickness grosses up tm for the seamless-pipe mill under-tolerance (typically 12.5%).

Inputs
PInternal design gauge pressurepsi
DPipe outside diameterin
SAllowable stress at design temperature (Code Table A-1 — user-supplied)psi
EQuality factor (Table A-1A/A-1B — user-supplied)
WWeld joint strength reduction factor (¶302.3.5(e) — user-supplied)
YWall-thickness coefficient (Table 304.1.1 — user-supplied)
cCorrosion/erosion + mechanical allowancesin
mill tolMill under-tolerance fraction (e.g. 0.125)
Outputs
tPressure design thicknessin
tmMinimum required thickness t + cin
t_orderOrdering thickness after mill tolerancein

Limitations — what this calculator is not

Worked example — fixture-verified

NPS 6 (6.625 in OD) carbon-steel line at 2,000 psi design pressure. Allowable stress 20,000 psi, seamless (E = 1.0, W = 1.0), Y = 0.4, corrosion allowance 1/16 in, mill tolerance 12.5%.

Given
Design pressure P2,000psi
Outside diameter D6.625in
Allowable stress S20,000psi
Quality factor E1.0
Weld factor W1.0
Coefficient Y0.4
Allowance c0.0625in
Mill tolerance12.5%

Step by step

  1. Denominator: 2·(S·E·W + P·Y) = 2·(20,000·1.0·1.0 + 2,000·0.4) = 2·20,800 = 41,600 psi.
  2. Pressure design thickness: t = P·D / 41,600 = 2,000·6.625 / 41,600 = 13,250 / 41,600 = 0.31851 in.
  3. Minimum required: tm = 0.31851 + 0.0625 = 0.38101 in.
  4. Ordering thickness: 0.38101 / (1 − 0.125) = 0.38101 / 0.875 = 0.43544 in → order Sch 80 (0.432 in) only after checking the actual purchase tolerance, or the next heavier wall.
Result COMPUTED
t — pressure design thickness0.31851in
tm — minimum required0.38101in
Ordering thickness0.43544in

t = 0.31851 in is well under D/6 = 1.10 in, so the thin-wall Eq. (3a) form applies.

Why you can trust these numbers: this exact case is fixture b313-wall-thickness.json — case “NPS 6 @ 2000 psi, S=20000, Y=0.4, c=1/16, 12.5% mill tol” (tolerance 0.00001) — in the calc-core release gate. It re-runs on every commit; a red fixture blocks deployment. See the validation methodology.

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

What is the difference between t, tm, and the ordering thickness?

t is the thickness needed to resist pressure alone (Eq. 3a). tm adds the corrosion, erosion and mechanical allowances. The ordering thickness additionally grosses tm up for the mill under-tolerance (12.5% for most seamless pipe), because the wall actually delivered may be that much thinner than nominal.

Where do S, E, W and Y come from?

From the ASME B31.3 tables for your material, temperature and weld type: S from Table A-1, E from Tables A-1A/A-1B, W per ¶302.3.5(e), Y from Table 304.1.1. This tool keeps them as inputs — it never embeds ASME table values.

Does this calculator handle external pressure or vacuum?

No. B31.3 ¶304.1.3 points external-pressure design to BPVC Section VIII UG-28 — use the External Pressure calculator on the Equipment line.

Related calculators

Open this calculator → All calculators