Pipe Slope Calculator - Drain Fall per Foot, IPC and UPC

    Minimum drain slope by pipe size under the IPC, IRC or UPC, the total drop in inches over your run, the slope from a measured drop, and flow velocity and capacity from Manning.

    Parameters

    Enter data for calculations

    Sets the minimum slope

    Nominal diameter

    Horizontal length of the run

    Affects velocity only

    Three ways to use it

    Form progress0 / 5 fields

    💡 Fill in all required fields to unlock the calculate button

    Drain pipe slope by code, and the drop it adds up to

    Pick the code, the pipe size and the length of the run, and this pipe slope calculator returns the minimum fall per foot and the total drop in inches. A 4-inch building drain running 60 feet needs 1/8 inch per foot under the IPC, which is 7-1/2 inches of drop; under the UPC the same run needs 1/4 inch per foot and 15 inches. It also works backwards: measure the drop you actually have and it tells you the slope and whether that passes.

    Quick start: code IPC / IRC, pipe 3 in., PVC, run 40 ft, "Minimum slope by code". Result: 1/8 in. per foot (1.04%), drop 5 in., velocity 2.39 ft/s.

    Next to the code numbers you get the flow velocity and the capacity in gallons per minute from the Manning equation, plus a table with the minimum slope for every size from 1-1/4 to 12 inches over your run.

    What goes in the seven fields

    1. Plumbing code - IPC / IRC (most states), UPC (California, Washington, Oregon and other western states), and two special cases: a drain feeding a grease interceptor under the IPC, and the reduced UPC slope that needs approval from the inspector.
    2. Pipe size - nominal diameter from 1-1/4 to 12 inches. Bathroom sinks are usually 1-1/4 or 1-1/2 in., showers and kitchen sinks 2 in., toilets and building drains 3 or 4 in.
    3. Run length - horizontal distance in feet from the start of the run to the end. Use decimals for inches: 20 ft 6 in. is 20.5.
    4. Pipe material - PVC / ABS, cast iron, vitrified clay or concrete. It changes only the velocity and capacity, not the code minimum.
    5. What to calculate - the code minimum, the drop for a slope you choose, or the slope from a drop you measured.
    6. Slope - inches per foot, shown only for the second mode: 1/4 is 0.25, 1/8 is 0.125, 1/16 is 0.0625.
    7. Measured drop - inches between the invert at the high end and the invert at the low end, shown only for the third mode.

    Minimum slope of horizontal drainage pipe

    The IPC (Table 704.1) and the IRC (Table P3005.3) use the same three steps. The UPC (Section 708.1) starts from 1/4 inch per foot for every size and allows 1/8 inch only for 4-inch and larger pipe, when the inspector agrees that 1/4 is impractical. Velocity and capacity in the table are for PVC flowing half full.

    Pipe sizeIPC / IRC minimumUPC minimumDrop per 10 ft (IPC)Velocity / capacity, PVC
    1-1/2 in.1/4 in./ft (2.08%)1/4 in./ft2-1/2 in.2.13 ft/s, 5.9 gpm
    2 in.1/4 in./ft (2.08%)1/4 in./ft2-1/2 in.2.58 ft/s, 12.6 gpm
    3 in.1/8 in./ft (1.04%)1/4 in./ft1-1/4 in.2.39 ft/s, 26.3 gpm
    4 in.1/8 in./ft (1.04%)1/4, or 1/8 if approved1-1/4 in.2.89 ft/s, 56.7 gpm
    6 in.1/8 in./ft (1.04%)1/4, or 1/8 if approved1-1/4 in.3.79 ft/s, 167.1 gpm
    8 in. and larger1/16 in./ft (0.52%)1/4, or 1/8 if approved5/8 in.3.25 ft/s, 254.4 gpm (8 in.)

    One exception sits outside the table: under the IPC a horizontal drain discharging to a grease interceptor needs at least 1/4 inch per foot, whatever its size. The calculator has it as a separate code option.

    Nine runs through the calculator

    Every card below is a result the calculator returned for those inputs, PVC unless the card says otherwise.

    Bathroom sink arm

    1-1/2 in., 6 ft, IPC: 1/4 in./ft, drop 1-1/2 in., 2.13 ft/s.

    Shower drain

    2 in., 8 ft, IPC: 1/4 in./ft, drop 2 in., 2.58 ft/s.

    Kitchen sink branch

    2 in., 12 ft, IPC: 1/4 in./ft, drop 3 in.

    3-inch drain at the minimum

    40 ft, IPC: 1/8 in./ft, drop 5 in., 2.39 ft/s.

    The same run at 1/4 inch

    3 in., 40 ft, slope 0.25: drop 10 in., velocity up to 3.38 ft/s.

    4-inch building drain, two codes

    60 ft: IPC 7-1/2 in. at 1/8, UPC 1 ft 3 in. at 1/4 (4.09 ft/s).

    Measured drop that fails

    4 in., 80 ft, drop 8 in.: 0.100 in./ft (0.83%), below the 1/8 minimum, which needs 10 in.

    Grease interceptor line

    4 in. cast iron, 25 ft, IPC grease option: 1/4 in./ft, drop 6-1/4 in.

    8-inch concrete line

    100 ft, IPC: 1/16 in./ft, drop 6-1/4 in., 2.17 ft/s.

    How the velocity and capacity are estimated

    The calculator uses the Manning equation, v = (1.486 / n) × R2/3 × S1/2, with v in feet per second, R the hydraulic radius in feet and S the slope in feet per foot. For a round pipe flowing half full R is one quarter of the diameter, exactly as when it flows full, so the velocity is the same in both states. Capacity is the velocity times the wetted area at half full, converted to gallons per minute.

    The roughness coefficient n is where the material comes in. For a 4-inch pipe at 1/8 inch per foot the velocity comes out like this:

    MaterialManning n usedVelocity, 4 in. at 1/8
    PVC / ABS0.0102.89 ft/s
    Cast iron0.0132.23 ft/s
    Vitrified clay0.0132.23 ft/s
    Concrete0.0151.93 ft/s

    Sewer design standards aim for at least 2 ft/s flowing full, the speed at which solids keep moving, and ask for erosion protection above 15 ft/s. The calculator flags both. Small branches at the code minimum often run a little below 2 ft/s; the code allows it, and more slope is the usual cure if a line keeps clogging.

    Where a correct slope still goes wrong on site

    Measuring to the top of the pipe. Drop is measured invert to invert, the inside bottom of the pipe. A hub, a fitting or a pipe of a different size at one end moves the top of the pipe without changing the invert.
    Uneven fall. Code asks for a uniform slope. A run that is steep near the start and flat at the end averages out fine on paper but leaves a belly where waste settles.
    Using the 3-inch rule on a 2-inch pipe. The 1/8 inch step starts at 3 inches. A 2-inch kitchen line at 1/8 inch per foot is half the required slope.
    Assuming the UPC reduction is automatic. The 1/8 inch option for 4-inch and larger pipe applies only where 1/4 is impractical and the authority having jurisdiction accepts it.

    Drain slope questions

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

    0.25 divided by 12 inches is 2.08%, often rounded to 2%. 1/8 inch per foot is 1.04% and 1/16 inch per foot is 0.52%. As a ratio, 1/4 inch per foot is 1:48.

    Can a drain pipe have too much slope?

    The IPC and UPC set minimums for horizontal drains, not a maximum. Past about 45 degrees a pipe counts as vertical rather than horizontal under the code definitions. The calculator stops at 6 inches per foot and warns when the velocity passes 15 ft/s.

    Which code applies to my house?

    Most states use the IPC for commercial work and the IRC for one- and two-family homes; both have the same slope table. Several western states use the UPC, and cities and counties add their own amendments. The local building department can tell you which edition is in force.

    How do I measure the drop on an existing pipe?

    Over short runs, put a level on the pipe and measure the gap under its low end: a 1/4 inch gap under a 1-foot level is 1/4 inch per foot. Over longer runs, use a laser or a string line and measure down to the pipe at both ends, then enter the difference as the measured drop.

    Why does the velocity ignore how full the pipe is?

    For a round pipe, the hydraulic radius is the same at half full and full, so Manning gives the same velocity at both. At other depths it differs. The capacity figure is for half full, a common sizing assumption for building drains.

    Related tools

    Gutter Size Calculator

    5 or 6 inch gutters and the number of downspouts from roof area, pitch and rainfall - See the calculator

    Linear Interpolation Calculator

    A value between two known points or two rows of a table, worked backwards too - See the calculator

    Plumbing Pipe Calculator

    Pipe footage, fittings, diameter and material cost for water, drain and gas lines - See the calculator

    Roof Pitch Calculator

    Rise over run, degrees and percent for a roof, the same slope arithmetic on a bigger scale - See the calculator

    Concrete Calculator

    Cubic yards and bags for the slab the drain runs under - See the calculator

    Rainwater Harvesting Calculator

    Gallons a roof collects from a given rainfall - See the calculator

    Water Usage Calculator

    How many gallons a household sends down the drains each day - See the calculator

    House Building Cost Calculator

    The whole build budget, plumbing included - See the calculator

    Similar calculators from this section