How the pipe thickness calculation works
For straight pipe under internal pressure, the widely published form in ASME B31.3 paragraph 304.1.2 is t = PD ÷ 2(SEW + PY). P is the internal design pressure, D the outside diameter, S the allowable stress, E the quality factor, W the weld joint strength reduction factor and Y a coefficient. Read paragraph 304.1.2 in your own copy for the definitions and limits; this page explains the arithmetic in its own words and holds no code text or tables.
- Pressure design thickness, t. The wall needed to hold the pressure, before any allowance. Multiply S × E × W, add P × Y, double the sum, and divide it into P × D.
- Required thickness, t + c. Add the allowance c, which is corrosion plus any mechanical allowance such as thread or groove depth. Paragraph 304.1.1 is the code pointer for this minimum required thickness.
- Nominal wall needed. Pipe is made with a tolerance on wall thickness, so the wall you order must be thicker than the minimum. Divide the required thickness by (1 − mill tolerance). With 12.5%, that is dividing by 0.875. Then round up to the next standard wall that is available.
- Margin. Subtract t and t + c from a measured thickness. Margin over t is the metal that can still be lost before the wall can no longer hold the pressure. Margin over t + c is what is left against the full required thickness.
The published form is for walls thinner than D/6. The calculator warns you when t is not, because the code sends thicker walls to another equation. Mill tolerance applies to new pipe you order, not to a UT reading, so it does not enter the margin.
Worked example 1: a 10.75 in line with a measured reading
These are fictional study inputs, not a rating for any real line. P = 600 psi, D = 10.75 in, S = 20,000 psi (entered, not looked up), E = 1, W = 1, Y = 0.4, c = 0.0625 in, mill tolerance 12.5%, and a measured thickness of 0.300 in.
- SEW = 20,000 × 1 × 1 = 20,000 psi. PY = 600 × 0.4 = 240 psi.
- t = 600 × 10.75 ÷ (2 × (20,000 + 240)) = 6,450 ÷ 40,480 = 0.15934 in.
- Required thickness = 0.15934 + 0.0625 = 0.22184 in.
- Nominal wall needed = 0.22184 ÷ 0.875 = 0.25353 in.
- Margin: 0.300 − 0.15934 = 0.14066 in over t, and 0.300 − 0.22184 = 0.07816 in over t + c.
Worked example 2: a smaller line with a lower quality factor
Also fictional. P = 300 psi, D = 6.625 in, S = 20,000 psi, E = 0.85, W = 1, Y = 0.4, c = 0.125 in, mill tolerance 12.5%, measured 0.250 in.
- SEW = 20,000 × 0.85 × 1 = 17,000 psi. PY = 300 × 0.4 = 120 psi.
- t = 300 × 6.625 ÷ (2 × (17,000 + 120)) = 1,987.5 ÷ 34,240 = 0.05805 in.
- Required thickness = 0.05805 + 0.125 = 0.18305 in. Nominal wall needed = 0.18305 ÷ 0.875 = 0.20920 in.
- Margin: 0.250 − 0.05805 = 0.19195 in over t, and 0.250 − 0.18305 = 0.06695 in over t + c.
A lower E raises t, so the same pipe needs more wall. These are original arithmetic examples, not exam questions.
From margin to years left
The margin tells you how much wall can still be lost, not how long that takes. Get the rate from two readings with the corrosion rate calculator, then turn the margin and rate into years with the remaining life calculator. Enter the required thickness your procedure names, which may be t or t + c, so the two tools agree.
Pipe thickness questions
Is t-min the same as t, or t + c?
Documents use the term differently. Here, t is the pressure design thickness and t + c is the required thickness with allowances. The remaining life formula compares a measured thickness with a required thickness, so check which value your question or procedure means before you subtract.
Do I add the mill tolerance to the corrosion allowance?
No, they do different jobs. The corrosion allowance is added to t. The mill tolerance only sets the nominal wall you order, by dividing t + c by (1 − tolerance). Do not apply it to an inspection reading.
Why is my answer wrong when the wall is very thick?
The formula is for t less than D/6. A high pressure on small pipe can push t past that, and the calculator then flags the result as not valid. Use the code's other equation for those cases.
What this calculator does not do
It covers straight pipe under internal pressure only. It does not cover bends, branch connections, reducers, blanks, external pressure, or the pressure-temperature checks in your piping class. It holds no allowable stress or quality factor tables: you look those up in your own code edition.
The governing code edition, the piping class and design data, your approved procedure and the responsible inspector or engineer control. This tool does not rerate a line or set an operating pressure.