Pipe Slope Calculator
Enter your drain pipe's length and slope (or pick a diameter for the code-minimum slope) to get the total fall and grade percentage.
| Measure | Value |
|---|
Total fall (inches) = pipe run length (ft) × slope (inches per foot). Pick your pipe's diameter above and we'll use the minimum slope the plumbing code requires for it — or enter your own slope if you're grading steeper than the minimum.
The Formula
Pipe slope is expressed as inches of vertical drop per foot of horizontal run. Multiply that rate by the total run length to get the fall the pipe needs from its high end to its low end: fall (in) = length (ft) × slope (in/ft). The same relationship expressed as a percentage grade — useful when you're working from a laser level or a grade stake marked in percent instead of inches per foot — is grade (%) = (slope in/ft ÷ 12) × 100.
The International Plumbing Code (IPC Table 704.1) and the Uniform Plumbing Code (UPC) both set minimum slopes by pipe diameter, sized to keep wastewater moving at a self-cleaning velocity of at least 2 feet per second: horizontal drainage pipe 2½ inches and smaller needs at least ¼ inch of fall per foot, 3- to 6-inch pipe needs at least ⅛ inch per foot, and 8-inch and larger pipe needs at least 1/16 inch per foot. Those are minimums, not targets — grading steeper than the minimum is generally fine as long as you're not creating an awkward drop at a fixture connection; many plumbers avoid going much beyond about ½ inch per foot on long horizontal runs, since liquids can outpace solid waste at a steep enough slope, though that's standard trade practice rather than a numeric code limit.
Example: 25 ft Run of 4-Inch Drain Pipe
A 4-inch pipe falls in the "3 to 6 inch" code bracket, so its minimum slope is ⅛ inch per foot (0.125 in/ft). Over a 25 ft run, that's 25 × 0.125 = 3.125 inches of total fall from the high end to the low end — a little over 3⅛ inches, or about 0.26 ft. As a grade percentage, ⅛ inch per foot works out to roughly 1.04%.
Frequently Asked Questions
Can I use a steeper slope than the code minimum? Usually yes — the figures above are floors, not ceilings. The main practical limit is running out of vertical drop before you reach your connection point (a fixture, cleanout, or the main sewer line), and avoiding an unnecessarily steep grade on very long runs.
Does this apply to water supply lines too? No. This calculator and the code table it's based on cover horizontal drainage piping (waste and vent lines), which relies on gravity flow. Pressurized supply lines don't need a fall to function.
My local code lists slightly different numbers — which is right? Use your local code. The IPC and UPC are model codes that most US jurisdictions adopt, sometimes with local amendments; always confirm the figure your inspector will check against before you commit to a slope.
Limitations
This tool calculates straight-line fall over a single, uniform run — it doesn't account for direction changes, multiple branch lines joining at different points, or vertical offsets partway through the run, each of which needs its own fall calculated separately. It also doesn't replace a level check on the actual installed pipe: string lines, laser levels, or a torpedo level on a straightedge are still how you verify the real-world result matches the number here.
Related calculators
Duplex Construction Cost Calculator
Get a ballpark cost estimate for building a duplex, based on total square footage and finish quality.
Chicken Coop Size Calculator
Enter your flock size and breed mix to get the indoor coop space and outdoor run space your chickens need.
Flexible Duct Sizing Calculator
Enter your required airflow (CFM) to get the recommended flexible duct diameter.
Log Board Foot Calculator
Enter a log's small-end diameter and length to compare its estimated lumber yield under the Doyle, Scribner, and International 1/4-inch scaling rules.
Unit Price Calculator
Enter the price, quantity, and unit for two products to see which is the better deal per ounce, pound, gram, or liter, and by how much.