Gravity drainage geometry

Drain Pipe Slope Calculator

Use this calculator to plan the fall for a new gravity drain, check a pipe already in place, or turn a drawing grade into a field measurement. Select the rule or code requirement your project follows, then confirm the pipe falls continuously to the next connection. If the drain size is not yet established, use the Plumbing Fixture Calculator to total fixture units before checking drain capacity. This tool does not size pipe capacity or cover storm, yard, French, or roof drains.

Drainage workspace

Calculate Drain Pipe Slope and Required Fall

1 Required fall
ft

Measure the plan-path length, not the sloping pipe length.

Use site elevation only when you are working from a project datum.

in

Use a relative value in the unit shown, not a civil elevation in feet or metres.

Before you set the pipe

Measure the Drain Route and Vertical Drop

A drain pipe below a floor, with a level, a long horizontal measurement arrow, and a short vertical drop arrow.
The calculator uses the route across the plan and the drop between its two ends.

Mark where the drain leaves the fixture and where it joins the next pipe or stack. Measure the horizontal path across the floor plan, including any detour around framing; that is the run you enter.

Do not measure along the sloping pipe. The fall is the height difference between its two ends. Use Required fall for a new route, or enter the measured run and fall to check a pipe already in place.

For longer runs, use a laser or rotary level when a string line may sag.

Make the route fit

Make Sure the Drain Has Enough Space to Slope Down

A drain pipe sloping under floor joists from a fixture to a vertical stack, with arrows showing the route length and available vertical drop.
A longer drain route needs more vertical room before it reaches the next connection.

A drain needs more vertical room as its route gets longer. For example, a 30-foot run at ⅛ in/ft needs 3.75 inches of drop. Before laying out the pipe, check the connection height and clearance below the floor.

If you know the drop available, use Maximum run to see how far it can carry the drain. If it will not cover the route, change the layout or connection plan before installing the pipe.

Start with the measurement you have

Which Calculation Do You Need?

  1. Plan a new drain

    Enter the horizontal run to find the required drop.

  2. Check a drain already in place

    Compare the run and fall you measured.

  3. Turn a drawing note into a drop

    Convert a stated grade into total fall.

  4. Work with limited vertical space

    Find the longest run the available drop can support.

Typical starting points

Common Drain-Layout Examples

A new drain branch under a floor, with arrows showing the planned horizontal route and needed vertical drop.
Use this when you know how far the drain needs to travel.

New 30-foot 3-inch branch

Use Required fall when you are laying out a new drain and know the horizontal route. With the 2024 IPC basis selected, a 30-foot 3-inch run at ⅛ in/ft needs 3.75 inches of drop from start to finish.

This gives the required vertical difference. To calculate a downstream elevation, enter an upstream invert on the same datum. Change the route length, pipe size, or basis to match the work you are planning.

What to verify on site: clearance below framing while keeping the required drop.

An installed drain run being checked with a tape measure along its route and a ruler showing the vertical fall.
Measure the run and the drop that are already in place.

Existing 30-foot 3-inch run with 4 inches of drop

Use Check slope when the pipe is already installed or you have site measurements. A 30-foot run with 4 inches of fall has an actual slope of 0.1333 in/ft. Under the selected 2024 IPC 3-inch basis, that is above the ⅛ in/ft minimum.

Four inches of drop alone is not enough to judge a pipe. Replace both values with your measured route and fall; the same drop is steep over a short run and shallow over a long run.

What to verify on site: measure both ends from the inside bottom of the pipe.

A simple construction drawing showing a sloping line converting into a drain pipe with arrows for route and drop.
Turn a drawing’s slope note into a usable vertical drop.

Drawing calls for 1% grade

Use Find fall from a slope when a drawing gives a percentage, ratio, angle, or inches per foot rather than a total drop. With Geometry only / no code check selected, a 30-foot route at 1% needs 3.6 inches of fall from start to finish.

Select a code basis separately when you need to compare that stated grade with a project minimum.

What to verify on site: match the stated grade to the full horizontal route.

A drain pipe running beneath floor framing toward a stack, with arrows showing its maximum route length and fixed available drop.
Start with the vertical space you have, then see how far it can carry the drain.

Only 12 inches of drop available

Use Maximum run when the height of the connection limits the layout. With the selected 2024 IPC 3-inch basis of ⅛ in/ft, 12 inches of fall supports a maximum 96-foot horizontal run.

Replace the example values with the available drop and drain size already established by the capacity check. If the result is shorter than the route you need, change the layout or connection plan before installing the pipe.

What to verify on site: compare the available drop with the full planned route before drilling.

Model-code criteria

Drain Slope Requirements Used

BasisPipe sizeMinimum slope usedCondition
2024 IPC Table 704.12½ in or less¼ in/ftUpstream of a grease interceptor can require this minimum.
2024 IPC Table 704.13–6 in⅛ in/ftStandard selected minimum.
2024 IPC Table 704.18 in or larger¹⁄₁₆ in/ftStandard selected minimum.
2024 UPC §708.1All sizes¼ in/ftA 4-inch-or-larger line may use ⅛ in/ft only with authority approval.
Custom / geometryYour choiceYour entered valueCustom compares with your value; geometry converts without a model-code comparison.

Quick code and grade check: IPC and UPC can use different minimums for the same pipe size, so select the basis adopted for the project. A 1% grade is 0.12 in/ft, not 1 in/ft.

Quick reference

Common Drain Slopes

Common slopePercent gradeRatioAngleMetric
¼ in/ft2.0833%1:481.1935°20.833 mm/m
⅛ in/ft1.0417%1:960.5968°10.417 mm/m
¹⁄₁₆ in/ft0.5208%1:1920.2984°5.208 mm/m
Technical details: slope formulas

S = fall ÷ run, fall = slope × run, and maximum run = available fall ÷ minimum slope. Use consistent units.

Official model-code sources

References & Limits

Quick answers

Drain Pipe Slope FAQs

How much fall do I need over 10, 20, or 30 feet?

Multiply the horizontal run by the slope you are using. At ⅛ in/ft, a 10-foot run needs 1.25 inches of fall, 20 feet needs 2.5 inches, and 30 feet needs 3.75 inches. Use the calculator for the code basis and pipe size that apply to your project.

Should I measure along the pipe or across the floor plan?

Measure horizontal developed run: the plan-path distance from one end of the run to the other. Do not use the longer distance along the sloping pipe.

What if I do not have enough fall?

Use Maximum run to check how much horizontal distance the available drop can support. If the available drop cannot cover the route, move the connection point, shorten the run, or confirm an approved alternative before installing the pipe.

Can I make the drain steeper to solve the problem?

Do not steepen a run only to reach a connection. Keep the route continuous and confirm the adopted project requirements before changing the grade.

Can I use this for a sewer or building drain?

This calculator checks fall and slope against the basis you select. It does not determine pipe capacity, materials, fittings, venting, or every requirement for a sewer or building-drain installation. If you need to establish sanitary drainage load before final design, use the Plumbing Fixture Calculator.