The rule
Spacing depends on the material and, for some, the size. For copper and copper alloy pipe, horizontal runs are supported every 6 feet for 1-1/2 inch and smaller, and every 10 feet for 2 inch and larger. Steel water or DWV pipe is 10 feet for 3/4 inch and smaller and 12 feet for 1 inch and larger.
Plastic is closer. Schedule 40 PVC and ABS DWV is 4 feet in all sizes. CPVC is 3 feet for 1 inch and smaller and 4 feet for 1-1/4 inch and larger. PEX is 32 inches for 1 inch and smaller and 4 feet for 1-1/4 inch and larger. Cast iron hubless is every other joint, but every joint once pieces run over 4 feet.
Verticals follow the same table: usually at the base and at each floor, with mid-story guides for plastic, and copper at each floor not to exceed 10 feet. The table also has rows for CPVC-AL-CPVC, PEX-AL-PEX, PE-AL-PE, PE-RT, polypropylene, lead, steel gas pipe and cast iron joined other ways, so check it for those.
A few footnotes matter on every job. Supports go within 18 inches of a joint, a hubless coupling never gets a hanger on it, and the table asks for a support at each horizontal branch connection. Long runs are braced at 40 foot intervals against horizontal movement, and plastic DWV needs provision for expansion every 30 feet.
On the job
- Hang plastic DWV and PEX tighter than feels necessary. They sag first, and sag turns into a flat spot in a drain.
- Don't hang from the coupling on hubless cast iron. Support the pipe on each side of it.
- The manufacturer's instructions can be stricter than the table. Check the sheet in the box, and the inspector's preference.
The inspector and your city's adopted edition have the final word.