JPB Process Calcs

Pipe Wall Thickness (ASME B31.3 / B31.8)

Fluid Flow and Piping · Calculator S17-19 · Verified: the solver reproduces its worked example and is covered by tests.

Pressure-design wall thickness and the smallest standard schedule that meets it, per ASME B31.3 or B31.8.

Open the calculator

Overview

What it calculates

This calculator finds the pressure-design wall thickness of straight pipe and picks the lightest standard schedule that covers it. Under ASME B31.3 it uses t = P D / (2 (S E W + P Y)) with the allowable stress S looked up for the material at design temperature. Under ASME B31.8 it uses t = P D / (2 SMYS F E T) with the location class design factor F. It adds the corrosion allowance, applies the mill under-tolerance, and reports the selected wall, its MAWP and D/t.

When to use it

Use it to confirm a schedule on a P&ID or line list, to check an existing line against a pressure rerate. It covers internal pressure only.

Inputs that matter most

Thickness is close to proportional to design pressure and outside diameter and inversely proportional to allowable stress. D is the actual OD for the NPS. The worked example, 6 in. A106 Grade B at 1,000 psig (6.9 MPa) and 300°F (149°C), needs about 0.162 in. (4.1 mm) for pressure. Add 1/16 in. (1.6 mm) corrosion allowance and a 12.5% mill under-tolerance, and Schedule 40 at 0.280 in. (7.1 mm) passes. Under B31.8, F runs from 0.72 for Class 1 to 0.40 for Class 4, so the location class can nearly double the wall.

Reading the results

The calculator sets B31.3's Y from the code table at your temperature and ignores an entered Y that differs, with a warning. At t of D/6 or more it switches to the thick-wall Y form and warns. For B31.8, the temperature derating factor is capped at the table value (1.000 up to 250°F (121°C), 0.900 at 400°F (204°C), 0.867 at 450°F (232°C)) and the solve is refused above 450°F. MAWP is gauge pressure, after deducting mill tolerance and corrosion allowance.

Limits and common mistakes

Design pressure is gauge. There is no external pressure, vacuum, bending, thermal or occasional load check. The built-in stainless allowables (18.8 ksi, 130 MPa) are flagged in the calculator as likely conservative and not yet confirmed against the code table. Mill tolerance and corrosion allowance are applied under B31.8 too, so set them to match your company's line pipe practice.

Equations

t=PD2(SEW+PY)t = \frac{P D}{2(S E W + P Y)}
ASME B31.3 pressure-design thickness.

Source: ASME B31.3

SymbolMeaningUnits (US / SI)
ttPressure-design thicknessin / mm
PPDesign pressurepsig / kPag
DDOutside diameterin / mm
SSAllowable stresspsi / kPa
EEQuality factor-
WWWeld joint strength reduction factor-
YYCoefficient Y-
t=PD2 SMYS F E Tt = \frac{P D}{2\,SMYS\,F\,E\,T}
ASME B31.8 pressure-design thickness.

Source: ASME B31.8

SymbolMeaningUnits (US / SI)
ttPressure-design thicknessin / mm
PPDesign pressurepsig / kPag
DDOutside diameterin / mm
SMYSSMYSSpecified minimum yield strengthpsi / kPa
FFLocation class design factor-
EELongitudinal joint factor-
TTTemperature derating factor-

Inputs

InputSymbolDefaultTypical range or options
CodeASME B31.3 (process piping)ASME B31.3 (process piping)
ASME B31.8 (gas transmission)
Design pressurePP1,000 psig (6,895 kPag)
Design temperatureTT300 °F (148.9 °C)
Nominal pipe sizeNPS 1/2NPS 1/2
NPS 3/4
NPS 1
NPS 1-1/4
NPS 1-1/2
NPS 2
NPS 2-1/2
NPS 3
NPS 3-1/2
NPS 4
NPS 5
NPS 6
NPS 8
NPS 10
NPS 12
NPS 14
NPS 16
NPS 18
NPS 20
NPS 22
NPS 24
MaterialASTM A106 Grade B (seamless carbon steel)ASTM A106 Grade B (seamless carbon steel)
ASTM A53 Grade B (welded/seamless carbon steel)
ASTM A333 Grade 6 (low-temperature carbon steel)
ASTM A312 TP304 (austenitic stainless)
ASTM A312 TP316 (austenitic stainless)
Quality factor EEE1
Weld joint strength reduction factor WWW1
Coefficient YYY0.4
Material (SMYS)API 5L X42API 5L X42
API 5L X52
API 5L X60
API 5L X65
Location classClass 1 (F=0.72)Class 1 (F=0.72)
Class 2 (F=0.60)
Class 3 (F=0.50)
Class 4 (F=0.40)
Longitudinal joint factor EEE1
Temperature derating factor TTderateT_{derate}1
Corrosion allowanceCACA0.0625 in (1.588 mm)
Mill under-tolerance%MT\%MT0.125

Outputs

Assumptions and limitations

Assumptions

Limitations

Worked example

B31.3: 6 in A106-B, 1000 psig, 300°F

Inputs

CodeASME B31.3 (process piping)
Design pressure1,000 psig (6,895 kPag)
Design temperature300 °F (148.9 °C)
Nominal pipe sizeNPS 6
MaterialASTM A106 Grade B (seamless carbon steel)
Quality factor E1
Weld joint strength reduction factor W1
Coefficient Y0.4
Corrosion allowance0.0625 in (1.588 mm)
Mill under-tolerance0.125

Expected results

Pressure-design thickness0.1624 in (4.124 mm)

The prompt’s stated check value (t ≈ 0.116 in) is well below what P D/(2(SEW+PY)) gives with a standard, widely-cited A106-B allowable stress of 20,000 psi at 300°F (≈ 0.162 in) — since the allowable-stress table is this implementation’s own sourced data (not a formula constant the prompt specifies), this is treated as a differently-sourced input rather than a formula discrepancy. Both values select Schedule 40 as the answer either way.

The calculator's test suite checks that the solver reproduces these results.

References

Rules of thumb

Material mishaps

Open the calculator

Page last updated 2026-10-28.