What this calculator does
Calculates pressure design thickness, adds corrosion/mechanical allowance, and corrects for negative mill tolerance. It does not select a commercial schedule automatically.
Inputs
Results
t = PD / [2(SEW + PY)]. The entered allowance is then added, and the total is divided by 1 − mill tolerance to obtain a minimum nominal wall. Confirm that this equation and every factor apply to the selected piping code, material and temperature.
Worked example — DN100 process line at 2 MPa
114.3 mm outside diameter, 2 MPa (20 bar) design pressure, allowable stress 138 MPa, seamless pipe (E = 1), W = 1, Y = 0.4, 1.5 mm corrosion allowance, 12.5% mill tolerance.
Step 1 — pressure design thickness. ASME B31.3 para. 304.1.2, straight pipe under internal pressure:
t = P·D / [2(S·E·W + P·Y)]
t = (2 × 114.3) / [2 × (138 × 1 × 1 + 2 × 0.4)]
= 228.6 / 277.6 = 0.823 mm
Step 2 — add the allowances. Corrosion, erosion and any threading or grooving depth:
tm = t + c = 0.823 + 1.5 = 2.323 mm
Step 3 — allow for mill under-tolerance. This is the step most often missed. Seamless pipe is permitted to be up to 12.5% thinner than nominal, so the ordered wall must be:
tnom = tm / (1 − 0.125) = 2.323 / 0.875 = 2.655 mm
Step 4 — select a commercial schedule. 2.655 mm is a requirement, not a product. For 114.3 mm OD, Schedule 10S is 3.05 mm and Schedule 40 is 6.02 mm. Specify Sch 10S and the pressure duty is satisfied with margin.
Sanity check. D/t = 114.3 / 2.655 = 43. B31.3 requires special consideration once t ≥ D/6 (a ratio of 6). At 43 this is firmly thin-wall territory and the formula applies.
Notice the proportions: the pressure itself needs 0.82 mm, while the corrosion allowance adds 1.5 mm and the mill tolerance another 0.33 mm. For low-pressure process piping the allowances usually dominate the pressure requirement entirely — which is why arguing about design pressure often changes nothing, and revisiting the corrosion allowance changes everything.
The three coefficients that decide the answer
E — the weld joint quality factor. Taken from B31.3 Table A-1B, and it varies far more than people expect:
| Pipe type | E | Effect on required thickness |
|---|---|---|
| Seamless | 1.00 | baseline (0.82 mm here) |
| Electric resistance welded (ERW) | 0.85 | +18% → 0.97 mm |
| Electric fusion welded, double butt | 0.80–0.90 | up to +25% |
| Furnace butt welded | 0.60 | +67% → 1.37 mm |
Y — the temperature coefficient. 0.4 for ferritic steels up to 480 °C, rising to 0.7 at 620 °C and above. It appears in the denominator alongside P, so it only matters when pressure is a significant fraction of allowable stress — that is, on thick-wall, high-pressure service.
W — the weld strength reduction factor. 1.0 below the creep range. Above roughly 400 °C for carbon steel it falls, reflecting that a longitudinal weld creeps faster than parent metal. On high-temperature service it is not optional.
And S, which is not a coefficient at all. The allowable stress comes from B31.3 Table A-1 at the design temperature, not at ambient. For many carbon steels S falls by a third between 200 °C and 400 °C. Using the room-temperature figure for a hot line is the single most consequential error available here.
Assumptions and where this stops being valid
Internal pressure on straight pipe only. Bends, branches, reducers and flanges all need separate treatment. A branch connection removes metal from the run pipe and usually needs reinforcement calculated to B31.3 para. 304.3; a bend needs extra thickness at the intrados.
Nothing here resists external pressure. Vacuum service or jacketed pipe fails by collapse, not burst, and collapse is governed by geometry and out-of-roundness rather than by allowable stress. That is an ASME BPVC Section VIII, Division 1 UG-28 calculation, and a pipe with ample burst margin can still buckle under full vacuum.
No sustained or occasional loads. Weight, support spacing, wind, seismic and thermal expansion stresses are checked separately in B31.3 paras. 302.3 and 319. A thin-wall pipe adequate for pressure may sag unacceptably between supports or overstress a nozzle when it expands.
No fatigue or thermal cycling. Displacement stress range is a separate check, and it is what governs on lines that cycle.
Corrosion allowance is a judgement, not a calculation. 1.5–3 mm is common for carbon steel in mildly corrosive service; stainless in clean service often takes zero. It should follow from a corrosion assessment and the design life, and it dominates the result on low-pressure lines.
Thin-wall limit. Once t ≥ D/6, or P/SE > 0.385, the formula no longer represents the stress distribution and B31.3 requires a thick-wall approach such as the Lamé equation.
Which code applies — and what to do next
The formula above is ASME B31.3, Process Piping — refineries, chemical plants, pharmaceutical and general process work. Using the wrong code section is a compliance problem, not just a numerical one:
B31.1 Power Piping — boiler external piping and power plant steam. Similar in form but uses a different allowable-stress basis and its own y coefficient, and generally yields thicker walls than B31.3 for the same duty.
B31.4 / B31.8 — liquid and gas transmission pipelines. Design factors based on location class, an entirely different philosophy.
EN 13480 — the European metallic industrial piping standard, used with the Pressure Equipment Directive. PED conformity is a legal requirement in the EU, and a B31.3 calculation alone does not satisfy it.
Next steps: confirm the allowable stress at design temperature rather than ambient, and confirm the pipe's actual E from its material certificate rather than assuming seamless. Round up to a commercial schedule and re-check D/t with the schedule wall. Then move on to the checks this calculation does not cover — support spacing and sustained stress, flexibility and expansion, branch reinforcement, and the hydrotest pressure, which for B31.3 is 1.5 times design pressure corrected for temperature and must not overstress the pipe you have just selected.
Background
Optional reading — open any section below.
The pressure term resists hoop stress from internal pressure. Allowances account for expected metal loss or mechanical requirements, while mill tolerance ensures the delivered pipe is not thinner than the required minimum.
Final piping design also considers external pressure, sustained and occasional loads, thermal expansion, branches, bends, threads, grooves, cyclic service, impact, brittle fracture, examination, testing and the selected commercial schedule.
Frequently Asked Questions
Practical questions about code factors and interpretation.
No. Use the allowable stress prescribed by the applicable code for the exact material and design temperature.
No. Select the next available nominal wall that meets all code and procurement requirements, then verify the actual dimensions.