| ProjectSample Project — Demonstration Only | Job No.SAMPLE-001 | Client— |
| CalculationASME B31.3 Allowable Working Pressure Calculator | Calc byPiping Toolset (calc-core) | Checked byUNCHECKED — sample |
| Date2026-09-03 | Rev0 | BasisASME B31.3 ¶304.1.2 Eq. (3a), solved for P (B31.12 Mf supported) |
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.
| 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 | — |
Thickness available for pressure, then Eq. (3a) inverted:
tp = t·(1 − mill tol) − A
P = 2·S·E·tp / ( D − 2·y·tp )
The deductions are applied in the conservative order. The mill under-tolerance is a fraction of nominal wall, so it comes off first — 0.875·t for the typical 12.5% seamless tolerance — and the allowance A (corrosion, erosion, threading, grooving) comes off the toleranced wall in full. What remains, tp, is the metal the Code lets you credit at the end of the corrosion life. Inverting ¶304.1.2 Eq. (3a) then returns the internal pressure at which that metal is exactly consumed: P scales with S·E and tp, while the 2·y·tp term in the denominator applies the same wall-thickness coefficient the forward calculation uses. Run from the Hydrogen line, the identical form carries the B31.12 material performance factor Mf multiplying S·E, derating the result for hydrogen service; everywhere else Mf = 1.0 and the term disappears. The output is a pipe-wall rating — components in the line are screened separately against their own ratings. Because every deduction is explicit, the result doubles as a sensitivity tool: rerun with the allowance zeroed to see how much pressure capacity the corrosion life is costing, or with the tolerance zeroed to see what a minimum-wall purchase buys back.
| tp — thickness available | 0.21675 | in |
| Allowable pressure | 897.6 | psi |
The result values above are locked as fixture 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 continuous
verification gate (see https://pipingtoolset.com/trust/validation.html). Allowable-stress and factor data are
user-supplied inputs; 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).