Drain Slope Calculator
This free drain slope calculator answers the question every drain run starts with: how much fall does this pipe need? The famous answer — a quarter inch per foot — is only right some of the time. Under the International Plumbing Code, pipes 3 to 6 inches may run at an eighth inch per foot; under the Uniform Plumbing Code, a quarter inch per foot is the default for every size, and the reduced slope on 4-inch-plus pipe requires your inspector's explicit approval. Which code applies is a state-by-state fact, and for a 60-foot sewer run it is the difference between 7.5 and 15 inches of drop.
Pick your pipe size and code, enter the run, and the calculator returns the minimum slope, the total fall the run consumes, and — if you enter the vertical drop you actually have available — a pass/fail on whether gravity can do this job at all. That last check is the pre-framing sanity test for basement bathrooms and long yard runs: when the required fall exceeds the available drop, the answer is an ejector pump or a re-route, not a flatter pipe.
The results also carry the capacity side of the same code table: how many drainage fixture units the pipe carries at its slope (IPC Table 710.1(1)), the 3-inch minimum for any toilet, and the counterintuitive rule that too much slope is also a defect — past roughly a quarter inch per foot, liquids outrun solids. Drain work is permitted work nearly everywhere; your inspector and adopted code edition govern. Free, no signup.
Drain Slope Calculator
How much fall does your drain need? Pick the pipe size and code — IPC and UPC genuinely disagree — and get the minimum slope, total drop over your run, and a pass/fail against the height you actually have. Free, no signup.
Drain run
Roughly half of US states follow each code lineage — IPC (International) or UPC (Uniform). Enter available drop to get a pass/fail on whether your run can make code slope.
Calculation Formulas
IPC Table 704.1. Smaller pipes need steeper slope to keep solids moving with less flow.
Example:
A 4" building sewer may run at ⅛" per foot under the IPC.
UPC 708.0 is stricter — ⅛"/ft on 4"+ pipe is allowed only with AHJ approval. Piping upstream of a grease interceptor is ¼"/ft under both codes.
Example:
The same 4" sewer needs ¼"/ft in a UPC state without written approval.
The vertical drop the run consumes — the number that decides whether a basement or long yard run can reach the sewer without an ejector.
Example:
50 ft of 4" at ⅛"/ft = 6.25" of drop.
Steeper slope carries more fixture units on the same diameter.
Example:
3" carries 36 DFU at ⅛"/ft, 42 at ¼"/ft, 50 at ½"/ft.
Standard Constants
| Constant | Value | Description |
|---|---|---|
| IPC slopes | ¼ / ⅛ / 1-16 in per ft | By diameter band (≤2½", 3–6", ≥8") — IPC Table 704.1. |
| UPC default | ¼ in per ft, all sizes | UPC 708.0; ⅛"/ft on ≥4" only with AHJ approval. |
| Toilet minimums | 3" pipe; 4" for 3+ WCs on a branch | Any drain serving a water closet is ≥3"; more than two WCs on a horizontal branch requires 4". |
| Building drain capacity | 2"=26 · 3"=42 · 4"=216 DFU | At ¼"/ft, per IPC Table 710.1(1). |
| Worked example | 50 ft × ⅛" = 6.25" | The research anchor this calculator reproduces. |
Note: All calculations include appropriate waste factors based on project complexity and material type. Results are estimates and should be verified by professionals before purchasing materials.
International Plumbing Code(IPC 704.1, Table 710.1(1))
View StandardMinimum slopes by diameter and horizontal-drain fixture-unit capacity — the ICC model code roughly half of US states adopt.
Key Requirements:
- •¼"/ft ≤2½"
- •⅛"/ft 3–6"
- •DFU capacity by size and slope
Uniform Plumbing Code(UPC 708.0)
View StandardThe IAPMO model code — stricter default slope, with the reduced-slope allowance gated on AHJ approval.
Key Requirements:
- •¼"/ft all sizes default
- •AHJ approval for ⅛"/ft on ≥4"
Trap and fixture minimums(IPC Table 709.1)
View StandardFixture DFU loads and minimum trap sizes that feed the capacity check.
Key Requirements:
- •WC = 3 DFU (1.6 gpf, current IPC)
- •Bathroom group = 5 DFU
Standards Disclaimer: Standards and codes are subject to periodic updates. Always verify current requirements with local building authorities and professional engineers before beginning construction. Links provided are for reference only.
IPC vs UPC states
The 4-inch divergence
Roughly half the states follow each lineage. For a 4" building sewer the IPC allows ⅛"/ft by right; the UPC requires ¼"/ft unless your inspector approves less — double the fall over a long run.
Regional Examples:
Flat sites and basements
When gravity runs out
When the required fall exceeds the available drop, the fix is an ejector/grinder pump or re-routing — not cheating the slope. Below-grade bathrooms discharging below the sewer always need an ejector.
Regional Examples:
Over-sloping
Too steep is also wrong
Past roughly ¼"/ft on solids-carrying drains, liquid can outrun solids. Long steep sites should step down with 45° fittings between code-slope runs rather than running the whole line steep.
Regional Examples:
Before You Build
- •Contact your local building department for specific requirements
- •Verify frost line depths, wind zones, and seismic requirements for your area
- •Check if permits are required and schedule required inspections
- •Consult with a local contractor familiar with local codes
Plan disposal before you start
Smaller jobs still produce more debris than a few trash bags can hold. Check what's allowed in a dumpster and which disposal option fits the scope.
See disposal options →
Related Calculators
French Drain Calculator
Free French drain calculator estimates gravel (yd³ & tons), pipe length, and filter fabric. Get the right trench size, slope, and #57 stone amount.
Bathroom Remodel Calculator
Combine drywall, paint, flooring, and wall-tile estimates into one bathroom materials list. Tile-vs-paint overlaps handled automatically. Free.
Water Softener Calculator
Free water softener sizing calculator — grain capacity from household size and hardness, with ppm conversion, iron correction, and WQA hardness classes.
How to Use This Calculator
- Pick your pipe size — 1½" and 2" for fixture arms and branches, 3" and 4" for toilet branches, building drains, and sewers.
- Enter the horizontal run length in feet, measured along the pipe path.
- Choose your plumbing code — IPC or UPC. Roughly half of US states follow each lineage, and for 4-inch pipe they genuinely disagree.
- Optionally enter the vertical drop you have available (from the fixture outlet down to the tie-in point) for a pass/fail check.
- Click Calculate for the minimum slope, total fall in inches, the DFU capacity at that slope, and the code notes that decide edge cases.
When the run can't make slope
If the pass/fail check fails, gravity has run out — the fixes are a sewage ejector or grinder pump (standard for basement bathrooms below the sewer), relocating the tie-in, or re-routing the run. Do not flatten the slope below code minimum: the pipe will drain, but solids will strand and clog it chronically.
Frequently Asked Questions
What is the proper slope for a drain pipe?
Under the IPC: 1/4 inch per foot for pipe 2-1/2 inches and smaller, 1/8 inch per foot for 3-to-6-inch pipe, and 1/16 inch per foot for 8-inch and larger (IPC 704.1). Under the UPC: 1/4 inch per foot for ALL sizes by default — 1/8 inch on 4-inch-plus pipe is allowed only with your inspector's approval (UPC 708.0). Which code applies depends on your state, and for a 4-inch sewer the two codes genuinely disagree.
Is 1/8 inch per foot enough for a 4 inch sewer line?
In IPC states, yes — 1/8 inch per foot is the code minimum for 3-to-6-inch pipe, and a 4-inch drain at that slope still carries 180 drainage fixture units, several times a whole house. In UPC states the default is 1/4 inch per foot and the reduced slope needs written AHJ approval. Over 60 feet that's 7.5 vs 15 inches of drop — on a flat lot, the code lineage can decide whether gravity works at all.
Can a drain have too much slope?
Yes — it's a real defect, not a bonus. Much past 1/4 inch per foot on solids-carrying drains, the liquid outruns the solids and leaves them stranded in the pipe, causing chronic clogs. On steep sites the correct design is code-slope horizontal runs stepped down with 45-degree fittings or vertical drops, not one continuously steep line. (Vertical piping is fine — solids and liquid fall together; it's the in-between slopes that strand solids.)
What size drain pipe does a toilet need?
At least 3 inches — any drain carrying a water closet must be 3-inch minimum, regardless of fixture-unit math. More than two toilets on one horizontal branch requires 4-inch. A modern 1.6-gpf toilet counts as 3 drainage fixture units under the current IPC (older references say 4 — that's a code-edition difference), and a full bathroom group is 5 DFU, which fits comfortably on a 3-inch branch.
How do I measure drain slope during installation?
A 4-foot level with a 1/2-inch block under one end reads level when the pipe is at 1/8 inch per foot; a 1-inch block gives 1/4 inch per foot. Torpedo levels with slope vials read it directly. For long runs, a laser level or string line with measured drops at each support beats chasing a bubble. Support spacing matters too — sagging between hangers creates flat spots (bellies) that hold water no matter what the overall slope says.