SAMPLE
Piping Toolset — Calculation Report
generated by calc-core · 2026-09-03

ASME B31.3 Allowable Working Pressure Calculator — Sample Report

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)

1 · Design inputs

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 D8.625in
Nominal wall t0.322in
Mill tolerance12.5%
Allowance A0.065in
Allowable stress S17,500psi
Quality factor E1.0
Coefficient y0.4

2 · 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 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.

3 · Calculation

  1. Thickness available for pressure: tp = 0.322·0.875 − 0.065 = 0.28175 − 0.065 = 0.21675 in.
  2. 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.

4 · Results COMPUTED

tp — thickness available0.21675in
Allowable pressure897.6psi

5 · Verification statement

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).

SAMPLE REPORT — auto-generated from a verification fixture to show the report format. Not a project calculation. ⚠ Engineering-aid tool. Public code equations; allowable-stress and factor data are user-supplied. Results MUST be independently verified and reviewed by a qualified/licensed engineer before any design, fabrication, or operation decision.