Skip to main content
Calcimator

Plumbing Slope Calculator

Calculate the minimum drain pipe slope and total drop needed based on pipe diameter and run length per IPC/UPC code.

About this calculator

Drain pipes need a minimum downhill slope so waste flows by gravity instead of sitting in the line. This calculator applies the IPC/UPC break at 3 inches: pipes sized 3 inches and under require 1/4 inch of drop per foot of Pipe Run Length, while anything larger only needs 1/8 inch per foot -- Pipe Diameter is the only input that changes Min Slope, since Pipe Run Length only ever multiplies that per-foot figure into a Total Drop Needed rather than changing the rate itself. That multiplication makes Pipe Diameter the dominant factor for Total Drop too: stepping from a 3 inch pipe to a 4 inch pipe cuts the required drop in half at any run length, while lengthening the run alone can only ever double or halve the drop by doubling or halving the run itself.

Slope Angle and Slope (Percent) are the same minimum slope re-expressed in degrees and percentage for use with a laser level or transit. The Recommended Slope output currently mirrors the code-minimum figure for every diameter offered here rather than adding an extra margin, so treat it as another view of the same code requirement, not a more generous target. This is a straight-line grade calculation -- it does not account for offsets, fittings, cleanouts, or vent sizing along the run.

Inputs

ft

Results

Min Slope

0.25 in/ft

Total Drop Needed5 in
Recommended Slope0.25 in/ft
Slope2.08%
Slope Angle1.19°
Drain Classification2
How to Use This Calculator
  1. Enter Pipe Diameter (inches) — common drain sizes are 1.5, 2, 3, and 4 inch.
  2. Input Pipe Run Length (ft) — the horizontal distance the drain must travel.
  3. Review Minimum Slope (in/ft) per code (typically 1/4 inch per foot for drains 3 inch and under).
  4. Check Total Drop Needed (inches) and Recommended Slope.
  5. Use Slope Degrees and Slope Percent when marking slope on a laser level.

What each input means

Pipe Diameter
Interior diameter of the drain pipe.
Pipe Run Length
Horizontal distance of the drain pipe run.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    Pipe Diameter = 2, Pipe Run Length = 20 = 2 input(s) provided
  2. Calculate Min Slope
    Min Slope
    0.25 = 0.25
  3. Calculate Total Drop Needed
    Total Drop Needed
    5 = 5
  4. Calculate Recommended Slope
    Recommended Slope
    0.25 = 0.25

Engine last updated . Checked against 3 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Why does a 4 inch pipe need less slope per foot than a 2 inch pipe?

The IPC/UPC plumbing code sets the break at 3 inches: drain pipes 3 inches and under must fall 1/4 inch per foot of run, while pipes larger than 3 inches only need 1/8 inch per foot. Larger pipes carry more volume at a given velocity, so code allows a gentler minimum grade for them.

How is Total Drop Needed calculated from Pipe Run Length?

Total Drop Needed is simply Min Slope multiplied by Pipe Run Length -- a 20 foot run at the 1/4 inch per foot minimum needs 5 inches of total fall from the fixture end to the point of connection. Doubling the run length doubles the required drop at the same Pipe Diameter.

Is the Recommended Slope always higher than the Min Slope?

Not in this calculator -- for every Pipe Diameter option offered, Recommended Slope currently comes out equal to Min Slope rather than adding a safety margin above code. Both outputs describe the same per-foot fall for the diameter you selected, so use Min Slope as your primary reference.

What is the Drain Classification number based on?

Drain Classification is set entirely by Pipe Diameter: 1.5 inches and under is classified as a fixture drain, over 1.5 up to 3 inches as a branch drain, and anything larger than 3 inches as a building drain or sewer. Pipe Run Length has no effect on this classification.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Construction & Building Trades.