I'm remodeling a bathroom that has a walk-in shower. Adjacent to a shower wall is a closet containing the water heater. The water heater has a pan beneath it but it's not connected to a drain.

While I have the bathroom demo-ed, I'm thinking of running a drain line from the closet to the shower drain (connect just above the trap). See pictures.

Will this pass inspection? Is it acceptable code wise? Does the drain in the closet have to be "indirect" or can I plumb it directly with CPVC?

shower drain

hot water heater

this is a indirect drain for those that have asked

  • 1
    What is an "indirect" drain?
    – FreeMan
    Commented Jan 16 at 19:28
  • a floor drain with no direct piping.
    – bschooly
    Commented Jan 16 at 19:33

1 Answer 1


I think that the below sketch illustrates what you want to do.

enter image description here

This meets the code where I live. The drain pan connection to the shower does not need to be indirect, but the water heater's relief drain needs to be indirect to the pan.

  • Thanks for the diagram. In my setup, which I didn't mention, the pressure relief valve is plumbed to a line (not part of sewer) that exits to the outside. I think this is also OK code wise.
    – bschooly
    Commented Jan 16 at 23:09
  • If the trap in the shower clogged up, wouldn't it flood the drain pain under the hot water heater?
    – mikem
    Commented Jan 20 at 7:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.