ToolsDrainage and sewer

Pipe slope calculator

This pipe slope calculator turns a run length and a drop per foot into total fall, slope percent and the depth of the pipe at the far end. It then checks the slope against the California Plumbing Code minimum for 3, 4 or 6 inch pipe.

Pipe run
Slope
Pipe

Your result

1 ft 0.5 in

Total fall over 50 ft

Slope1/4 in per ft2.08%
Fall in inches50 ft × 0.25 in per ft12.5 in
Fall in feet and inches1 ft 0.5 in
Depth at the far end18 in at the house + 12.5 in fall30.5 in (2 ft 6.5 in)
Code minimum slope4 inch pipe. 1/8 in per ft (1%) only where 1/4 is impractical and approved first1/4 in per ft (2%)

Minimum slope is from the California Plumbing Code, sections 708.1 and 718.1, as reproduced by GoCodebook and the City of Vacaville Building Division. Your city can amend the code, and the inspector has the final word. Depths assume level ground and are measured to the same point on the pipe at both ends. This is a layout check, not a design. No prices are included.

How to use the pipe slope calculator

  1. Enter the length of the run in feet, measured along the pipe.
  2. Pick the drop per foot: 1/8, 1/4 or 1/2 inch. To work from a percent, choose "Custom percent" and type it in.
  3. Pick the pipe diameter: 3, 4 or 6 inch. The code check changes with the size.
  4. Enter how deep the pipe is at the house, in inches. Leave it blank if you only need the fall.
  5. Read the total fall, the slope percent, the depth at the far end and any note about the code minimum.

How the math works

The calculator uses three lines of arithmetic:

  • Total fall in inches = length in feet × drop per foot in inches.
  • Slope percent = drop per foot ÷ 12 × 100. A custom percent goes the other way: percent × 12 ÷ 100 = inches per foot.
  • Depth at the far end = depth at the house + total fall, on level ground.

Worked example. Take a 50 foot run of 4 inch pipe at 1/4 inch per foot, starting 18 inches deep at the house. The fall is 50 × 0.25 = 12.5 inches, or 1 ft 0.5 in. The slope is 0.25 ÷ 12 = 2.08%. The far end sits at 18 + 12.5 = 30.5 inches, or 2 ft 6.5 in. That meets the code minimum, so no note appears.

Change it to 80 feet at 1/8 inch per foot from 24 inches deep and the fall is 10 inches, the slope is 1.04% and the far end sits at 34 inches (2 ft 10 in). The calculator then flags the run, because 1/8 inch per foot on 4 inch pipe needs approval first.

What slope does California require for a drain or sewer line?

The standard minimum is 1/4 inch per foot. Section 708.1 of the California Plumbing Code sets horizontal drainage piping at a uniform slope of not less than 1/4 inch per foot, or 2 percent, toward the point of disposal. Section 718.1 sets the same 1/4 inch per foot for the building sewer.

The 1/8 inch per foot figure is an exception, not a second standard. Under 708.1, pipe 4 inches or larger may run at 1/8 inch per foot, or 1 percent, only where 1/4 inch is impractical because of the depth of the street sewer, structural features or the arrangement of the building, and only when the Authority Having Jurisdiction approves it first. For building sewers, 718.1 applies that exception to 4 inch through 6 inch pipe. A 3 inch line gets no such exception, so the calculator flags any 3 inch run under 2 percent.

Both links point to the 2025 edition, which GoCodebook lists as in effect from January 1, 2026. A slope chart written for another state can show different minimums, your city can amend the code, and the inspector has the final word.

Is there a maximum slope for a sewer pipe?

Not in these two sections. 708.1 and 718.1 each state a minimum slope and no maximum. They do call for a uniform slope, so the grade should stay constant along the run instead of flattening in one place and steepening in another. If your site forces a much steeper drop than 1/4 inch per foot, ask the inspector how they want it handled before you trench.

Why the depth at the far end decides the layout

Fall adds up faster than most people expect. At 1/4 inch per foot, every 10 feet of pipe drops 2.5 inches, so the 50 foot example above ends more than a foot deeper than it starts. That depth has to match the point you are connecting to. The code itself names the depth of the street sewer as one reason a run may need the 1/8 inch exception (708.1).

Two cautions. The far end depth assumes level ground, so on a sloping yard measure the real depth at each end. And slope is set by the pipe in the ground, not by a repair product: a liner copies the pipe it sits in, so a belly or sag is fixed by replacing that section and resetting the slope, as our cast iron pipe lining page explains. To price the digging, use the trenching cost calculator.

When to call a contractor

This calculator is a layout check, not a design, and it includes no prices. Call a licensed contractor when the run cannot reach 1/4 inch per foot, when an existing line holds water or backs up, or when the work needs a permit. Medici Construction Group (CSLB #1114433) is one licensed option for drain and sewer work on the private property side, including pipe lining and sewer line descaling. For what a replacement involves, read what to expect from a sewer lateral replacement, or request a bid. Planning a yard drain instead? Try the French drain calculator.

Sources used by the calculator

Frequently asked questions

How do you calculate the slope of a pipe?

Multiply the length of the run in feet by the drop per foot in inches to get total fall. A 50 foot run at 1/4 inch per foot falls 12.5 inches. To turn a drop per foot into a percent, divide it by 12 and multiply by 100, so 1/4 inch per foot is 2.08 percent.

How many inches per foot is a 1.5% slope?

A 1.5 percent slope is 0.18 inch per foot, a little under 3/16 inch, or 1.8 inches over 10 feet. In California that is below the standard 1/4 inch per foot minimum for a drain line, so on 4 inch or larger pipe it needs approval first, and it is not allowed on 3 inch pipe.

What is a 1% slope over 10 feet?

A 1 percent slope drops 1.2 inches over 10 feet, which is 0.12 inch per foot. That is slightly flatter than 1/8 inch per foot, which works out to 1.04 percent. Over a 50 foot run, 1 percent is 6 inches of total fall.

How do I find what a 2% slope is?

Multiply the run by 0.02. A 2 percent slope drops 0.24 inch per foot, 2.4 inches over 10 feet and 12 inches over 50 feet. On a tape measure, 1/4 inch per foot is the usual stand-in and works out to 2.08 percent. The California Plumbing Code writes its standard drain minimum both ways.

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

In California the standard minimum is 1/4 inch per foot. The California Plumbing Code allows 1/8 inch per foot on 4 inch pipe only where 1/4 inch is impractical and the building department approves it first. Cities can amend the code, so confirm the number with your inspector before you trench.

See all tools

Let's talk about your project

Have a project in mind?

Request a bid, or call. A decision-maker answers.

(818) 237-8888