To calculate the slope, you need two key measurements: the elevation at the start and end of the pipe and the length of the pipe.Use this formula:Total drop = Ending elevation - Starting elevationSlope = Total drop / Pipe lengthThe slope should be within the requirements of local codes, generally between 1/8' to 1/4' per foot for a 4' pipe.