Water Hammer Calculator — Pressure Surge | HydraulicCalc

Calculate water hammer wave speed, pressure rise, and critical closing time for piping systems.

Water hammer is the pressure surge that occurs when a fluid in motion is forced to stop or change direction abruptly, like fast valve closure. This calculator solves Joukowsky's equation for the instantaneous pressure rise from fluid density, wave speed, and the change in velocity, then estimates pipe rating margin and recommends closure-time targets to keep surge below the design pressure.

How it works

Joukowsky equation: ΔP = ρ × a × ΔV where ρ is fluid density, a is the pressure-wave celerity, and ΔV is the change in mean velocity. Wave speed a = √(K / ρ) / √(1 + (K/E) × (D/t)) where K is the fluid bulk modulus, E is the pipe wall Young's modulus, D is the diameter, and t is the wall thickness — softer pipe (lower E) gives lower a and lower surge. For water in rigid steel a ≈ 1,300 m/s; in flexible PE pipe a ≈ 250–400 m/s. To keep surge within pressure class, target valve-closure time T > 2L/a (period of one full wave reflection), which lets the deceleration spread over the pipe length.

Use cases

Pump-trip surge analysis

A utility engineer estimating surge after a 500 lpm pump trips on a 1.2 km pipeline computes ΔV = 2.1 m/s, ΔP = 26 bar, exceeds pipe class — and adds an air-vessel surge tank to cushion the shutdown wave.

Solenoid-valve closure time

A process designer specifying a 200 mm cooling-water valve picks an electric actuator with 5 s closure instead of the original 0.5 s solenoid, dropping surge from 18 bar to 3 bar and avoiding pipe-class upgrade.

Plumbing-system noise fix

A building-services tech investigating banging pipes on washing-machine shutoff installs an in-line water-hammer arrestor sized using the calculator's required gas volume for the line and pressure rating.

Frequently asked questions

What is the fastest valve I can close without surge?

Any closure faster than T_c = 2L/a (line length × 2 / wave speed) produces the full Joukowsky surge. Slower closure spreads the deceleration and reduces peak pressure proportionally.

Why is water hammer worse in long pipelines?

Longer lines store more kinetic energy. The Joukowsky pressure rise itself does not depend on line length, but the duration of the high-pressure pulse does (= 2L/a), so fatigue damage and audible noise scale with length.

Can air pockets cause water hammer?

Yes — trapped air compresses and rebounds, creating column-separation events with surges far above Joukowsky predictions. Always vent high points and use vacuum-breakers on long downhill runs.