Plumbing calculators

Drain slope calculator

Enter the pipe size, the length of the run and the slope to get the total fall from the high end to the low end, the slope as a percent and in degrees, and a check against the IPC minimum slope for that pipe size.

in

Nominal diameter of the drain.

ft

Level distance from the high end to the low end. E.g. 12' 6"

in/ft

Total drop

5 in

5.000 in decimal

Total drop in feet
0.417 ft
Slope used
1/4 in per ft
Measure slope on the invert (bottom inside) of the pipe; a 2 ft level with a 1/2 in block gives 1/4 in per ft.
IPC minimum for 2 in pipe
1/4 in per ft
IPC 2021 Table 704.1
Grade
2.08%
Angle
1.19°
20 ft of 2 in pipe at 1/4 in/ft drops 5 inSide view of a drain falling from left to right. Run 20', total drop 5", slope 1/4 in per foot (2.08%). Slope exaggerated for clarity.20'015"021/4 in/ft · 2.08%032 ft level + 1/2" block04slope exaggeratedhigh end
Default example: 20 ft of 2 in drain at 1/4 in per foot. The slope is exaggerated so the fall is visible.
  1. 01 Horizontal run
  2. 02 Total drop, invert at the high end to invert at the low end
  3. 03 Slope per foot and percent grade
  4. 04 Checking the slope with a 2 ft level and a block

How drain slope is calculated

Drain slope is given in inches of fall per foot of horizontal run. Multiply the run by the slope and you have the total drop between the two ends of the pipe. The minimum slope comes from the pipe size.

minimum slope = IPC Table 704.1 value for the pipe size

slope used = your choice, or the minimum when you pick "Code minimum"

total drop (in) = run (ft) × slope (in per ft)

total drop (ft) = total drop (in) ÷ 12

The same slope can be written as a percent grade or an angle, which is what a laser level or a digital level reads:

grade (%) = slope ÷ 12 × 100

angle (°) = arctan(slope ÷ 12)

The run is the level distance between the two ends, not the length of pipe you cut. At drain slopes the two differ by a small fraction of an inch, so either measurement gives the same drop to the nearest 1/16 in.

Worked example: 20 ft of 2 in pipe at 1/4 in per foot

The calculator opens on 20 ft of 2 in drain at 1/4 in per foot.

  1. Minimum slope: 2 in pipe is in the "2-1/2 inches or less" row of IPC Table 704.1, so the minimum is 1/4 in per foot. The chosen 1/4 in per foot meets it.
  2. Total drop: 20 ft × 1/4 in per ft = 5", or 0.417 ft.
  3. Grade: 1/4 ÷ 12 × 100 = 2.08%.
  4. Angle: arctan(1/4 ÷ 12) = 1.19°.

If the high end of the pipe sits at the bottom of a floor joist, the low end must be 5" lower at the stack or the cleanout.

Minimum slope by pipe size

IPC 2021 Table 704.1 sets three minimums for horizontal drainage piping:

  • 2-1/2 inches or less: 1/4 in per foot (2.08%)
  • 3 to 6 inches: 1/8 in per foot (1.04%)
  • 8 inches or larger: 1/16 in per foot (0.52%)

The Uniform Plumbing Code is stricter. UPC 2021 Section 708.1 calls for 1/4 in per foot on all sizes, with 1/8 in per foot allowed on 4 in and larger pipe only with prior approval. Larger pipe is allowed a flatter slope because flow in a bigger pipe reaches a self-cleaning speed at a lower grade. Your jurisdiction adopts one code, often with amendments, so check which one is in force. The table below converts the common slopes and shows the block to put under a 2 ft level.

Common drain slopes, fall over 10 and 50 ft, and the level block, to the nearest 1/16 in
Slope (in/ft)GradeAngleFall per 10 ftFall per 50 ftBlock, 2 ft level
1/160.52%0.30°5/8"3-1/8"1/8"
1/81.04%0.60°1-1/4"6-1/4"1/4"
1/42.08%1.19°2-1/2"1' 0-1/2"1/2"
1/24.17%2.39°5"2' 1"1"

Measuring and setting the slope

  • Measure on the invert, the bottom inside of the pipe. On the outside, the top or bottom of the pipe works as long as the pipe and fittings are the same size along the run.
  • For a quick check, tape a block to one end of a 2 ft level: 1/2 in for 1/4 in per foot, 1/4 in for 1/8 in per foot. Put the block on the low side and center the bubble.
  • On long runs, set the two ends first and pull a string line between them, then hang the pipe to the string. A 1/4 in slope over 40 ft is 10"; at 1/8 in it is 5".
  • Work backward from the outlet. Find the invert of the stack, building drain or sewer connection, add the total drop, and confirm the high end still fits under the floor or above the footing.
  • Keep the slope uniform. A belly or a flat spot collects solids even when the average slope is correct, so check at every hanger.
  • Too much slope is allowed, but over 1/2 in per foot ask your inspector, and use 45° fittings to take a larger drop rather than tilting the whole run.

Building sewers outside the foundation and vent piping follow their own sections of the code. Hire a licensed plumber when the run ties into a sewer or septic system, or when the required fall does not fit the space you have.

Sources

Frequently asked questions

What is the minimum slope for a drain pipe?

Under IPC 2021 Table 704.1, horizontal drains 2-1/2 inches or less need 1/4 in per foot, 3 to 6 inches need 1/8 in per foot, and 8 inches or larger need 1/16 in per foot. Your local code may amend these, so check what your jurisdiction has adopted.

What is 1/4 inch per foot as a percent?

1/4 in per foot is a 2.08% grade, about 1.2°. 1/8 in per foot is 1.04%, or 0.60°.

How much does a 20 ft drain drop at 1/4 inch per foot?

It drops 5": 20 ft × 1/4 in per ft = 5 in. At 1/8 in per foot the same run drops 2-1/2".

Can a drain have too much slope?

Extra slope is allowed by the IPC, but it uses up depth you may need further down the run. The worry that water outruns the solids applies only at very steep grades; over 1/2 in per foot, check with your inspector and use 45° fittings to take larger drops.

Where do I measure the slope on a pipe?

Measure on the invert, the bottom inside of the pipe, or on the top of the pipe if the wall thickness is the same along the run. A 2 ft level with a 1/2 in block under the low end reads 1/4 in per foot when the bubble is centered.

Does the UPC use the same minimum slope?

No. UPC 2021 Section 708.1 requires 1/4 in per foot for all horizontal drainage piping, and allows 1/8 in per foot on 4 in and larger pipe only where 1/4 in is impractical and the authority having jurisdiction approves it first.

Is the run the length of the pipe or the horizontal distance?

Use the horizontal distance from the high end to the low end. At drain slopes the difference is a small fraction of an inch, so the pipe length works too.