Water Hammer Calculator

Joukowsky surge pressure and wave celerity from valve closure in a pipe.

Physics and EnergyUpdated 2026-10-204 min read
Water Hammer Calculator
Surge pressure
...
Peak pressure at the valve...
Pressure wave speed...
Critical closure time...

What it does

Water hammer is the bang and shake in a pipe when moving water stops suddenly. The kinetic energy of the flow has nowhere to go, so it converts into a pressure spike that travels up the pipe as a wave. The spike can reach several times the working pressure and has cracked fittings, split valves, and burst pipe anchors.

The Joukowsky equation gives the size of the spike. It ties the surge to three things: the speed of the pressure wave, the density of the fluid, and the velocity that was stopped. Because the wave speed depends on how stiff the pipe is relative to the water, a thin walled plastic pipe produces a gentler surge than a rigid steel line.

The wave speed calculation starts with the bulk modulus of water, about 2.2 gigapascals, and the density of water. It then corrects for the elasticity of the pipe wall using the inside diameter, the wall thickness, and the elastic modulus of the material. That is why the material selector matters even when the pipe size does not change.

Closure speed decides whether the full surge develops. Traveling from the valve to the source and back takes a fixed time, twice the pipe length divided by the wave speed. If the valve closes in less time than that round trip, the full Joukowsky pressure arrives. A slower close lets relief waves cancel part of the spike.

The peak pressure at the valve is the static pressure plus the surge. That is the number to check against the pressure rating of the pipe, fittings, and any downstream devices. A system running at 60 psi with a 122 psi surge peaks near 182 psi, which already exceeds the rating of many standard fittings.

Common defenses include slower closing valves, larger pipe to cut velocity, surge tanks, air chambers, and water hammer arrestors near quick closing fixtures. The calculator shows the size of the problem so those measures can be sized rather than guessed.

How to use

  1. Choose Imperial or Metric.
  2. Pick the pipe material so the elastic modulus matches.
  3. Enter the inside diameter and wall thickness of the pipe.
  4. Enter the flow velocity just before the valve or fixture closes.
  5. Enter the static pressure at the valve and the pipe length to the source.
  6. Read the surge, the peak pressure, the wave speed, and the critical closure time.
  7. Compare the peak with the pressure rating of every component in the line.

Formula

c = square root of ((K / rho) / (1 + K x D / (E x e))). Surge = rho x c x dv. Peak = static + surge. Critical time = 2L / c.
c
Pressure wave speed in the pipe, in m/s or ft/s.
K
Bulk modulus of water, about 2.2 GPa, or 319,000 psi.
rho
Density of water, about 1000 kg/m3 or 1.94 slug/ft3.
D
Pipe inside diameter.
e
Pipe wall thickness.
E
Elastic modulus of the pipe material.
dv
Change in flow velocity when the valve closes.
L
Pipe length from the valve to the source or reservoir.

The surge equation is the Joukowsky relation, valid for a rapid closure. Steel, copper, and cast iron elastic moduli are 28, 14, and 16 million psi respectively in this tool, with K at 2.2 GPa and water density at 1000 kg/m3. The result assumes no air pockets, no cavitation, and a straight run without branches.

Worked example

Example: 2 inch steel pipe, 2 ft/s, 60 psi

Imperial defaults: steel, 2.067 in inside diameter, 0.154 in wall, 2 ft/s, 60 psi static, 100 ft to the source.

  1. Wave speed: square root of ((2.2e9 / 1000) / (1 + 2.2e9 x 0.0525 / (1.93e11 x 0.00391))) = 1,381 m/s, or 4,532 ft/s.
  2. Surge: 1000 x 1381 x 0.6096 = 842,000 Pa, about 122.1 psi.
  3. Peak: 60 + 122.1 = 182.1 psi.
  4. Critical time: 2 x 100 / 4532 = 0.0441 s, or 44.1 ms.
  5. Closing the valve faster than 44.1 ms delivers the full surge.
  6. Tool shows 122.1 psi surge, 182.1 psi peak, 4,532 ft/s, and 44.1 ms.

Reference table

Surge pressure by velocity in 2 inch schedule 40 steel
VelocityWave speedSurgePeak at 60 psi
1 ft/s4,532 ft/s61.1 psi121.1 psi
2 ft/s4,532 ft/s122.1 psi182.1 psi
4 ft/s4,532 ft/s244.3 psi304.3 psi
6 ft/s4,532 ft/s366.4 psi426.4 psi

Limits

  • Assumes a rapid, complete closure and a single straight pipe run.
  • Ignores air pockets, cavitation, branch lines, and pipe supports that absorb energy.
  • Uses nominal material moduli; actual pipe and joint stiffness varies.
  • Does not size arrestors or surge tanks, which need a full transient analysis.

Common mistakes

  • Checking only the static pressure and ignoring the surge spike.
  • Using outside diameter instead of inside diameter in the celerity term.
  • Assuming a slow valve always prevents water hammer when the run is short.
  • Forgetting that a check valve or pump trip can create the same surge as a closing valve.
  • Sizing pipe for low velocity but leaving a fast closing solenoid in the line.

Try it yourself

Quick checks. Answers sit tucked under each question.

4 ft/s in the default steel pipe. What is the peak at 60 psi?

Surge 244.3 psi, peak 304.3 psi, with the same 4,532 ft/s wave speed.

Copper pipe at 2 ft/s. What changes?

Wave speed drops to 4,258 ft/s and the surge to 114.8 psi, for a peak of 174.8 psi.

Metric mode, 414 kPa static and 0.6096 m/s. What is the peak?

The same case as the imperial default: surge 842 kPa and peak 1256 kPa.

Questions

What is the Joukowsky equation?

It states that the pressure rise from a sudden velocity change equals the fluid density times the pressure wave speed times the velocity change. It is the standard estimate for water hammer surge.

What is a safe water hammer pressure?

The peak pressure should stay below the pressure rating of the pipe, fittings, and fixtures with a margin. If the calculated peak exceeds the rating, add mitigation such as a slower valve, an arrestor, or a larger pipe.

Why is wave speed higher in steel than in plastic?

Steel is stiffer, so it expands less under the pressure wave and the wave moves faster. Faster waves mean a larger surge for the same velocity change, which is why rigid pipe can hit harder than flexible pipe.

How do I stop water hammer?

Reduce velocity, close valves more slowly, add water hammer arrestors or air chambers near the source, and anchor the pipe. The critical closure time tells you what counts as slow enough.

Does pipe length matter?

It does not change the surge size directly, but it sets the critical time and the round trip for the wave. On short runs almost any closure is fast enough to produce the full surge.

Is this the same as a transient analysis?

No. This is the standard Joukowsky estimate for a rapid closure. A full transient study models wave reflections, air pockets, and pump behavior across the whole network.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.