Piping Toolset
Home › Guides › Hydrostatic vs Pneumatic Leak Testing — ASME B31.3 and B31.1

Hydrostatic vs Pneumatic Leak Testing — ASME B31.3 and B31.1

ASME B31.3 makes the hydrostatic leak test the default and the pneumatic test a conditional alternative, and the reason is energy: a gas-filled system at test pressure stores orders of magnitude more energy than the same system full of water. This guide covers the hydrostatic formula PT = 1.5·P·(ST/S) and the ST/S ≤ 6.5 cap that governs it, when pneumatic testing is permitted and what it costs you in proof, a fixture-verified worked example, and the component limits that routinely make the calculated piping pressure the wrong number to actually apply.

Content last reviewed · page regenerated 2026-07-31 at build.

Why hydrostatic is the default

The choice between test media is a stored-energy decision before it is a code decision. Water is very nearly incompressible: pressurising a water-filled system to 500 psi stores almost no energy, because almost no volume change was needed to get there. When a hydrostatic test fails, the pressure collapses essentially instantly, and what you have is a leak, a wet floor, and a repair.

A gas-filled system at the same pressure is a different object entirely. The gas has been compressed, and that compression is stored energy waiting for a release path. The energy stored in a pneumatically pressurised system exceeds the hydrostatic case by two to three orders of magnitude for ordinary geometries. A pneumatic failure is not a leak — it is a rupture that accelerates fragments and generates a blast wave, and the exclusion zones that accompany pneumatic testing exist because that risk is real and has killed people.

This is why the codes do not present the two as equivalent options. B31.3 permits a pneumatic test where a hydrostatic test is impracticable, and it pairs that permission with a substantially lower test pressure, a preliminary low-pressure check, and procedural requirements that hydrostatic testing does not carry. The engineering question is never "which would I prefer" — it is "can I justify that hydrostatic is impracticable," and if you cannot, the decision is already made.

The usual legitimate justifications are specific and physical: the structure or the supports cannot carry the weight of the water (large-diameter gas lines and elevated runs are the classic case); the process cannot tolerate any residual moisture (cryogenic service, high-purity systems, catalyst-bearing systems, some instrument and analyser lines); or the fluid service reacts with water. "The schedule is tight" and "we do not have a water source" are not on that list, though they are frequently the actual reason.

The hydrostatic test pressure formula, and the cap inside it

ASME B31.3 ¶345.4.2 sets the minimum hydrostatic test pressure with Eq. (24):

PT = 1.5 · P · ( ST / S )

where P is the internal design gage pressure, S is the allowable stress at the design temperature, and ST is the allowable stress at the test temperature. The 1.5 is the familiar proof factor. The ratio is the part engineers most often drop, and dropping it produces an unconservative test.

Why the ratio is there. The test is almost always performed cold, and allowable stress is higher cold than hot. A cold test at 1.5 × P therefore does not demonstrate the same margin against the hot design condition that 1.5 × P would demonstrate if the system were at design temperature. The ST/S ratio scales the test pressure up to recover the equivalent proof. For a line whose design temperature is modest, ST/S is close to 1 and the correction is small. For a line running hot, S collapses, the ratio grows, and the required test pressure climbs steeply.

And why it is capped. Left uncapped, that behaviour runs away. A design temperature at which S has fallen to a small fraction of its cold value would demand a test pressure ten, twenty, or more times the design pressure — a test that would burst the pipe rather than prove it. B31.3 therefore caps the ratio: ST/S shall not exceed 6.5. Once the computed ratio reaches that ceiling, the test pressure stops climbing, and the code has effectively said that beyond this point a proof test is no longer the right instrument.

The cap is not the only limiter. B31.3 also provides that where the calculated test pressure would produce a stress in excess of yield at the test temperature, the test pressure may be reduced to the maximum pressure that will not exceed yield. On hot-service lines those two provisions usually engage together — by the time the ratio is pushing the cap, the yield limit is close behind. Both are ceilings on the test, not on the design.

ASME B31.1 takes the same shape with different numbers, and the hydrostatic requirement in ¶137.4.5 is written around 1.5 × design pressure. Because the factors, the cap and both allowable stresses all move between codes and editions, the calculator treats every one of them as a user input rather than a constant — you enter the values your code of record actually specifies, and the arithmetic is done exactly.

When pneumatic is permitted — and what you give up

Where a pneumatic test is justified, B31.3 ¶345.5 sets the test pressure at 1.1 × the design pressure. B31.1 uses 1.2 ×. Notice the direction: the pneumatic factor is lower than the hydrostatic 1.5, not higher. That is deliberate — the code is capping stored energy, and it accepts a weaker proof in exchange.

That trade is the thing to be clear-eyed about. Run the numbers on an ordinary 300 psi line and the hydrostatic test lands above 500 psi while the pneumatic test lands at 330 psi. The pneumatic test is a genuine leak test; it is a much weaker proof test. Defects that a hydrostatic test would find, a pneumatic test at 1.1 × P can pass over.

Pneumatic testing also brings procedural requirements that hydrostatic testing does not:

One more consideration that rarely makes the decision but should: a pneumatic test at ambient temperature on carbon steel raises a brittle-fracture question that hydrostatic testing largely sidesteps, because the stored energy is available to drive a crack. Where low test-metal temperature and heavy wall coincide, that deserves its own look rather than a footnote.

Worked example — a 300 psi line, both media

A process line with an internal design gage pressure of 300 psi. The allowable stress at the design temperature is 17,500 psi; at the test temperature it is 20,000 psi. B31.3 factors apply: hydrostatic 1.5, pneumatic 1.1, with the stress-ratio cap at 6.5.

Given
Design pressure P300psi
Allowable at test temperature ST20,000psi
Allowable at design temperature S17,500psi
Hydrostatic factor1.5
Stress ratio cap6.5
Pneumatic factor1.1

Step by step

  1. Stress ratio: ST/S = 20,000 / 17,500 = 1.14286.
  2. Check it against the cap: 1.14286 is well under 6.5, so the cap does not engage and the computed ratio is used as-is.
  3. Hydrostatic test pressure: PT = 1.5 · 300 · 1.14286 = 514.286 psi.
  4. Pneumatic test pressure: 1.1 · 300 = 330 psi.
Results
Applied stress ratio1.14286
Minimum hydrostatic test pressure514.286psi
Minimum pneumatic test pressure330psi
Fixture-verified: this is case “P=300, ST/S=20000/17500, B31.3 factors” in leak-test-pressure.json, locked in the calc-core release gate — it re-runs on every commit. Run your own numbers on the leak test pressure calculator.

The 184 psi gap between the two media is the whole argument in one number. Note also how modest the ratio correction is here — 14% — because the design temperature is not extreme. Had the same line been specified for high-temperature service with S down at, say, 2,500 psi, the ratio would compute to 8.0, the cap would clamp it to 6.5, and the required test pressure would jump from 514 psi to 1.5 · 300 · 6.5 = 2,925 psi. That is the regime where the yield check and the component ratings take over the conversation entirely.

The trap: the piping minimum is not the system maximum

Everything above computes a minimum test pressure for the pipe. Neither word is incidental, and conflating them is the most common way a correctly calculated test pressure damages equipment.

The system contains components with their own limits: flanges with pressure-temperature ratings, valves with seat and shell test limits, expansion joints and bellows with test pressures well below what the adjacent pipe will take, instruments, sight glasses, rupture-disc holders, and pump and compressor casings. A test pressure that is correct and conservative for the pipe can be destructive for a bellows and can unseat a valve.

The practical sequence is:

The calculator raises this as a standing warning on every run for exactly that reason: it returns the piping number, and the piping number is not the whole answer. It is also worth remembering that a component standard's own hydrostatic shell test — a flange proof-tested by its manufacturer, for instance — is a manufacturing test at the factory, not a licence to hold your installed system at that pressure.

The alternatives, and where they fit

B31.3 provides routes other than a full hydrostatic or pneumatic test, and each is tied to a fluid-service category rather than being freely available:

RouteWhere it appliesWhat it is
HydrostaticThe default for all fluid services1.5 · P · (ST/S), ratio capped at 6.5, reduced if it would exceed yield at test temperature.
PneumaticWhere hydrostatic is impracticable and the hazard is accepted and controlled1.1 · P (B31.3) with preliminary check, staged pressurisation and an exclusion zone.
Combined hydrostatic-pneumaticWhere part of the system can hold water and part cannotThe system is filled to a level and the gas space pressurised above it; the hydrostatic requirements govern the liquid-filled portion.
Initial service leak testCategory D fluid service onlyThe service fluid itself is used, examined for leaks during the initial operating period. Not available for other categories.
Sensitive leak testCategory M fluid service (and where specified)A high-sensitivity method — commonly halide or helium mass spectrometer — because the consequence of a small leak is severe rather than merely inconvenient.

Two habits keep this defensible. Record the code edition alongside the test pressure on the test package, because the factors and the cap are edition-dependent and a reviewer should not have to guess which set was used. And record the allowable stresses and their source, not just the ratio — ST/S = 1.14286 tells a reviewer nothing about whether the right material line was read from the right table.

When you have the numbers, the leak test pressure calculator runs the whole comparison free and in your browser. It sits alongside the B31.3 wall thickness check that establishes the design pressure the test scales from, and the allowable pressure calculator when you need to rate the wall you actually installed rather than the one you specified.

FAQ

Why does the hydrostatic test pressure include the ST/S ratio at all?

Because the test is normally run cold and the design condition is normally hot. Allowable stress is higher at the lower test temperature, so a cold test at 1.5 × design pressure demonstrates less margin against the hot design condition than the same factor would at temperature. Multiplying by S_T/S scales the test pressure up to recover the equivalent proof. Omitting the ratio — testing at a flat 1.5 × P — under-tests any line whose design temperature is meaningfully above the test temperature, and the hotter the service the larger the shortfall.

What exactly does the ST/S ≤ 6.5 cap do?

It stops the required test pressure from running away on high-temperature lines. As design temperature rises, S falls, and the ratio S_T/S grows without bound — at extreme temperatures it would demand a test pressure many times the design pressure, which would damage the system rather than prove it. B31.3 caps the ratio at 6.5, so once the computed value reaches that ceiling the test pressure stops climbing. In practice the cap rarely engages alone: by the time a line is hot enough to reach it, the separate provision limiting test pressure to what will not exceed yield at test temperature is usually the binding constraint.

Can I choose a pneumatic test because it is faster and cleaner?

Not on those grounds. B31.3 permits pneumatic testing where hydrostatic testing is impracticable — the recognised justifications are physical: the structure or supports cannot carry the water weight, the process cannot tolerate residual moisture, or the fluid service reacts with water. Schedule pressure and water availability are not justifications, though they are often the real motivation. The reason the code is strict is stored energy: a pneumatic test at the same pressure holds two to three orders of magnitude more energy than a hydrostatic one, and a failure is a rupture rather than a leak.

The pneumatic test pressure is lower than the hydrostatic one. Is that backwards?

It is deliberate, and it is the trade at the centre of the decision. B31.3 sets pneumatic at 1.1 × design against hydrostatic at 1.5 × design × the stress ratio, because the code is limiting the energy stored in the system rather than maximising the proof obtained. You are accepting a weaker demonstration in exchange for a survivable failure mode. Be explicit about that when the choice is made: a pneumatic test is a competent leak test and a substantially weaker proof test, and defects a hydrostatic test would have found can survive it.

Which pressure do I actually apply — the calculated one or the component limit?

Whichever is lower, after you have deliberately set the test boundary. The formula gives the minimum the piping requires; the components inside the boundary impose maxima. If a bellows, a valve, an instrument or a pump casing cannot take the piping minimum, the correct move is to isolate, blind or remove it, or to subdivide the system so each boundary contains only components that will take its pressure — not to quietly lower the test pressure. Testing below the code minimum is an engineering decision requiring documented justification and a signature, not a field adjustment made because a gauge would not hold.

Does the calculator embed the allowable stresses?

No, and that is intentional. S and S_T are code table values for your material at your two temperatures, and reproducing those tables is not something this site does — the same licensing firewall applies across every calculator here. You enter both allowables, along with the hydrostatic and pneumatic factors and the ratio cap, from the edition your project actually invokes. What the tool guarantees is that the arithmetic is exact, repeatable, and locked by a regression fixture; selecting the right values from the right table remains the engineer's responsibility, and it is worth recording their source on the test package.

Open the SIF calculator → All calculators