Pipe Slope & Fall Calculator

Give this calculator a run length and any one expression of grade — inches per foot, percent, a 1-in-X ratio, or the total fall you have to work with — and it returns all four, plus the drop per 10 feet and the code minimum for your pipe size. Drainage runs on gravity, so the pitch you set at the trench decides whether the line clears or silts up. Trades quote pitch four different ways on the same job, and a quarter inch per foot, 2.08%, 1-in-48 and 10 inches over 40 feet are all the same grade.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Horizontal runMeasure horizontally between the two points you are setting, not along the pipe.40 ft
Pipe sizeNominal size of the horizontal drain, used only to look up the code minimum slope.4 in
What you knowPick the figure you already have; the other three are worked out for you.Slope in inches per foot
SlopeEnter 0.25 for a quarter inch per foot, 0.125 for an eighth.0.25 in/ft
SlopePercent grade as shown on a civil drawing; 2.0833% is a quarter inch per foot.2.0833 %
Slope ratio, 1 inThe X in a 1-in-X grade; 1 in 48 is the same as a quarter inch per foot.48
Total fall over the runThe invert-to-invert drop you have available between the two ends.10 in

It returns

  • Total fall over the run — Invert-to-invert drop from the high end to the low end.
  • Slope
  • Slope
  • Slope ratio, 1 in — One unit of fall for this many units of run.
  • Drop per 10 ft of run
  • IPC minimum for this size

The formula

slope=fallrun
in/ft=12grade,%=100grade,ratio=1grade

In plain text: slope = fall / run; fall = slope × run

  • slopeDecimal grade — the drop divided by the horizontal distance (ft/ft)
  • fallVertical drop from the invert at the high end to the invert at the low end (ft or in)
  • runHorizontal distance between those two points (ft)

Slope is measured on the horizontal, not along the pipe. For the grades used in drainage the difference is negligible: at 1/4 in/ft the pipe is only 0.02% longer than its horizontal projection.

Updated Category Drainage, Waste, Vent & Septic Verified against published test cases Reading time 12 min

What pipe slope is and why a drain needs it

Slope is the vertical drop of a pipe divided by its horizontal length. In a drain it is the entire motive force: nothing pumps a building drain, so the fall you build into the trench is the only energy the waste ever gets. Set too little and the water crawls, solids drop out and the line blocks. Set the grade unevenly — a steep length followed by a flat length — and you build the same problem at the transition, where the water slows abruptly and drops what it was carrying.

Four notations are in daily use and they describe the same physical thing. Plumbers work in inches of fall per foot of run. Civil drawings use percent grade. British and irrigation practice uses a 1-in-X ratio. And in the trench, what you actually measure is total fall over the run, because that is what a string line or a laser gives you. A quarter inch per foot, 2.0833%, 1-in-48 and 10 inches over 40 feet are four names for one grade.

The distinction that trips people is what the fall is measured between. Grade is set invert to invert — bottom inside of pipe to bottom inside of pipe. If you shoot the top of the pipe instead, and the run changes size anywhere along it, your grade is wrong by the difference in wall thickness and diameter.

The conversions, and why 1/4 in/ft is 2.08%

Everything starts from the decimal grade, fall divided by run in the same units. From there:

  • Inches per foot is the grade multiplied by 12, because a foot of run contains 12 inches of potential fall.
  • Percent is the grade multiplied by 100.
  • The ratio denominator is 1 divided by the grade, read as "one unit down for this many along".

So a quarter inch per foot is 0.25 ÷ 12 = 0.0208333 as a decimal grade. Multiply by 100 and you get 2.0833%; take the reciprocal, 1 ÷ 0.0208333, and you get 48. An eighth of an inch per foot is exactly half of each: 1.0417% and 1-in-96. A sixteenth is half again: 0.5208% and 1-in-192.

Percent grade is the odd one out for a plumber because it does not correspond to anything you can measure with a level and a rule. It is convenient for a civil engineer because Manning's equation takes slope as a dimensionless decimal, and because a surveyor's instrument reads in decimal feet. When you pass a grade between the two trades, convert once, write it down, and quote both.

One thing the conversions hide: slope is defined on the horizontal, not along the pipe. For a 45-degree offset that distinction is enormous, but for drainage grades it is invisible. At 1/4 in/ft the sloped pipe is longer than its horizontal projection by a factor of √(1 + 0.0208333²) = 1.000217, so a 100-foot run is 100.02 feet of pipe.

Worked example: a 4-inch branch under a basement slab

You are running a 4-inch PVC branch 38 feet from a new basement bathroom group to an existing 4-inch main, and the top of the existing pipe sits 51 inches below the finished slab. How much fall do you have to build, and does it fit?

  1. Choose the grade. IPC Table 704.1 puts 4-inch horizontal drainage at a minimum of 1/8 in/ft, but the shop standard on this job is 1/4 in/ft, so start there.
  2. Convert to a decimal grade. 0.25 ÷ 12 = 0.0208333 ft/ft.
  3. As a percent. 0.0208333 × 100 = 2.0833%. As a ratio, 1 ÷ 0.0208333 = 1 in 48.
  4. Total fall. 0.0208333 × 38 ft = 0.79167 ft, and 0.79167 × 12 = 9.50 inches. Equivalently, 0.25 in/ft × 38 ft = 9.50 in directly.
  5. Drop per 10 feet. 0.25 × 10 = 2.50 inches — the number you actually mark on the batter boards.
  6. Check it fits. The upstream invert must sit 9.50 inches above the downstream invert. With the connection invert at roughly 51 + 4 = 55 inches below slab, the branch invert at the bathroom lands 55 − 9.50 = 45.5 inches below slab, leaving 45.5 − 4 = 41.5 inches of cover over the crown. That is ample.

Now suppose the excavation only allowed 5 inches of fall over that 38 feet. The grade becomes 5 ÷ 38 = 0.1316 in/ft, or 1.096%, or 1 in 91.2. That is above the IPC 1/8 in/ft minimum for 4-inch pipe, so it is permitted under the IPC — but it is below what the UPC requires without an approved exception, and it leaves nothing in hand for settlement. Run the numbers before you dig, not after.

How much fall is enough, and how much is too much

The minimum is set by code and by pipe size. IPC 2021 Table 704.1 requires 1/4 in/ft for horizontal drainage piping 2½ inches and smaller, 1/8 in/ft for 3 through 6 inches, and 1/16 in/ft for 8 inches and larger. Larger pipe gets a gentler minimum because it carries a deeper stream at the same flow, and depth is what generates velocity. The Uniform Plumbing Code takes a different line: it requires 1/4 in/ft generally, and permits 1/8 in/ft on 4-inch and larger only where structural conditions make the steeper grade impractical and the authority having jurisdiction approves it. Find out which code your jurisdiction has adopted before you commit to a shallow grade.

Velocity, not grade, is the real criterion. The code minimums are a proxy for keeping the stream moving fast enough to carry solids, conventionally 2 ft/s. The Manning pipe flow calculator will tell you the actual velocity at your diameter, grade and depth of flow, which is worth doing whenever you are pushed towards the minimum.

On the maximum, be careful what you repeat. The IPC sets minimum slopes for horizontal drainage piping and does not impose a general maximum on building drains, so the widespread claim that a drain steeper than 1/4 in/ft "outruns its solids" is a rule of thumb rather than a code requirement. What is not in dispute is that abrupt changes of grade cause trouble: a steep length discharging into a flat length drops velocity at the joint, and that is where deposits form. Keep the grade uniform, which is itself an IPC requirement, and the question of a maximum rarely arises.

Watch the accumulated fall on long runs. Fall is linear in distance, so a 1/4 in/ft grade eats 25 inches over 100 feet. On a long building sewer that can put the far end below the street main. When the arithmetic says the grade will not fit, the options are a flatter grade within code, a larger pipe with a lower minimum, or a lift station — in that order of preference. Use the sewer invert elevation calculator to carry inverts between structures once you have picked a grade.

Slope conversion reference

Every row is one grade written four ways, with the fall it produces over a 50-foot run.
Inches per footDecimal gradePercentRatioFall over 50 ft
1/16 in0.0052080.521%1 in 1923.13 in
1/8 in0.0104171.042%1 in 966.25 in
3/16 in0.0156251.563%1 in 649.38 in
1/4 in0.0208332.083%1 in 4812.50 in
5/16 in0.0260422.604%1 in 38.415.63 in
3/8 in0.0312503.125%1 in 3218.75 in
1/2 in0.0416674.167%1 in 2425.00 in
3/4 in0.0625006.250%1 in 1637.50 in
1 in0.0833338.333%1 in 1250.00 in

Decimal grade is in/ft divided by 12; percent is that times 100; the ratio is its reciprocal; the last column is grade x 50 ft x 12.

Minimum slope for horizontal drainage piping

IPC 2021 Table 704.1, with the equivalent percent grade and the fall it produces over 50 feet.
Pipe sizeIPC minimum slopePercentFall over 50 ft
2½ in and smaller1/4 in/ft2.083%12.50 in
3 in to 6 in1/8 in/ft1.042%6.25 in
8 in and larger1/16 in/ft0.521%3.13 in

The Uniform Plumbing Code differs: it requires 1/4 in/ft generally and allows 1/8 in/ft on 4-inch and larger piping only where the steeper grade is impractical and the authority having jurisdiction approves. Local amendments override both.

Mistakes that put a drain at the wrong pitch

  • Confusing 1/4 in/ft with 1/4%. A quarter inch per foot is 2.083%, eight times steeper than a quarter of a percent. This is the single most expensive unit slip in drainage.
  • Measuring the run along the pipe on a sloping site. Slope is defined on the horizontal. For drainage grades the difference is under 0.03%, but on a steep site people sometimes measure ground distance instead of horizontal distance, and that error is real.
  • Shooting the top of the pipe instead of the invert. Grade is invert to invert. Where a 4-inch branch enters a 6-inch main, the tops are a long way from parallel to the bottoms.
  • Averaging the grade over a run instead of holding it uniform. The IPC requires uniform alignment and uniform slope. A belly that averages out still holds standing water and still catches solids.
  • Forgetting settlement. Pipe bedded on disturbed fill settles. Designing at exactly the code minimum leaves nothing in hand, and a run laid at 1/8 in/ft that drops half an inch in one place is now backfalling.
  • Using the sanitary minimum on a condensate or a shallow storm line. Different pipe carries different loads. Check the section of the code that governs the system you are actually installing.

Where slope fits in the rest of the drainage design

Grade is one of four numbers that decide whether a drainage system works, and it is the one you can least easily change later. The other three are the load, the size and the venting.

Load comes from the fixtures upstream, converted to drainage fixture units and then to a required pipe size through the code tables — that is the job of the drainage fixture unit calculator. Size and slope then interact: a larger pipe at a flatter grade can carry the same load as a smaller pipe at a steeper one, which is exactly the trade you make when the fall will not fit. Venting is independent of both, but a drain running fuller than it should because the grade is marginal will pull traps that a properly graded line would not.

Beyond the building, the same arithmetic scales up. A building sewer to a septic system has to reach the tank inlet at the right elevation, which sets the whole layout of the tank and field; a storm line has to reach a discharge point that may be fixed by the street. In both cases, run the fall calculation first and let it tell you whether the elevations close. Where they do not, a pumped section becomes the answer, and the grade question restarts downstream of the discharge.

Finally, remember that this calculator does geometry, not hydraulics. It tells you the pitch and the fall; it does not tell you whether the pipe is big enough or fast enough. For that, take the grade you settle on into the Manning calculation and look at the velocity.

Frequently asked questions

What is 1/4 inch per foot as a percentage?

2.0833%. Divide 0.25 inches by 12 inches to get the decimal grade of 0.0208333, then multiply by 100. The same grade is 1 in 48 as a ratio, and it produces 2.5 inches of fall for every 10 feet of run. An eighth of an inch per foot is exactly half of all of those: 1.0417%, 1 in 96, and 1.25 inches per 10 feet.

What is the minimum slope for a 4-inch drain pipe?

Under the International Plumbing Code it is 1/8 inch per foot, because 4-inch pipe falls in the 3-to-6-inch band of Table 704.1. Under the Uniform Plumbing Code the general requirement is 1/4 inch per foot, with 1/8 inch per foot permitted on 4-inch and larger only where the steeper grade is impractical and the authority having jurisdiction approves it. Check which code your jurisdiction has adopted, and check for local amendments.

Can a drain pipe be too steep?

The IPC sets minimum slopes for horizontal drainage piping and does not impose a general maximum on building drains, so a steep run is not by itself a code violation. The rule of thumb that water outruns solids above 1/4 in/ft is widely repeated but is not a code requirement. What does cause trouble is a change of grade: a steep length discharging into a flat length loses velocity at the joint, and deposits form there. Keeping the slope uniform along the run is the requirement that matters.

How much fall do I need over 100 feet?

At 1/4 inch per foot you need 25 inches; at 1/8 inch per foot, 12.5 inches; at 1/16 inch per foot, 6.25 inches. Multiply the inches-per-foot figure by the run in feet and you have the fall in inches directly. The reason long runs push designers towards larger pipe is precisely this: upsizing to 8 inches drops the IPC minimum to 1/16 in/ft and cuts the required fall by four.

Is slope measured along the pipe or horizontally?

Horizontally. The run in the formula is the horizontal distance between the two points, not the length of pipe you cut. For drainage grades the two are almost identical — at 1/4 in/ft a 100-foot horizontal run needs 100.02 feet of pipe — so the distinction only matters if you are measuring along sloping ground rather than on the level.

Do I measure fall from the top of the pipe or the bottom?

From the invert, meaning the inside bottom of the pipe. That is where the water actually runs, and it is what every code table and every set of civil drawings refers to. Measuring crown to crown gives the same answer only if the pipe is a single size for the whole run; the moment a size change appears, the two diverge by half the difference in diameters plus the difference in wall thickness.

What slope should a septic tank inlet line have?

Follow the same code minimum as any other building sewer of that size — 1/8 in/ft for a 4-inch line under the IPC — unless the health department that permits the system specifies otherwise, and many do. What is specific to septic work is the elevation constraint at the far end: the tank inlet invert is fixed by the tank you install and its burial depth, so it is usually the fall available rather than the fall preferred that decides the grade.

How do I set this grade in the trench?

Work from the drop-per-10-feet figure. Set a string line level between the two ends, then measure down from it by the accumulated fall at each station: 2.5 inches at 10 feet for a quarter-inch grade, 5 inches at 20, and so on. A rotating laser with a grade rod does the same thing faster. Check the invert at every joint rather than only at the ends, since a uniform average hides a belly in the middle.

References

  • 2021 International Plumbing Code, Section 704 and Table 704.1 — International Code Council
  • 2021 Uniform Plumbing Code, Chapter 7 (Sanitary Drainage) — International Association of Plumbing and Mechanical Officials
  • Open-Channel Hydraulics — Ven Te Chow, McGraw-Hill, 1959