Minimum drain slope by pipe size under the IPC, IRC or UPC, the total drop in inches over your run, the slope from a measured drop, and flow velocity and capacity from Manning.
Pipe Slope Calculator - Drain Fall per Foot, IPC and UPC
Minimum drain slope by pipe size under the IPC, IRC or UPC, the total drop in inches over your run, the slope from a measured drop, and flow velocity and capacity from Manning.
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
Drain pipe slope by code, and the drop it adds up to
Pick the code, the pipe size and the length of the run, and this pipe slope calculator returns the minimum fall per foot and the total drop in inches. A 4-inch building drain running 60 feet needs 1/8 inch per foot under the IPC, which is 7-1/2 inches of drop; under the UPC the same run needs 1/4 inch per foot and 15 inches. It also works backwards: measure the drop you actually have and it tells you the slope and whether that passes.
Next to the code numbers you get the flow velocity and the capacity in gallons per minute from the Manning equation, plus a table with the minimum slope for every size from 1-1/4 to 12 inches over your run.
What goes in the seven fields
- Plumbing code - IPC / IRC (most states), UPC (California, Washington, Oregon and other western states), and two special cases: a drain feeding a grease interceptor under the IPC, and the reduced UPC slope that needs approval from the inspector.
- Pipe size - nominal diameter from 1-1/4 to 12 inches. Bathroom sinks are usually 1-1/4 or 1-1/2 in., showers and kitchen sinks 2 in., toilets and building drains 3 or 4 in.
- Run length - horizontal distance in feet from the start of the run to the end. Use decimals for inches: 20 ft 6 in. is 20.5.
- Pipe material - PVC / ABS, cast iron, vitrified clay or concrete. It changes only the velocity and capacity, not the code minimum.
- What to calculate - the code minimum, the drop for a slope you choose, or the slope from a drop you measured.
- Slope - inches per foot, shown only for the second mode: 1/4 is 0.25, 1/8 is 0.125, 1/16 is 0.0625.
- Measured drop - inches between the invert at the high end and the invert at the low end, shown only for the third mode.
Minimum slope of horizontal drainage pipe
The IPC (Table 704.1) and the IRC (Table P3005.3) use the same three steps. The UPC (Section 708.1) starts from 1/4 inch per foot for every size and allows 1/8 inch only for 4-inch and larger pipe, when the inspector agrees that 1/4 is impractical. Velocity and capacity in the table are for PVC flowing half full.
| Pipe size | IPC / IRC minimum | UPC minimum | Drop per 10 ft (IPC) | Velocity / capacity, PVC |
|---|---|---|---|---|
| 1-1/2 in. | 1/4 in./ft (2.08%) | 1/4 in./ft | 2-1/2 in. | 2.13 ft/s, 5.9 gpm |
| 2 in. | 1/4 in./ft (2.08%) | 1/4 in./ft | 2-1/2 in. | 2.58 ft/s, 12.6 gpm |
| 3 in. | 1/8 in./ft (1.04%) | 1/4 in./ft | 1-1/4 in. | 2.39 ft/s, 26.3 gpm |
| 4 in. | 1/8 in./ft (1.04%) | 1/4, or 1/8 if approved | 1-1/4 in. | 2.89 ft/s, 56.7 gpm |
| 6 in. | 1/8 in./ft (1.04%) | 1/4, or 1/8 if approved | 1-1/4 in. | 3.79 ft/s, 167.1 gpm |
| 8 in. and larger | 1/16 in./ft (0.52%) | 1/4, or 1/8 if approved | 5/8 in. | 3.25 ft/s, 254.4 gpm (8 in.) |
One exception sits outside the table: under the IPC a horizontal drain discharging to a grease interceptor needs at least 1/4 inch per foot, whatever its size. The calculator has it as a separate code option.
Nine runs through the calculator
Every card below is a result the calculator returned for those inputs, PVC unless the card says otherwise.
1-1/2 in., 6 ft, IPC: 1/4 in./ft, drop 1-1/2 in., 2.13 ft/s.
2 in., 8 ft, IPC: 1/4 in./ft, drop 2 in., 2.58 ft/s.
2 in., 12 ft, IPC: 1/4 in./ft, drop 3 in.
40 ft, IPC: 1/8 in./ft, drop 5 in., 2.39 ft/s.
3 in., 40 ft, slope 0.25: drop 10 in., velocity up to 3.38 ft/s.
60 ft: IPC 7-1/2 in. at 1/8, UPC 1 ft 3 in. at 1/4 (4.09 ft/s).
4 in., 80 ft, drop 8 in.: 0.100 in./ft (0.83%), below the 1/8 minimum, which needs 10 in.
4 in. cast iron, 25 ft, IPC grease option: 1/4 in./ft, drop 6-1/4 in.
100 ft, IPC: 1/16 in./ft, drop 6-1/4 in., 2.17 ft/s.
How the velocity and capacity are estimated
The calculator uses the Manning equation, v = (1.486 / n) × R2/3 × S1/2, with v in feet per second, R the hydraulic radius in feet and S the slope in feet per foot. For a round pipe flowing half full R is one quarter of the diameter, exactly as when it flows full, so the velocity is the same in both states. Capacity is the velocity times the wetted area at half full, converted to gallons per minute.
The roughness coefficient n is where the material comes in. For a 4-inch pipe at 1/8 inch per foot the velocity comes out like this:
| Material | Manning n used | Velocity, 4 in. at 1/8 |
|---|---|---|
| PVC / ABS | 0.010 | 2.89 ft/s |
| Cast iron | 0.013 | 2.23 ft/s |
| Vitrified clay | 0.013 | 2.23 ft/s |
| Concrete | 0.015 | 1.93 ft/s |
Sewer design standards aim for at least 2 ft/s flowing full, the speed at which solids keep moving, and ask for erosion protection above 15 ft/s. The calculator flags both. Small branches at the code minimum often run a little below 2 ft/s; the code allows it, and more slope is the usual cure if a line keeps clogging.
Where a correct slope still goes wrong on site
Drain slope questions
Related tools
Gutter Size Calculator
5 or 6 inch gutters and the number of downspouts from roof area, pitch and rainfall - See the calculator
Linear Interpolation Calculator
A value between two known points or two rows of a table, worked backwards too - See the calculator
Plumbing Pipe Calculator
Pipe footage, fittings, diameter and material cost for water, drain and gas lines - See the calculator
Roof Pitch Calculator
Rise over run, degrees and percent for a roof, the same slope arithmetic on a bigger scale - See the calculator
Concrete Calculator
Cubic yards and bags for the slab the drain runs under - See the calculator
Rainwater Harvesting Calculator
Gallons a roof collects from a given rainfall - See the calculator
Water Usage Calculator
How many gallons a household sends down the drains each day - See the calculator
House Building Cost Calculator
The whole build budget, plumbing included - See the calculator