Pipe wall thickness from pressure: Barlow and ASME B31.3
How to calculate the wall thickness a pressure pipe needs with Barlow's formula and ASME B31.3, add corrosion allowance and mill tolerance, and choose a schedule.
Every pressure pipe has to answer one question before anything else: is the wall thick enough? Too thin and the pipe can burst or leak at a weld; too thick and you pay for steel, weight and welding time you never needed. The good news is that the core of the check is a one-line formula. This guide walks through pipe wall thickness calculation from first principles (Barlow's formula), then the version used for process piping in ASME B31.3, and finishes with a complete worked example that ends in a real pipe schedule.
Why internal pressure tries to split a pipe along its length
Pressure inside a pipe pushes outward on every part of the wall. Cut the pipe in half along its length and look at one half: the pressure force on it is P × D per metre of length, and the only thing holding it together is the two strips of wall, each of thickness t. The stress in those strips runs around the circumference and is called the hoop stress:
σh = P × D / (2 × t)
The stress along the pipe's length (longitudinal stress) is only about half of this, so hoop stress is what sets the minimum wall. That is also why a pipe that fails by overpressure almost always splits lengthwise rather than breaking into two pieces.
- P = internal design pressure (gauge), MPa or psi
- D = outside diameter, mm or in
- t = wall thickness, same unit as D
- σh = hoop stress, same unit as P
Keep the units consistent: MPa with mm, or psi with inches. 1 MPa = 10 bar = 145.04 psi. If your pressure is in bar or kg/cm², convert it first with the engineering unit converter.
The formulas: Barlow and ASME B31.3
Barlow's formula
Rearrange the hoop stress equation so the stress equals the allowable stress S of the material and you get Barlow's formula for the thickness needed to hold pressure:
t = P × D / (2 × S)
It is quick, it is conservative for thin pipes because it uses the outside diameter, and it is what most people mean when they say "pipe pressure rating". It knows nothing about welds, temperature, corrosion or manufacturing tolerance, though, so on its own it is a first estimate, not a design.
ASME B31.3 pressure design thickness
For process piping, ASME B31.3 (paragraph 304.1.2) gives a refined version for straight pipe under internal pressure:
t = P × D / [2 × (S × E × W + P × Y)]
- S = allowable stress of the material at the design temperature, from the code's Table A-1
- E = quality factor of the pipe: 1.0 for seamless pipe, 0.85 for electric-resistance-welded (ERW) pipe, lower for some other weld types
- W = weld joint strength reduction factor: 1.0 below the creep range
- Y = coefficient from the code's table: 0.4 for ferritic steels below about 482 °C (900 °F)
The P × Y term is a small correction that brings the thin-wall formula closer to the exact thick-wall result. The formula is valid while t is less than D/6; thicker walls, or very high pressures relative to the allowable stress, need the code's special thick-wall rules.
From pressure thickness to the pipe you order
The pressure thickness t is not what you buy. Two more allowances go on top:
- Corrosion and erosion allowance c: extra metal you expect to lose over the design life, plus any thread or groove depth. 1.5 mm is a common figure for carbon steel in mild service, 3 mm for more corrosive duties; clean stainless lines often use zero.
- Mill tolerance: seamless pipe to ASTM A106 or A53 may be delivered up to 12.5 % thinner than its nominal wall. So the nominal wall must satisfy tnom ≥ (t + c) / 0.875. Note that you divide by 0.875; multiplying by 1.125 gives a slightly thinner, unsafe answer.
Finally, pick the first standard schedule (ASME B36.10 for carbon steel, B36.19 for stainless) whose nominal wall is at least tnom.
Worked example: a 6-inch line at 40 bar
A pump discharge line runs at a design pressure of 40 bar and a design temperature of 120 °C. The pipe is NPS 6 (DN 150) seamless carbon steel to ASTM A106 Grade B, with a 1.5 mm corrosion allowance. If you are still working out the pressure the pump will deliver, start with the pump head and power calculator.
- P = 40 bar = 4.0 MPa
- D = 168.3 mm (outside diameter of NPS 6)
- S = 138 MPa (20 ksi, the B31.3 Table A-1 value for A106 Grade B at this temperature; always read the value for your own temperature from the current edition)
- E = 1.0 (seamless), W = 1.0, Y = 0.4
- c = 1.5 mm
Step 1: pressure design thickness
t = 4.0 × 168.3 / [2 × (138 × 1.0 × 1.0 + 4.0 × 0.4)] = 673.2 / (2 × 139.6) = 673.2 / 279.2 = 2.41 mm
Check validity: D/6 = 28.1 mm, far above 2.41 mm, so the thin-wall formula applies. For comparison, plain Barlow gives 4.0 × 168.3 / (2 × 138) = 2.44 mm, almost the same.
Step 2: add the corrosion allowance
tm = 2.41 + 1.5 = 3.91 mm
Step 3: allow for mill tolerance
tnom ≥ 3.91 / 0.875 = 4.47 mm
Step 4: choose the schedule
For NPS 6 carbon steel, Schedule 40 (the same as STD at this size) has a nominal wall of 7.11 mm, comfortably above 4.47 mm. Schedule 80 (10.97 mm) would be needed only at a much higher pressure. Sch 40 is the usual choice here: it is stocked everywhere and its flanges and fittings are standard.
How much pressure can the chosen pipe actually take?
Turn the formula around to find the maximum allowable working pressure of the pipe you picked. Rearranging the B31.3 equation gives P = 2 × S × E × W × t / (D − 2 × Y × t), where t is now the thickness you can count on: the minimum delivered wall minus the corrosion allowance.
- Minimum delivered wall = 7.11 × 0.875 = 6.22 mm
- Usable after corrosion = 6.22 − 1.5 = 4.72 mm
- P = 2 × 138 × 4.72 / (168.3 − 2 × 0.4 × 4.72) = 1,303 / 164.5 = 7.92 MPa, about 79 bar
So a Sch 40 line has roughly twice the pressure capacity the duty needs, which is typical of small and medium bore pipe. In practice the flange rating, valves or fittings usually limit the system before the pipe wall does. A Class 300 flange in A105 at 120 °C, for example, is rated below 79 bar, so check the whole line, not just the pipe.
What if the pipe is welded?
Swap seamless pipe for ERW pipe with E = 0.85 and the numbers move: t = 673.2 / [2 × (138 × 0.85 + 1.6)] = 2.83 mm, tm = 4.33 mm and tnom ≥ 4.95 mm. Sch 40 still passes, but the margin is smaller. With a thinner schedule or a higher pressure, the quality factor can be the thing that pushes you up a schedule. (The 12.5 % undertolerance applies to A53 welded pipe too; check the tolerance in your own pipe specification.)
Imperial units cross-check
The same example in US units: P = 580 psi, D = 6.625 in, S = 20,000 psi.
t = 580 × 6.625 / [2 × (20,000 + 580 × 0.4)] = 3,843 / 40,464 = 0.095 in = 2.41 mm
The answer matches the metric result, which is a good habit: when a thickness looks odd, rework it in the other unit system. A common slip is mixing up bar and MPa, which changes the answer tenfold. Our pipe size and pressure drop calculator helps with the other half of the job: picking the bore before you choose the wall.
Common mistakes and practical checks
- Using the wrong pressure. Design pressure is the highest pressure the line can see in normal operation, such as pump shut-off head plus suction pressure, or the relief valve set pressure. It is not the operating point.
- Ignoring surges. A fast-closing valve can add tens of bar for a fraction of a second. Work out the surge with our water hammer guide and make sure the line can take it under the code's rules for occasional pressure variations.
- Reading S at room temperature for a hot line. Allowable stress drops as temperature rises, so always take S at the design temperature.
- Forgetting threads and grooves. Threaded pipe loses the thread depth from its wall; add it to c.
- Multiplying instead of dividing for mill tolerance. Use t / 0.875, not t × 1.125.
- Skipping the hydrotest check. B31.3 piping is normally hydrotested at no less than 1.5 times design pressure, adjusted for temperature. For this example that is at least 60 bar, which the Sch 40 pipe handles easily.
Summary
- Hoop stress σh = P × D / 2t sets the minimum wall of a pressure pipe.
- Barlow: t = P × D / 2S for a quick estimate.
- ASME B31.3: t = P × D / [2(S × E × W + P × Y)], valid for t < D/6.
- Add the corrosion allowance, divide by 0.875 for mill tolerance, then choose the next standard schedule.
- Check the result backwards as a maximum allowable working pressure, and check flanges, valves and surges, not just the pipe.
This guide is for preliminary sizing. Final piping design must follow the current edition of the code that applies to your plant and be checked by a qualified engineer.