About the Drain Pipe Slope Calculator
IPC / UPC Code Compliance
The Drain Pipe Slope Calculator computes the required vertical elevation drop (fall), slope percentage, pitch ratio ($1:X$), and true pipe hypotenuse length for building sewers and DWV lines.
Plumbing codes enforce specific minimum gradients: 1/4" per foot (2.08%) for pipes 2-1/2" or smaller, and 1/8" per foot (1.04%) for 3" to 6" building sewers. This ensures wastewater maintains self-scouring velocity (~2 ft/sec) without stranding solids or causing siphonic trap loss.
Sizing fixture drainage units? Cross-reference with our DFU calculator or check pressurized velocities with the pipe flow rate calculator.
Code Minimum Slope Standards (IPC / UPC)
Gravity DWV Code
Proper drain slope guarantees self-scouring velocity (approx 2 ft/sec) so liquids and solids transport together without sediment buildup or siphoning trap seals.
| Pipe Diameter | Min Slope | Grade % | Ratio | Application |
| 1-1/4" to 2" | 1/4 in/ft | 2.08% | 1:48 | Sinks, Showers, Tubs |
| 2-1/2" | 1/4 in/ft | 2.08% | 1:48 | Branch Waste Lines |
| 3" to 6" | 1/8 in/ft | 1.04% | 1:96 | Building Main Drains & Sewers |
| 8"+ | 1/16 in/ft | 0.52% | 1:192 | Municipal Mains |
Dedicated Calculators by Size
Real-World Calculation Example
Scenario: Installing a 3-Inch PVC Main Building Drain (24-Foot Run)
Calculating required total elevation fall and slope percentage for a 24-foot horizontal run of 3-inch PVC drain pipe.
Horizontal Run
24 ft (288 in)
Code Min Slope
1/8 in/ft (1.04%)
Total Required Fall
3.0 inches
• Fall Calculation: Total Fall = 0.125 in/ft × 24 ft = 3.0 inches
• Slope Percentage: (3.0 in / 288 in) × 100 = 1.042%
• Hypotenuse Cut Length: L = √(288² + 3²) = 288.02 in (24.001 ft)