ASME B31.3 Allowable Working Pressure Calculator
Gives the thickness available for pressure tp and the allowable internal design pressure P for a pipe of known wall, from ASME B31.3 ¶304.1.2 Eq. (3a) solved for P after deducting mill under-tolerance and corrosion allowance. Sound, uncorroded straight pipe only.
Answers the inverse question of wall-thickness design: given a pipe with known nominal wall, what internal pressure does B31.3 allow? The calculator deducts mill tolerance and corrosion allowance to get the thickness available for pressure, then solves Eq. (3a) for P.
Method
Thickness available for pressure, then Eq. (3a) inverted:
tp = t·(1 − mill tol) − A
P = 2·S·E·tp / ( D − 2·y·tp )
The hydrogen line applies the same form with the B31.12 material performance factor Mf multiplying S·E.
| Inputs | ||
|---|---|---|
| D | Pipe outside diameter | in |
| t | Nominal wall thickness | in |
| mill tol | Mill under-tolerance fraction | — |
| A | Corrosion/erosion + mechanical allowances | in |
| S | Allowable stress at design temperature (user-supplied) | psi |
| E | Quality factor (user-supplied) | — |
| y | Wall-thickness coefficient (user-supplied) | — |
| Mf | Material performance factor (1.0 except B31.12 hydrogen) | — |
| Outputs | ||
| tp | Thickness available for pressure | in |
| P | Allowable internal design pressure | psi |
Limitations — what this calculator is not
- Rates sound, uncorroded pipe: for pipe with measured metal loss in service, use the B31G corroded-pipe assessment instead.
- Straight pipe only — derate separately for miters, bends and branch openings.
- Component ratings (flanges per B16.5, valves, fittings) may govern below the pipe-wall allowable — this calculator does not check them.
- Thin-wall validity t < D/6 applies, as in the forward calculation.
Worked example — fixture-verified
NPS 8 Sch 40 (8.625 in OD × 0.322 in wall), S = 17,500 psi, E = 1.0, y = 0.4, corrosion allowance 0.065 in, 12.5% mill tolerance.
| Given | ||
|---|---|---|
| Outside diameter D | 8.625 | in |
| Nominal wall t | 0.322 | in |
| Mill tolerance | 12.5 | % |
| Allowance A | 0.065 | in |
| Allowable stress S | 17,500 | psi |
| Quality factor E | 1.0 | — |
| Coefficient y | 0.4 | — |
Step by step
- Thickness available for pressure: tp = 0.322·0.875 − 0.065 = 0.28175 − 0.065 = 0.21675 in.
- Allowable pressure: P = 2·17,500·0.21675 / (8.625 − 2·0.4·0.21675) = 7,586.25 / (8.625 − 0.17340) = 7,586.25 / 8.45160 = 897.6 psi.
| Result COMPUTED | ||
|---|---|---|
| tp — thickness available | 0.21675 | in |
| Allowable pressure | 897.6 | psi |
A common sanity check: fully corroded NPS 8 Sch 40 at moderate temperature rates just under 900 psi — flange class, not pipe wall, usually governs such systems.
b31-allowable-pressure.json — case “NPS 8 sch 40, S=17500, E=1, y=0.4, Mf=1” (tolerance 0.001) — in the
calc-core release gate. It re-runs on every commit; a red fixture blocks deployment.
See the validation methodology.Sources & citations
- ASME B31.3, Process Piping — ¶304.1.2 Eq. (3a), solved for internal pressure.
- ASME B31.12, Hydrogen Piping — Part IP material performance factor Mf (applied multiplicatively when used from the Hydrogen line).
Per the source & citation policy, allowable-stress and factor table values are user-supplied — this page and the app cite paragraph numbers and never reproduce ASME table data.
FAQ
Why deduct mill tolerance before rating the pipe?
The wall the mill actually delivers may be up to 12.5% under nominal for seamless pipe. Rating on nominal wall would overstate the pressure capacity of the thinnest permissible pipe, so the deduction is made first, then the corrosion allowance.
Can I use this for pipe that is already corroded?
Use it with A set to the remaining future allowance if wall readings confirm the current thickness. For locally thinned areas (pitting, corrosion patches) use the B31G assessment, which accounts for defect length.
Related calculators
- ASME B31.3 Pipe Wall Thickness Calculator — Forward design: required wall from a known pressure
- B31G Corroded Pipe Remaining Strength Calculator (Level 1) — This rates sound pipe; use B31G for measured metal loss
- Hydrostatic / Pneumatic Leak Test Pressure Calculator (ASME B31.3) — Test pressure follows from the rated design pressure
- Mitered Elbow Allowable Pressure Calculator (ASME B31.3 ¶304.2.3) — Miters derate below the straight-pipe allowable