Drain Pipe Slope Calculator
Calculates the required vertical drop for a drain pipe based on its length and diameter to ensure proper self-cleaning flow. Use it when roughing in bathroom, kitchen, or floor drains to meet IPC and UPC plumbing code requirements.
Last updated: September 2026
Total Fall Required
2.5 inches
Formula below · 1 source (iccsafe.org) · Updated Sep 2026
Compare with similar
About this calculator
Drain pipes rely on gravity to move wastewater, so a horizontal drain must slope downward enough to keep solids moving with the liquid. The International Residential Code (IRC Table P3005.3) and International Plumbing Code (IPC Table 704.1) set the minimum slope by pipe size: 1/4 inch per foot for pipes 2-1/2 inches and smaller, and 1/8 inch per foot for 3- to 6-inch pipes. The formula used here is: Drop (inches) = pipeLength × (pipeDiameter ≤ 2.5 ? 0.25 : 0.125). These are minimums. Many plumbers still run 3-inch lines at 1/4 inch per foot, which is also compliant. Too little slope lets solids settle and clog the pipe; very steep runs (generally over 1/2 inch per foot on long horizontal runs) can let the liquid outrun the solids. Always check your local code, since the UPC and some jurisdictions differ.
How to use
Example (the defaults): a 4-inch drain, 20 feet long: 20 × 1/8 = 2.5 inches of fall. Example 1: a 2-inch drain pipe, 10 feet long: Drop = 10 × 0.25 = 2.5 inches. The pipe outlet must be at least 2.5 inches lower than the inlet. In practice, you mark the high end, measure along the pipe run, and set the low end at least the calculated drop below the high end. Steeper is allowed (for example 1/4 inch per foot on a 3- or 4-inch line), so the result is the minimum fall.
Frequently asked questions
What is the correct slope for a 4-inch drain pipe per plumbing code?
The IPC and IRC require a minimum slope of 1/8 inch per foot (approximately 1%) for 3- to 6-inch horizontal drain pipes, including 4-inch. This means for every foot of horizontal run, the pipe must drop at least 1/8 inch. Over a 20-foot run, that equals a 2.5-inch total drop. The lower slope is acceptable for larger pipes because their greater cross-section maintains adequate flow velocity even at shallower grades, and excessive slope in large pipes can cause liquids to separate from solids.
Why does too much slope on a drain pipe cause problems?
Very steep slopes (more than about 1/2 inch per foot on long horizontal runs) are discouraged because the water can run ahead of the solids, leaving them stranded in the pipe where they build up into clogs. Code sets minimum slopes, and some local codes and manufacturers also limit the maximum. Where a drain must drop a long way, plumbers usually run it at a normal slope and make the drop with 45-degree fittings or a vertical section rather than one steep run. Steep runs also make it harder to keep enough soil cover over buried pipe.
How do I measure and set the correct slope when installing drain pipes?
The easiest method is to use a level with a slope indicator or a digital level app: set the level on top of the pipe and adjust until you read the target slope (e.g., 1/4 in/ft = roughly 2%). For longer runs, calculate the total drop using the formula, then use a string line and tape measure — snap a level chalk line at the starting height, then measure down the calculated drop at the far end and set your pipe support there. Laser levels and pipe lasers are common on professional job sites for accuracy over long runs. Always check slope before backfilling or covering the pipe.
Related calculators
Sources & references
Think a result is wrong? Report a problem with this calculator.