Drain slope calculator

Pick the pipe and the run to get the code-minimum slope and the total fall as a fraction you can mark on the level.

Result

5 in of fall
= 5 in over 40 ft · 1/8 in/ft · 1.04% grade
Code minimum (4 in)1/8 in/ft
Fall per 10 ft1 1/4 in

Meets the 4 in minimum of 1/8 in/ft.

The run, from the side — slope exaggerated to see it
→ flowlevel5"40 ft1/8 in/ft · every foot forward drops 1/8 inch

Formula sources: IPC Table 704.1 / UPC 708 — minimum slope of horizontal drainage piping by diameter, Field practice: keep horizontal runs at or under ½ in/ft; steeper goes to 45° or vertical

Code minimums shown are the common IPC/UPC bands — local amendments vary, and your inspector's reading of the local code always wins. Verify slope requirements for your jurisdiction before rough-in.