Occasional loud bang in pipe near water heater/toilet
This is a long description but I'm desperate:
We installed a new water heater 6 months ago. Just to give you a mental picture: we live in a townhouse where the water heater is in a closet right next to a bathroom on the second floor, and the main water line (with a pressure regulator) is on the first floor. Ever since the installation, we hear a hissing sound in the bathroom followed by water that gets discharged into the toilet. We didn't think anything of this until 2 weeks ago, the hissing sound was shortly followed by a loud bang and then the water discharge into the toilet. This loud bang would only happen when we don’t use the water (hot or cold) for awhile (2+ hours). Otherwise, if we do use the water, only the hissing + water discharge. So, since the only time we won’t use the water for more that 2 hours is during the late evenings when we’re asleep, we get jolted awake by this loud bang. We installed a thermal expansion tank (it’s right next to the heater) thinking that it would fix the problem but the problem went from a loud bang to being a loud rumbling/rattling noise. I also noticed that after awhile, the cold water pipes leading into the water heater gets hot, as if hot water is going back in the cold water pipe, and the expansion tank remains cool. But after the rumble+hiss+discharge, the cold water pipe is cold again. The plumbing company that installed the water heater and expansion tank said it has nothing to do with the heater and advised us to shut the water off leading into the toilet to see if this still happens. My thoughts are that if the problems is with pressure and the toilet is acting as a relief point, of course shutting it off will stop the rumble+hiss+discharge, but wouldn’t all this get built up in the pipes and eventually something’s got to give? Can we never use that toilet again? Please, any advise would be very helpful on what might cause the loud noise and how we can fix it.