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.
.pcp project files —
$2.99 / month. Compare tiers →Video demo
▶
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 | ||
|---|---|---|
| P | Internal design gauge pressure | psi |
| D | Pipe outside diameter | in |
| S | Allowable stress at design temperature (Table A-1C — typed, or autofilled on Pro by material line and temperature) | psi |
| E | Quality 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) | — |
| W | Weld joint strength reduction factor (Table 302.3.5-1 per ¶302.3.5(e) — typed, or autofilled on Pro by steel group and temperature) | — |
| Y | Wall-thickness coefficient (Table 304.1.1-1 — typed, or autofilled on Pro by material and temperature) | — |
| c | Corrosion/erosion + mechanical allowances | in |
| mill tol | Mill under-tolerance fraction (e.g. 0.125) | — |
| Outputs | ||
| t | Pressure design thickness | in |
| tm | Minimum required thickness t + c | in |
| t_order | Ordering thickness after mill tolerance | in |
Limitations — what this calculator is not
- Straight pipe under internal pressure only — bends are covered by the Bend Thickness calculator (¶304.2.1), miters by ¶304.2.3, and external pressure or vacuum by BPVC Section VIII UG-28 via ¶304.1.3. Openings cut into the pipe for branch connections carry their own area-replacement check and are not evaluated here.
- Eq. (3a) is the thin-wall form, valid for t < D/6; the calculator warns when the result leaves that range (¶304.1.2(b) then requires special consideration, which this tool deliberately does not attempt).
- S, E, W and Y are yours to select — typed from the governing Code edition, or autofilled on Pro from the embedded B31.3-2024 tables. Either way, choosing them, including the quality factor for longitudinally welded pipe and the elevated-temperature W of ¶302.3.5(e), is the engineer's responsibility: an autofilled value is exactly the 2024 row it cites, and the calculator cannot detect a typed allowable pulled from a superseded edition or read from the wrong temperature row.
- No structural, sustained, occasional, or displacement loading is evaluated here — pressure only. A wall that satisfies Eq. (3a) can still be inadequate across a long unsupported span or in a stiff layout with large thermal growth; use the stress-range calculators for the ¶302.3.5 / ¶319.4.4 checks.
- The ordering-thickness gross-up applies whatever under-tolerance fraction you enter (12.5% is typical for seamless specifications). Pipe purchased to a minimum-wall specification has already absorbed the tolerance — entering it again double-counts the deduction and over-orders wall.
- The card names the lightest ASME B36.10M / B36.19M schedule whose nominal wall covers the ordering thickness, and the next-lighter schedule that falls short — a dimension-standard lookup, not a purchase decision. Confirm it against the actual purchase specification and its tolerance basis, as the worked example's Sch 80 comparison shows.
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).
| NPS | OD (in) | Ordering wall @ 150 psig (in) | @ 300 psig (in) | @ 600 psig (in) | Sch 40 capacity (psig) | Sch 80 capacity (psig) |
|---|---|---|---|---|---|---|
| 2 | 2.375 | 0.082 | 0.092 | 0.112 | 1247 | 2257 |
| 3 | 3.500 | 0.086 | 0.101 | 0.131 | 1488 | 2395 |
| 4 | 4.500 | 0.091 | 0.110 | 0.148 | 1321 | 2154 |
| 6 | 6.625 | 0.100 | 0.128 | 0.184 | 1126 | 1980 |
| 8 | 8.625 | 0.108 | 0.145 | 0.218 | 1037 | 1801 |
| 10 | 10.750 | 0.117 | 0.163 | 0.254 | 974 | 1761 |
| 12 | 12.750 | 0.126 | 0.180 | 0.287 | 935 | 1751 |
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 P | 2,000 | psi |
| Outside diameter D | 6.625 | in |
| Allowable stress S | 20,000 | psi |
| Quality factor E | 1.0 | — |
| Weld factor W | 1.0 | — |
| Coefficient Y | 0.4 | — |
| Allowance c | 0.0625 | in |
| Mill tolerance | 12.5 | % |
Step by step
- Denominator: 2·(S·E·W + P·Y) = 2·(20,000·1.0·1.0 + 2,000·0.4) = 2·20,800 = 41,600 psi.
- Pressure design thickness: t = P·D / 41,600 = 2,000·6.625 / 41,600 = 13,250 / 41,600 = 0.31851 in.
- Minimum required: tm = 0.31851 + 0.0625 = 0.38101 in.
- 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 thickness | 0.31851 | in |
| tm — minimum required | 0.38101 | in |
| Ordering thickness | 0.43544 | in |
t = 0.31851 in is well under D/6 = 1.10 in, so the thin-wall Eq. (3a) form applies.
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 P | 450 | psi |
| Outside diameter D | 10.75 | in |
| Allowable stress S | 13,100 | psi |
| Quality factor E | 1.0 | — |
| Weld factor W | 0.95 | — |
| Coefficient Y | 0.7 | — |
| Allowance c | 0.0625 | in |
| Mill tolerance | 12.5 | % |
Step by step
- 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.
- Pressure design thickness: t = 450·10.75 / 25,520 = 4,837.5 / 25,520 = 0.18956 in.
- Minimum required: tm = 0.18956 + 0.0625 = 0.25206 in.
- 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 thickness | 0.18956 | in |
| tm — minimum required | 0.25206 | in |
| Ordering thickness | 0.28807 | in |
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 P | 650 | psi |
| Outside diameter D | 4.5 | in |
| Allowable stress S | 16,700 | psi |
| Quality factor E | 0.85 | — |
| Weld factor W | 1.0 | — |
| Coefficient Y | 0.4 | — |
| Allowance c | 0 | in |
| Mill tolerance | 12.5 | % |
Step by step
- 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.
- Pressure design thickness: t = 650·4.5 / 28,910 = 2,925 / 28,910 = 0.10118 in.
- Minimum required: with c = 0, tm = t = 0.10118 in.
- 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 thickness | 0.10118 | in |
| tm — minimum required | 0.10118 | in |
| Ordering thickness | 0.11563 | in |
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
- ASME B31.3, Process Piping — ¶304.1.2 Eq. (3a), pressure design of straight pipe.
- ASME B31.3-2024 — Table A-1C (allowable stress S, the material lines listed on the source policy page), Table A-3 seamless pipe/tube row (Ej = 1.00), Tables 302.3.4-1 (Ej) and 302.3.3-1 (Ec), Table 302.3.5-1 (W), Table 304.1.1-1 (Y) — embedded and cited by table and line on the Pro pickers; typed from your governing edition otherwise. (Tables A-1 / A-1A / A-1B in editions through 2022.)
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
- ASME B31.3 Allowable Working Pressure Calculator — Inverse check: rate the wall you actually ordered
- Pipe Bend Minimum Wall Thickness Calculator (B31.3 ¶304.2.1) — Bends are excluded here — use the ¶304.2.1 I-factor
- Mitered Elbow Allowable Pressure Calculator (ASME B31.3 ¶304.2.3) — Miters are excluded here — rate them per ¶304.2.3
- ASME B31.1 Power Piping Wall Thickness Calculator — Same check under B31.1 Power Piping