Water Hammer Calculator

Pressure rise (Joukowsky)26.86 bar
Pressure wave speed1,342.9 m/s
Surge head273.8 m
Critical closure time 2L/a1.49 s
How this was calculated
  1. Water hammer is the pressure surge when moving liquid is stopped suddenly. The Joukowsky equation gives the rise: delta P equals density times wave speed times the velocity change - the surge depends on how fast the water was moving, not on the pipe length.
  2. The wave speed itself depends on the pipe: a equals sqrt(K/rho) divided by sqrt(1 + (K/E)(D/e)). With K of 2.2 GPa, a pipe modulus of 200 GPa and D/e of 20.0, the wave runs at 1,342.9 m/s - slower than in a rigid pipe because the wall stretches.
  3. Stopping 2.0 m/s of flow therefore raises the pressure by 26.86 bar, a surge head of 273.8 m on top of the steady pressure - often several times the normal working pressure.
  4. The surge lasts until the wave returns from the far end: the critical closure time 2L/a is 1.49 s for this 1,000 m line. A valve that closes faster than that sees the full Joukowsky rise; closing more slowly trims it.

This water hammer calculator estimates the pressure surge that occurs when moving liquid in a pipe is stopped suddenly. It applies the Joukowsky equation, in which the pressure rise equals density times wave speed times the velocity change. For example, stopping 2 m/s in a steel water main raises the pressure by 26.86 bar, a surge head of 273.8 m, with a critical closure time of 1.49 s for the 1,000 m line. The same water in a plastic pipe surges by only 3.75 bar, because the flexible wall slows the wave to 374.7 m/s and absorbs the blow. Stopping 3 m/s of oil in a steel line raises the pressure by 31.59 bar, a 378.8 m surge head on a 2,000 m line.

The method is the accepted standard for this calculation because it rests on the Joukowsky equation and the wave-speed relation a = sqrt(K/rho)/sqrt(1 + (K/E)(D/e)), which shows that wave speed falls as the pipe gets more flexible. A valve closing faster than the critical time 2L/a sees the full Joukowsky rise. This page shows the formula, step-by-step workings, worked examples and sources, so you can check every number yourself and see exactly how each result is produced.

Worked examples

Steel water main, 1,000 m

Stopping 2 m/s in a steel water main raises the pressure by 26.86 bar - a surge head of 273.8 m, with a critical closure time of 1.49 s. (1000 kg/m3 · 2 m/s · 2.2 GPa · 200 GPa · 500 mm · 25 mm · 1000 m)

Pressure rise (Joukowsky)26.86 bar
Pressure wave speed1,342.9 m/s
Surge head273.8 m
Critical closure time 2L/a1.49 s

Plastic pipe, 500 m

The same water in a plastic pipe surges by only 3.75 bar - the flexible wall slows the wave to 374.7 m/s and absorbs the blow. (1000 kg/m3 · 1 m/s · 2.2 GPa · 3 GPa · 200 mm · 10 mm · 500 m)

Pressure rise (Joukowsky)3.75 bar
Pressure wave speed374.7 m/s
Surge head38.2 m
Critical closure time 2L/a2.67 s

Oil line, 2,000 m

Stopping 3 m/s of oil in a steel line raises the pressure by 31.59 bar - a 378.8 m surge head on a 2,000 m line. (850 kg/m3 · 3 m/s · 1.5 GPa · 200 GPa · 300 mm · 15 mm · 2000 m)

Pressure rise (Joukowsky)31.59 bar
Pressure wave speed1,238.8 m/s
Surge head378.8 m
Critical closure time 2L/a3.23 s

The Joukowsky equation

The Joukowsky equation is the standard way to estimate how big a water hammer surge will be. It states that the pressure rise, delta P, equals the liquid's density (rho) multiplied by the wave speed (a) multiplied by the change in velocity (delta V). In plain terms: the faster you stop the flow, the harder the blow. A water hammer calculator applies this relationship so you can size the surge before it damages a line.

A worked example shows how the numbers fall out. Stopping 2 m/s of flow in a steel water main raises the pressure by 26.86 bar. That is a surge head of 273.8 m, and the critical closure time for the 1,000 m line is 1.49 s. The same water in a plastic pipe surges by only 3.75 bar, because the flexible wall slows the wave to 374.7 m/s and absorbs much of the blow. The fluid did not change; the pipe did, and the wave speed with it.

Notice what does not appear in the equation: pipe length. The Joukowsky rise depends on density, wave speed and velocity change, not on how long the line is. Length matters in a different way — it sets the critical closure time, 2L/a. A valve that closes faster than that critical time sees the full Joukowsky rise; a slower closure gives the surge time to ease. So a long line is not automatically more dangerous, but it does give a valve more time to close before the full surge develops.

Wave speed is where pipe material enters the calculation. The expression a = sqrt(K/rho) / sqrt(1 + (K/E)(D/e)) falls as the pipe gets more flexible, where K is the liquid's bulk modulus, E the pipe wall's modulus, D the diameter and e the wall thickness. That is why the plastic pipe in the example produced a far smaller surge than steel under the same velocity change. Stopping 3 m/s of oil in a steel line, by contrast, raises the pressure by 31.59 bar — a 378.8 m surge head on a 2,000 m line.

To use the equation, identify the velocity change the valve or pump stop will impose, find the wave speed for your pipe and fluid, and multiply. Then compare your actual closure time with 2L/a to see whether the full rise applies. A water hammer calculator does the arithmetic, but the physics stays the same: it is the change in velocity, carried by the wave speed, that sets the surge.

Delta P = rho × a × delta V. Velocity change and wave speed set the surge — pipe length sets the critical closure time, 2L/a.

Wave speed and pipe elasticity

The Joukowsky equation tells you how big a pressure surge will be, but it needs one key input: the wave speed. That speed is not a fixed property of water. It depends on how stiff the pipe wall is, because a flexible wall lets the pipe expand slightly as the pressure wave passes, which slows the wave and softens the blow. This is why a water hammer calculator cannot use a single wave speed for every system — the pipe material and its dimensions change the answer.

The standard relation captures this: a = sqrt(K/rho) / sqrt(1 + (K/E)(D/e)). Here K is the bulk modulus of the liquid, rho is its density, E is the elastic modulus of the pipe wall, D is the pipe diameter and e is the wall thickness. The term (K/E)(D/e) is the correction that matters. A stiff, thick-walled pipe makes that term small, so the wave speed stays close to the value for the liquid alone. A flexible wall or a thin wall makes the term larger, the denominator grows, and the wave speed falls. In short, the more flexible the pipe, the slower the wave.

The examples show how large that effect can be. Stopping 2 m/s of flow in a steel water main raises the pressure by 26.86 bar — a surge head of 273.8 m, with a critical closure time of 1.49 s on the 1,000 m line. The wave speed in that steel case is 1,342.9 m/s. Run the same water through a plastic pipe and the surge is only 3.75 bar. The flexible wall slows the wave to 374.7 m/s and absorbs the blow. Same liquid, same velocity change, but the pressure rise differs by roughly a factor of seven because the pipe wall changed.

The same logic applies to other liquids. Stopping 3 m/s of oil in a steel line raises the pressure by 31.59 bar — a 378.8 m surge head on a 2,000 m line. The wave speed and the density of the liquid both enter the Joukowsky rise, so a water hammer calculator must pair the correct wave speed with the correct fluid.

Wave speed also sets the timing. A valve closing faster than the critical time 2L/a sees the full Joukowsky rise, because the returning wave has no time to relieve the pressure. Close more slowly and the surge is reduced. Because a is smaller in plastic pipe, the critical time is longer — the same valve motion that is gradual in steel may be sudden in plastic. That is why the wave speed term belongs at the center of any water hammer calculator, not buried in a default value.

Steel at 1,342.9 m/s versus plastic at 374.7 m/s: the flexible wall slows the wave and cuts the surge from 26.86 bar to 3.75 bar for the same 2 m/s stop.

Critical closure time

A water hammer calculator does more than report a pressure rise — it also tells you how quickly a valve can close before that rise reaches its full value. That threshold is the critical closure time, written as 2L/a, where L is the length of the pipe run and a is the speed at which the pressure wave travels through the liquid and pipe wall. If a valve closes in less time than 2L/a, the wave has not had time to make the round trip to the far end and back, so the full Joukowsky rise develops. Close more slowly than 2L/a and the returning wave meets a partly closed valve, and the surge is trimmed.

The numbers make the idea concrete. In a 1,000 m steel water main, stopping a flow of 2 m/s raises the pressure by 26.86 bar — a surge head of 273.8 m — and the critical closure time for that line is 1.49 s. A valve that slams shut in less than 1.49 s gets essentially the entire 26.86 bar. Stretch the closing stroke out beyond 1.49 s and the peak begins to fall, because the reflected wave arrives while the valve is still open and part of the energy escapes back up the line instead of stacking into one spike.

The wave speed a is what sets that clock, and it depends on the pipe as much as the liquid. The wave speed falls as the pipe gets more flexible, following the relation a = sqrt(K/rho)/sqrt(1 + (K/E)(D/e)), where K is the liquid's bulk modulus, rho its density, E the pipe wall's modulus, D the diameter and e the wall thickness. A plastic pipe illustrates the effect: the same water that surged 26.86 bar in steel rises by only 3.75 bar, because the flexible wall slows the wave to 374.7 m/s and absorbs the blow. A slower wave also lengthens 2L/a, so a plastic line tolerates a faster closure than a steel line of the same length.

Length matters just as directly. Stopping 3 m/s of oil in a steel line raises the pressure by 31.59 bar — a 378.8 m surge head on a 2,000 m line. Because the critical time is 2L/a, doubling the run doubles the window a valve has to close gently. That is why long transmission mains are the ones where slow-closing valves and careful stroke timing earn their keep, while short runs demand faster-acting protection.

To use the critical closure time in practice, compare it with the actual closing time of each valve on the line. A closure faster than 2L/a is treated as sudden and checked against the full Joukowsky rise; a closure slower than 2L/a allows a reduced surge estimate. The water hammer calculator applies this test using your pipe length and wave speed, so you can see whether a given valve is fast enough to be a problem — or slow enough to be the solution.

Critical closure time = 2L/a. Close faster than this and the valve sees the full Joukowsky rise; close slower and the surge is reduced.

Where water hammer bites

Water hammer shows up wherever a moving liquid is forced to stop faster than the pipe system can absorb the change. A pump trip is the classic case: the pump stops driving the flow, but the column of water keeps moving until something stops it, and the resulting pressure surge travels back up the line. A valve slammed shut produces the same effect at a single point. Because the surge scales with how much velocity is lost and how fast the wave travels, the same flow rate can be harmless in one pipe and destructive in another — which is why a water hammer calculator is worth running before you size a line or set a valve closing schedule.

The Joukowsky equation gives the size of the rise: delta P equals density times wave speed times the velocity change. Put real numbers to it and the stakes become clear. Stopping 2 m/s of water in a steel main raises the pressure by 26.86 bar, a surge head of 273.8 m, on a 1,000 m line with a critical closure time of 1.49 s. The same water in a plastic pipe surges by only 3.75 bar, because the flexible wall slows the wave to 374.7 m/s and absorbs the blow. Fluid matters too: stopping 3 m/s of oil in a steel line raises the pressure by 31.59 bar, a 378.8 m surge head on a 2,000 m line.

The wave speed a = sqrt(K/rho)/sqrt(1 + (K/E)(D/e)) explains the difference. A stiffer, thicker wall keeps the wave fast and the surge sharp; a more flexible pipe slows the wave and softens the hit. Timing decides whether you get the full rise. A valve closing faster than the critical time 2L/a sees the full Joukowsky rise, because the reflected wave has not had time to return and relieve the pressure. Close more slowly than that and the surge is reduced — often dramatically.

Where the surge cannot be avoided, engineers add equipment to tame it. Surge tanks and air vessels give the moving liquid somewhere to go and something compressible to push against, damping the pressure spike before it reaches the rest of the system. Flywheels on pump sets keep the pump spinning through a trip, so the flow decelerates gradually instead of stopping abruptly. Each device works by stretching the deceleration out in time or by softening the wave, and each has to be matched to the line length, wave speed and flow it is protecting.

Rule of thumb: if a valve closes faster than 2L/a, expect the full Joukowsky rise — check the critical time before you set the closing schedule.

FAQs

What is water hammer?

Water hammer is the pressure surge that occurs when a moving liquid is stopped suddenly. The surge is described by the Joukowsky equation, which relates the pressure rise to the liquid's density, the wave speed in the pipe, and the change in velocity. This sudden stop sends a pressure wave through the piping system.

How much pressure does water hammer add?

The added pressure depends on the pipe material. Stopping 2 m/s of water in a steel main produces a surge of 26.86 bar. In a plastic pipe, the same stoppage produces only 3.75 bar. The difference comes from how fast the pressure wave travels in each material.

What is the Joukowsky equation?

The Joukowsky equation gives the pressure surge as Delta P = rho a delta V, meaning density times wave speed times the change in velocity. Multiply the liquid's density, the speed of the pressure wave in the pipe, and how much the velocity drops to get the pressure rise.

Why does a plastic pipe surge less?

A plastic pipe's wall stretches under pressure, which slows the pressure wave to 374.7 m/s and absorbs energy. Because the wave speed is lower, the Joukowsky equation gives a smaller pressure rise for the same velocity change, so the surge is far gentler than in a rigid steel main.

What is the critical closure time?

The critical closure time is 2L/a, where L is pipe length and a is wave speed. Close a valve faster than that and the full surge develops. For the 1,000 m steel main, the critical closure time is 1.49 s. Closing more slowly reduces the surge.

How do you prevent water hammer damage?

Close valves slowly so the velocity change happens gradually. Add surge tanks or air vessels to absorb pressure spikes. Keep flow velocities moderate to limit the surge that a sudden stop can create. These measures together protect piping from the high pressures water hammer can produce.

Sources

Related calculators

Pressure Calculator
Pressure from force and area — or the hydrostatic pressure at depth in water and other fluids — in pascals, kPa, bar, psi and atmospheres.
Flow Rate Calculator
Pipe flow rate from diameter and water velocity — gallons per minute, litres per minute and cubic feet per second from one cross-section calculation.
Bernoulli Equation Calculator
Trade pressure, velocity and height along a streamline — solve for the pressure or the velocity at a second point.