Pipe Wall Thickness (ASME B31.3 / B31.8)
Pressure-design wall thickness and the smallest standard schedule that meets it, per ASME B31.3 or B31.8.
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
Source: ASME B31.3
| Symbol | Meaning | Units (US / SI) |
|---|---|---|
| Pressure-design thickness | in / mm | |
| Design pressure | psig / kPag | |
| Outside diameter | in / mm | |
| Allowable stress | psi / kPa | |
| Quality factor | - | |
| Weld joint strength reduction factor | - | |
| Coefficient Y | - |
Source: ASME B31.8
| Symbol | Meaning | Units (US / SI) |
|---|---|---|
| Pressure-design thickness | in / mm | |
| Design pressure | psig / kPag | |
| Outside diameter | in / mm | |
| Specified minimum yield strength | psi / kPa | |
| Location class design factor | - | |
| Longitudinal joint factor | - | |
| Temperature derating factor | - |
Inputs
| Input | Symbol | Default | Typical range or options |
|---|---|---|---|
| Code | ASME B31.3 (process piping) | ASME B31.3 (process piping) ASME B31.8 (gas transmission) | |
| Design pressure | 1,000 psig (6,895 kPag) | ||
| Design temperature | 300 °F (148.9 °C) | ||
| Nominal pipe size | NPS 1/2 | NPS 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 | |
| Material | ASTM 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 E | 1 | ||
| Weld joint strength reduction factor W | 1 | ||
| Coefficient Y | 0.4 | ||
| Material (SMYS) | API 5L X42 | API 5L X42 API 5L X52 API 5L X60 API 5L X65 | |
| Location class | Class 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 E | 1 | ||
| Temperature derating factor T | 1 | ||
| Corrosion allowance | 0.0625 in (1.588 mm) | ||
| Mill under-tolerance | 0.125 |
Outputs
- Pressure-design thickness ()
- Selected schedule
- Required thickness (+ corrosion, before mill tolerance) ()
- Selected schedule wall thickness
- MAWP of selected schedule
- D/t ratio
Assumptions and limitations
Assumptions
- The nearest standard schedule is selected so that (schedule wall) × (1 − mill under-tolerance) ≥ required thickness (pressure thickness + corrosion allowance).
Limitations
- Pressure design only — no bending, no external pressure, no sustained/occasional load combination. Confirm final wall thickness against all applicable load cases, not pressure alone.
- Material allowable-stress/SMYS figures are representative published values — confirm against the current ASME BPVC Part D / API 5L publication for final design.
- The A312 TP304/TP316 allowables (18.8 ksi at 100 °F and below) are not confirmed against ASME B31.3 Table A-1. They match 75 ksi / 4, an older BPVC tensile basis; B31.3 is understood to list about 20.0 ksi for these grades, so stainless walls here are expected to be conservative. Confirm before final design.
Worked example
B31.3: 6 in A106-B, 1000 psig, 300°F
Inputs
| Code | ASME B31.3 (process piping) |
|---|---|
| Design pressure | 1,000 psig (6,895 kPag) |
| Design temperature | 300 °F (148.9 °C) |
| Nominal pipe size | NPS 6 |
| Material | ASTM A106 Grade B (seamless carbon steel) |
| Quality factor E | 1 |
| Weld joint strength reduction factor W | 1 |
| Coefficient Y | 0.4 |
| Corrosion allowance | 0.0625 in (1.588 mm) |
| Mill under-tolerance | 0.125 |
Expected results
| Pressure-design thickness | 0.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
- Standard Gas Processing Engineering Practice
- ASME B31.3, Process Piping
- ASME B31.8, Gas Transmission and Distribution Piping Systems
Rules of thumb
- The 3:1 Aspect Ratio: Length to diameter about 3 to 5. (US units). Length to diameter about 3 to 5. (SI units).
Material mishaps
- The Pitting Pox: Pitting factor 10 cuts a 94 year wall life to 9.4 (US units). Pitting factor 10 cuts a 95 year wall life to 9.5 (SI units).
Page last updated 2026-10-28.