Hydrotest Calculator: ASME B31.3 & B31.1 Test Pressure, Water Volume and Pneumatic Safety (2026)

HYDROTEST · PNEUMATIC TEST · ASME B31.3 / B31.1 · UPDATED OCTOBER 2026

By Muhammad Raza, Aienginear.com · Test pressure per ASME B31.3 Chapter VI and ASME B31.1 Chapter VI, vessels per ASME BPVC Section VIII Division 1, stored energy and safe distance per ASME PCC-2 Article 501 · Calculator v3.0 · Reading time about 14 minutes

Quick answer: how do you calculate hydrotest pressure?

For ASME B31.3 process piping, the hydrostatic test pressure is PT = 1.5 × P × (ST/S), where P is the design gauge pressure and ST/S is the allowable stress at test temperature divided by the allowable stress at design temperature (taken between 1.0 and 6.5). ASME B31.1 power piping uses 1.5 × design pressure, and a B31.3 pneumatic test uses 1.1 × design pressure. The pressure must be reached at the highest point, held for at least 10 minutes, and must not overstress the lowest point or any component in the loop.

Example: a carbon steel line designed for 2.0 MPa at 300 °C with ST = 138 MPa and S = 122 MPa needs 1.5 × 2.0 × 1.131 = 3.39 MPa(g). The calculator below also gives the fill water, temperature drift, gauge and relief settings, pneumatic stored energy and a printable test-pack report.

4 codesB31.3, B31.1, VIII-1, custom
Yield + head checkhigh point and low point
Multi-line packsB36.10M / B36.19M database
PCC-2 energyTNT and screening distance
Print / PDFsigned test-pack report
Aienginear HydroProof v3.0 hydrotest and pressure test calculator showing 3.39 MPa test pressure, 4.10 cubic metres of fill water, 19 percent SMYS hoop stress and 12.7 MJ pneumatic stored energy
Figure 1. One set of inputs gives the code test pressure, the water to order, the stress margin and the energy that a pneumatic test would store. Aienginear

How to use the calculator

  1. Tab 1, Test pressure: pick the code and test type, enter the design pressure and the allowable stresses at test and design temperature. Add the governing pipe size, wall and yield strength, the height from the high point to the low point and the lowest test rating of any component that stays in the loop.
  2. Tab 2, Volume and water: list every line in the test pack by NPS, schedule and length. The pipe database follows ASME B36.10M and B36.19M. Add any vessel or equipment volume, the reserve for venting and losses, and the tanker size.
  3. Tab 3, Temperature and gauges: enter the water temperature change you expect during the hold. The tool shows how much pressure that adds, picks a gauge range and gives the maximum test relief valve set pressure.
  4. Tab 4, Pneumatic safety: only if water cannot be used. It shows the stored energy, TNT equivalent, a screening distance and a stepped pressurising plan.
  5. Tab 5, Pump, time and cost: fill and test pump sizes, total duration, man-hours and cost.
  6. Tab 6, Report: add the pack number and names, then print or save a PDF with signature boxes, export CSV, or log the pack in the register.

Every value updates as you type. SI and US units are supported, and the pressure unit can be MPa, bar, kPa or psi. Inputs stay on your device; nothing is uploaded.

What is new in version 3.0

Aienginear Table 1

HydroProof v3.0 changes and corrections

Compared with v2.0 (June 2026)

Powered by Aienginear
Areav2.0v3.0
B31.1 pneumatic factor1.1 × design pressure1.2 × design, with the 1.5 × upper bound
Stress ratioCould fall below 1.0, giving less than 1.5 × PTaken between 1.0 and 6.5, so the 1.5 × P floor always holds
Upper limitNot checkedHoop stress at minimum wall against yield (100% hydro, 90% pneumatic), B31.3 pneumatic 1.33 × P cap and component rating
Static headNot includedPressure at the low point and at the gauge from the elevation difference
Vessel in the loopNot includedB31.3 345.4.3 77% check
ASME VIII-1 vesselsNot includedUG-99 hydro (1.3 × MAWP × LSR) and UG-100 pneumatic
Test-pack volumeOne pipe size onlyUnlimited lines from a B36.10M / B36.19M database, plus equipment
Thermal pressure riseSimplifiedRestrained-pipe relation with temperature-dependent water properties
Test pumpFill pump onlyAlso the water needed to pressurise (compression plus pipe stretch)
TNT equivalence4.6 MJ/kg fixed4.184 MJ/kg default, editable; distance has a procedure minimum
Pneumatic planNonePreliminary check, stepped pressurising and examination pressure
ReportText-only PDFBranded print/PDF report with line list, steps and signature boxes
ScopeIncluded weld-repair depositionRemoved (see the welding cost calculator); placeholder ad boxes removed

Source: Aienginear HydroProof release notes, October 2026.

Test pressure by code

Each construction code sets a minimum test pressure, a hold time, and a ceiling that protects the piping from the test itself. The table summarises the rules the calculator applies. Always check the edition named in your contract, because clause numbers and limits are revised from time to time.

Aienginear Table 2

Hydrostatic and pneumatic test pressure by code

P = design gauge pressure (MAWP for vessels) · minimum hold 10 minutes unless noted

Powered by Aienginear
CodeHydrostatic testPneumatic testUpper limitExamination
ASME B31.3 (345.4, 345.5)1.5 × P × ST/S, ratio ≤ 6.51.1 × P, raised in steps after a low-pressure leak checkHydro: stress not above yield at test temperature. Pneumatic: lesser of 1.33 × P and the pressure giving 90% of yieldAfter 10 min; may reduce to not less than design pressure. Pneumatic: reduce to design pressure
ASME B31.1 (137.4, 137.5)1.5 × P at every point in the system1.2 × P to 1.5 × PMaximum test pressure of any non-isolated componentAfter at least 10 min at test pressure
ASME VIII-1 (UG-99, UG-100)1.3 × MAWP × LSR1.1 × MAWP × LSRVessel general membrane stress limits in UG-99 / UG-100Hydro: at not less than PT/1.3. Pneumatic: at PT/1.1
B31.3 Category DInitial service leak test (345.7) may replace the hydrotest at the owner’s option–Operating pressureDuring service start-up
B31.3 Category MHydro or pneumatic as abovePlus a sensitive leak test (345.8)As aboveAs above

LSR = lowest ratio of allowable stress at test temperature to allowable stress at design temperature. Summary for planning; the code text governs.

The stress ratio ST/S

A hot system is designed with the lower allowable stress of the metal at its design temperature. When the same piping is tested cold, the metal is stronger, so B31.3 raises the test pressure in proportion. That is why a line designed for 2.0 MPa at 300 °C is tested at 3.39 MPa rather than 3.0 MPa.

PT = 1.5 · P · (ST / S)    with 1.0 ≤ ST/S ≤ 6.5
ST = allowable stress at test temperature  |  S = allowable stress at design temperature
  • Use the component with the lowest ratio in the pack, because that component must not be over-tested. Pipe, fittings, flanges and valves of different materials can have different ratios.
  • When design temperature is at or below test temperature, the ratio is 1.0 and the test is simply 1.5 × P.
  • The 6.5 cap only matters at very high design temperatures where the allowable stress is low, for example creep-range alloy steels.
  • Take S and ST from ASME B31.3 Table A-1 (or A-1M) for the edition you are working to; the example values in this article are for illustration.

Upper limits: yield, components and static head

A pressure test proves strength and tightness, but it must not damage what it proves. Three checks set the ceiling, and the calculator runs all of them.

Yield. B31.3 lets you reduce the hydrostatic test pressure if it would stress any component above yield at the test temperature; for pneumatic tests the ceiling is 90% of yield and 1.33 × P. The tool checks hoop stress, PL × OD / (2 × tmin), at the minimum wall after mill tolerance.

Components. Flanges, valves, expansion joints, instruments and equipment often have a lower test rating than the pipe. Remove them, blind them off or test them separately. Where a vessel cannot be isolated, B31.3 345.4.3 allows the piping to be tested at the vessel test pressure if that is at least 77% of the piping test pressure.

Static head. Water adds about 0.098 MPa (14.2 psi) for every 10 m of height. The code minimum must be reached at the highest point, so the lowest point sees more. On tall structures, risers and pipe racks this can push the low point over the limit, and the pack has to be split by elevation.

Aienginear diagram of a hydrotest test pack showing high-point vent, low-point drain, two pressure gauges, test pump, relief valve and a vessel, with the pressure limit that applies at each point
Figure 2. The minimum test pressure governs at the high point; yield and component ratings govern at the low point. Aienginear

Aienginear Table 3

Static head of test water by elevation difference

Water at 20 °C, ρ = 998.2 kg/m³, g = 9.80665 m/s²

Powered by Aienginear
High point to low pointExtra pressure (MPa)Extra pressure (bar)Extra pressure (psi)
5 m (16 ft)0.0490.497.1
10 m (33 ft)0.0980.9814.2
20 m (66 ft)0.1961.9628.4
30 m (98 ft)0.2942.9442.6
50 m (164 ft)0.4894.8971.0

Add this to the high-point test pressure to get the low-point pressure. Source: Aienginear calculation.

Worked example: 6-inch carbon steel process line

Inputs used in the calculator’s default case: ASME B31.3, hydrostatic; design 2.0 MPa at 300 °C; ST = 138 MPa, S = 122 MPa (illustrative); 200 m of NPS 6 Sch 40 (OD 168.3 mm, wall 7.11 mm, 12.5% mill tolerance); yield 241 MPa; flat pack with no elevation difference; water at 20 °C.

Aienginear Table 4

Worked example: NPS 6 Sch 40, 200 m, B31.3 hydrotest

Each step matches a row in the calculator output

Powered by Aienginear
StepWorkingResult
1. Stress ratio138 / 122, between 1.0 and 6.51.131
2. Test pressure1.5 × 2.0 × 1.1313.39 MPa(g) at the high point
3. Minimum wall7.11 × (1 − 0.125)6.22 mm
4. Hoop stress3.39 × 168.3 / (2 × 6.22)45.9 MPa = 19% of yield
5. Yield-limited pressure241 × 2 × 6.22 / 168.317.8 MPa, ample margin
6. Pack volume(π/4) × 0.15408² × 2003.73 m³
7. Fill water3.73 × 1.10 reserve4.10 m³ (4.09 t)
8. GaugeRange about 2 × reading0 to 6 MPa, reading at 57% of span
9. Relief valve3.39 + lesser of 0.345 or 0.339Set not above 3.73 MPa
10. Temperature drift0.33 MPa per °C × 3 °CAbout +0.98 MPa if the water warms 3 °C
11. Hold and examineB31.3 345.2.210 min minimum, examine at not less than 2.0 MPa

Allowable stresses are illustrative. Use ASME B31.3 Table A-1 values for your material and edition. Source: Aienginear HydroProof v3.0.

Why add only 10% reserve? The reserve covers venting, flushing of the high points, small top-ups and losses at blinds. For long pipelines, dirty lines that need a flush, or remote sites with slow tanker turnaround, use 20% to 30%.

Temperature drift during the hold

Water barely compresses, so once a line is full and sealed a small temperature change moves the pressure a lot. Warming pushes the test above the planned value; cooling can look like a leak. The calculator uses the restrained-pipe relation, which accounts for both the water and the stretch of the pipe wall:

dP/dT = (β − 2α) / [κ + D(1 − ν²)/(E · t)]
β = water expansion · α = steel expansion · κ = water compressibility · D, t = pipe ID and wall · E, ν = steel modulus and Poisson’s ratio

Aienginear Table 5

Pressure change per °C of water temperature

Liquid-full, air-free system · steel E = 200 GPa, α = 12 × 10⁻⁶ /°C, ν = 0.3

Powered by Aienginear
Water temperatureRigid container (MPa/°C)NPS 6 Sch 40 (MPa/°C)NPS 12 Sch 40 (MPa/°C)
10 °C0.180.110.10
15 °C0.320.220.21
20 °C0.450.330.31
25 °C0.570.420.40
30 °C0.680.510.48

Trapped air greatly reduces these values and makes the test unstable, so vent thoroughly. Source: Aienginear calculation from IAPWS water properties.

In practice: fill with water close to ambient temperature, let it settle before starting the hold, shade exposed lines, and record water and metal temperature next to every pressure reading. If the pressure drifts, compare the change with the temperature record before suspecting a leak.

Gauges and relief valves

  • Range: ASME VIII-1 UG-102 asks for a gauge range of about twice the test pressure, never less than 1.5 times or more than 4 times. Many piping procedures adopt the same rule. The calculator suggests the nearest standard range.
  • Number and position: use at least one calibrated gauge connected directly to the system, plus a second gauge or a chart recorder as your procedure requires. If the gauge is not at the high point, correct its reading for static head (Tab 1 does this).
  • Calibration: in date, with the certificate in the test pack. Accuracy class 1.0 on a 0 to 6 MPa gauge is ±0.06 MPa.
  • Relief valve: B31.3 345.5.1 requires one for pneumatic tests, set no higher than the test pressure plus the lesser of 345 kPa (50 psi) or 10% of the test pressure. Most owners also fit one on hydrotests to protect against thermal rise and pump overshoot.

Fill water and test water quality

The internal volume drives tanker loads, fill time, pump size, disposal cost and the extra load on pipe supports. The table gives quick figures for Schedule 40 pipe.

Aienginear Table 6

Hydrotest water volume and weight, Schedule 40 pipe

ASME B36.10M dimensions · water at 20 °C

Powered by Aienginear
NPSOD (mm)ID (mm)m³ per 100 mWater load (kg/m)US gal per 100 ft
260.352.50.2162.217.4
388.977.90.4774.838.4
4114.3102.30.8218.266.1
6168.3154.11.86518.6150
8219.1202.73.22832.2260
10273.1254.65.08950.8410
12323.9303.37.22472.1582
14355.6333.38.72787.1703
16406.4381.011.40113.8918
18457.2428.714.43144.11,162
20508.0477.817.93179.01,444
24609.6574.625.93258.92,088

Check that supports and spring hangers designed for gas or vapour service can carry the water load; lock springs or add temporary supports. Source: Aienginear calculation.

Water quality matters as much as quantity. Use clean, filtered water and follow the project limits. The calculator screens chloride and pH with common project values, not code values:

Aienginear Table 7

Test water screening limits used in the calculator

Typical project values · the owner specification governs

Powered by Aienginear
MaterialChloride (ppm, max)pHAfter the test
Carbon steel2506.0 to 9.0Drain promptly; inhibitor if water stays more than a few days
Austenitic stainless 304/316506.0 to 8.5Drain and dry quickly to avoid chloride pitting and stress corrosion cracking
Duplex stainless2006.0 to 9.0Drain and dry
Lined or coated pipe2506.0 to 9.0Check lining compatibility and temperature limits

Source: Aienginear summary of common project practice. Not a code requirement.

Pneumatic tests and stored energy

Gas is compressible, so a pressurised gas stores energy that is released in a blast if the system fails. Water stores almost none. That single fact is why every code prefers the hydrostatic test, and why B31.3 345.5 lets you use a pneumatic test only where water would damage the system, cannot be removed, or would freeze, and only with owner approval and a written procedure.

E = [Pabs · V / (k − 1)] · [1 − (Patm / Pabs)(k−1)/k]
WTNT = E / 4.184 MJ/kg    R = Rs · W1/3, Rs ≈ 20 m/kg1/3 (screening)

This is the isentropic expansion energy used in ASME PCC-2 Article 501. For the worked example tested with air at 1.1 × 2.0 = 2.2 MPa(g), the 3.73 m³ line stores about 12.7 MJ, roughly 3.0 kg of TNT, giving a screening distance near 29 m. The same line filled with water at the same pressure stores about 5 kJ: some 2,500 times less.

Aienginear bar chart comparing hydrostatic stored energy of about 5 kJ with pneumatic stored energy of about 12.7 MJ for the same 3.73 cubic metre line at 2.2 MPa
Figure 3. Stored energy of water and air in the same line at the same pressure, on a log scale. Aienginear

Aienginear Table 8

Stored energy per cubic metre of air at test pressure

k = 1.4 · TNT 4.184 MJ/kg · screening distance 20 · W1/3 · water value excludes pipe strain

Powered by Aienginear
Test pressure (gauge)Air energy (MJ/m³)TNT (kg/m³)Screening distance for 1 m³Water energy (kJ/m³)Air / water
0.5 MPa (72.5 psi)0.600.1410.5 m0.06~10,000 ×
1.0 MPa (145 psi)1.360.3313.8 m0.23~5,900 ×
2.0 MPa (290 psi)3.040.7318.0 m0.92~3,300 ×
3.5 MPa (508 psi)5.761.3822.2 m2.81~2,000 ×
5.0 MPa (725 psi)8.592.0525.4 m5.74~1,500 ×

Energy scales with volume; distance scales with the cube root of energy. Screening values only: fragment throw, barricades and site layout must be assessed per ASME PCC-2 Article 501 and your procedure. Source: Aienginear calculation.

The distance in the calculator is not an exclusion zone. It is a blast-overpressure screening value to show the size of the hazard. The approved exclusion zone comes from a site-specific risk assessment that also considers fragments, brittle-fracture risk of the material at test temperature, barricades, occupied buildings and access control.

For pneumatic tests, B31.3 345.5.5 requires a preliminary check at a low pressure (not more than 170 kPa, 25 psi), then a gradual rise in steps, holding each step long enough for strains to equalise. After the hold at test pressure, the pressure is reduced to design pressure before anyone approaches to examine the joints. Tab 4 builds this step plan for you.

Test sequence and test-pack checklist

Aienginear pressure-time chart of a hydrostatic test and a stepped pneumatic test: fill and vent, pressurise, hold at test pressure for at least 10 minutes, examine at design pressure, release and drain
Figure 4. Pressure against time for a hydrostatic test and a stepped pneumatic test. Aienginear

Test-pack checklist

  • Test limits, blinds and spades marked on the isometrics and P&IDs; blind thickness checked for the test pressure.
  • All welding, heat treatment and NDE complete and accepted; joints left uninsulated and unpainted for examination unless the code allows otherwise.
  • Instruments, control valves, relief valves, expansion joints and items rated below the test pressure removed or isolated.
  • Supports able to carry the water load; spring hangers locked.
  • Vents at every high point and drains at every low point; air fully removed before pressurising.
  • Calibrated gauges (range about 2 × test pressure), recorder if required, and test relief valve set and tagged.
  • Brittle fracture considered: test temperature above the material’s minimum design metal temperature with margin.
  • Barricades and signs in place; only authorised people inside the zone.
  • Hold of at least 10 minutes, then examination at not less than design pressure; results signed by the inspector.
  • Controlled depressurising with vents open to avoid vacuum, then drain, dry and preserve as specified.

Common hydrotest mistakes

Aienginear Table 9

Hydrotest mistakes, consequences and prevention

From site and turnaround experience

Powered by Aienginear
MistakeWhat happensPrevention
Test pressure read at the low pointHigh point is under-tested; the test is invalidSet the minimum at the high point; correct gauge readings for head
Ignoring static head on tall packsLow point overstressed or a flange over-testedCheck PL against yield and ratings; split by elevation
Air left in the systemSlow, unstable pressurising; stored energy risesFill from the low point, vent every high point, check water added against Tab 5
Sun on a sealed linePressure climbs above the test valueShade, test early in the day, fit a relief valve
Control valve or instrument left inDamaged trim, diaphragms or sensorsRemove or isolate; use spool pieces
High-chloride water in stainlessPitting or chloride stress corrosion crackingLow-chloride water; drain and dry promptly
Supports not checked for water weightSagging, spring damage, overloaded nozzlesTemporary supports, locked springs
Fast depressurising with vents shutVacuum collapse of thin-wall pipe or tanksOpen vents while draining

Source: Aienginear field notes from plant shutdowns and turnarounds.

How this calculator compares

Aienginear Table 10

Aienginear HydroProof v3.0 vs typical online hydrotest calculators

Feature check, October 2026

Powered by Aienginear
FeatureTypical calculatorAienginear HydroProof v3.0
CodesB31.3 only, or a fixed 1.5 factorB31.3, B31.1, ASME VIII-1 and custom; hydro and pneumatic
Stress ratioOften missing or uncappedBounded 1.0 to 6.5 (B31.3), LSR for vessels
Maximum test pressureRarely checkedYield at minimum wall, code cap and component rating
Static head and gauge positionNoYes, high point, low point and gauge reading
Test-pack volumeSingle pipeMulti-line list with B36.10M / B36.19M database plus equipment
Thermal driftNoRestrained-pipe dP/dT with water properties
Gauge and relief settingsNoUG-102 range check and 345.5.1 relief set
Pneumatic safetyEnergy only, if at allEnergy, TNT, screening distance, step plan, hydro comparison
PlanningNoFill and test pump, duration, man-hours, cost
OutputScreen onlyBranded print/PDF report, CSV, share link, pack register
Privacy and costSign-up or ads inside the toolFree, no sign-up, runs in your browser

Source: Aienginear review of commonly used free online tools.

Standards and references

Aienginear Table 11

Standards behind the calculator

Use the edition named in your contract

Powered by Aienginear
DocumentUsed for
ASME B31.3 Process Piping, Chapter VI (345)Hydrostatic, pneumatic, sensitive and initial service leak tests; stress ratio; vessel in loop; relief setting
ASME B31.1 Power Piping, Chapter VI (137)Hydrostatic and pneumatic test pressures and limits
ASME BPVC Section VIII Division 1 (UG-99, UG-100, UG-102)Vessel hydrostatic and pneumatic tests, gauge range
ASME PCC-2 Article 501Pressure and tightness testing practice, stored energy and safe distance
ASME B36.10M and B36.19MPipe outside diameters and wall thicknesses
IAPWS water propertiesDensity, compressibility and expansion of test water
API 570 / API 510Pressure testing of in-service piping and vessels after repair or alteration

Source: Aienginear. Code text governs over any summary on this page.

Quick quiz: test your hydrotest knowledge

Frequently asked questions

How do you calculate hydrotest pressure as per ASME B31.3?

Multiply the design gauge pressure by 1.5 and by the ratio of the allowable stress at test temperature to the allowable stress at design temperature. The ratio is not less than 1.0 and not more than 6.5. The result is the minimum pressure at the highest point of the system, and it may be reduced if it would stress any component above yield at the test temperature.

What is the hydrotest pressure for ASME B31.1 power piping?

B31.1 requires at least 1.5 times the design pressure at every point in the system, without a stress-ratio factor, and not more than the maximum test pressure of any non-isolated component. A B31.1 pneumatic test is between 1.2 and 1.5 times design pressure.

What is the pneumatic test pressure under B31.3?

At least 1.1 times design pressure, not exceeding the lesser of 1.33 times design pressure or the pressure that would cause 90% of yield stress. A preliminary leak check is made at a low pressure, the pressure is raised in steps, and it is reduced to design pressure before the joints are examined.

How long must a hydrotest be held?

B31.3 and B31.1 require the test pressure to be held for at least 10 minutes before the examination for leaks. Many owner specifications ask for longer holds, such as 30 minutes or more for buried or large systems, and some require a chart record.

Does static head count towards the hydrotest pressure?

The minimum test pressure must exist at the highest point, so the low point is higher by the static head, about 0.098 MPa (14.2 psi) per 10 m of water. The calculator adds this and checks the low point against yield and component ratings.

How much water is needed for a hydrotest?

The internal volume of all lines and equipment in the test pack plus a reserve, typically 10% to 30%, for venting, flushing and losses. A 100 m run of NPS 6 Schedule 40 pipe holds about 1.87 m³ (about 493 US gallons).

Why is a pneumatic test more dangerous than a hydrotest?

Gas stores energy when compressed and releases it as a blast if the system fails, while water hardly compresses. At the same pressure and volume, air stores roughly a thousand to ten thousand times more energy than water, so pneumatic tests need owner approval, a written procedure and a formal exclusion zone.

What range of pressure gauge should be used for a hydrotest?

A range of about twice the test pressure, and never less than 1.5 times or more than 4 times, as ASME VIII-1 UG-102 states and many piping procedures follow. Gauges must be calibrated, and a second gauge or a chart recorder is usually required.

Can this calculator be used for a live test pack?

It is a screening and planning aid. Test pressures, limits and every safety distance must be confirmed against the governing code edition, the engineering dossier and an approved test procedure, and the test must be witnessed as your quality plan requires.

Disclaimer. This page and the HydroProof calculator support engineering judgement; they do not replace it. Code clauses are summarised in our own words for planning; the purchased code text and your approved procedure govern. Report an error through the contact page and we will review it.

Aienginear

Written by Muhammad Raza

Founder of Aienginear. Engineering and digital solutions professional with 26+ years managing projects, plant shutdowns and turnarounds in oil & gas, petrochemical and power generation.

LinkedIn · YouTube · Report an error or ask a question

Leave a Comment