According to plumbing code, drain pipe has to be sloped a minimum of 1/4-inch per foot and a maximum of three inches per foot. A slope of less than 1/4-inch per foot will cause constant drain clogs and a slope of more than three inches will allow the water to drain without the solids.