Drain slope calculator with code minimums

Pick the pipe size, enter the length of the run and the slope. See the total fall in inches, the percent grade and angle, whether it meets the minimum slope for that size, and how many drainage fixture units it carries as a building drain.

1/4 in per ft2-1/2 in pipe and smaller
1/8 in per ft3 to 6 in pipe
FreeNo email, no sign-up
ft
Measured along the pipe, from the highest point to the lowest.
Slope
in
Below the floor or grade. Leave at 0 to skip.
DFU
From your code's fixture unit table. Leave at 0 to skip the capacity check.
Total fall
5 in
40 ft at 1/8 in per ft (1.04%)
1/8 in per ftCode minimum
1.04%Percent grade
0.6°Angle
36 DFUBuilding drain capacity
The plumbing code adopted where you work and the inspector govern. Check your edition's tables.

How we got this

  1. Minimum slope for 3 in1/8 in per ftIPC Table 704.1: 2-1/2 in and smaller at 1/4 in per ft, 3 to 6 in at 1/8, 8 in and larger at 1/16. UPC areas use 1/4 in per ft, with 1/8 allowed on 4 in and larger only where the authority approves.
  2. Slope used1/8 in per ft = 1.04% = 0.6°Percent is inches of drop per 12 inches of run, times 100. Degrees is the arctangent of slope ÷ 12.
  3. Total fall40 ft × 1/8 in = 5 in
  4. Capacity as a building drain36 DFU at 1/8 in per ftIPC Table 710.1(1), building drains and sewers. Slope between two rows gets the lower row's capacity. Horizontal branches and stacks use a different table with lower numbers.
SlopePercentFall over this run3 in capacityFor 3 in
1/16 in per ft0.52%2.5 inNot listedUnder the minimum
1/8 in per ft1.04%5 in36 DFUMeets the minimum
1/4 in per ft2.08%10 in42 DFUMeets the minimum
1/2 in per ft4.17%20 in50 DFUMeets the minimum

Sources: ICC, 2018 IPC Code and Commentary Essentials, Table 5-2 Slope of horizontal drain pipe (sample page); International Plumbing Code 2012, Tables 704.1, 710.1(1), E103.3(2) and E103.3(3), Section 603.1 (Public.Resource.Org copy); Uniform Plumbing Code 2009, Section 708.0 Grade of Horizontal Drainage Piping (Public.Resource.Org copy). Checked 2026-10-08.

Add this calculator to your websiteFree. Paste the code into any page builder that takes HTML. It fits its own height and works on phones.
<iframe src="https://www.koira.ai/embed/tools/drain-slope-calculator" title="Drain slope calculator" width="100%" height="900" style="width:100%;max-width:100%;height:900px;border:0;display:block" loading="lazy" allow="clipboard-write" data-koira-tool="drain-slope-calculator"></iframe> <p style="margin:6px 0 0;font-size:13px"><a href="https://www.koira.ai/tools/drain-slope-calculator" rel="noopener">Free calculator by Koira</a></p> <script>(function(){if(window.__koiraTools)return;window.__koiraTools=1;var ok=["https://www.koira.ai","https://koira.ai"];addEventListener("message",function(e){var d=e.data;if(!d||d.type!=="koira:tool-height"||ok.indexOf(e.origin)<0)return;var f=document.querySelectorAll("iframe[data-koira-tool]");for(var i=0;i<f.length;i++)if(f[i].contentWindow===e.source)f[i].style.height=Math.max(200,Math.min(8000,Math.ceil(+d.height||0)))+"px";});})();</script>
Key takeaways
  • Total fall = length of the run in feet × slope in inches per foot. 40 ft at 1/8 in per ft falls 5 in.
  • IPC minimum slopes: 1/4 in per ft for 2-1/2 in pipe and smaller, 1/8 in for 3 to 6 in, 1/16 in for 8 in and larger.
  • 1/4 in per ft is a 2.08% grade, about 1.19°. 1/8 in per ft is 1.04%.
  • A steeper building drain carries more fixture units: a 4 in drain carries 180 DFU at 1/8 in per ft and 216 at 1/4 in.

How to calculate drain pipe fall

Slope is how far the pipe drops for every foot it runs. Fall is the total drop from one end to the other.

Fall (in) = run (ft) × slope (in per ft)

Percent grade is the drop over the run as a percentage: slope in inches per foot ÷ 12 × 100. Angle is the arctangent of slope ÷ 12. So 1/4 in per ft is 0.25 ÷ 12 = 2.08%, and an angle of 1.19°.

SlopePercentAngleFall over 10 ftOver 25 ftOver 50 ftOver 100 ft
1/16 in per ft0.52%0.30°0.63 in1.56 in3.13 in6.25 in
1/8 in per ft1.04%0.60°1.25 in3.13 in6.25 in12.5 in
1/4 in per ft2.08%1.19°2.5 in6.25 in12.5 in25 in
1/2 in per ft4.17%2.39°5 in12.5 in25 in50 in

To set a run with a level and a tape, measure the fall over a known length. On a 4 ft level, 1/4 in per ft is a 1 in drop from one end to the other, and 1/8 in per ft is 1/2 in.

If you know the depth of the pipe at the high end, add the fall to get the depth at the low end. The calculator does this when you fill in the starting depth, which helps when the drain has to meet a sewer stub or a septic inlet at a fixed height.

Minimum drain slope by pipe size

The International Plumbing Code sets the minimum slope of horizontal drainage pipe by size in Table 704.1. ICC's own code essentials book shows the same table:

Pipe sizeMinimum slopePercentFall per 10 ft
2-1/2 in or less1/4 in per ft2.08%2.5 in
3 to 6 in1/8 in per ft1.04%1.25 in
8 in or larger1/16 in per ft0.52%0.63 in

The same book notes that most horizontal drains in a building are simply run at 1/4 in per ft, and the lower slopes for 3 in and bigger pipe are there for long runs and tight depths. One exception it points out: drains into a grease interceptor stay at 1/4 in per ft or more.

Uniform Plumbing Code. Places on the UPC, much of the West, have a simpler rule in Section 708: horizontal drainage at no less than 1/4 in per ft (2%), and 1/8 in per ft (1%) allowed on pipe 4 in and larger only where 1/4 is impractical and the authority having jurisdiction approves it first. A 3 in drain at 1/8 in per ft can pass in an IPC town and fail in a UPC one.

The code and the inspector governThese are the model code minimums. The edition your jurisdiction adopted, its local amendments, and the inspector decide what passes. Check before you dig or hang pipe.

How many fixture units a drain carries at each slope

Slope also sets how much a drain can carry. The IPC's Table 710.1(1) gives the maximum drainage fixture units (DFU) for building drains and building sewers, including branches of the building drain, at four slopes:

Pipe size1/16 in per ft1/8 in per ft1/4 in per ft1/2 in per ft
1-1/2 inn/an/a33
2 inn/an/a2126
2-1/2 inn/an/a2431
3 inn/a364250
4 inn/a180216250
5 inn/a390480575
6 inn/a7008401,000
8 in1,4001,6001,9202,300
10 in2,5002,9003,5004,200
12 in3,9004,6005,6006,700

Values as printed in the 2012 IPC. A note to the table sets the smallest building drain that serves a water closet at 3 in. Horizontal fixture branches and stacks inside the building use a different table, Table 710.1(2), with lower numbers, so do not use this one for a branch under a bathroom floor.

The calculator gives a slope between two rows the lower row's capacity. A 3 in drain at 3/16 in per ft gets the 1/8 in figure, 36 DFU. Fill in the DFU on the drain from your code's fixture unit table, Table 709.1 in the IPC, and the calculator says whether it fits.

Worked examples

A 3 in building drain across a basement. 40 ft at the 1/8 in minimum: 40 × 0.125 = 5 in of fall, a 1.04% grade. At that slope it carries 36 DFU. If the house has more than that on it, run it at 1/4 in per ft (10 in of fall, 42 DFU) or go to 4 in.

A 4 in sewer to the street. 60 ft at 1/4 in per ft: 60 × 0.25 = 15 in, which is 1 ft 3 in, a 2.08% grade at 1.19°. If the pipe leaves the foundation 18 in down, it reaches the street end at 18 + 15 = 33 in. It carries 216 DFU at this slope.

A 2 in laundry drain. 12 ft at the 1/4 in minimum: 3 in of fall. At 1/8 in per ft it would fall only 1.5 in and fail the minimum for its size.

Checking a run on site. The fall measured over 20 ft is 2-1/2 in. Slope = 2.5 ÷ 20 = 0.125 in per ft, which is the minimum for 3 to 6 in pipe and too flat for 2 in. Enter it as your own slope to see the percent and the capacity.

Reading the results

The answer at the top is the total fall over your run, in inches and, past a foot, in feet and inches. Under it:

  • Code minimum: the IPC Table 704.1 slope for the pipe size you picked. If your slope is under it, the note says so.
  • Percent grade and angle: the same slope in the units a laser level, a grade rod or an engineer's plan uses.
  • Building drain capacity: the drainage fixture units the pipe carries at your slope from Table 710.1(1). If you entered the DFU on the drain, the step says whether it fits.

The table under the answer shows the same pipe at all four code slopes side by side: the percent, the fall over your run, the capacity, and whether each slope meets the minimum for the size. It is the quickest way to see what you gain by going from 1/8 to 1/4 in per ft, and what that costs in depth at the far end.

If the depth at the far end comes out deeper than the sewer stub or septic inlet you have to meet, the choices are a flatter slope (down to the minimum), a bigger pipe that is allowed a flatter slope, starting the run higher, or a pump. Work it out on paper before the trench is dug.

Too flat and too steep

Too flat is the usual failure. Water drains, but solids are left behind, and the pipe clogs. A run that sags between hangers or settles in poor backfill can hold water in a low spot, a belly, even if the two ends are at the right heights. Support the pipe on the spacing the code and the pipe maker set, and bed buried pipe on firm, even material.

Too steep comes up less often. The capacity table stops at 1/2 in per ft, and the model codes do not list steeper slopes for building drains. When a run has to drop a lot over a short distance, plumbers usually keep the horizontal part at a normal slope and make the drop with fittings. Once the pipe is at 45° or more from horizontal, the IPC treats it as vertical pipe, with its own rules.

A few other rules sit next to slope in Section 704: horizontal drainage is installed in uniform alignment at a uniform slope, pipe does not get smaller in the direction of flow, and a horizontal branch connects at least 10 pipe diameters downstream of the base of a stack (30 in for a 3 in stack, 40 in for a 4 in).

When the run is laid out, put the estimate together in Koira with the pipe, fittings, digging and labor on their own lines. The plumbing cost estimator and the plumbing labor rate calculator help with the prices.

Last checked October 8, 2026. More for your trade: how plumbers run on Koira.

FAQ

What is the minimum slope for a drain pipe?

Under the IPC, 1/4 in per ft for pipe 2-1/2 in and smaller, 1/8 in per ft for 3 to 6 in, and 1/16 in per ft for 8 in and larger. The UPC asks for 1/4 in per ft, with 1/8 allowed on 4 in and larger where the authority approves.

How much fall does a drain need over 10 feet?

At 1/4 in per ft, 2.5 in. At 1/8 in per ft, 1.25 in. Multiply the run in feet by the slope in inches per foot.

What percent is 1/4 inch per foot?

2.08%. Divide 0.25 by 12 and multiply by 100. 1/8 in per ft is 1.04% and 1/16 in per ft is 0.52%.

Can a drain pipe have too much slope?

The code capacity table stops at 1/2 in per ft, and steeper building drains are not listed. When a run has to drop a lot, keep the horizontal part at a normal slope and make the drop with fittings. At 45° or more the pipe counts as vertical.

What slope does a 4 inch sewer line need?

At least 1/8 in per ft under the IPC, which is 1.25 in every 10 ft. Many plumbers run 1/4 in per ft where depth allows, and UPC areas require it unless the authority approves 1/8.

How many fixture units can a 3 inch drain carry?

As a building drain, 36 DFU at 1/8 in per ft, 42 at 1/4 in and 50 at 1/2 in, per IPC Table 710.1(1). Horizontal branches inside the building carry less.

We know what works. Leave it to Koira.

☼⚙
Standard⚡ Turbo
● Koira did it● You by hand
Today $9,300$8,100 / $1,200
This week $25,050$18,570 / $6,480
This month $69,300$46,150 / $23,150
Money, just now
Reminded Sean Love, $1,850. Polite reminder with the pay link.
Bids, 9:44 am
Nudged Dana on the kitchen bid. Day 3 follow up. She opened it at 9:12.
Convos, 9:41 am
Texted back a missed call. Walk through booked Thu 10:00.
Drain Slope Calculator: Fall per Foot, Percent, Code Minimums | Koira