Free drain slope calculator. The fall, the grade, and the code minimum.

Put in the pipe size and the run to get the total drop at your slope, or the slope from the drop you have, checked against the least slope the International Plumbing Code allows for that size.

Example numbers: put in your own.

I know the
Slope, inches a foot

Total drop

5inches

1/8 in a foot over 40 ft: a 1.04% grade

Slope
1/8 in a foot (1.04%)
Least slope for 3 in
1/8 in a foot
Least drop over this run
5 in
A building drain this size carries
36 fixture units

Meets the IPC minimum for 3-inch pipe (Table 704.1, checked Nov. 2026). Check with your local inspector (AHJ).

How we worked it out
  1. 40 ft × 1/8 in a foot = 5 in
  2. 0.125 ÷ 12 × 100 = 1.04% grade
  3. Least slope for 3-inch pipe: 1/8 in a foot (Table 704.1), 5 in over this run

How the math works

  1. 1Multiply the run by the slope.Inches a foot × feet = the total drop: 1/4 inch a foot over 20 feet is 5 inches.
  2. 2Or divide the drop by the run.When the ends are set, the drop ÷ the feet is the slope you have. ÷ 12 × 100 turns it into a percent grade.
  3. 3Check the minimum.IPC Table 704.1: 1/4 inch a foot for 2-1/2-inch pipe and smaller, 1/8 for 3 to 6 inches, 1/16 for 8 inches and up.

Questions

What slope does a drain need?

Under the 2021 IPC (Table 704.1), at least 1/4 inch a foot for pipe 2-1/2 inches or smaller, 1/8 inch for 3 to 6 inches, and 1/16 inch for 8 inches or larger. The Uniform Plumbing Code asks 1/4 inch a foot, with 1/8 allowed for larger pipe where approved. Check with your local inspector (AHJ).

Is steeper always better?

Not past the code’s ranges: a trap arm can’t fall more than one pipe diameter from the weir to the vent, or it can siphon the trap. For a building drain, more slope carries more fixture units.

What is 1/4 inch a foot in percent?

About 2.08%: 0.25 ÷ 12 × 100. 1/8 inch a foot is about 1.04%, and 1/16 inch about 0.52%.

How do I check slope on site?

Lay a level on the pipe with a shim at the low end the size of the slope over the level’s length: a 1/4-inch shim on a 1-foot level, a 1/2-inch shim on a 2-foot one, reads level at 1/4 inch a foot.

Hand off the paperwork.

Platinum Logic drafts your quotes and invoices, books the work, and keeps your books. Every app comes with every plan.

Invite-only · We'll reply by email