Piping Toolset
Home › Calculators › 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.

Method last updated (calculation changelog) · fixture-verified on every build — most recently 2026-10-12.

Built and fixture-verified by Matthew Norris, P.E. — active P.E. licensure in Arizona, California, Kansas, Missouri, North Carolina, Texas.

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). This is the first calculation on almost every new process line — it converts a design pressure and temperature into the wall that goes on the line list — and it is the check a reviewer reruns whenever a material substitution, a design-temperature increase, or an added corrosion allowance touches an existing piping class. Allowable stress S, quality factor E, weld joint strength reduction factor W, and coefficient Y are inputs: type them from whichever edition governs your project, or on Pro autofill them from the embedded ASME B31.3-2024 tables — S from Table A-1C by material line and design temperature, E from Table A-3 (the weld-joint quality factor Ej by specification — 1.00 for seamless pipe and tube) or Table 302.3.4-1 (by joint type), and Ec from Table 302.3.3-1 (castings), W from Table 302.3.5-1, Y from Table 304.1.1-1 — with the table and line printed on the card and in the report, so every value on the calculation sheet is auditable against the edition it came from.

Pipe cross-section under internal pressure A pipe cross-section showing outside diameter D, wall thickness t, and internal pressure P acting outward on the bore. P t — wall thickness D — outside diameter t = f(P, D, S, E, W, Y) S·E·W — allowable stress × joint & weld-strength factors + c (corrosion / mechanical allowances) → t_m ordering wall
Section through the pipe wall: internal design pressure P acts on outside diameter D; the calculators solve the required pressure-design thickness t (plus allowances c) per the governing code equation.
Open this calculator → Download sample report
This calculator is free forever — no account, no run limit. Pro adds Add to report: the titleblocked, print-ready package in the sample report above, built from your own runs, plus .pcp project files — $2.99 / month. Compare tiers →

Video demo

Video demo: ASME B31 Calculators - Dropdown & Autofill Pro Features▶ ASME B31 Calculators - Dropdown & Autofill Pro Features (1:00) — This exact calculator run end to end — the Eq. (3a) check documented on this page, a live recompute at a lower design pressure, result cards captured to a titleblocked report with its table of contents. The numbers in the video are this page's fixture values. Watch on YouTube.

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, S the allowable stress at design temperature from Table A-1C, E the quality factor from Table A-3 (longitudinal weld joints; 1.00 for seamless) or Table A-2 (castings) — Tables A-1, A-1B and A-1A in editions through 2022 — W the weld joint strength reduction factor of ¶302.3.5(e) and Table 302.3.5-1, Y the wall-thickness coefficient from Table 304.1.1-1, and c the sum of the corrosion/erosion allowance and any mechanical allowances (threading, grooving). The calculator evaluates the three quantities in sequence. Eq. (3a) returns the metal required to resist pressure alone; adding c gives the minimum wall that must remain at the end of the corrosion life; dividing by (1 − mill tolerance) grosses that up to the nominal wall to purchase, because seamless pipe may be delivered up to 12.5% under nominal and the delivered minimum still has to cover tm. It then checks the thin-wall validity condition t < D/6 and warns when a result leaves the range where Eq. (3a) applies.

Inputs
PInternal design gauge pressurepsi
DPipe outside diameterin
SAllowable stress at design temperature (Table A-1C — typed, or autofilled on Pro by material line and temperature)psi
EQuality factor (Table A-3 weld joints, 1.00 seamless; Table A-2 castings; increased factors per Tables 302.3.4-1 / 302.3.3-1 — typed, or autofilled on Pro)—
WWeld joint strength reduction factor (Table 302.3.5-1 per ¶302.3.5(e) — typed, or autofilled on Pro by steel group and temperature)—
YWall-thickness coefficient (Table 304.1.1-1 — typed, or autofilled on Pro by material and temperature)—
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

Quick reference — computed A106 Gr B ordering thickness and Sch 40/80 pressure capacity (≤400°F)

Computed at every site build from Eq. (3a) — the identical relation the calculator and its CI fixtures lock — for one fully stated assumption set, not copied from any published table of ratings. Assumptions: seamless ASTM A106 Gr B, design temperature ≤400°F with S = 20.0 ksi (ASME B31.3-2024 Table A-1C value for this material and temperature — Table A-1 in editions through 2022), E = 1.00, W = 1.00, Y = 0.4, corrosion allowance c = 1/16 in., 12.5% mill under-tolerance, straight pipe, dimensions per ASME B36.10M. Ordering thickness = (t + c) / 0.875; capacity = the design pressure at which the schedule's available wall (0.875·tnom − c) exactly satisfies Eq. (3a).

NPSOD (in)Ordering wall @ 150 psig (in)@ 300 psig (in)@ 600 psig (in)Sch 40 capacity (psig)Sch 80 capacity (psig)
22.3750.0820.0920.11212472257
33.5000.0860.1010.13114882395
44.5000.0910.1100.14813212154
66.6250.1000.1280.18411261980
88.6250.1080.1450.21810371801
1010.7500.1170.1630.2549741761
1212.7500.1260.1800.2879351751

Reading it: at these conditions Sch 40 covers every size in the table to well over 600 psig — the ordering-wall columns show how much of the schedule is consumed by pressure vs. allowance. Different material, temperature (S drops above 400°F for A106 B), corrosion allowance, or a welded joint factor: run the calculator above with your own S, E, W, Y and c — that is exactly what it is for.

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 → Sch 80 (0.432 in nominal) FAILS: at the stated 12.5% mill under-tolerance its guaranteed minimum is only 0.432 × 0.875 = 0.378 in, short of tm = 0.38101 in (¶304.1.1(a) requires the delivered minimum T ≥ tm). Order the next heavier standard wall: NPS 6 Sch 120 (0.562 in nominal).
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.

Worked example 2 — high-temperature service with W and Y in play

NPS 10 (10.75 in OD) alloy line in elevated-temperature service at 450 psi. The governing edition supplies S = 13,100 psi at temperature, a weld joint strength reduction factor W = 0.95 for the girth-welded construction, and Y = 0.7 for the material class at this temperature. Seamless (E = 1.0), corrosion allowance 1/16 in, mill tolerance 12.5%.

Given
Design pressure P450psi
Outside diameter D10.75in
Allowable stress S13,100psi
Quality factor E1.0—
Weld factor W0.95—
Coefficient Y0.7—
Allowance c0.0625in
Mill tolerance12.5%

Step by step

  1. Denominator: 2·(S·E·W + P·Y) = 2·(13,100·1.0·0.95 + 450·0.7) = 2·(12,445 + 315) = 2·12,760 = 25,520 psi. Note both high-temperature effects: W < 1 cuts the usable allowable, while Y > 0.4 credits stress redistribution in the wall.
  2. Pressure design thickness: t = 450·10.75 / 25,520 = 4,837.5 / 25,520 = 0.18956 in.
  3. Minimum required: tm = 0.18956 + 0.0625 = 0.25206 in.
  4. Ordering thickness: 0.25206 / 0.875 = 0.28807 in → Sch 30 (0.307 in nominal) covers it; Sch 20 (0.250 in) does not.
Result COMPUTED
t — pressure design thickness0.18956in
tm — minimum required0.25206in
Ordering thickness0.28807in

Compare against Example 1: at moderate pressure the allowance and mill tolerance — not pressure — dominate the ordered wall. Skipping the W factor here would understate t by about 5%, which is exactly the kind of omission a checker looks for on elevated-temperature lines.

Fixture case “NPS 10 @ 450 psi, S=13100, W=0.95, Y=0.7, c=1/16, 12.5% mill tol (high-temperature W and Y)” (tolerance 0.00001) — locked in the same release gate as the example above.

Worked example 3 — longitudinally welded pipe, E below 1.0

NPS 4 (4.5 in OD) welded stainless line at 650 psi in clean service. S = 16,700 psi from the governing edition, quality factor E = 0.85 for the longitudinal weld class (Table A-3 in B31.3-2024; Table A-1B in editions through 2022), W = 1.0 at this temperature, Y = 0.4, no corrosion allowance, mill tolerance 12.5%.

Given
Design pressure P650psi
Outside diameter D4.5in
Allowable stress S16,700psi
Quality factor E0.85—
Weld factor W1.0—
Coefficient Y0.4—
Allowance c0in
Mill tolerance12.5%

Step by step

  1. Denominator: 2·(S·E·W + P·Y) = 2·(16,700·0.85·1.0 + 650·0.4) = 2·(14,195 + 260) = 2·14,455 = 28,910 psi.
  2. Pressure design thickness: t = 650·4.5 / 28,910 = 2,925 / 28,910 = 0.10118 in.
  3. Minimum required: with c = 0, tm = t = 0.10118 in.
  4. Ordering thickness: 0.10118 / 0.875 = 0.11563 in → Sch 10S (0.120 in nominal) covers it for welded stainless.
Result COMPUTED
t — pressure design thickness0.10118in
tm — minimum required0.10118in
Ordering thickness0.11563in

The 0.85 quality factor costs 15% of the allowable — the difference between Sch 10S passing comfortably and passing barely. Buying pipe with a higher-class weld (or seamless) is often cheaper than the next schedule; that trade is exactly what E makes visible.

Fixture case “NPS 4 @ 650 psi, S=16700, E=0.85 welded, Y=0.4, c=0, 12.5% mill tol” (tolerance 0.00001) — locked in the same release gate as the example above.

Sources & citations

Per the source & citation policy, allowable-stress and factor table values are inputs — typed from your governing edition, or autofilled on paid tiers from the embedded datasets enumerated there, always cited by standard, edition, table and line. 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

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. Each number has exactly one customer, and mixing them is the classic wall-thickness error: t belongs to the code check, tm belongs to inspection — it is the acceptance floor for UT readings at end of life and the number a corrosion monitoring program alarms against — and the ordering thickness belongs to procurement, where it gets compared against schedule nominals. Quoting t to an inspector or tm to a buyer sends each of them a number that is wrong for their decision by one deduction. The report prints all three on separate lines so each document downstream can cite the one it actually needs.

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-1C, E from Table A-3 (longitudinal weld joints; 1.00 for seamless) or Table A-2 (castings), W from Table 302.3.5-1 per ¶302.3.5(e), Y from Table 304.1.1-1 — Tables A-1, A-1B and A-1A in editions through 2022. All four are inputs you can type from your governing edition, or on Pro autofill from the embedded B31.3-2024 tables by material, temperature, weld class or steel group, with the table and line printed on the card and in the report. Two of the four need extra care because they silently default to 1.0 in casual work. E below 1.0 — spiral or ERW pipe under some specifications, furnace butt weld far lower — scales required thickness up in direct proportion, and the pipe specification, not the mill certificate, carries the applicable E. W bites only above roughly 950°F, where weld strength reduction begins for ferritic materials, but on hot reformer and steam lines it decides compliance. A calculation sheet that lists all four with their table citations survives audit; one that lists a bare thickness does not.

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. The refusal is principled rather than lazy: external pressure is a buckling problem, not a strength problem, and it obeys entirely different mechanics — capacity depends on roundness, unsupported length between stiffening features, and elastic modulus, and it falls with the cube of thinness rather than linearly. A wall generous for internal pressure can be badly inadequate for full vacuum, which is why jacketed lines, lines that can be steamed out and blocked in, and suction lines that can dead-head deserve the UG-28 check even when their internal-pressure case is trivial. The failure mode is sudden collapse, not leakage — the one outcome a thickness margin does not soften. Two design levers follow from the buckling basis. UG-28's unsupported length shortens with a stiffening ring meeting UG-29 — often cheaper than a heavier wall. And UG-28's collapse pressure assumes a shell close to round; UG-80 sets the permissible out-of-roundness for that reason, since an oval shell collapses well below the round-shell prediction, and no thickness margin fixes ovality alone.

What is the coefficient Y and why is 0.4 so common?

Y locates the pressure-design relation between the outside-diameter and inside-diameter forms of the hoop-stress equation. Table 304.1.1-1 assigns it by material class and temperature: 0.4 is the value for ductile steels below the creep range, which covers the large majority of routine process piping. At elevated temperature the table raises Y, crediting stress redistribution through the wall — the second worked example runs with Y = 0.7 to show the effect on required thickness. The boundary cases are where Y stops being background noise: below-creep ductile steel takes 0.4 and most engineers never see another value, but cast iron and other nonductile materials take Y = 0 — pushing the equation to its most conservative outside-diameter form because those materials never redistribute stress — and thick-wall geometry (t ≥ D/6) replaces the tabulated Y with the d-based formula of ¶304.1.2, since the thin-wall bookkeeping breaks down. If a legacy calculation shows an unfamiliar Y, check the material class and the t/D ratio before assuming an error; the table has more rows than the one everybody remembers.

When does the thin-wall form of Eq. (3a) stop applying?

B31.3 bounds Eq. (3a) at t < D/6. Beyond that — very heavy wall relative to diameter — ¶304.1.2(b) requires special consideration, and this calculator warns rather than proceeding silently. In practice the limit is distant for most process work: the main worked example needs t = 0.31851 in against a D/6 of 1.10 in on NPS 6, even at 2,000 psi design pressure. What 'special consideration' means in practice: past t = D/6 (or P/SE > 0.385), the code stops trusting the membrane simplification and expects design-by-analysis — the through-wall stress distribution, theory-of-failure and thermal-gradient effects the thin-wall form averages away. Fields that live there — high-pressure hydraulic, waterjet, some hydrogen and syngas services — use heavy-wall design methods rather than a thicker answer from this equation. The warning is deliberately a stop, not a nudge: extrapolating Eq. (3a) into heavy-wall territory understates the inside-surface stress, which is the surface that cracks first.

Why does the ordering thickness rarely land exactly on a stock schedule?

Schedules are fixed dimensional steps, while the ordering thickness is a continuous function of pressure, allowable stress, allowance and tolerance. The main example is deliberately a FAIL case: it computes 0.43544 in against Sch 80's 0.432 in nominal, and once the example's own stated 12.5% mill tolerance is applied, Sch 80's guaranteed minimum is only 0.432 × 0.875 = 0.378 in — short of the 0.38101 in required. Sch 120 (0.562 in) is the schedule that actually covers it. The card reports exactly this comparison — the lightest listed schedule that covers the ordering thickness, and the one below it that does not — so reading Sch 80 off the nominal number alone is a rounding error, not a judgment call. The habit that follows: apply the tolerance before comparing, in writing, whenever a computed ordering thickness lands close to a stock nominal wall. Cheap options exist — specify minimum-wall pipe so nominal comparison is irrelevant, trim the allowance if the corrosion basis was padded, or step up one schedule and bank the difference as future allowance. What ages badly is the silent round-down: it converts a documented tolerance into an undocumented hope.

Related calculators

Open this calculator → All calculators