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
Results
Min Slope
0.25 in/ft
How to Use This Calculator
- Enter Pipe Diameter (inches) — common drain sizes are 1.5, 2, 3, and 4 inch.
- Input Pipe Run Length (ft) — the horizontal distance the drain must travel.
- Review Minimum Slope (in/ft) per code (typically 1/4 inch per foot for drains 3 inch and under).
- Check Total Drop Needed (inches) and Recommended Slope.
- 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
- Identify Input ParametersPipe Diameter = 2, Pipe Run Length = 20 = 2 input(s) provided
- Calculate Min SlopeMin Slope0.25 = 0.25
- Calculate Total Drop NeededTotal Drop Needed5 = 5
- Calculate Recommended SlopeRecommended Slope0.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.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Pipe Flow Rate Calculator
Calculate water flow rate and velocity based on pipe diameter, pressure, length, and material, plus friction loss based on pressure and length.
Electrical & PlumbingWater Pressure Calculator
Calculate static pressure from elevation, friction pressure loss, and resulting dynamic pressure at the outlet.
Plumbing ResidentialKitchen Plumbing Calculator
Calculate supply and DWV pipe quantities, fixture units, and material costs for kitchen plumbing rough-in.
PlumbingDrainage Fixture Unit Calculator
Calculate total drainage fixture units and determine required drain, vent, and stack pipe sizes per plumbing code.
Commercial PlumbingCommercial Drain Sizing Calculator
Size commercial drain, vent, and cleanout requirements based on fixture units and building configuration.
More in Construction & Building Trades.