SAMPLE
Piping Toolset — Calculation Report
generated by calc-core · 2026-07-31

Pipeline Hydrostatic Test Pressure Calculator (ASME B31.4 / B31.8) — Sample Report

ProjectSample Project — Demonstration Only Job No.SAMPLE-001 Client
CalculationPipeline Hydrostatic Test Pressure Calculator (ASME B31.4 / B31.8) Calc byPiping Toolset (calc-core) Checked byUNCHECKED — sample
Date2026-07-31 Rev0 BasisASME B31.4 ¶437.4.1 / B31.8 ¶841.3 — Pt = factor·P with Barlow hoop at test against the %SMYS cap (both factors user-supplied)

1 · Design inputs

An NPS 12 liquid line designed to ASME B31.4: 12.75 in OD × 0.250 in nominal wall in API 5L X52 (SMYS 52,000 psi), with an internal design pressure of 1,440 psi. The code test factor is 1.25, and the test is permitted to reach 100% of SMYS.

CodeB31.4
Design pressure P1,440psi
Test factor1.25
Outside diameter D12.75in
Nominal wall t0.25in
SMYS52,000psi
Hoop cap1.0× SMYS

2 · Method

Three quantities, computed in sequence. The minimum test pressure from the code factor:

Pt = test factor · P

the Barlow hoop stress that pressure develops in the pipe wall:

σtest = Pt · D / ( 2 · t )

and the check against the specified minimum yield strength:

ratio = σtest / SMYS → PASS when ratio ≤ the %SMYS cap

where P is the internal design gage pressure, D the outside diameter, t the nominal wall thickness, and SMYS the specified minimum yield strength from the pipe specification. The hoop stress uses the thin-wall Barlow form on the outside diameter and the nominal wall — the same basis the pipeline design equations use, so that the design check and the test check are computed on a consistent geometry rather than one on nominal and the other on a measured minimum.

The %SMYS cap is entered as a fraction: 1.0 permits hoop stress up to SMYS at test, 0.9 caps it at 90%, and so on. That is a genuine design variable, not a formality — a test permitted to reach 100% of SMYS gives a much wider window than one capped at 85%, and the difference decides whether some lines can be tested to the pressure the code otherwise demands.

The engine validates that pressure, diameter, wall, SMYS, test factor and cap are all positive and that t < D/2, then reports all three values with the verdict. Two standing warnings fire on every run, and both are about things the arithmetic cannot see: static head across elevation change alters the local test pressure, so the low point of the section is where the cap is actually challenged; and component test limits — flanges, valves, fittings — are separate and are frequently what really constrains a test, since a valve body rated below the pipe will not care that the pipe is fine.

3 · Calculation

  1. Minimum test pressure: Pt = 1.25 · 1,440 = 1,800 psi.
  2. Barlow hoop stress at that pressure: σtest = Pt·D / (2·t) = 1,800 · 12.75 / (2 · 0.25).
  3. Numerator: 1,800 · 12.75 = 22,950 lb/in. Denominator: 2 · 0.25 = 0.5 in.
  4. Hoop at test: 22,950 / 0.5 = 45,900 psi.
  5. Ratio to yield: 45,900 / 52,000 = 0.88269 — the test develops about 88% of SMYS.
  6. Compare against the cap: 0.88269 ≤ 1.0, so the verdict is PASS. The test window is open, with roughly 12% of yield still unused.

4 · Results PASS

testPressure — minimum test pressure1800psi
hoopAtTest — Barlow hoop at test45900psi
smysRatio — hoop at test / SMYS0.88269

5 · Verification statement

The result values above are locked as fixture pipeline-hydrotest.json, case “B31.4 NPS 12 X52, 1.25x factor, within 100% SMYS”, 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.4, Pipeline Transportation Systems for Liquids and Slurries — ¶437.4.1, hydrostatic testing of internal pressure piping; test factor and the limits on stress during test are user-supplied from the governing edition. · ASME B31.8, Gas Transmission and Distribution Piping Systems — ¶841.3 and its test-requirements table, where the test pressure requirement is set by location class; values are user-supplied. · ASME B31.8 — ¶845.2.2, where a successful strength test becomes one of the ceilings on maximum allowable operating pressure. · API 5L, Line Pipe — source of the specified minimum yield strength entered here. · The Barlow hoop relation σ = P·D/(2·t) is the same thin-wall form the pipeline design equations use; no code table values are embedded.

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.