Facility Design

Hydrostatic Test Pressure

Calculate hydrostatic test pressures for piping systems and pipelines per ASME B31.3 (Process Piping) and ASME B31.8 (Gas Transmission and Distribution). Understand temperature correction factors, test medium selection, hold time requirements, and field testing procedures.

Process piping

ASME B31.3

Test pressure = 1.5 × design pressure, adjusted for temperature. Applies to plant piping.

Gas pipelines

ASME B31.8

Test pressure = 1.25 × MAOP (min) to 1.5 × MAOP. Governed by 49 CFR 192 for interstate lines.

Hold time

4–8 hours typical

Minimum hold time varies by code and test purpose. Pipeline tests may require 8+ hours per DOT requirements.

Use this guide when you need to:

  • Calculate hydrotest pressure per B31.3 or B31.8
  • Apply temperature correction factors
  • Select the appropriate test medium
  • Determine hold time requirements
  • Plan and execute a hydrostatic test

1. Hydrostatic Testing Overview

Hydrostatic testing is a pressure test performed on piping systems, pipelines, and pressure vessels using a liquid (typically water) as the test medium. The purpose is to verify the structural integrity and leak-tightness of the system before being placed in service. Hydrostatic testing is required by virtually all piping codes and is a mandatory regulatory requirement for gas pipelines under DOT jurisdiction.

Strength test

Structural verification

Confirms that the piping system can withstand the design pressure with a safety factor. Identifies material defects, weld failures, and fabrication errors.

Leak test

Leak detection

Detects leaks at flanged joints, threaded connections, valves, and weld defects by monitoring pressure over time.

Regulatory

Code compliance

Required by ASME B31.3, B31.8, ASME Section VIII, 49 CFR 192, and 49 CFR 195 before initial operation.

Why Water (Not Gas)?

Water is strongly preferred over gas (pneumatic testing) for several important reasons:

  • Safety: Water is nearly incompressible. A failure during a hydrostatic test releases very little energy. A pneumatic test failure releases enormous stored energy (like a bomb) and is extremely dangerous.
  • Energy comparison: The stored energy in a pneumatic test at 1,000 psig is roughly 200 times the stored energy in a hydrostatic test at the same pressure.
  • Failure mode: In a hydrostatic test, a leak causes a small weep or drip that is easily detected. In a pneumatic test, a leak may be undetectable until catastrophic failure.
  • Code preference: ASME B31.3 and B31.8 both require hydrostatic testing as the primary test method. Pneumatic testing requires special approval, additional safety measures, and reduced test pressures.
Safety first: Pneumatic strength testing should only be performed when hydrostatic testing is not practical (e.g., systems that cannot tolerate water, or freezing conditions with no antifreeze available). When pneumatic testing is necessary, the test pressure is reduced (typically 1.1x design pressure) and special safety precautions are mandatory.

2. Test Pressure Calculation

ASME B31.3 (Process Piping)

B31.3 Hydrostatic Test Pressure: Ptest = 1.5 × Pdesign × (ST / SD) Where: Ptest = Minimum hydrostatic test pressure (psig) Pdesign = Design pressure of the piping system (psig) ST = Allowable stress at test temperature (psi) SD = Allowable stress at design temperature (psi) For test at ambient temperature where Ttest < Tdesign: ST / SD ≥ 1.0 (ratio increases the test pressure) Limitation: Ptest shall not exceed the yield strength of the pipe at test temperature (to avoid permanent deformation).

ASME B31.8 (Gas Transmission Pipelines)

B31.8 / 49 CFR 192 Test Pressure: Minimum test pressure depends on class location and hoop stress: Class 1 (rural): Ptest ≥ 1.25 × MAOP Class 2 (suburban): Ptest ≥ 1.25 × MAOP Class 3 (urban): Ptest ≥ 1.40 × MAOP (per 49 CFR 192.619) Class 4 (dense urban): Ptest ≥ 1.40 × MAOP Where: MAOP = Maximum Allowable Operating Pressure (psig) Common practice: Test to 1.25–1.50 × MAOP Maximum test pressure: Should not exceed 100% SMYS (specified minimum yield strength) of the weakest component in the test section.

ASME Section VIII (Pressure Vessels)

ASME VIII Hydrostatic Test: Ptest = 1.3 × MAWP × (stress ratio at test temp / design temp) Where: MAWP = Maximum Allowable Working Pressure

Comparison of Test Requirements

Code Applies To Test Factor Notes
B31.3Process piping (plant)1.5 × PdesignTemperature ratio may increase
B31.8Gas transmission lines1.25–1.50 × MAOPClass location dependent
B31.4Liquid pipelines1.25 × MAOPPipeline transportation systems
ASME VIIIPressure vessels1.3 × MAWPVessels built to ASME VIII Div. 1
B31.1Power piping1.5 × PdesignSimilar to B31.3
Weakest link: The test pressure must not exceed the test pressure rating of the weakest component in the system. This includes flanges, valves, expansion joints, and any temporary test equipment. Before testing, identify all components and verify their pressure ratings at test temperature.

3. Temperature Corrections

Stress Ratio Adjustment (B31.3)

When the design temperature is higher than the test temperature (which is almost always the case), the allowable stress at test temperature is higher than at design temperature. This means the pipe is stronger at test temperature, so the test pressure is increased by the ratio ST/SD.

Design Temp (°F) Allowable Stress (A106-B, psi) ST/SD (at 70°F test) Test Factor
10020,0001.001.50
20020,0001.001.50
30020,0001.001.50
40020,0001.001.50
50018,9001.061.59
60017,3001.161.73
70015,6001.281.92
80012,5001.602.40

Allowable stress values are approximate for ASTM A106 Grade B carbon steel. Always verify with ASME B31.3 Table A-1 for the specific material.

Minimum Test Temperature

The minimum metal temperature during the hydrostatic test must be above the brittle fracture transition temperature of the material. Testing at too low a temperature risks brittle fracture:

Material Minimum Test Temp (°F) Notes
Carbon steel (A106, A53)≥ 60°F recommendedMDMT per code; Charpy impact testing may be required
Low-temp carbon steel (A333 Gr 6)≥ -50°FImpact tested to service temperature
Stainless steel (304, 316)No restrictionAustenitic SS has no ductile-brittle transition
Chrome-moly (A335 P11, P22)≥ 60°F recommendedMay require PWHT before hydrotest

Temperature Effects on Test

  • Thermal expansion of water: As water temperature rises during a test (e.g., from solar heating), it expands and pressure increases. A 10°F rise in water temperature in a large pipeline can increase pressure by 50–100 psi.
  • Temperature stabilization: Allow the system and test water to reach thermal equilibrium before starting the hold period. Ideally, test during stable temperature conditions (early morning or overcast days).
  • Recording temperature: Record water temperature at the beginning and end of the hold period. Temperature-corrected pressure evaluation accounts for thermal expansion effects.
Field test tip: For pipeline hydrostatic tests, temperature changes are the primary cause of pressure fluctuations during the hold period. Bury exposed test sections or shade them to minimize solar heating. Monitor temperature at multiple points along the test section. A pressure increase during the hold period accompanied by a temperature increase is normal thermal expansion, not a pump malfunction.

4. Test Medium Selection

Water (Preferred)

Water Source Treatment Required Disposal Considerations
Municipal waterChlorine removal for SS piping; oxygen scavenger for carbon steelUsually safe for surface discharge
River/pond waterFiltration, biocide, oxygen scavengerMay need treatment before discharge
Produced waterFiltration; check compatibilityRequires proper disposal per regulations
SeawaterBiocide, oxygen scavenger mandatoryMust not discharge inland

Water Treatment for Carbon Steel

  • Oxygen scavenger: Sodium bisulfite or ammonium bisulfite (50–100 ppm) to remove dissolved oxygen and prevent internal corrosion during extended hold periods.
  • Biocide: Glutaraldehyde or similar (100–250 ppm) to prevent bacterial growth, especially sulfate-reducing bacteria (SRB) that cause microbiologically influenced corrosion.
  • Corrosion inhibitor: Film-forming amine inhibitor for extended hold periods (> 24 hours) or if the system will remain water-filled for an extended time.
  • pH control: Maintain pH between 6.0 and 8.5 for carbon steel. Alkaline conditions (> 10) can cause caustic cracking.

Water Treatment for Stainless Steel

  • Chloride control: Maximum 50 ppm chlorides for austenitic stainless steel (304, 316) to prevent chloride stress corrosion cracking.
  • No chlorine: Chlorinated water attacks stainless steel. Use dechlorinated water or add sodium thiosulfate to neutralize chlorine.
  • Draining and drying: Drain and dry stainless steel piping immediately after testing. Standing water with even trace chlorides can cause pitting.

Pneumatic Testing (When Required)

Code Pneumatic Test Pressure Requirements
B31.31.1 × PdesignOwner approval; safety plan; gradual pressurization
B31.81.1 × MAOPOnly when hydro is impractical; special safety measures
ASME VIII1.1 × MAWPRequires Code Case or special permission
Disposal planning: Plan test water disposal before beginning the test. Large pipeline hydrotests may involve millions of gallons of water. Obtain necessary discharge permits (NPDES, state water quality) before testing. Treated hydrotest water may require containment and offsite disposal.

5. Test Procedures

Pre-Test Preparation

  • Complete all welding, NDE (non-destructive examination), and repairs before testing
  • Install test blinds at all open ends and isolation points
  • Remove or isolate any components not rated for test pressure (relief valves, instruments, expansion joints)
  • Verify that all temporary supports are in place for dead weight of water
  • Install calibrated pressure gauges at the high point and low point of the test section
  • Install vent connections at all high points for air removal
  • Complete the test package documentation (P&IDs, test boundaries, component ratings)

Pressurization Procedure

Step Pressure Action
1. FillAtmosphericFill system with treated water from lowest point. Vent air at all high points.
2. Initial pressure50 psigPressurize to 50 psig. Walk the line and inspect all joints. Repair any leaks.
3. Intermediate50% of PtestHold for 10 minutes. Visual inspection of flanges, fittings, and welds.
4. Final100% of PtestIncrease pressure to test pressure. Record time, pressure, and temperature.
5. HoldPtestMaintain test pressure for required hold time. Monitor pressure and temperature.
6. InspectionPtest or reducedVisual inspection of all joints (some codes allow inspection at reduced pressure).
7. Depressurize0 psigSlowly reduce pressure. Open vents to break vacuum during draining.

Hold Time Requirements

Code Minimum Hold Time Notes
ASME B31.310 minutes minimumAt test pressure before visual inspection
ASME B31.8Varies (4–8 hours typical)Per company and regulatory requirements
49 CFR 1928 hours minimumFor pipelines under DOT jurisdiction
49 CFR 1954 hours minimumFor hazardous liquid pipelines
ASME Section VIIITime to complete visual examMust inspect while at test pressure

Acceptance Criteria

  • No visible leaks: No drips, weeps, or seepage at any joint, weld, or fitting
  • Pressure stability: No pressure drop during the hold period (after correcting for temperature)
  • No permanent deformation: No bulging, distortion, or plastic deformation of any component
  • Recording: Continuous pressure and temperature recording during the hold period (chart recorder or data logger)
Air removal: Trapped air is the most common cause of apparent pressure drops during hydrostatic testing. Air compresses under test pressure and slowly dissolves into the water, causing pressure to decrease even though there are no leaks. Vent all high points thoroughly during filling and at initial pressurization.

6. Worked Example

Example 1: Process Piping (B31.3)

Given: Piping: 6-inch Sch. 40, ASTM A106 Grade B Design pressure: 500 psig Design temperature: 600°F Test temperature: 70°F (ambient) Step 1: Look up allowable stresses S at 70°F (test temp): ST = 20,000 psi S at 600°F (design temp): SD = 17,300 psi Stress ratio: ST / SD = 20,000 / 17,300 = 1.156 Step 2: Calculate test pressure Ptest = 1.5 × 500 × 1.156 = 867 psig Step 3: Verify against yield Yield strength of A106-B at 70°F: 35,000 psi Hoop stress at Ptest: Sh = P × D / (2 × t) Sh = 867 × 6.625 / (2 × 0.280) = 10,258 psi 10,258 psi < 35,000 psi [OK - well below yield] Result: Test pressure = 867 psig

Example 2: Gas Pipeline (B31.8)

Given: Pipeline: 12-inch, 0.250 in. WT, API 5L X52 MAOP: 720 psig (based on Class 1 design factor 0.72) Class location: Class 1 (rural) Step 1: Calculate minimum test pressure Ptest,min = 1.25 × MAOP = 1.25 × 720 = 900 psig Step 2: Determine maximum test pressure P at 100% SMYS = 2 × S × t / D Pmax = 2 × 52,000 × 0.250 / 12.75 = 2,039 psig (Cannot exceed 100% SMYS during test) Step 3: Select test pressure Common practice: 1.50 × MAOP = 1.50 × 720 = 1,080 psig 1,080 psig < 2,039 psig [OK] Step 4: Verify MAOP qualification MAOP = Ptest / 1.25 = 1,080 / 1.25 = 864 psig 864 psig > 720 psig [OK - test qualifies the MAOP] Result: Test pressure = 1,080 psig, hold 8 hours
MAOP qualification: For gas pipelines, the hydrostatic test pressure directly establishes the MAOP. A higher test pressure qualifies a higher MAOP. Many operators test to 1.50x MAOP (rather than the 1.25x minimum) to qualify the maximum possible MAOP for future operating flexibility.

7. Troubleshooting & Records

Common Test Problems

Problem Cause Solution
Pressure drops during holdLeak, trapped air, temperature dropCheck temperature; re-vent air; leak check all joints
Pressure rises during holdTemperature increase (solar heating)Normal if temperature is rising; shade exposed pipe
Cannot reach test pressureLeak, pump issue, relief valve leakingFind and repair leak; check pump; verify relief valve is isolated
Flange leak at low pressureInsufficient bolt torque, wrong gasketRe-torque per PCC-1; verify correct gasket type and size
Weld leakWeld defect (porosity, crack, incomplete fusion)Repair per WPS; re-NDE; re-test
Valve leakDamaged seat, stem packing leakTighten packing; replace valve if seat is damaged

Leak Detection Methods

  • Visual inspection: Look for drips, weeps, wet spots, or stains at all joints while at test pressure
  • Soap solution: Apply soap solution to suspect joints for pneumatic tests. Bubbles indicate leaks.
  • Pressure monitoring: Record pressure continuously. Unexplained pressure drops indicate leaks.
  • Water volume tracking: For pipeline tests, compare pumped water volume with calculated pipe volume to identify if water is being lost.
  • Acoustic detection: Ultrasonic leak detectors can locate leaks in pressurized systems by detecting the sound of escaping fluid.

Required Test Records

Maintain permanent records of all hydrostatic tests. Required documentation typically includes:

  • Test package with P&IDs showing test boundaries and isolated components
  • Calculation of test pressure with code reference
  • Test medium treatment (chemicals, concentrations, supplier)
  • Pressure gauge calibration certificates (must be current)
  • Continuous pressure and temperature recording (chart or data logger)
  • Pressurization profile (time vs. pressure log)
  • Hold time start and end (time, pressure, temperature at each)
  • Visual inspection results (leak or no leak)
  • Signatures: test engineer, inspector, owner's representative
  • Any repairs performed and subsequent re-test results

Post-Test Activities

  • Drain and dry the system (especially important for gas service and stainless steel)
  • Dispose of test water per environmental regulations
  • Remove test blinds and reinstall relief valves and instruments
  • Restore insulation and fireproofing if removed for inspection
  • File test records with the permanent facility documentation
Record retention: Hydrostatic test records are permanent documents. For pipelines under DOT jurisdiction (49 CFR 192/195), records must be retained for the life of the pipeline. For process piping, retain records per the facility's document retention policy (typically the life of the facility). These records are critical evidence of code compliance during regulatory audits and incident investigations.