Choose what to find, then enter the pipe run and the slope (or the fall). Sections 2 and 3, the pipe size and the starting invert depth can be left blank.
Table of Contents
-
What you can do on this page
-
What is this calculation used for?
-
How to Use
-
Formulas and figures
-
Symbols and terms
-
Good to know before you start
-
How to calculate it in Excel
-
How to calculate it in Google Sheets
-
How to calculate it in Python
-
How to write it in LaTeX and other math languages (copy and paste)
-
How to have ChatGPT do the calculation
-
DataChef Features
-
Related Features
-
NumberChef Calculators List
What you can do on this page
- Enter the pipe run and the slope (in inches per foot such as 1/4 or 1/8 in/ft, a fraction such as 1/96, or a percent) and see the fall between the start and end of the pipe (the difference in invert height) in inches
- For a line whose slope or length changes at catch basins or cleanouts, enter the length and slope of each section (up to 3) to get the fall of each section and the total fall. Enter the invert depth at the start to also get the depth at each junction and at the end
- The other way around, enter the fall and the pipe run to get the actual slope (in/ft, 1/n and percent), and compare it with the minimum slope for the pipe size in the International Plumbing Code (1/4, 1/8 or 1/16 in/ft)
- For floors such as showers, patios and garage slabs, find the fall from the distance to the drain and the slope, or the slope from the distance and the fall
- A section drawing of the pipe (start, end, fall and slope; a bent line through the junctions for several sections) is drawn, and a plain explanation of the formulas and copy-and-paste formulas for Excel, Google Sheets and Python are on this page too
What is this calculation used for?
To run a drain pipe 30 ft from a downspout to a pop-up emitter or a street-side outlet at 1/8 in per foot, the fall is \(30 \times 1/8 = 3.75\) in. If the invert at the start is 12 in below grade, the end is 15.75 in deep, so before you dig you can check whether that depth works and whether the outlet is low enough.
If you turn through a catch basin along the way, enter the length and slope of each section to get the total fall. Connections to the public sewer and sewer lines usually need a licensed plumber and a permit, so DIY is limited to what your local rules allow, such as storm water and yard drains on your own property. Call 811 before you dig.
Moving a kitchen sink 6 ft calls for extending the drain under the floor by 6 ft. A 2 in pipe at the IPC minimum of 1/4 in per foot needs \(6 \times 1/4 = 1.5\) in of extra fall, and whether you have that much room under the floor (from the bottom of the floor down to the existing drain connection) decides whether the move works.
If there is not enough room, you can compare raising the floor, shortening the route, or using a 3 in pipe at a gentler minimum slope (1/8 in per foot) before you talk to a plumber. The actual pipe size, slope and trap arm limits depend on the fixtures and your local code, so confirm the final plan with a designer or plumber.
If the farthest point of a shower floor is 5 ft from the drain, a slope of 1/4 in per foot (the IRC minimum for showers) gives \(5 \times 1/4 = 1.25\) in of fall. For a garage slab 20 ft deep at 1/8 in per foot, it is \(20 \times 1/8 = 2.5\) in. Build this fall into the mortar bed or the slab, lower on the drain side.
Floors are not sloped as steeply as pipes, because people walk and set furniture on them. Some finishes hold water at a gentle slope (textured tile), and some spots feel tilted at a steep slope, so check the finish maker's instructions and examples when you decide.
Measure the invert height at both ends of a slow drain and divide by the run to get the actual slope. If a 24 ft run has only 1.5 in of fall, that is 1.5 ÷ 24 = 1/16 in per foot (1/192), gentler than the IPC minimum of 1/8 in per foot for a 3 or 4 in pipe. A section with negative fall (back pitch) or a belly holds water and causes clogs.
If the slope is the cause, cleaning alone will not fix it for long. Relaying a pipe is costly, so use this calculation to see whether slope is the problem before you call a plumber.
For a yard that drains poorly, people bury a French drain (perforated pipe in gravel) or install a channel drain. A 50 ft run at 1/8 in per foot (about 1%, a common minimum for French drains) falls 6.25 in, and at 1/4 in per foot 12.5 in, so the outlet (a dry well, a daylight outlet or a curb) must be at least that much lower.
The outlet height often cannot change, so first check what slope you can get over the run to the outlet, then decide the route and depth. Surround the buried pipe with gravel and fabric to keep it from clogging, and check with a string line as you work that the slope never reverses.
"At 1/8 in per foot, a 20 ft pipe drops 2.5 in" is ratios and proportional relationships in action (Grades 6–7). Double the run and the fall doubles; double the slope denominator (1/48 → 1/96) and the fall is halved. These relationships show up as real dimensions on a job.
That in/ft, fractions, percents and ‰ are different ways to write the same slope is also a real example of unit rates and percents. Check how the "ratios" in a textbook set the dimensions of the pipes under a house and in a yard.
Formulas and figures
Symbols and terms
Symbols
| \(h\) | aitch | The fall, from "height": how much lower the invert is at the end than at the start. It is found with \(h = L \div n\). |
| \(L\) | ell | The pipe run (for a floor, the distance to the drain), from "length". It is the horizontal length; for gentle slopes, the difference from the length along the pipe can be ignored. |
| \(n\) | en | The denominator when the slope is written as the fraction \(1/n\): a slope that drops 1 for every \(n\) across, with \(n = L \div h\) (1/8 in/ft is \(n = 96\)). The larger \(n\), the gentler the slope. |
| \(p\) | pee | The percent slope, from "percent". \(p = h \div L \times 100\), how much it drops for every 100 across (1/96 is about 1.04%). |
| \(q\) | cue | The per mille slope (‰), using the letter after \(p\). \(q = h \div L \times 1000\), how much it drops for every 1000 across (1/100 is 10‰). |
| \(H\) | capital aitch | The total fall over several sections through junctions: the falls of each section \(h_{1}, h_{2}, h_{3}\) added together, the difference between the start and end inverts. |
| \(h_{i},\ L_{i},\ n_{i}\) | aitch sub i, ell sub i, en sub i | The fall, run and slope denominator of section \(i\) (1, 2, 3). The small \(i\) at the lower right is a subscript for the section number. |
| \(D_{0}\) | dee sub zero | The invert depth at the start (below grade), from "depth" with 0 for the starting point. |
| \(D\) | dee | The invert depth at the end (below grade). It is found with \(D = D_{0} + H\). |
| \(\sum\) | sigma | The summation sign, the Greek letter sigma (the Greek S, for "sum"). \(\sum_{i=1}^{3} h_{i}\) is "add up \(h_{1}\) through \(h_{3}\)". |
| ‰ | per mille | A unit for parts per thousand, one tenth of a percent: 10‰ = 1%. Some sewer and civil drawings use it for slopes. |
Terms
| Drainage slope | The gentle downhill slope given to drain pipes and channels so water flows to the low end on its own. In the US it is written in inches per foot (1/4 in/ft, 1/8 in/ft). Too gentle and the pipe drains poorly and clogs; too steep is said to leave solids behind, so it is set within a range for the pipe size. |
| Fall | How much lower the end is than the start, for a pipe, a floor or the ground. Plumbers say "1/4 inch of fall per foot". Floors such as showers and patios are also sloped this way, often written in in/ft or percent. |
| Slope | How much something rises or drops compared with the distance across: fall ÷ horizontal run. For drains it is written in in/ft in the US, and the same slope can be written as a fraction (1/96), a percent (%) or per mille (‰). |
| Fractional slope | Writing a slope that drops 1 for every \(n\) across as \(1/n\), such as 1/96 for a drain or 1:12 for a ramp. The larger \(n\), the gentler, and the fall is the run divided by \(n\). |
| Percent slope | A slope written as how much it drops for every 100 across: fall ÷ run × 100. 1/100 is 1%, 1/8 in/ft is about 1.04% and 1/4 in/ft is about 2.08%. |
| Per mille | A unit for parts per thousand (‰). For slopes it is how much it drops for every 1000 across; 10‰ is the same as 1% and 1/100. It appears on some sewer, road and railway drawings. |
| Invert | The bottom of the inside of a drain pipe. Pipe heights and depths are measured at the invert, not at the center or top of the pipe; "invert elevation" on drawings refers to this point. Water flows along it. |
| Catch basin (junction) | A box on a drain line for inspection and cleaning, placed where the line changes direction or slope, where lines join, or partway along a long run. In buildings and sewer laterals, a cleanout plays a similar role. The pipe is split into sections there, so the slope is calculated section by section. |
| Nominal pipe size | The standard number for a pipe's size, such as 2, 3 or 4 in for PVC or ABS drain pipe, close to the inside diameter. Minimum drain slopes are set by pipe size, and smaller pipes need steeper slopes. |
| Burial depth | The depth from the ground surface to the invert of a buried pipe. With a downhill slope, it gets deeper downstream. Too shallow and a pipe can be damaged by vehicle loads or frost, so keep enough depth for the location. |
| Grade (ground surface) | The finished ground surface used as the reference for heights around a building. Pipe depths are given from it, such as "12 in below grade". |
| Slab | A concrete floor on the ground, such as a garage, patio, driveway or basement floor. It is usually finished with a slope toward a drain or the outside (often about 1/8 to 1/4 in/ft) so rain and wash water do not pool. |
| Back pitch (belly) | A slope that runs the wrong way, with the downstream end higher; a sag in the middle of a pipe is called a belly. Water sits there, flow slows and clogs form. When an existing drain acts up, first check whether any part slopes the wrong way. |
| Gravity drainage | Letting water flow to a lower point by slope alone, without a pump. Home drains are basically gravity drainage, so every section needs a downhill slope. |
Good to know before you start
Here is what helps you use the calculation on this page with real understanding, not just by pressing the button.
If you get stuck, going back over these topics is the quickest way forward.
| Ratios, unit rates and percents (Grade 6) |
|
| Fractions (Grades 4–5) |
|
| Converting units of length (Grade 4) |
|
| Proportional relationships (Grade 7) |
|
| Expressions and subscripts (Grade 6 and up) |
|
How to calculate it in Excel
| Pipe run L (ft) | 20 |
| Slope (in/ft) | 0.125 |
| Fall h (in) | =B1*B2 |
| Slope denominator n (slope 1/n) | =12/B2 |
| Pipe run L (ft) | 24 |
| Fall h (in) | 1.5 |
| Slope (in/ft) | =B2/B1 |
| Slope denominator n (slope 1/n) | =B1*12/B2 |
| Percent slope p (%) | =B2/(B1*12)*100 |
| Section 1 run L1 (ft) | 16 |
| Section 1 slope (in/ft) | 0.125 |
| Section 2 run L2 (ft) | 12 |
| Section 2 slope (in/ft) | 0.125 |
| Section 3 run L3 (ft) | 20 |
| Section 3 slope (in/ft) | 0.25 |
| Total fall H (in) | =B1*B2+B3*B4+B5*B6 |
| Invert depth at the start D0 (in) | 12 |
| Total fall H (in) | 8.5 |
| Invert depth at the end D (in) | =B1+B2 |
In the first table B3 is 2.5 and B4 is 96. In the second, B3 to B5 are 0.0625, 192 and about 0.52. In the third, B7 is 8.5, and in the fourth, B3 is 20.5.
These tables use the US style of run in feet × slope in inches per foot. To use a fraction 1/n instead, put the run and the fall in the same unit (inches) and use "=B1/B2" with n in B2. For a percent slope, fall = run × percent ÷ 100 (in the same unit).
How to calculate it in Google Sheets
| Pipe run L (ft) | 20 |
| Slope (in/ft) | 0.125 |
| Fall h (in) | =B1*B2 |
| Slope denominator n (slope 1/n) | =12/B2 |
| Pipe run L (ft) | 24 |
| Fall h (in) | 1.5 |
| Slope (in/ft) | =B2/B1 |
| Slope denominator n (slope 1/n) | =B1*12/B2 |
| Percent slope p (%) | =B2/(B1*12)*100 |
| Section 1 run L1 (ft) | 16 |
| Section 1 slope (in/ft) | 0.125 |
| Section 2 run L2 (ft) | 12 |
| Section 2 slope (in/ft) | 0.125 |
| Section 3 run L3 (ft) | 20 |
| Section 3 slope (in/ft) | 0.25 |
| Total fall H (in) | =B1*B2+B3*B4+B5*B6 |
| Invert depth at the start D0 (in) | 12 |
| Total fall H (in) | 8.5 |
| Invert depth at the end D (in) | =B1+B2 |
How to calculate it in Python
run_ft = 20 # pipe run L (ft)
slope_in_per_ft = 1/8 # slope (in/ft). 1/4 in/ft -> 0.25, 1/8 in/ft -> 0.125
drop_in = run_ft * slope_in_per_ft # fall h (in)
denominator = 12 / slope_in_per_ft # slope as 1/n
percent = slope_in_per_ft / 12 * 100 # percent slope (%)
print(f"Fall: {drop_in:.2f} in (slope {slope_in_per_ft} in/ft = 1/{denominator:.0f} = {percent:.2f} %)")
# The other way around: actual slope from the fall and run, compared with the IPC minimum (1/8 in/ft for 3-6 in pipe)
run2_ft = 24 # pipe run (ft)
drop2_in = 1.5 # fall you can get (in)
actual = drop2_in / run2_ft
minimum = 1/8
needed_drop = run2_ft * minimum
print(f"Actual slope: {actual:.4f} in/ft (1/{run2_ft * 12 / drop2_in:.0f}); fall needed for 1/8 in/ft is {needed_drop:.2f} in, difference {drop2_in - needed_drop:.2f} in (negative = short)")
# Total fall over several sections and the invert depth at the end
sections = [(16, 1/8), (12, 1/8), (20, 1/4)] # (run ft, slope in/ft) for each section
start_depth_in = 12 # invert depth at the start (in below grade)
total_drop = 0
for i, (section_run, section_slope) in enumerate(sections, start=1):
section_drop = section_run * section_slope
total_drop += section_drop
print(f"Section {i}: {section_run} ft x {section_slope} in/ft = {section_drop:.2f} in (total so far {total_drop:.2f} in, invert {start_depth_in + total_drop:.2f} in below grade)")
print(f"Total fall: {total_drop:.2f} in, invert depth at the end: {start_depth_in + total_drop:.2f} in below grade")
How to write it in LaTeX and other math languages (copy and paste)
h = L ÷ n
h = \dfrac{L}{n}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mi>h</mi>
<mo>=</mo>
<mfrac><mi>L</mi><mi>n</mi></mfrac>
</mrow>
</math>
h = L / n
L/n
h := L/n;
h = L/n;
h = L/n
n = L ÷ h, p = h ÷ L × 100, q = h ÷ L × 1000
n = \frac{L}{h},\quad p = \frac{h}{L} \times 100,\quad q = \frac{h}{L} \times 1000
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mi>n</mi><mo>=</mo><mfrac><mi>L</mi><mi>h</mi></mfrac>
<mo>,</mo>
<mi>p</mi><mo>=</mo><mfrac><mi>h</mi><mi>L</mi></mfrac><mo>×</mo><mn>100</mn>
<mo>,</mo>
<mi>q</mi><mo>=</mo><mfrac><mi>h</mi><mi>L</mi></mfrac><mo>×</mo><mn>1000</mn>
</mrow>
</math>
n = L / h, p = h / L * 100, q = h / L * 1000
{L/h, h/L*100, h/L*1000}
n := L/h; p := h/L*100; q := h/L*1000;
n = L/h; p = h/L*100; q = h/L*1000;
n = L/h, p = h/L × 100, q = h/L × 1000
H = h₁ + h₂ + h₃, hᵢ = Lᵢ ÷ nᵢ
H = \sum_{i=1}^{3} h_{i},\quad h_{i} = \dfrac{L_{i}}{n_{i}}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mi>H</mi><mo>=</mo>
<munderover><mo>∑</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mn>3</mn></munderover>
<msub><mi>h</mi><mi>i</mi></msub>
<mo>,</mo>
<msub><mi>h</mi><mi>i</mi></msub><mo>=</mo>
<mfrac><msub><mi>L</mi><mi>i</mi></msub><msub><mi>n</mi><mi>i</mi></msub></mfrac>
</mrow>
</math>
H = sum_(i=1)^3 h_i, h_i = L_i / n_i
Sum[L[i]/n[i], {i, 1, 3}]
H := sum(L[i]/n[i], i = 1..3);
H = sum(L ./ n);
H = ∑_(i=1)^3 h_i, h_i = L_i/n_i
D = D₀ + H
D = D_{0} + H
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mi>D</mi><mo>=</mo><msub><mi>D</mi><mn>0</mn></msub><mo>+</mo><mi>H</mi>
</mrow>
</math>
D = D_0 + H
D0 + H
Dend := D0 + H;
D = D0 + H;
D = D_0 + H
How to have ChatGPT do the calculation
You are an assistant for plumbing and site drainage calculations. Do the calculations below by actually running Python code, and base your answer only on the numbers from the output (do not calculate in your head or guess). I am laying an outdoor drain line through 2 catch basins. Section 1 is 16 ft at 1/8 in per foot, section 2 is 12 ft at 1/8 in per foot, and section 3 is 20 ft at 1/4 in per foot. The invert at the start is 12 in below grade. Find each of the following (in inches). 1. The fall of each section (run in feet × slope in inches per foot) 2. The total fall from start to end 3. The invert depth at catch basin 1, catch basin 2 and the end (start depth + fall up to that point) 4. The fall if the whole 48 ft run were at a uniform 1/8 in per foot, and how it differs from the end depth in step 3 Show the formulas you used and the numbers from the output.
How to Use
-
1Enter your numbersType the numbers you want to calculate with into the input fields
-
2CalculatePress the "Calculate" button
-
3Check the resultThe result appears on the spot. The same page also explains the idea behind the calculation and the formula
DataChef Features
No technical knowledge required.
Intuitive and user-friendly operation.
Can be used without registering personal information.
Automatic file deletion by clicking "download".
and rapid file conversion.
No attribution required.
No need to contact us for commercial use permission.
