Pipe Slope Calculator: Find the Fall, Grade and Drop for a Drain Run

Enter the pipe length and the total fall, or the two invert elevations, and get the grade, the fall per foot, the ratio and the angle, checked against the code minimum for your pipe size.

How to use the pipe slope calculator

Pick the tab that matches the numbers you already have. All four give you the same set of answers, including the code check, they just start from different information. Every one of them takes a nominal pipe size, so the verdict does not depend on which tab you came in through.

Length and drop. The one most people want. Put in how long the run is and how much it falls from one end to the other. Pick the nominal pipe size and it will also tell you whether that fall meets the code minimum.

Inverts. If you are working from a plan or a set of shots, enter the upstream invert, the downstream invert and the run length. The fall works itself out. Inverts are the inside bottom of the pipe, which is the surface the code is written to.

Fall per foot. Start from a target instead. Enter a quarter inch, an eighth, or whatever you are aiming for, add the run length, and it tells you the total drop you need to build in.

Percent grade. For anyone working off a civil drawing, where the fall is given as a percentage rather than a fraction of an inch.

What you get back

One calculation, every form of the answer, because different trades and different drawings all want it written a different way. It comes back in three groups.

  • The numbers you work to. Fall per foot in inches, total fall over the run, the grade as a percentage and the ratio as a drawing would write it.
  • The code check. The minimum drop that run needs at the IPC figure for the nominal pipe size you pick, and a verdict saying whether your fall clears it. Pick no size and no verdict is given, because the minimum is different for every size band and a check against a guess is worth nothing.
  • The geometry, under More results. Angle from level, slope as a decimal, the rise, the run and the slope length measured along the pipe rather than flat. Useful when you need them, in the way when you do not.

The verdict is the part worth reading twice, and the first thing it checks is direction. Enter two invert elevations the wrong way round and it will tell you the pipe runs uphill rather than quietly reporting the fall as though the sign did not matter.

How precise the numbers are

Nothing is rounded until the moment it prints. The grade shows three decimal places, the fall per foot four. That matters more here than it does on most calculators, because the common fractions do not land on tidy percentages, and rounding one of them early is how a run ends up under code. There is a whole section on that below.

About units

Pick the unit for the run and the fall from the dropdown. Feet, inches, metres, centimetres, millimetres and yards all work. Both boxes have to be in the same unit, because slope is a ratio and it only stays true if the top and the bottom are measured the same way. The fall per foot output is always in inches, since that is how the fractions are quoted, and the pipe sizes in the list are nominal inches. Fall per Foot mode has no unit dropdown, because inches per foot is what the mode means and feet are what it works in. For a grade that has nothing to do with pipe, the slope calculator runs the same maths without the code check on the end.

The pipe slope formula

Slope is the fall divided by the run. Everything else on this page is that one number written a different way. Drainage calls the top number fall because it drops, but it is the same arithmetic as rise over run on any other kind of grade.

The fall is the drop in elevation from the upstream end to the downstream end, measured at the invert. The run is the flat horizontal distance between those two points, not the length of pipe you would lay along the trench. On a shallow drain the two are almost identical, which is why the mistake survives so long before anyone notices.

How the pipe slope calculator measures fall and run Diagram for the pipe slope calculator: a pipe sloping from an upstream invert of 100.00 to a downstream invert of 99.00 over a run of 48 feet, a fall of 1 foot giving a slope of 2.083 percent, a quarter inch per foot, or a ratio of 1 to 48. slope = fall ÷ run UPSTREAM INVERT 100.00 DOWNSTREAM INVERT 99.00 FALL 1 ft RUN 48 ft, MEASURED FLAT PERCENT 2.083% PER FOOT 1/4 in RATIO 1 : 48 ANGLE 1.193° Where fall and run are measured on a pipe run A pipe sloping from an upstream invert of 100.00 to a downstream invert of 99.00 over a run of 48 feet. The fall of 1 foot divided by the run of 48 feet gives a slope of 2.083 percent, which is a quarter inch per foot, or a ratio of 1 to 48. slope = fall ÷ run UPSTREAM INVERT 100.00 FALL 1 ft DOWNSTREAM INVERT 99.00 RUN 48 ft, MEASURED FLAT PERCENT 2.083% PER FOOT 1/4 in what the code is written in RATIO 1 : 48 ANGLE 1.193° Inverts are the inside bottom of the pipe, not the top
How a pipe slope is measured, the way the pipe slope calculator does it: fall divided by run. A 1 ft drop over a 48 ft run is a 2.083% slope, a quarter inch per foot, or 1:48.

One foot of fall over forty eight feet of run. Four ways of writing the same drop, and every one of them describes a pipe that will drain.

How to calculate pipe slope by hand

Take a run with an upstream invert of 100.00 and a downstream invert of 99.00, over 48 feet.

  1. Fall = 100.00 − 99.00 = 1 foot.
  2. Slope = fall ÷ run = 1 ÷ 48 = 0.020833.
  3. As a percentage, multiply by 100: 2.083%.
  4. As inches per foot, multiply by 12: 0.25 in, a quarter inch per foot.
  5. As a ratio, that is 1 : 48.

Going the other way is the more useful trick on site. If you know the fall you want per foot, divide it by 12 and multiply by the run. A quarter inch per foot over 48 feet is 0.25 ÷ 12 × 48, which is exactly 1 foot of drop.

Minimum pipe slope by pipe size

The minimum is not one number. It changes with the diameter, and bigger pipe is allowed to run flatter, because a larger bore carries the same flow at a lower grade and still holds enough depth to move solids.

These are the minimums in Table 704.1 of the International Plumbing Code, 2024 edition. We have also read the table in the 2006 edition and it carries the same three figures, so this row has not moved in at least eighteen years. Jurisdictions adopt whichever edition they adopt, and many amend it, so check which one your inspector is working from.

Pipe sizeMinimum fall
what the code says
As a percent
our conversion
As a ratioDrop over 48 ft
2½ in and smaller1/4 in per ft2.083%1 : 4812.00 in
3 in to 6 in1/8 in per ft1.042%1 : 966.00 in
8 in and larger1/16 in per ft0.521%1 : 1923.00 in

Pick your nominal pipe size in the calculator and it applies the right row, then says whether the fall you entered clears it. The list holds the sizes the table actually covers. If your size is not on it, or you leave it unset, you still get every number, you just do not get a code verdict, because the minimum is different for each band and a check against an assumed size is not a check.

One gap worth knowing about: the table jumps straight from 6 inches to 8. There is no 7 inch row because there is no common 7 inch nominal DWV pipe. If a drawing calls for something between the two, confirm the nominal size before you check it against anything.

Two things worth knowing before you build to a table. The first is that these are minimums, not targets. Most installers aim a little above the line so a small sag between hangers does not push a section below it. The second is that the table gives you a floor and no ceiling. The IPC sets no maximum slope for horizontal drainage piping. Whether a very steep run causes its own trouble is a real argument among plumbers rather than a settled rule, and it is worth understanding before you take either side of it. There is a section on that below.

IPC or UPC, and which one this checks

The United States runs on two model plumbing codes, not one. The International Plumbing Code is published by the ICC and adopted across most of the country. The Uniform Plumbing Code is published by IAPMO and adopted in a number of western states and in various local jurisdictions elsewhere. They are separate documents with separate committees, and their drainage slope provisions are written differently.

This calculator checks against IPC Table 704.1 only, and says so on every verdict.

There is a second fork underneath that one, and it catches more people. The IPC’s own scope section hands detached one- and two-family dwellings and townhouses to the International Residential Code. So on a house, the code your inspector opens is usually the IRC, and its drainage slope section is P3005.3, not IPC 704.1.

Here is what that section requires, read from the published 2018 IRC. P3005.3 sets horizontal drainage piping at not less than 1/4 unit vertical in 12 units horizontal for pipe 2 1/2 inches and smaller, and not less than 1/8 in 12 for 3 inches and larger. Two size bands where the IPC has three, stated in a sentence rather than a table.

Put the two codes side by side and the fork turns out to be smaller than it looks. At every size a house actually uses the minimums are identical: a quarter inch per foot through 2 1/2 inch pipe, an eighth from 3 through 6. They only part company at 8 inches and larger, where the IRC still wants 1/8 and the IPC drops to 1/16, and an 8 inch drain is not a house drain. So the figures this calculator checks are the right numbers for a house as well. What changes is the section your inspector writes on the correction notice, and the edition your jurisdiction has adopted, which is still worth confirming with your building department.

The UPC is the fork that stays open. If your jurisdiction is on the Uniform Plumbing Code, treat the numbers here as arithmetic rather than as a compliance result: the fall, grade, ratio and drop are the same figures either way, but the minimum they are compared against may not be. We are not going to print UPC thresholds from memory, and neither should any calculator, so check the section your inspector actually works from.

Either way, local amendments beat both. Plenty of jurisdictions adopt a model code and then change parts of it, and the amendment is what gets inspected. Confirm before the trench closes.

Why 2 percent is not a quarter inch per foot

A quarter inch per foot is 2.0833%. Not 2%. An eighth is 1.0417%, not 1%. A sixteenth is 0.5208%, not half a percent.

The gap looks like nothing. It is not nothing once you multiply it by a run.

Take a 4 inch line, so the minimum is an eighth of an inch per foot. Over 48 feet that is exactly 6.00 inches of drop. Round the eighth to a flat 1% first and you get 0.48 feet, which is 5.76 inches. You are a quarter of an inch short, and you are under code, and every number you used to get there looked reasonable.

To be fair to the shorthand, the code uses it too, and not as a slip. The ICC writes these fractions as rounded percentages throughout its own text. Section P3005.3 of the International Residential Code, the residential version of this same rule, gives the minimum as “1/4 unit vertical in 12 units horizontal (2-percent slope)” and “1/8 unit vertical in 12 units horizontal (1-percent slope)”. The same habit runs through the roofing chapter, where 2:12 is printed as a 17-percent slope and it is really 16.667. So calling a quarter inch per foot 2 percent is not an amateur mistake. It is how the book talks.

Here is the part that settles it. Table 704.1 has no percentage column in it at all. It has two columns, pipe size in inches and minimum slope in inches per foot. Every percentage you have ever seen quoted for a drain, including the ones on this page, is a conversion somebody performed afterwards. The percentage in brackets in the body text is a label the code writes for convenience, not the requirement. Table 704.1 is written in inches per foot, and that fraction is what to calculate from. Take the label literally, put a flat 2 percent into the arithmetic instead of the fraction, and the drop you get is slightly short of the drop the table asks for. Over a few feet nobody would notice. Over a long run it is the sort of gap an inspector measures.

Here is the part that settles it. Table 704.1 does not contain a single percentage. Its two columns are pipe size and minimum slope in inches per foot, and that is all. Every percent figure you have ever seen attached to a drain minimum, including the ones in the table further up this page, was converted by somebody. The code is written in fractions because fractions are exact.

So work from the fraction. A quarter inch per foot times the run in feet gives you the drop in inches directly, with nothing to round. Use the percentage for reading a civil drawing and for talking to an engineer, and use the fraction for anything you are going to build to. This calculator carries the fraction through at full precision and only rounds when it prints.

Five reasons a drain pipe slope comes out wrong

The arithmetic is one division. Almost every wrong answer comes from what went into it.

  1. The run was measured along the pipe. The bottom of the formula is the flat horizontal distance. Pull a tape along a sloping trench and you have measured the slope length instead, which is always longer, so the grade comes out flatter than it really is.
  2. The shot was taken off the top of the pipe. Codes are written to the invert, the inside bottom. Top of pipe works only while the diameter stays the same for the whole run. Change size anywhere along it and the two surfaces stop being parallel.
  3. The percentage got rounded. Covered above. It is the quietest of the five and the one most likely to survive all the way to an inspection.
  4. The wrong minimum was applied. A quarter inch per foot is the figure everyone remembers, but it only belongs to pipe of two and a half inches and under. Hold a 4 inch line to it when an eighth would do and you can end up chasing depth you never needed.
  5. The average was fine and the pipe still holds water. End to end grade says nothing about what happens between the hangers. A section that sags below level in the middle is a belly, and a belly holds water at any overall slope you like.

How plumbers check pipe fall on site

Almost nobody in a crawlspace has a survey level. The methods that get used are cruder than that and they work well enough when the arithmetic behind them is right.

The oldest one is a spirit level and a block. A four foot level with one end lifted an inch reads a quarter inch per foot, because an inch over four feet is exactly that. Half an inch of packing under a four foot level gives you an eighth. Set the block, sit the level on the pipe, and when the bubble centres you are on grade.

A torpedo level with a slope vial does the same job without the block, and a rotary laser does it for a whole run at once. Whichever tool is in your hand, the reading is only as good as the surface you took it from, which is the reason the invert keeps coming up.

On a long sewer run the practical constraint is rarely the code minimum. It is the depth you have at the far end. Work the total drop out first with the calculator, subtract it from your starting invert, and check the answer against how deep you are allowed to go and where the main sits. If the number does not fit, the choices are a larger pipe at a flatter minimum, a different route, or a pump, and it is much cheaper to find that out before the trench is open.

Frequently asked questions

Can a drain pipe be too steep?

Almost every page that answers this says yes, and gives the same reason: past about half an inch per foot the water outruns the solids, they dry out where they stop, and you get a blockage that looks like a pipe laid too flat. It is worth knowing that this is an argument, not a code rule, and that the two halves of it are not equally solid.

The code half is settled. Table 704.1 of the IPC sets minimum slopes and no maximum at all. There is no ceiling in the model code for horizontal drainage piping, so no fall you can enter here is a code violation for being too steep. If a calculator tells you half an inch per foot fails, ask it which section it is quoting, because there is not one.

The physics half is genuinely disputed, and the disagreement is more interesting than either answer. The separation argument comes from drainage maths built when a toilet flushed three and a half to five gallons and carried solids a long way on one flush. Fixtures now use a fraction of that, which is why some plumbers say low flow made the problem worse rather than better, and why others say it never existed for a self siphoning fixture in the first place. Both positions are held by working code officials.

What is not disputed is that particular situations do get their own ceiling. Installation guidance published by the LSU AgCenter with the Louisiana Department of Health tells installers that on the line into a septic tank, the last ten feet must not exceed a quarter inch per foot, so the incoming flow does not disturb the tank and its baffles. That is guidance for one state and one situation rather than a national rule, which is the point: the model code leaves this kind of limit to the authority having jurisdiction, and some of them use it.

So the practical answer: a steep run is not a code failure, most installers still aim near the minimum out of habit and because it is easier to hold a shallow grade consistently across hangers, and if you are running much steeper than usual it is worth a call to your inspector rather than a call to the internet. This calculator flags an unusually steep run as worth confirming. It will not tell you it fails, because the code does not say that.

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

An eighth of an inch per foot under the International Plumbing Code, 2024 edition, because 4 inches falls in the 3 to 6 inch band. That is 1.042%, or a ratio of 1 : 96. Over a 48 foot run it works out at exactly 6 inches of drop. Many installers still lay 4 inch line at a quarter inch per foot when the depth allows it, which is fine, but the code figure is the eighth.

What does a 2 percent slope mean in inches per foot?

Multiply the percentage by 12 and divide by 100. A 2% slope is 0.24 inches per foot, which is slightly less than a quarter inch. The quarter inch everyone quotes is 2.0833%, not 2%. For most short runs the difference does not matter. For a long run at exactly the code minimum it does, because rounding down puts you under it.

What do I do if there is not enough fall over a long run?

Three options, in the order most people try them. Go up a pipe size, because a larger bore is allowed a flatter minimum and an 8 inch line only needs a sixteenth per foot. Re-route to shorten the run or pick up more starting depth. Or fit a pump. Work the total drop out before you commit, since the answer is usually decided by how deep you can be at the far end rather than by the grade itself.

Do I measure to the top of the pipe or the bottom?

The bottom, on the inside. That surface is called the invert and it is what plumbing and sewer codes are written to. Shooting the top of the pipe gives the same answer only while the diameter stays constant. The moment the run changes size, the top and the bottom stop being parallel, and the slope you calculated from the crowns is not the slope the water sees.

How do you measure pipe slope on site without a survey level?

A four foot spirit level with a one inch block under one end reads a quarter inch per foot. Half an inch of packing gives you an eighth. Sit it on the pipe, centre the bubble, and you are on grade. A torpedo level with a slope vial does the same without the block, and a rotary laser covers a whole run at once. Check a few points along the pipe rather than only the two ends, or a sag in the middle will go unnoticed.

Is 1/8 inch per foot enough for a 3 inch pipe?

Under the International Plumbing Code, 2024 edition, yes. Three inches sits at the bottom of the 3 to 6 inch band, so an eighth per foot is the minimum it has to meet. Whether it is enough in practice depends on the run. On a short branch it is fine. On a long one with fixtures at the far end, most installers give it more where the depth allows, because an eighth leaves nothing spare if any section settles.

What does a 1 in 48 pipe slope ratio mean?

One unit of drop for every 48 units travelled horizontally, in whatever unit you like, as long as both are the same. It is the same slope as 2.083% and the same as a quarter inch per foot. Ratios turn up on civil and sewer drawings because they survive a change of units, where a figure in inches per foot does not.