Piping Toolset
HomeCalculators › Hydrostatic / Pneumatic Leak Test Pressure Calculator (ASME B31.3)

Hydrostatic / Pneumatic Leak Test Pressure Calculator (ASME B31.3)

Reports the minimum hydrostatic test pressure Phydro = 1.5·P·(ST/S) of ASME B31.3 ¶345.4.2 Eq. (24), the applied stress ratio under its 6.5 cap, and the 1.1·P pneumatic value of ¶345.5.4. Test-condition yield margin and component test ceilings are not checked.

Method last updated (calculation changelog) · fixture-verified on every build — most recently 2026-09-03.

Built and fixture-verified by Matthew Norris, P.E. — active P.E. licensure in Arizona, California, Kansas, Missouri, North Carolina, Texas.

Computes the minimum hydrostatic test pressure per ASME B31.3 ¶345.4.2 Eq. (24) — 1.5× design pressure scaled by the ratio of allowable stress at test temperature to allowable stress at design temperature — and the pneumatic test pressure at 1.1× design pressure per ¶345.5.4. This is the number that anchors a test package: it sets the target on the test diagram, drives gauge range and relief-valve selection, and is the value an inspector verifies before water goes in. Because the multipliers and the stress-ratio cap are themselves inputs, the same card serves B31.3, B31.1 (¶137.4.5), and company specifications that impose their own factors — with the allowable stresses at test and design temperature always supplied by you from the governing edition.

Pipe cross-section under internal pressure A pipe cross-section showing outside diameter D, wall thickness t, and internal pressure P acting outward on the bore. P t — wall thickness D — outside diameter t = f(P, D, S, E, W, Y) S·E·W — allowable stress × joint & weld-strength factors + c (corrosion / mechanical allowances) → t_m ordering wall
Section through the pipe wall: internal design pressure P acts on outside diameter D; the calculators solve the required pressure-design thickness t (plus allowances c) per the governing code equation.
Open this calculator → Download sample report
This calculator is free forever — no account, no run limit. Pro adds Add to report: the titleblocked, print-ready package in the sample report above, built from your own runs, plus .pcp project files and the batch runner — $2.99 / month. Compare tiers →

Method

Phydro = 1.5 · P · (ST / S)   (ST/S capped, default 6.5)

Ppneumatic = 1.1 · P

where ST is the allowable stress at test (ambient) temperature and S the allowable stress at design temperature. The logic of Eq. (24) is that a test performed cold must demonstrate a stress condition at least proportionate to the design-temperature condition: when the design temperature is high enough to depress S, the ratio ST/S exceeds 1.0 and the test pressure rises above the bare 1.5×P. The calculator computes the ratio, applies the cap (6.5 by default, per the note to Eq. 24), multiplies out the hydrostatic minimum, and reports the pneumatic alternative at 1.1×P alongside it. The 1.5 hydro factor, 1.1 pneumatic factor, and the stress-ratio cap are all inputs rather than constants, so the same card serves B31.1 (¶137.4.5: 1.5×, no stress ratio — enter a cap of 1.0) and company standards with stricter factors. Both allowables come from you; the card does no table lookups. The worked example shows the mechanics at moderate scale — a ratio of 1.14286 lifts a 300 psi design to a 514.3 psi hydro target — and the same arithmetic runs smoothly up to the cap for designs deep in the temperature range.

Inputs
PInternal design gauge pressurepsi
STAllowable stress at test temperature (user-supplied)psi
SAllowable stress at design temperature (user-supplied)psi
hydro factorHydrostatic multiplier (1.5 for B31.3)
ratio capMaximum ST/S ratio (6.5 per Eq. 24 note)
pneu factorPneumatic multiplier (1.1 for B31.3)
Outputs
ST/SStress ratio applied
P_hydroMinimum hydrostatic test pressurepsi
P_pneuPneumatic test pressurepsi

Limitations — what this calculator is not

Worked example — fixture-verified

Design pressure 300 psi; allowable stress 20,000 psi at ambient test temperature and 17,500 psi at design temperature; B31.3 factors.

Given
Design pressure P300psi
ST at test temperature20,000psi
S at design temperature17,500psi
Hydro factor1.5
Pneumatic factor1.1

Step by step

  1. Stress ratio: ST/S = 20,000 / 17,500 = 1.14286 (under the 6.5 cap).
  2. Hydro test: 1.5 · 300 · 1.14286 = 514.3 psi.
  3. Pneumatic alternative: 1.1 · 300 = 330 psi.
Result COMPUTED
Stress ratio ST/S1.14286
Hydrostatic test pressure514.3psi
Pneumatic test pressure330psi

The ST/S ratio rewards testing cold: a line designed for elevated temperature tests above the bare 1.5× because the metal is stronger at ambient.

Why you can trust these numbers: this exact case is fixture leak-test-pressure.json — case “P=300, ST/S=20000/17500, B31.3 factors” (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

Per the source & citation policy, allowable-stress and factor table values are user-supplied. Where a page does reproduce specific ASME data (the B16.5 ratings, the quick-reference tables), it states the source table and conditions inline.

FAQ

Why is the hydro test more than 1.5 × design pressure?

Eq. (24) scales 1.5×P by ST/S so the test at ambient temperature produces a stress at least proportionate to the design-temperature condition. When the design temperature is high, S drops, the ratio exceeds 1.0, and the test pressure rises accordingly (capped at a ratio of 6.5). The arithmetic is worth seeing once: a line designed for 300 psig whose material carries ST/S = 1.25 between ambient and design temperature tests at 1.5 × 1.25 × 300 = 562.5 psig — not 450. Skip the ratio and the test proves less at temperature than the design margin assumes; that is the whole reason the ratio exists. A line whose design temperature is at or below ambient has ST/S = 1.0 and the familiar 1.5×P falls out as the special case. The ratio is an input here because the stress values come from your code edition — this card never embeds allowable-stress tables.

When is a pneumatic test used instead?

When water is unacceptable: freeze risk on an exposed winter test, process contamination in a line that must stay dry (instrument air, medical gas, some catalyst services), refractory-lined or internally coated systems, or supports and structures never rated for the flooded weight — a 12 in line holds about 49 lb of water per foot, and a long rack run can add tens of thousands of pounds the hangers were not sized to carry. B31.3 sets the pneumatic test at 1.1×P with additional safeguards in ¶345.5 because of the stored energy in compressed gas: water is nearly incompressible and relaxes with a small leak, while the same volume of gas at the same pressure stores orders of magnitude more expansion energy and releases it all at once at failure. That energy difference — not any doubt about the tightness demonstration — is what drives the relief-valve, minimum-safe-distance and stepped-pressurization requirements.

Why is the ST/S stress ratio capped?

Without a cap, a line designed deep into the temperature range where S falls off would demand a test pressure many multiples of design — far beyond what demonstrating tightness requires and well into the territory where test-condition stresses threaten components. Consider a creep-range line where the design-temperature allowable has fallen to a fifth of the ambient value: uncapped, Eq. (24) would ask for 1.5 × 5 = 7.5 times design pressure, a test condition that could yield the pipe it is supposed to prove, overload every flange in the boundary, and demonstrate nothing about service tightness that a lower pressure would not. The note to Eq. (24) caps the ratio at 6.5; the calculator applies that cap by default and reports the ratio actually used, so a capped case is visible as capped in the report rather than silently passing through arithmetic nobody sanity-checked.

What if the computed hydro pressure exceeds a flange's test limit?

Eq. (24) sets the floor and the component ceilings set the roof; when they conflict, something in the test plan has to give. B16.5 flanges have their own hydrostatic test limit — roughly 1.5 × the 100 °F rating rounded to the next 25 psi — and a high ST/S ratio can push the Eq. (24) floor through that ceiling, especially on a Class 150 system designed warm. Resolving it — isolating or blinding the limiting component, redrawing the test boundary so the weak component tests separately at its own pressure, or invoking the Code's provisions for limiting the test pressure — is an engineering decision outside this card. Its job is to make the conflict visible early: the report prints the computed floor next to your entered component limit, so the collision shows up in design review rather than when the test crew finds it at the manifold with the line already flooded.

How do I use this card for B31.1 power piping?

Enter the hydrostatic factor 1.5 and a stress-ratio cap of 1.0, which reproduces the B31.1 ¶137.4.5 basis: 1.5× design pressure with no test-temperature stress scaling. The pneumatic factor input works the same way — B31.1 ¶137.5 uses a different basis than B31.3's 1.1×P, so enter the factor your code of record actually states rather than assuming the process-piping number carries over. This is why the factors are inputs rather than constants: one card covers both books, company standards that overlay them with stricter floors, and the common retest situation where a specification dictates the exact historical test pressure of an existing system. The report names the factor and cap you used, so a reviewer can see at a glance which book's basis the number came from — the same traceability rule every card on this site follows.

Where in the system does the test pressure apply?

The Code minimum must be met throughout the test boundary. In a water-filled system the pressure at low points exceeds the gauge reading at the high point by the static head of the column — 0.433 psi per foot of elevation, so a boundary with 60 ft of elevation difference sees about 26 psi more at the bottom than the top gauge reads. That cuts both ways: meeting the minimum at the top means the low-point components must tolerate the extra head on top of the computed test pressure, and referencing the gauge at the bottom means the top of the system may sit below the Eq. (24) floor unless the target is raised by the head. On a tall rack or a vertical run this is not a rounding error — it can exceed the margin between the test floor and a flange's test ceiling. The calculator returns the target value; where to reference the gauge, and the head correction that choice implies, is part of the test plan.

Related calculators & tools

Open this calculator → All calculators