GuidesLeitfäden · Pipestra Wall
Guide
ASME B31.3 Pipe Wall Thickness: A Worked Example
Step-by-step ASME B31.3 pipe wall thickness calculation using t = PD/2(SEW+PY), with corrosion allowance, mill tolerance and schedule selection.
Picking a pipe schedule is one of the first decisions in any process piping job. Get it wrong and you either waste money on heavy pipe or, far worse, end up with a line that cannot hold its design pressure once corrosion and manufacturing tolerance have eaten into the wall.
This guide walks through the pressure design of a straight pipe under internal pressure to ASME B31.3, paragraph 304.1.2, from inputs to a selected schedule. Every number is shown so you can repeat the calculation by hand or check it in a calculator.
The formula
For straight pipe under internal pressure, ASME B31.3 gives the pressure design thickness as:
t = P·D / (2·(S·E·W + P·Y))
where:
- t = pressure design thickness (mm)
- P = internal design gauge pressure (MPa)
- D = outside diameter of the pipe (mm)
- S = basic allowable stress of the material at design temperature (MPa), from Table A-1 (or A-1M)
- E = quality factor for the longitudinal weld or casting (Table A-1A / A-1B). Seamless pipe uses E = 1.0
- W = weld joint strength reduction factor (paragraph 302.3.5(e)). It is 1.0 for most carbon steel lines at moderate temperatures and drops at high temperatures
- Y = coefficient from Table 304.1.1. For ferritic steels below about 482 °C (900 °F), Y = 0.4
The formula applies when t < D/6. For thicker walls, or when P/(S·E) is greater than 0.385, the code asks for special consideration of failure theory, fatigue and thermal stress.
The thickness you actually need to buy is larger than t:
t_m = t + c
where c is the sum of mechanical allowances (thread or groove depth), corrosion and erosion allowances. On top of that, the ordered (nominal) wall must still provide t_m after the negative manufacturing tolerance is subtracted.
Worked example
Design inputs and assumptions
| Input | Value | Note |
|---|---|---|
| Pipe size | NPS 6 | D = 168.3 mm |
| Material | ASTM A106 Grade B, seamless | Carbon steel |
| Design pressure, P | 4.0 MPa (40 bar g) | Internal |
| Design temperature | 200 °C | |
| Allowable stress, S | 138 MPa | Example value. Check Table A-1 of your code edition at your design temperature |
| Quality factor, E | 1.0 | Seamless pipe |
| Weld strength reduction, W | 1.0 | Seamless, well below the creep range |
| Coefficient, Y | 0.4 | Ferritic steel below 482 °C |
| Corrosion allowance | 1.5 mm | Plain-end pipe, no threads or grooves |
| Mill tolerance | −12.5 % | Typical for seamless pipe to ASTM A106. Check your purchase specification |
Step 1: pressure design thickness
First the denominator:
S·E·W + P·Y = 138 × 1.0 × 1.0 + 4.0 × 0.4 = 138 + 1.6 = 139.6 MPa
Then:
t = (4.0 × 168.3) / (2 × 139.6) = 673.2 / 279.2 = 2.41 mm
Check the limit: D/6 = 168.3 / 6 = 28.05 mm. Since 2.41 mm is far below that, the thin-wall formula is valid. Also P/(S·E) = 4.0 / 138 = 0.029, well below 0.385.
Step 2: add allowances
t_m = t + c = 2.41 + 1.5 = 3.91 mm
This is the minimum wall that must remain in the pipe, after manufacturing tolerance, for the line to be acceptable over its design life.
Step 3: allow for mill tolerance
Seamless pipe may be delivered up to 12.5 % thinner than its nominal wall. So the nominal wall must satisfy:
t_nominal × (1 − 0.125) ≥ t_m
t_nominal ≥ 3.91 / 0.875 = 4.47 mm
Step 4: choose a wall from your piping class
Pick the first wall thickness in your piping class that is at least 4.47 mm. For NPS 6 carbon steel, Schedule 40 (7.11 mm nominal) is a common choice that clearly satisfies the requirement:
- Minimum wall after tolerance: 7.11 × 0.875 = 6.22 mm
- Required t_m: 3.91 mm
- Margin: 6.22 − 3.91 = 2.31 mm
The extra margin is normal. Schedules come in steps, and piping classes often fix a minimum schedule for mechanical robustness, support spans and handling, not just pressure.
Using the inside diameter instead
If you know the inside diameter d instead of D, B31.3 gives an equivalent form:
t = P·(d + 2c) / (2·(S·E·W − P·(1 − Y)))
Both forms give practically the same result for thin-wall pipe. Use whichever matches the data you have, but do not mix them.
Common mistakes
- Using the wrong allowable stress. S depends on material grade, product form and temperature. Interpolate between table temperatures and use the edition your project is contracted to.
- Forgetting W at high temperature. Above roughly 427 °C, weld joint strength reduction factors below 1.0 can apply to welded pipe. They can increase the required wall noticeably.
- Ignoring E for welded pipe. ERW pipe typically has E = 0.85, which raises t by roughly 17 % compared with seamless.
- Applying mill tolerance to t instead of t_m. The tolerance applies to the whole ordered wall, so divide t_m (including corrosion) by 0.875, not just t.
- Forgetting thread or groove depth. Threaded or grooved ends reduce the wall locally and must be included in c.
- Stopping at pressure. Wall thickness from 304.1.2 covers internal pressure only. External pressure, bending from weight, thermal loads and local loads at supports are checked separately, usually in a pipe stress analysis.
Checking the reverse: maximum allowable pressure
Once you have picked a wall, rearranging the formula gives the pressure that wall can carry. With the remaining thickness after tolerance and corrosion, t = 6.22 − 1.5 = 4.72 mm:
P = 2·S·E·W·t / (D − 2·Y·t) = 2 × 138 × 4.72 / (168.3 − 2 × 0.4 × 4.72) = 1302.7 / 164.5 ≈ 7.9 MPa
That confirms Schedule 40 has plenty of margin over the 4.0 MPa design pressure in this example.
Assumptions to state in your calculation
Write these down in every wall thickness calculation so that a reviewer can follow them:
- Code and edition (for example ASME B31.3, with the year)
- Material specification, grade and product form
- Design pressure and temperature, and where they come from
- Source of S, E, W and Y, with table references
- Corrosion, erosion and mechanical allowances
- Mill tolerance and the purchase standard it comes from
Try it in Pipestra Wall
Pipestra Wall runs this calculation in your browser for ASME B31.3 and EN 13480-3. Enter pressure, diameter, material data and allowances, and it shows the required thickness and each step, so you can check the result against your own hand calculation. It is free during beta and needs no account: wall.pipestra.com.
Results must be checked by a qualified engineer.