How to Use This Calculator
Drain pipes must slope to allow gravity to move waste and water downhill. Too flat, and waste accumulates; too steep, and water separates from solids, leaving buildup in the line. The International Plumbing Code (IPC) specifies minimum slopes by pipe diameter. For most residential drains (1.5 to 4 inches), the target is 1/4 inch drop per foot of run—a gentle downslope that keeps velocity reasonable and prevents sediment from settling.
Enter the pipe diameter (in inches) and the horizontal run distance (in feet), and the calculator shows the minimum and recommended fall (vertical drop in inches) needed to meet code. Example: a 4-inch sanitary drain 40 feet long needs at minimum 40 × 0.25 = 10 inches of fall. If you can achieve 1/2 inch per foot (steeper slope), the line drains faster and resists clogging better.
This calculation is essential for rough-in work. Mark the slope on your framing or floor before you run pipe. A 2-inch drain that’s level or slopes uphill will fail inspection and create plumbing problems for years.
Formula
Required Fall: Fall (inches) = run (feet) × slope (inches per foot)
Where:
- Run is the horizontal distance the pipe travels
- Slope is the vertical drop per foot of horizontal run
Common IPC Minimum Slopes by Diameter:
- 1.5” drain: 1/4” per foot (0.25”)
- 2” drain: 1/4” per foot (0.25”)
- 3” drain: 1/4” per foot (0.25”)
- 4” drain: 1/8” per foot (0.125”) minimum; 1/4” preferred
- 6” and larger: 1/8” per foot (0.125”)
Velocity Check (for adequate scouring): Minimum velocity ≈ 2 feet per second (fps) This naturally occurs on residential drains sloped at the above rates.
When to Use This
Before you run any drain line. This is non-negotiable. I’ve seen new construction with perfectly sloped drains (inspector happy) and old additions where someone ran drains level or uphill (every toilet backs up every winter). Get the slope right at rough-in, and you’ve solved half the plumbing problems.
Basement bathrooms are tricky—if the main stack is upstairs, you might be running a long horizontal line at a low slope under the basement ceiling, then up to the stack. Calculate fall for each section. A 50-foot drain line at 1/4 inch per foot drops 12.5 inches—that’s roughly one floor height. Plan accordingly.
Code References
- IPC Section 422: Slope of drains and drainage connections
- IPC Table 422.1: Minimum slope requirements by pipe diameter (1/4” per foot standard for most residential, 1/8” for larger pipes)
- IPC Section 305.1 and Section 305.4: Velocity and carrying capacity; minimum velocity ensures solids don’t settle and clog
- Local amendments: Some jurisdictions are stricter; always check with your AHJ
Frequently Asked Questions
Can I slope a drain line uphill?
No. Water always flows downhill (or level at best). Sloping uphill causes backup, traps waste, and causes clogs. If a drain line absolutely must rise to reach the main stack, use a grinder pump or vent-Tee for a sump. But gravity alone requires downslope.
What if I can’t achieve the minimum slope? The distance is too long.
Install a cleanout or vent-Tee partway, breaking the run into shorter segments. Each segment is then easier to slope. Or use a pump or lift station (for a half-bath or floor drain) to move water uphill to the main drain. Never run a drain line that’s level or uphill with hopes that velocity will overcome it—it won’t.
What’s the difference between minimum and recommended slope?
Minimum (1/4” per foot for 2–4” drains) meets code and generally works fine for residential use. Recommended (steeper, if space allows) drains faster and resists clogs better. If you have room, slope at 1/2” per foot—that’s even safer. The steeper slope doesn’t violate code; it just uses more vertical space.
How do I measure and set slope during rough-in?
Use a long level (4–6 feet) and a shim. Place the level on top of the pipe. At one end, shim under the pipe until the level bubble shows a slight tilt (not a bubble at center, but off-center). Measure the shim thickness—that’s your slope over the length of the level. For example, a 1/4-inch shim under a 4-foot level gives roughly 1/4” per 4 feet, or 0.75” per 12 feet (close to 1/4” per foot).
Alternatively, use a slope meter or transit. Many plumbers mark the floor with chalk every foot, then measure drop from a straight reference line to verify slope.
Can I use PVC cleanout caps at bends instead of sloping the entire line?
No. Cleanout caps are access points, not substitutes for slope. The drain line itself must slope continuously. You can install cleanouts at bends or changes in direction for maintenance, but the pipe between cleanouts must still meet slope requirements.