13 answers
Most of the explanations above are spot on about the pressure wave thing, but there's actually a practical detail worth mentioning: water hammer often gets confused with loose pipes that are just banging against framing, so before you tear into anything, secure any visible pipes with straps or cushioned clips first - sometimes that's all you need. If the noise persists, you're probably dealing with the real pressure spike issue, and the fix depends on your setup. Installing a water hammer arrestor (those small cylindrical devices) on the problem valve is usually the fastest solution, or if you're in an older place, you might need to drain your system and recharge the air chambers that are supposed to act as shock absorbers. The tricky part is figuring out which valve is causing it - usually it's the washer inlet valve, a fast-closing solenoid, or sometimes the toilet fill valve when it shuts off suddenly.
Don't just ignore it and hope it goes away - water hammer can actually damage your pipes over time and lead to leaks or burst fittings. It happens when fast-moving water suddenly stops (like when you turn off a tap or a valve closes quickly), and all that momentum has nowhere to go, so it creates a shock wave that bangs through your pipes. You'll usually hear a loud clunking or hammering sound, especially right after shutting off water.
The quickest fix is to install an arrestor - basically a small device with air trapped inside that absorbs that shock. You can get them pretty cheap and they screw onto your pipes near the valves that are causing the problem. If you want to go the DIY route without buying new parts, you can create a simple air chamber by turning off your main water valve, opening all the taps in your house to drain it, then turning the main back on. This lets air get trapped in your pipes naturally, which does a similar job. Sometimes it's as simple as just closing valves more slowly instead of yanking them shut - that gives the water time to decelerate.
If the banging is coming from your washing machine or dishwasher, check if those hoses have built-in arrestors (they often do, but they can fail). You might need to replace the hoses themselves. For persistent issues throughout your whole system, you may want a larger arrestor installed where the main water line enters your house. It's worth a plumber's call if you're not comfortable working with pipes, but honestly most people can handle the simple fixes first 🔧
Water hammer gets worse in older homes where there's no air chamber or cushion in the lines anymore - those things wear out or get waterlogged over decades. If you've got the access and it's not a nightmare of a retrofit, installing an arrestor (basically a shock absorber for pipes) right where the problem happens is the cleanest fix, way easier than draining the whole system.
The banging noise usually comes from a sudden pressure spike when a valve closes too fast and stops the water mid-flow, but here's what people often miss: if you've got a water heater, check whether sediment buildup inside is making the problem worse. Sediment reduces the space for water to expand, which cranks up the pressure even more. Beyond that, installing a pressure relief valve or flushing out your water heater can help, though if the pipes themselves are old and corroded, you might need to bite the bullet and have sections replaced - ignoring it really does lead to pinhole leaks down the road.
It's a pressure wave bouncing back through your pipes when water flow stops suddenly - usually at a solenoid valve, toilet fill valve, or washing machine inlet. I had this problem in an older place where the previous owner had installed a high-flow showerhead without upgrading the supply lines; the noise got so bad I thought something was about to burst. The quickest fix is installing an arrestor (a small cylinder with air cushion) on the problem line, typically where the washing machine or dishwasher connects, or at the main shutoff if it's happening all over the house. If that's not practical, you can also slightly close your main water valve to reduce flow velocity, or have a plumber check whether your existing air chambers are waterlogged and need draining.
One thing folks miss is that sometimes it's not just about the valve closing fast - check if your house actually has air chambers installed at all, because a lot of older places never had them or they've gotten waterlogged and useless! You can install a shock absorber (basically a small tank filled with air and water) right near wherever the banging happens worst, and that'll cushion the pressure spike way better than trying to fiddle with valve timing.
When a valve shuts fast, the kinetic energy of that water column has nowhere to go, so pressure spikes and you get that bang. Most solutions people mention are solid, but here's what gets overlooked: check your water pressure itself first with a cheap gauge from any hardware store. If it's running hot (over 80 psi), that amplifies hammer problems massively, and the fix might just be installing a pressure regulator before anything else. Once you've ruled that out, the air chamber approach works, though in older homes they really do get waterlogged - you can often drain the whole system and let it refill to reset them, which costs nothing but effort.
Have you checked whether your main shutoff valve is worn out? The issue basically comes down to momentum - water's moving fast through your pipes, something stops it dead (a valve closing, a washing machine inlet snapping shut), and that kinetic energy has nowhere to go so it slams back as a pressure wave. What folks don't always realize is that sometimes the culprit isn't the obvious stuff like a toilet fill valve, but a faulty main shutoff that doesn't seal cleanly anymore, which means water keeps moving even when it shouldn't and builds up pressure inconsistently. If the air chambers are shot (like the previous answers mentioned), you can drain your whole system from the lowest faucet and let it refill - that lets air back into those chambers so they actually cushion the pressure spikes instead of being waterlogged.
I dealt with this banging nightmare in my apartment and it turned out my water heater's expansion tank had basically given up the ghost! The tank is supposed to absorb the pressure surge when hot water heats up and expands, but once it gets waterlogged (which happens over years), it can't do its job anymore and you get these awful shockwaves through the pipes. If you've got a water heater, check if the tank feels heavy or hisses when you tap it - that's a dead giveaway. Replacing or draining it fixed my problem completely, though if it's an older tank anyway, sometimes just upgrading the whole unit is the move since they don't last forever!
Had this rattling in my place and found the culprit was actually a faulty pressure regulator that was letting pressure spike way too high - once I got that replaced, the whole thing stopped. The other fixes mentioned are solid, but if you've already tried draining the system or installing an arrestor and it's still happening, that regulator might be your real problem instead of just worn-out air chambers.
Start by turning off the water main and draining your lines completely, then turn it back on slowly - sometimes that resets a waterlogged air chamber and stops the noise right there. Most of what you're hearing is pressure waves slamming through your pipes when something shuts off fast, but people sometimes miss that the real fix depends on where it's happening: if it's the toilet, replace the fill valve; if it's the washing machine, install a shock absorber on those inlet lines. The air chamber thing others mentioned does work, but in older homes they genuinely do fail over time and need replacing, not just flushing. If you want a quick band-aid, you can also just reduce water pressure slightly at the main valve, which dampens the whole problem even if it doesn't fix the root cause.
You can actually live with some water hammer for a while without it destroying everything, but yeah, it gets annoying fast. Had it in my place after the toilet valve started sticking, and the fix was straightforward - I installed a shock absorber (looks like a small canister screwed onto the supply line near the problem valve) and it killed the noise completely. If you don't want to mess with that, the quick dirty solution is just shutting off your main water valve, opening all the faucets to drain the system, then turning the water back on - this resets any waterlogged air chambers and sometimes buys you months of peace.
Had this in my apartment last year - pipes would bang like crazy every time the washing machine finished its cycle. Drove me nuts at 2 AM. Turns out the quick-closing inlet valve on the machine was creating a pressure shock that traveled back through the supply lines. The fix depends on what's actually causing it in your setup though - are you hearing the banging when a specific appliance shuts off, or is it random throughout the day?
The quickest solution if you can access your water lines is installing an arrestor (also called a shock absorber). These are basically little cylinders with a spring and air chamber inside that absorb the pressure spike before it damages anything. You screw them onto the supply line near wherever the noise is coming from. Cost maybe $20-40 and takes 10 minutes if you're comfortable with basic plumbing. If you don't want to mess with that, you can try turning down your water pressure at the main valve - sometimes lowering it from 80 PSI to around 50-60 PSI reduces the impact enough that the banging stops.
The trickier issue, which some of the other answers touched on, is if your house actually had air chambers installed but they've gotten waterlogged over time. You'd need to drain your whole system and let air back into those chambers, or just replace them with modern arrestors instead. If none of this sounds doable or you're renting, calling a plumber makes sense - they can diagnose exactly where it's happening and fix it properly. What does the banging sound like and when does it happen?
Your answer
Log into answer.