A bang after a tap closes is a pressure wave looking for somewhere to go.
Water hammer
Fast-closing valves stop water abruptly. The momentum runs back through the pipe as a shock wave, and any loose or unsupported section converts it into noise.
Fixes: arrestors at the offending fixture, clipping the run, replacing worn washers and valves that snap shut.
Pressure
Measure static pressure at an outdoor hose bib, then watch it through a heating cycle. High pressure amplifies every shock; a failed expansion tank adds to it.
Banging or popping?
- Banging follows a tap closing, and comes from the pipework.
- Popping follows the burner or element, and comes from the tank.
Different causes, frequently described with the same word.
Older houses
Short pipe runs between rooms and shared walls make the noise travel. In a dense neighbourhood, a neighbour can hear it through a party wall, which is often what prompts the call.
Choosing an arrestor
Arrestors come sized to the pipe and to the fixture. One that is too small does nothing; one fitted at the wrong distance from the valve does very little either. Where several fixtures knock, the cause is usually pressure or unclipped pipe rather than four separate arrestor failures.
The cost of waiting
Sustained hammer fatigues joints, loosens fittings and wears valve seats. Arresting it now is cheaper than repairing what it breaks later.
What to have ready
Trigger, timing, pressure.