Drain Pipe Slope Calculator — Grade, Fall & Code Minimum
On this page
Calculate
Imperial uses feet for run length, inches for fall and slope. Metric uses meters for run, mm for fall, and shows slope in mm/m as the primary format. Switching converts entered values — it does not reinterpret them.
Enter a run length and a slope to get the fall, enter a run and a fall to get the slope, or just convert a slope between units.
Choose the slope unit you want to enter. The tool converts internally. Reference: 1/4 in/ft = 2.08% = 1 to 48 = 1.19° = 20.83 mm/m. 1/8 in/ft = 1.04% = 1 to 96 = 0.60° = 10.42 mm/m.
The grade of the drain. Enter it in the unit selected above. A quarter inch per foot is about 2 percent; an eighth inch per foot is about 1 percent.
The horizontal length of the drain run, from the upstream point to the connection. Measure the horizontal distance, not the pipe length along the slope.
The drain size. The code minimum slope depends on the size, and larger pipes need less slope, not more. Leave blank to see slope conversions without a code check.
IPC and UPC differ on slope minimums. IPC allows shallower slopes on larger pipes. UPC starts at 1/4 in/ft for all sizes and lets 4 in and larger drop to 1/8 in/ft only with AHJ approval. Choose the code your jurisdiction enforces.
Piping upstream of a grease interceptor needs at least 1/4 in/ft regardless of pipe size. When on, the effective minimum becomes the greater of the code minimum and 1/4 in/ft.
Optional. Sets the Manning roughness for the full-bore velocity indicator. PVC is smooth (n 0.010); cast iron and concrete are rougher (n 0.013). The velocity indicator is a full-bore estimate — not the design flow velocity.
What to Look at First
Code status (COMPLIANT / MARGINAL / BELOW MINIMUM): this is the primary result. It compares your slope to the IPC or UPC minimum for the pipe diameter you selected. Read the status badge and the code minimum shown for your diameter.
Fall calculation: the result shows the vertical drop over the run. For Slope to Fall mode, fall = run times slope. For Fall to Slope mode, slope = fall divided by run. Both directions use the same formula.
Practical Maximum Advisory: shown separately from the code status. A slope above 1/2 in/ft may strand solids on longer runs. This advisory appears even when the slope is code-compliant — the two checks are independent.
Slope conversions: always shown. Whether or not you entered a diameter, the tool always converts your slope between in/ft, percent, ratio, degrees, and mm/m.
How to Use This Calculator
Choose your unit system using the calculator's own selector (US or Metric). Every field, label, and result follows that selector — switching the global site header does not override it.
Choose the mode: Slope to Fall (enter slope and run, get the fall), Fall to Slope (enter fall and run, get the slope), or Convert Slope (enter a slope in any unit, get all conversions).
For Slope to Fall: enter the run length and the slope. For Fall to Slope: enter the run length and the fall. For Convert: enter the slope in any unit.
To check the code minimum, select the pipe diameter and the code (IPC or UPC). For UPC on 4 inch and larger pipe, toggle UPC reduced slope approved if the authority having jurisdiction has approved the reduction.
If the run is upstream of a grease interceptor, turn that on. The minimum rises to the greater of the code minimum and 1/4 in/ft.
Optionally select a pipe material to see the full-bore Manning velocity indicator alongside the result.
The diameter is an input, not an output. This tool checks whether a known pipe size has enough slope. It does not pick the pipe size from the fixture load — that is the Pipe Slope Calculator and Sanitary Drain Pipe Sizing Calculator.
Inputs & Outputs
Inputs
Outputs
Formula
This calculator uses engineering-grade formulas powered by math.js to ensure accurate results.
[{"heading":"Drain Pipe Slope Formula","body":"The tool computes the fall, converts the slope, and checks the code. Imperial forms shown; metric inputs run through the same relations in SI-consistent units.\n\n\nUS units: length in feet, slope in inch per foot, fall in inches.\n\n1. Fall from slope\n fall_in = run_length_ft × slope_in_per_ft\n\n2. Slope from fall\n slope_in_per_ft = fall_in / run_length_ft\n\n3. Slope conversions\n percent = (slope_in_per_ft / 12) × 100\n ratio = 12 / slope_in_per_ft (as 1 to N; slope > 0)\n degrees = arctangent(slope_in_per_ft / 12), in degrees\n mm_per_m = (slope_in_per_ft / 12) × 1000\n (1 in/ft = 8.33% = 83.33 mm/m)\n\n4. Code minimum by diameter (IPC Table 704.1)\n diameter ≤ 2.5 in : 1/4 in/ft (2.08%)\n diameter 3–6 in : 1/8 in/ft (1.04%)\n diameter ≥ 8 in : 1/16 in/ft (0.52%)\n UPC: 1/4 in/ft for all; 4 in and larger may use 1/8 in/ft ONLY with approval.\n\n5. Grease interceptor rule\n effective_min = max(code_minimum, 1/4 in/ft)\n\n6. Practical maximum (advisory, separate from the code check)\n max_slope = 1/2 in/ft (4.17%)\n"},{"heading":"Minimum Drain Pipe Slope by Size","body":"The minimum slope is not a single number. It depends on the pipe size, and it drops as the pipe grows, because a larger pipe reaches the self-cleansing velocity at a shallower grade. Under the IPC (Table 704.1):\n\n| Pipe diameter | IPC minimum slope | Grade |\n|---|---|---|\n| 2.5 inch and smaller | 1/4 in/ft | 2.08% |\n| 3 to 6 inch | 1/8 in/ft | 1.04% |\n| 8 inch and larger | 1/16 in/ft | 0.52% |\n\nSo a 2 inch fixture drain needs a quarter inch per foot, but a 4 inch building drain needs only an eighth, and an 8 inch sewer needs only a sixteenth. Knowing this saves unnecessary drop on a long run through a basement or crawl space. The UPC is stricter by default, a quarter inch per foot for every size, and only allows 4 inch and larger to drop to an eighth where the local authority approves it."},{"heading":"Drain Pipe Fall Calculator","body":"The fall, also called the drop, is the vertical distance the drain falls over its run. It is the run length times the slope, so the math is quick once you know the two numbers. A 25 foot run at a quarter inch per foot drops 25 times 0.25, which is 6.25 inches. The same run at an eighth inch per foot drops 3.13 inches. Over a 100 foot run, an eighth inch per foot is 12.5 inches of drop.\n\nMeasure the horizontal run, not the length of pipe along the slope, since the slope is defined per horizontal foot. If you already know the available drop, enter the run and the fall and the tool returns the slope, so you can see whether the elevation you have is enough for the pipe size."},{"heading":"Drain Slope Conversion Table","body":"Slope shows up in several units. The key equivalents:\n\n| Inch per foot | Percent | Ratio | Degrees | mm per m |\n|---|---|---|---|---|\n| 1/4 in/ft | 2.08% | 1 to 48 | 1.19° | 20.83 |\n| 1/8 in/ft | 1.04% | 1 to 96 | 0.60° | 10.42 |\n| 1/16 in/ft | 0.52% | 1 to 192 | 0.30° | 5.21 |\n| 1/2 in/ft | 4.17% | 1 to 24 | 2.39° | 41.67 |\n\nTo convert inch per foot to percent, divide by 12 and multiply by 100. For the ratio, divide 12 by the slope in inch per foot. For degrees, take the arctangent of the slope over 12. For mm per m, divide by 12 and multiply by 1000."},{"heading":"IPC vs UPC Drain Slope","body":"The two model codes treat slope differently. The IPC lets the minimum drop as the pipe grows: a quarter inch per foot for 2.5 inch and smaller, an eighth for 3 to 6 inch, and a sixteenth for 8 inch and larger. The UPC is stricter by default, a quarter inch per foot for all horizontal drainage, and it only allows 4 inch and larger pipe to drop to an eighth inch per foot where the authority having jurisdiction approves the reduction.\n\nThe practical result is that the same pipe can be compliant under one code and not the other. A 3 inch drain at an eighth inch per foot meets the IPC but falls short of the UPC default of a quarter. Always choose the code your jurisdiction enforces, and confirm any local amendments."},{"heading":"Maximum Drain Pipe Slope","body":"A drain can be too steep. The common practical maximum is half an inch per foot. Above that, the water can run faster than the solids it carries, so the solids fall behind and strand, which causes the same clogging as too little slope. This is why steep slopes are treated as a practical design concern rather than a free pass.\n\nThe maximum is an advisory, not a hard code number in the same sense as the minimum. Some codes address steep runs through offset and cleanout provisions rather than a single ceiling. The calculator reports the maximum as a separate line from the code minimum check, so a steep run shows as an advisory while the code minimum result stands on its own."},{"heading":"Grease Interceptor Drain Slope","body":"Piping upstream of a grease interceptor is a special case. It needs at least a quarter inch per foot regardless of pipe size, because grease is far more likely to settle and build up than ordinary waste, so the higher velocity of the steeper grade is required.\n\nFor example, an 8 inch drain would normally take a sixteenth inch per foot under the IPC, but if it is upstream of a grease interceptor the minimum rises to a quarter inch per foot. Over a 100 foot run that changes the required fall from 6.25 inches to 25 inches. The calculator applies the rule as the greater of the code minimum and a quarter inch per foot whenever the grease interceptor option is on."},{"heading":"What is Drain Pipe Slope?","body":"Drain pipe slope, also called grade, pitch, or fall, is the vertical drop of a horizontal drain per unit of horizontal length. In US practice it is usually given in inches of fall per foot of run, or as a percent. A quarter inch per foot is a 2.08 percent grade, an eighth inch per foot is 1.04 percent, and a sixteenth is 0.52 percent.\n\nSlope matters because gravity has to move both the water and the solids it carries. Too little slope and the water crawls, letting solids settle and build up into clogs. Too much slope can let water outrun solids, especially on longer horizontal runs. The sweet spot is a grade that keeps the flow near the self-cleansing velocity of about 2 feet per second. The counterintuitive part is that a larger pipe reaches that velocity at a shallower grade, so the code minimum drops as the diameter grows."},{"heading":"Key Facts","body":"- Drain slope is the vertical drop per unit of horizontal run, given in in/ft, percent, ratio, degrees, or mm per m.\n- The fall is the run length times the slope: a 25 foot run at 1/4 in/ft drops about 6 inches.\n- The code minimum depends on the pipe size, and larger pipes need less slope, not more.\n- IPC minimums: 2.5 in and smaller need 1/4 in/ft; 3 to 6 in need 1/8 in/ft; 8 in and larger need 1/16 in/ft.\n- IPC and UPC differ. UPC starts at 1/4 in/ft for all sizes and lets 4 in and larger drop to 1/8 in/ft only with approval.\n- The practical maximum is 1/2 in/ft, above which liquid can outrun solids. It is an advisory, reported separately from the code minimum.\n- Piping upstream of a grease interceptor needs at least 1/4 in/ft regardless of size.\n- 1/4 in/ft = 2.08% = 1 to 48 = 1.19 degrees = 20.83 mm/m.\n- The pipe diameter must already be known. This tool checks the slope for that diameter; it does not size the pipe from the fixture load."},{"heading":"Common Mistakes","body":"- Assuming every drain needs 1/4 in/ft. Under the IPC that applies to 2.5 in and smaller; 3 to 6 in can use 1/8 in/ft, and 8 in and larger a sixteenth.\n- Thinking larger pipes need more slope. They need less, because a larger pipe reaches the self-cleansing velocity at a shallower grade.\n- Using IPC minimums under a UPC jurisdiction. UPC starts at 1/4 in/ft and only allows the reduction on 4 in and larger with approval.\n- Sloping a drain too steeply. Above 1/2 in/ft, water can outrun solids and strand them — the same clogging problem as too little slope.\n- Forgetting the grease interceptor rule. Piping upstream of a grease interceptor needs at least 1/4 in/ft regardless of size.\n- Treating an average slope as compliant when the run has bellies or sags. The grade must be uniform along the whole run.\n- Confusing this with pipe sizing. This checks the slope for a known diameter; it does not pick the diameter from the fixture load.\n- Losing the grade on a long run. A 100 foot run at minimum grade needs survey-level precision."},{"heading":"Limitations","body":"What this calculator does: converts slope between in/ft, percent, ratio, degrees, and mm per m; computes the fall from a run and slope, or the slope from a fall and run; checks the slope against the IPC or UPC minimum for the pipe size, with the grease-interceptor rule, and gives a separate steep-run advisory.\n\nWhat this calculator does not do: size the pipe diameter from the fixture load; count drainage fixture units; compute the actual self-cleansing velocity at the design flow (the velocity shown is a full-bore estimate only); check trap arm length, vent distance, or hanger spacing; handle storm drainage or pumped systems.\n\nNotes: the code minimum is the enforceable check. Below it may not maintain the self-cleansing velocity. The 1/2 in/ft maximum is a practical advisory, reported separately from the code check. The run must be uniform, with no bellies, sags, or reverse grade. Confirm the local code and any amendments."},{"heading":"Units","body":"The calculator works in either US or metric units, set by its own selector.\n\n| Quantity | US / Imperial | Metric |\n|---|---|---|\n| Run length | ft | m |\n| Slope | in/ft, %, ratio, degrees | %, ratio, degrees, mm/m |\n| Fall (drop) | in | mm |\n| Velocity | ft/s | m/s |\n\nReference: 1 in/ft = 8.33% = 83.33 mm/m. 1/4 in/ft = 2.08%, 20.83 mm/m, 1 to 48, 1.19°. 1/8 in/ft = 1.04%, 10.42 mm/m. 1/16 in/ft = 0.52%, 5.21 mm/m. Switching the unit system converts the values you entered — it does not reinterpret them."}]
Example Calculation
Example 1 — Slope to Fall, 3 in IPC, 25 ft run at 1/8 in/ft: fall = 25 × 0.125 = 3.13 in (79 mm). At exactly 1/8 in/ft the verdict is MARGINAL — the slope meets the IPC minimum exactly.
Example 2 — Same pipe, UPC: UPC minimum for 3 in is 1/4 in/ft. Fall = 25 × 0.25 = 6.25 in (159 mm). Same pipe, same run — UPC needs twice the drop.
Example 3 — Fall to Slope: 6 in drop over 25 ft run → slope = 6/25 = 0.24 in/ft (2.00%, 1 to 50). COMPLIANT under IPC (above 1/8 in/ft); BELOW MINIMUM under UPC (below 1/4 in/ft).
Example 4 — Grease interceptor: 8 in IPC drain, 100 ft run, grease interceptor upstream. Normal IPC minimum for 8 in is 1/16 in/ft, but the grease rule raises it to 1/4 in/ft. Fall = 100 × 0.25 = 25 in — not 6.25 in.
Standards & References
- {"name":"IPC Table 704.1","description":"Slope of Horizontal Drainage Piping — ICC International Plumbing Code","url":"https://codes.iccsafe.org/s/IPC2021P1/chapter-7-sanitary-drainage/IPC2021P1-Ch07-Sec704.1"}
- {"name":"UPC Section 708.0","description":"Grade of Horizontal Drainage Piping — IAPMO Uniform Plumbing Code","url":"https://up.codes/s/slope-of-horizontal-drainage-piping"}
- {"name":"IRC Table P3005.3","description":"Slope of horizontal drainage piping — IRC residential code","url":""}
- {"name":"Manning's equation","description":"Open-channel and partially full pipe flow — basis for the 2 ft/s self-cleansing velocity","url":""}
Frequently Asked Questions
Frequently Used Together
Engineers often use these calculators in combination for complete project workflows:
Related Calculators
Explore similar calculators that might be useful for your project:
Calculate
Imperial uses feet for run length, inches for fall and slope. Metric uses meters for run, mm for fall, and shows slope in mm/m as the primary format. Switching converts entered values — it does not reinterpret them.
Enter a run length and a slope to get the fall, enter a run and a fall to get the slope, or just convert a slope between units.
Choose the slope unit you want to enter. The tool converts internally. Reference: 1/4 in/ft = 2.08% = 1 to 48 = 1.19° = 20.83 mm/m. 1/8 in/ft = 1.04% = 1 to 96 = 0.60° = 10.42 mm/m.
The grade of the drain. Enter it in the unit selected above. A quarter inch per foot is about 2 percent; an eighth inch per foot is about 1 percent.
The horizontal length of the drain run, from the upstream point to the connection. Measure the horizontal distance, not the pipe length along the slope.
The drain size. The code minimum slope depends on the size, and larger pipes need less slope, not more. Leave blank to see slope conversions without a code check.
IPC and UPC differ on slope minimums. IPC allows shallower slopes on larger pipes. UPC starts at 1/4 in/ft for all sizes and lets 4 in and larger drop to 1/8 in/ft only with AHJ approval. Choose the code your jurisdiction enforces.
Piping upstream of a grease interceptor needs at least 1/4 in/ft regardless of pipe size. When on, the effective minimum becomes the greater of the code minimum and 1/4 in/ft.
Optional. Sets the Manning roughness for the full-bore velocity indicator. PVC is smooth (n 0.010); cast iron and concrete are rougher (n 0.013). The velocity indicator is a full-bore estimate — not the design flow velocity.