Cleanouts are the access points that let a drain be snaked when it clogs, and the IPC is specific about where they must go. This calculator applies IPC Section 708 to count the minimum cleanouts a drainage run needs and tells you exactly where each one belongs.
How it works
Required cleanouts come from a spacing rule plus a set of fixed locations:
max spacing = 100 ft if pipe ≤ 4 in, 150 ft if pipe > 4 in
intermediate = ceil(run length / max spacing) − 1
fixed needs = 1 building-drain cleanout
+ 1 per waste/soil stack base
+ 1 per direction change > 45°
total = fixed needs + intermediate
The developed length is measured along the pipe, so add fitting equivalents on long runs. Any single run longer than the spacing limit triggers intermediate cleanouts.
Example and notes
A 250 ft, 4 in building drain with three direction changes and one stack needs two intermediate cleanouts (250 ft over a 100 ft limit), one at the building-drain junction, one at the stack base, and three at the bends — six in all. Each cleanout must be accessible and sized to the pipe; cleanouts on pipe 6 inches and smaller are full pipe size. Always verify against your adopted IPC edition and local amendments, which can change both the spacing and the threshold diameter.