Drain Pipe Slope Calculator

Figure the minimum slope and total fall for a horizontal drain run straight from IPC Table 704.1 — and check whether the drop you can actually hit passes code.

IPC: ¼″ per ft for 2½″ and smaller
End of run to end of run, level
Elevation change you can hit
Min slope required¼″ per ft
Slope as % / angle2.08% · 1.2°
Drop per 10 ft2.5″
Min total drop over 10 ft2.5″

Set the pipe to one uniform slope for the whole run — sags and humps trap solids even when the average is fine. If your drop check fails, re-route, re-grade, or use a smaller pipe size where the run allows it.

Values are IPC Table 704.1 minimums (2021 edition; identical in 2018 and 2024): ¼″ per ft for 2½″ and smaller, ⅛″ per ft for 3″–6″, 1/16″ per ft for 8″ and larger. UPC jurisdictions use a slightly different cutoff (¼″ on 2″ and smaller, ⅛″ on 3″ and larger) — confirm the code your AHJ adopts. Steeper than minimum is fine and usually better; just keep it uniform.

What slope means, and why drains need it

Slope — fall, grade or pitch — is how much lower the far end of a horizontal drain run sits than the end where the waste enters. Everything in the pipe reaches the building sewer or septic tank under gravity alone, and a gravity drain has no pump, so the pipe has to fall continuously in the direction of flow.

Slope gives the waste enough velocity to keep moving, keeps solids suspended instead of settling on the pipe floor, and keeps the pipe bottom swept clean.

Inches per foot, percent grade, and degrees

Inches per foot, percent grade and degrees are one slope read three ways.

Percent grade = inches per foot ÷ 12 × 100. Divide by 12 to turn inches of fall per foot into a plain ratio, then multiply by 100 for a percentage.

Degrees = arctan (inches per foot ÷ 12) — the angle of that same rise-over-run triangle.

The trap runs the other way: 2% is not 2 inches per foot — it is 0.02 × 12 = 0.24 in per foot, a shade under ¼″.

Check your units before you grade: a plan calling for 1% graded at 1 inch per foot is more than eight times too steep.

IPC 2021 Table 704.1 — the minimum slope by pipe size

The IPC sets the minimum slope by pipe diameter, and the number drops as the pipe gets bigger: a larger pipe carries the same flow at lower velocity, so the code lets it run flatter.

The same table appears in the 2018, 2021 and 2024 editions. What changes with diameter is the size of the miss: a 2″ branch at 1/16″ per foot has a quarter of the ¼″ it needs (0.0625 ÷ 0.25 = 0.25), and a 4″ sewer at 1/16″ instead of ⅛″ is half the slope — 2.5″ short over 40 ft.

IPC and UPC — the same job, a different cutoff

Not every state adopts the IPC. Where the Uniform Plumbing Code governs, the cutoff falls at a different diameter: ¼″ per foot on 2″ and smaller, and ⅛″ per foot on 3″ and larger.

On a 3″ or 4″ main drain both books say ⅛″ per foot. On a 2½″ line they differ by a factor of two — the IPC wants ¼″ per foot, the UPC allows ⅛″. Confirm which code your authority having jurisdiction has adopted.

Running slope vs. maximum slope — why too much fall is a problem

Table 704.1 gives minimums only. Can you go steeper? Yes — the code does not cap slope, and short branches are routinely run steeper. Steeper is not automatically better, though:

Keep the grade uniform end to end, and don't go steeper than the table without a reason.

Worked example — 4″ building drain, 40 ft run

A 4″ drain is in the 3″–6″ band, so the minimum is ⅛″ per foot. Say the run measures 40 ft from the last fitting to where it leaves the building: fall = 0.125 × 40 = 5.00″. In feet, 5 ÷ 12 = 0.4167, rounded to 0.42 ft.

As a grade, 0.125 ÷ 12 = 0.01042, or 1.04%. As an angle, arctan(0.01042) ≈ 0.6°. Per 10 ft of run, 1¼″ of drop.

Now the inverts — the inside bottom of the pipe, not the top. Set the upstream invert at 100.42 ft, subtract 0.42 ft, and the downstream invert lands at 100.00 ft. It has to sit above the sewer invert it connects to, with cover over the pipe.

Shorten the run and only the total fall changes: at 15 ft, 0.125 × 15 = 1.875″ (1⅞″). The slope per foot never changes with length — you pick a pipe size, and the length sizes the drop.

Common mistakes

Drain pipe slope FAQ

What is the minimum slope for a drain pipe?

IPC Table 704.1 sets the minimum by diameter: ¼″ per foot for 2½″ and smaller, ⅛″ per foot for 3″–6″, 1/16″ per foot for 8″ and larger. UPC jurisdictions cut off differently — ¼″ on 2″ and smaller, ⅛″ on 3″ and larger — so confirm the code your AHJ has adopted.

How do I convert inches per foot to percent grade?

Divide the inches per foot by 12, then multiply by 100: ¼″ per foot is 0.25 ÷ 12 = 0.02083, or 2.08%. As an angle that is arctan(0.02083) ≈ 1.2°. For comparison, ⅛″ per foot is 1.04% (about 0.6°) and 1/16″ per foot is 0.52%.

How much fall does a 4″ drain need over 40 feet?

A 4″ drain is in the 3″–6″ band, so the minimum is ⅛″ per foot: 0.125 × 40 ft = 5″ of fall, or 0.42 ft. With the upstream invert at 100.42 ft, the downstream invert sits at 100.00 ft.

Is it OK to slope a drain steeper than the code minimum?

Yes. Table 704.1 sets a minimum, not a maximum, and short branches are often run steeper without a problem. Keep it uniform — every extra inch of fall comes out of the downstream invert, the depth of bury, or the elevation you are connecting to.

Related calculators and guides

Storm and sanitary lines share drawings with footings and slabs: the concrete slab volume guide and the concrete calculator cover the pour side, and the deck footing calculator sizes supports when a drain runs to a deck.