The rule
Each cleanout has to be above grade, readily accessible, and located where it can do its job. The exception is a cleanout under an approved cover plate, which still has to give you the same clearances and access.
In front of a cleanout on pipe 2 inches or smaller you need at least 18 inches by 18 inches clear. On pipe larger than 2 inches it's 24 by 24 inches.
Under-floor cleanouts have special rules. If there's less than 18 inches of vertical clearance overall (counting ducts, beams and piping), the cleanout has to be extended up to or above the finished floor, or outside the building. You also need 30 inches of horizontal clearance from the means of access, and no under-floor cleanout can be more than 5 feet from an access door, trap door or crawl hole.
On the job
- Plan clearance before the finish crews arrive. A cleanout behind a vanity, a cabinet or a water heater doesn't have the clearance, and moving it later means opening walls.
- In a crawl space, look at where the access hole is before you pick the cleanout spot. If the 5 foot limit would be exceeded, extend the cleanout toward the opening.
- Where a cleanout comes up through a finished floor, use an approved cover plate so it stays reachable, and use a load-rated cover where it will see traffic.
The inspector and your city's adopted edition have the final word.