🔢 Pipe Slope Calculator

Pipe Slope and Drop Calculator: IPC 2024 Drain Layout Tool

Calculate drain pipe slope, total drop, and run length for any pipe size. Checks IPC 2024 Section 704.1 minimums, warns on over-slope, and includes a construction layout guide so you can verify grade in the field with a 4-foot level. Three solve modes, six pipe sizes, multi-segment runs.

✓ 3 Solve Modes ✓ IPC 2024 Sec. 704.1 ✓ Over-Slope Warning ✓ Multi-Segment Runs ✓ PDF Report ✓ Construction Guide
🔢
Pipe Slope and Drop Calculator
IPC 2024 Section 704.1 referenced. Big.js precision arithmetic. US standard units.
feet
Measure the horizontal distance only, not the diagonal pipe length.
in/ft
Add each pipe segment separately. Cumulative drop is tracked across the full run.
🔢 Enter your pipe run details on the left and click Calculate to get slope, drop, IPC compliance check, and construction layout guide.

What Drain Pipe Slope Actually Means in US Residential Plumbing

The phrase “pipe slope” sounds technical, but it describes something straightforward: how much a horizontal drain pipe tilts downward from one end to the other. Plumbing drains are not pressurized the way water supply lines are. They rely entirely on gravity to move waste from the fixture to the sewer. That tilt is what makes gravity work for you, and getting it wrong in either direction creates problems that can last for the life of the building.

Slope is measured in the US as inches of vertical drop per foot of horizontal run. A standard residential drain runs at 1/4 inch per foot, which means that for every 12 horizontal inches of pipe, the pipe drops 1/4 inch. That does not sound like much, and visually it is very subtle. On a 20-foot run, 1/4 inch per foot produces only 5 inches of total drop at the end. But those 5 inches are enough to keep waste moving from a kitchen sink in a Chicago brownstone all the way to the main stack in the utility room.

The physics behind slope requirements come from the behavior of wastewater itself. Drain water carries two types of material: liquid and solids. The liquid is essentially water with dissolved waste. The solids are denser particles, paper, organic matter, and similar material. For the drain to function properly, liquid and solids must travel together. They need to move at similar velocities so neither is left behind.

Why Too Little Slope Creates Chronic Clogs

When drain slope falls below the minimum, water does not carry enough kinetic energy to keep solids suspended and moving. The water trickles down the pipe slowly, and the solids lose velocity, settle out of suspension, and begin to accumulate on the bottom of the pipe. Every flush adds a little more. Over weeks or months, this accumulation grows until the pipe partially or fully blocks. This is the root cause of the classic “slow drain” problem that plumbers find in older homes.

In field practice, a plumber will see this as a buildup of soap scum, grease, and organic material that clings to the lower half of the pipe wall. In a bathroom sink drain that runs 15 feet at only 1/16 inch per foot instead of the required 1/4 inch, that pipe is going to give problems within two to three years under normal household use. The homeowner will pay for drain cleaning repeatedly without understanding that the slope was wrong from the beginning.

Why Too Much Slope Is Also a Problem

This is less well known outside the trade, and it surprises most homeowners. If a sanitary drain is pitched too steeply, more than about 1/2 inch per foot, the liquid in the pipe starts to outrun the solids. Water flows faster down a steep pipe, but solids cannot accelerate at the same rate. The water races ahead, the solids are left behind moving slowly, and eventually the solids stall, dry out, and stick to the pipe wall. This phenomenon is sometimes called “hydraulic jump separation” or simply solid-liquid separation, and it creates a different kind of blockage than the one caused by too little slope. The pipe actually fails because it is too steep.

This is why IPC Section 704.1 establishes minimum slopes but professional practice also recognizes an effective maximum around 1/2 inch per foot for sanitary systems. This calculator flags any slope above that threshold with a warning so you can evaluate your layout before the pipe goes in the trench or behind the wall.

How the Pipe Slope and Drop Calculator Works

This tool offers three distinct calculation modes depending on which variable you know and which one you need to find. The underlying math in all three modes uses Big.js, a precision arithmetic library, to eliminate floating-point rounding errors that can accumulate in standard JavaScript division and multiplication.

Mode 1: Find Drop (Given Run Length and Target Slope)

This is the most common mode for new construction. You know how far the pipe needs to travel horizontally from the fixture to the stack, and you want to know how much vertical drop you need to allocate in your framing or trench. Enter the horizontal run in feet and select your target slope. The calculator multiplies run by slope to give you the required drop in inches, plus the equivalent in feet, the slope as a percent, and the slope ratio as a simple ratio like 1:48.

Mode 2: Find Run Length (Given Available Drop and Target Slope)

This mode solves for the maximum pipe run when you know your constraints. A very common situation is a drain that runs under a concrete slab where the stub-out height at the fixture is fixed and the sewer connection depth at the other end is fixed. You know the total vertical drop available, and you want to know the maximum horizontal distance that drop can serve at the required slope. Enter the available drop in inches and select your target slope. The calculator divides drop by slope to give you the maximum allowable run length.

Mode 3: Find Slope (Given Run Length and Available Drop)

This mode is for verifying existing work or diagnosing suspected problem drains. You have a pipe installed in a known location and you can measure both the horizontal distance and the vertical difference between the two ends. Enter both values and the calculator determines the actual slope in inches per foot, as a percent, as a ratio, and as an angle in degrees. Then it checks that slope against the IPC 2024 minimum for the pipe size you selected. This tells you immediately whether an existing drain meets code or is the source of the recurring clogs a homeowner has been calling about.

The IPC 2024 Compliance Check

After calculating slope, the tool compares your result against IPC Table 704.1 minimums for the pipe diameter you entered. Results appear in three states: a green pass badge when slope meets or exceeds the minimum, a red fail badge when slope falls below the minimum with the specific deficit called out, and an amber over-slope warning when slope exceeds 1/2 inch per foot. Each badge shows the exact IPC minimum for the pipe size you selected so you can reference it in a permit application or field note.

The Construction Layout Guide

The construction layout card appears automatically after each calculation. It tells you how much drop should appear every 4 feet of pipe run at your calculated slope. This is the number you use with a 4-foot level and a shim block to verify grade in the field without a laser or a digital level tool. For a slope of 1/4 inch per foot, every 4 feet of pipe should show exactly 1 inch of drop. You can verify this by placing a 4-foot carpenter’s level under the pipe, putting a 1-inch shim block under the high end, and checking that the bubble centers. This technique is used by working plumbers every day on residential and light commercial jobs across the US.

IPC 2024 Minimum Slope Standards for All Drain Pipe Sizes

The following table is drawn directly from IPC 2024 Section 704.1 and the corresponding IRC provisions for residential work. These are the minimum slopes that drain systems in the United States must meet. Your local AHJ may adopt additional local amendments, but no jurisdiction may relax these minimums without specific state authority.

Pipe Size Min Slope (in/ft) Equivalent Percent Typical Fixture Over-Slope Warning IPC Reference
1.5 inch 1/4″ per foot 2.08% Lavatory, bar sink Above 4.17% Sec. 704.1
2 inch 1/4″ per foot 2.08% Shower, laundry, kitchen sink Above 4.17% Sec. 704.1
2.5 inch 1/4″ per foot 2.08% Floor drain, utility sink Above 4.17% Sec. 704.1
3 inch 1/8″ per foot 1.04% Toilet (water closet), branch drain Above 4.17% Sec. 704.1
4 inch 1/8″ per foot 1.04% Main building drain, sewer connection Above 4.17% Sec. 704.1
6 inch 1/8″ per foot 1.04% Commercial building drain Consult engineer Sec. 704.1
8 inch and larger 1/16″ per foot 0.52% Large storm drain, public sewer Consult engineer Sec. 704.1

Sources: International Plumbing Code 2024 (ICC) and International Residential Code 2021 (ICC). Note that some jurisdictions, particularly California and a few Midwest states, add local requirements for toilet drains specifying 1/4 inch per foot on the first 10 feet from the fixture regardless of pipe size. Always check with your local AHJ before rough-in.

One practical note worth emphasizing: the 3-inch pipe entry in this table surprises many people. Under IPC 704.1, a 3-inch pipe only requires 1/8 inch per foot minimum. But many local codes and some inspector interpretations require 1/4 inch per foot on the first 10 feet of a toilet branch drain, regardless of pipe size. This is a common source of failed rough-in inspections. If you are in doubt, build to 1/4 inch per foot on any toilet drain and you will not have an argument with the inspector.

Three Real US Drain Layout Examples with Full Calculations

Seattle, WA
Craftsman bathroom addition: shower drain with limited floor joist space
Pipe size2″ PVC
Horizontal run14 ft
Required slope1/4″ per ft
IPC minimum1/4″ per ft
IPC statusPASS
Required drop: 3.50 inches total
Houston, TX
Pier-and-beam addition: 3″ toilet drain to main stack under slab addition
Pipe size3″ PVC
Horizontal run22 ft
Target slope1/4″ per ft
IPC minimum1/8″ per ft
IPC statusPASS
Required drop: 5.50 inches total
Chicago, IL
New construction: 4″ main building drain to city tap, 40-foot run
Pipe size4″ PVC
Horizontal run40 ft
Target slope1/8″ per ft
IPC minimum1/8″ per ft
IPC statusPASS
Required drop: 5.00 inches total

Seattle: Working Around Floor Joist Constraints

In the Seattle area, older Craftsman bungalows built between 1905 and 1930 often have 2×8 or 2×10 floor joists with very limited clearance between the subfloor and the top of the crawlspace. When a homeowner in the Fremont neighborhood wanted to add a second bathroom at the back of the house, the plumber faced a 14-foot run from the new shower drain to the existing 3-inch stack in the kitchen wall. The 2-inch shower drain pipe needed a minimum 1/4-inch-per-foot slope under IPC 704.1, which meant 3.5 inches of total drop over 14 feet. The joist space available was 4 inches between the bottom of the subfloor and the top of the crawlspace vapor barrier, which made the installation just barely feasible. The plumber used notches in two intermediate joists with structural headers to accommodate the pipe path. The 1/4-inch-per-foot slope fit with about 1/2 inch of clearance to spare.

In this type of scenario, the “find run” mode is also useful. If the plumber had only 3 inches of vertical clearance available and needed to know the maximum distance that 3 inches of drop could serve at 1/4 inch per foot, the answer is 12 feet maximum. That would have changed the pipe routing entirely. Running the numbers before cutting the subfloor is always the right sequence.

Houston: Toilet Drain Under a Pier-and-Beam Addition

Houston’s older residential areas, particularly in the Heights and Montrose neighborhoods, are largely built on pier-and-beam foundations. When a homeowner added a master suite at the back of a 1940s bungalow, the 3-inch toilet drain needed to run 22 feet under the new addition floor to connect to the main stack at the original building’s rear wall. Under IPC 704.1, a 3-inch pipe only requires 1/8 inch per foot minimum. At that slope, 22 feet of run requires just 2.75 inches of drop. But the plumber chose to install at 1/4 inch per foot instead, requiring 5.5 inches of drop, because Houston building department inspectors routinely require 1/4 inch per foot on toilet drains regardless of what IPC Table 704.1 technically allows. Local code amendments matter. The extra 2.75 inches of drop was accommodated by deepening the connection point at the existing stack slightly. The inspector passed it on the first inspection.

Chicago: New Construction with a City Sewer Tap

In new residential construction in Chicago’s North Side neighborhoods, a typical single-family home requires a 4-inch main building drain that runs from the main stack location inside the building out to the city sewer tap at the street. Tap depths in older Chicago neighborhoods average around 4 to 6 feet below grade, and the building’s interior foundation drain typically sits about 1 to 2 feet below the basement slab. On a lot with a 40-foot setback from building to street tap, the main drain needed to drop from the connection point inside to the tap level outside. Using 1/8 inch per foot (the IPC minimum for 4-inch pipe), 40 feet requires 5 inches of total drop. With the tap at 5.5 feet below grade and the interior connection at 1 foot below slab, the available drop was just over 4 feet. Five inches of drop was easily achievable. The slope checked out at 1/8 inch per foot exactly, which is the minimum, and the inspector approved the layout. Chicago’s Department of Buildings follows the IPC 2024 edition as amended by city ordinance.

Six Expert Tips for Getting Drain Slope Right Every Time

Tip 01
Always Measure Horizontal Run, Not Pipe Length
IPC slope is always expressed as a ratio of vertical drop to horizontal run, not pipe length. The pipe itself is slightly longer than the horizontal measurement because it runs at an angle. For most residential work this difference is negligible (a 20-foot run at 1/4 inch per foot has a pipe length about 0.0009 feet longer than the horizontal), but in engineering calculations always use horizontal run as the basis.
Tip 02
Mark Your 4-Foot Level Check Before You Set the Pipe
Before setting any drain pipe in a trench or through framing, mark a reference line on a straight 4-foot board at the required drop for 4 feet at your target slope. At 1/4 inch per foot, that mark is exactly 1 inch from the end. You can use a known-thickness shim (a standard 3/4-inch plywood scrap plus 1/4-inch is close enough for most jobs) to verify grade continuously as you set pipe. This technique is faster and more reliable than a digital level on uneven trench floors.
Tip 03
Protect Slope at Cleanout and Fitting Locations
Fittings, cleanouts, and P-traps disrupt smooth slope continuity if they are not installed carefully. A P-trap set slightly high or a cleanout with a misaligned hub can create a high spot in the line that holds water and solids. When setting fittings, check slope on both sides of the fitting, not just the straight runs. A fitting that appears plumb by eye can be off by more than 1/4 inch at the hub connection.
Tip 04
Bank Extra Drop in Long Runs With Floor Joist Crossings
On long drain runs that cross multiple floor joists, the notching and blocking required to pass through structural members can accidentally flatten sections of the pipe. Build 10 to 15 percent extra drop into your total run calculation to account for this. On a 30-foot run that requires 3.75 inches of drop at 1/8 inch per foot, calculate for 4.25 inches to give yourself buffer at each joist crossing. It is much easier to drain away extra drop than to recalculate when you are short.
Tip 05
Document the As-Built Slope Before Closing Walls
Take a photo of your digital level reading or your 4-foot level check on every drain segment before covering it. Write the actual measured slope in inches per foot on the photo caption. If a slow drain develops five years later, you will have documentation that the slope was correct when installed and can narrow the problem to root intrusion, grease buildup, or a downstream blockage rather than original installation error. This documentation also supports a permit final inspection.
Tip 06
Verify Existing Slopes Before Connecting New Fixtures
When connecting a new fixture drain to an existing line in a renovation, use “find slope” mode to verify the existing pipe grade before you commit to the connection point. An existing drain that looks functional but runs at only 1/16 inch per foot on a 2-inch lavatory line will start failing as soon as you add load to it. Discovering this before you open up the floor saves the cost of a second excavation. Use a long tape measure to get horizontal run and a water level or laser to measure the vertical drop accurately.

Quick Reference: Required Drop by Run Length at Standard Slopes

Use this table as a field reference. All drops are in inches. Pipe size determines which minimum slope column applies per IPC 2024 Section 704.1. This table is for sanitary drain pipe only; storm drains and vents follow different rules.

Run Length 1/4″ per foot drop (2″ pipe and smaller) 1/8″ per foot drop (3″ to 6″ pipe) 1/16″ per foot drop (8″+ pipe) IPC Min (4″ pipe)
5 feet1.25 inches0.63 inches0.31 inches0.63″ meets code
10 feet2.50 inches1.25 inches0.63 inches1.25″ meets code
15 feet3.75 inches1.88 inches0.94 inches1.88″ meets code
20 feet5.00 inches2.50 inches1.25 inches2.50″ meets code
25 feet6.25 inches3.13 inches1.56 inches3.13″ meets code
30 feet7.50 inches3.75 inches1.88 inches3.75″ meets code
40 feet10.00 inches5.00 inches2.50 inches5.00″ meets code
50 feet12.50 inches6.25 inches3.13 inches6.25″ meets code
75 feet18.75 inches9.38 inches4.69 inches9.38″ meets code
100 feet25.00 inches12.50 inches6.25 inches12.50″ meets code

Source: Calculated from IPC 2024 Table 704.1 minimum slope values. Authority: International Code Council (ICC). The final row (1-inch reference) at 1/4 inch per foot is confirmed: exactly 1 inch of drop per foot at that slope.

Frequently Asked Questions About Pipe Slope and Drain Grade

Under IPC 2024 Section 704.1, the minimum slope depends on pipe diameter. Pipes 2.5 inches in diameter and smaller must slope at least 1/4 inch per foot, which equals approximately 2.08 percent. Pipes from 3 inches through 6 inches require a minimum of 1/8 inch per foot, or about 1.04 percent. Pipes 8 inches and larger need 1/16 inch per foot minimum. The IRC 2021 contains the same minimums in Section P3005.3. Always verify which code edition your local jurisdiction has adopted before rough-in, as some jurisdictions add requirements beyond these minimums.
Yes. On sanitary drain pipes, slope above approximately 1/2 inch per foot (4.17 percent) causes liquid to separate from solids. Water flows fast on steep pipes, but solid particles cannot accelerate at the same rate. The result is that water races ahead and leaves solids behind, which then dry and adhere to the pipe wall, creating a blockage. This is called solid-liquid separation and it is specifically why maximum slope standards exist for sanitary systems alongside the IPC minimums. Storm drains and similar non-sanitary applications do not have the same sensitivity, but for toilet, shower, sink, and washer drains, keep the slope below 1/2 inch per foot.
A toilet waste line is almost always 3 or 4 inches in diameter. Under IPC 2024 Table 704.1, both 3-inch and 4-inch pipes require a minimum of 1/8 inch per foot. However, many local jurisdictions and many experienced plumbers use 1/4 inch per foot for toilet drains as a best practice, particularly on the first 10 feet from the flange. Some local building departments explicitly require 1/4 inch per foot on toilet branches regardless of what the IPC table allows. If you are doing permitted work, ask your inspector what they require before rough-in. If you have the clearance, using 1/4 inch per foot provides better performance and a larger margin against future blockage.
The most common field method uses a 4-foot level and a shim block. For 1/4 inch per foot slope, cut or find a shim exactly 1 inch thick. Place the level under the pipe or on top of it with one end elevated by the 1-inch shim. When the bubble centers, the pipe is at exactly 1/4 inch per foot. For 1/8 inch per foot, use a 1/2-inch shim. For 1/16 inch per foot, use a 1/4-inch shim. This method is fast, inexpensive, and requires no technology beyond a level that is known to be accurate. Digital levels and laser levels also work and can measure to greater precision, but the shim-and-level method has been used reliably by plumbers for generations. The construction guide in this calculator tells you the exact shim block size for any slope it calculates.
Slope ratio expresses grade as a proportion, typically written as 1:X, meaning 1 unit of vertical drop for every X units of horizontal run. A slope of 1/4 inch per foot equals 1:48 because one inch of drop occurs every 48 inches (4 feet) of horizontal run. A slope of 1/8 inch per foot equals 1:96. These ratio formats appear in survey and civil engineering documents and in some inspection forms. Slope percent expresses the same relationship as a percentage: 1/4 inch per foot becomes 2.08 percent because 0.25 inches divided by 12 inches per foot equals 0.0208, and multiplied by 100 gives 2.08 percent. This calculator displays slope in all three formats simultaneously after each calculation.
Visual assessment of drain slope is notoriously unreliable. A 2-percent grade is invisible to the naked eye. Pipes that look flat often actually do slope correctly, and pipes that look slightly pitched can be nearly flat when measured. The correct way to verify slope is with a level and measurement, not by eye. If a drain is clogging despite appearing to have grade, the first step is to measure the actual slope using the find-slope mode in this calculator. Enter the horizontal run and the measured vertical drop. Common findings include slopes of only 1/16 or 1/32 inch per foot on pipes that require 1/4 inch, usually because the pipe was installed by someone who estimated by eye. Also check for high spots at fittings, which interrupt flow even on pipes with otherwise correct slope.
Slope (also called grade, pitch, or fall in different regions) is the rate of vertical change per unit of horizontal distance. It is expressed as a ratio, a percent, or in US plumbing as inches per foot. Drop (also called fall or total fall) is the total vertical difference between the two ends of a specific pipe run. You can think of slope as a constant rate and drop as the accumulated result. A 20-foot run at 1/4 inch per foot has a slope of 0.25 inches per foot and a total drop of 5 inches. A 40-foot run at the same slope has the same slope rate but twice the total drop, 10 inches. Both numbers matter: slope tells you if the pipe will drain, and total drop tells you how much vertical space you need to allocate in the framing or trench for the full run.
Absolutely yes. The IPC minimum slope requirements in Section 704.1 apply to all horizontal drain piping regardless of floor level. A second-floor bathroom shower drain that runs through the ceiling joist space to the main stack must maintain 1/4 inch per foot on its 2-inch branch drain, exactly the same as a first-floor drain. The constraint on upper-floor installations is clearance between the subfloor and the ceiling of the floor below. Joists must be notched or bored to accommodate drain pipes, and building codes (IRC Section R802.4 for example) limit how much notching is permissible in structural members. This is precisely why knowing the exact required drop over your available run is critical on upper-floor plumbing work. Too much drop in too little joist depth is a structural conflict that has to be resolved in the design phase, not during rough-in.
IPC Section 704.1 is the primary code section in the International Plumbing Code that governs the slope (grade) of horizontal drainage piping. The 2024 edition specifies minimum slopes by pipe diameter: 1/4 inch per foot for 2.5 inches and smaller, 1/8 inch per foot for 3 to 6 inches, and 1/16 inch per foot for 8 inches and larger. This section also notes that “horizontal drainage pipe shall be run in practical alignment and have a uniform slope of not less than” these values. The IPC is published by the International Code Council and is adopted, usually with local amendments, by most US states. The equivalent section in the IRC (for one- and two-family residences) is Section P3005.3.1. You can access the official text at the ICC website linked in the reference section of this page.
Yes. A floor drain runs to a P-trap and then to the building drain using the same slope requirements as any other horizontal drain line. A 2-inch floor drain requires 1/4 inch per foot. A 3-inch floor drain requires 1/8 inch per foot minimum. Enter the pipe size, your available horizontal run, and your available drop to get the layout. One note on basement drainage: floor drains in older homes sometimes slope toward the floor drain at minimal grade because the slab was poured with very little fall. If the floor drain consistently smells or backs up slowly, use the find-slope mode to check the actual grade on the branch drain run from the trap to the building drain. A 2-inch branch at 1/16 inch per foot instead of the required 1/4 inch is a common finding in basement drainage problems.
Slab plumbing requires laying out the drain pipe positions before the slab is poured, which means the slope has to be planned precisely in advance. Use the find-drop mode to determine how much vertical drop you need for each drain run from the fixture stub-out to the building drain connection. The connection depth to the building drain is your endpoint. Work backward from that depth plus the required drop to determine where each fixture stub-out must exit the slab. On a 20-foot toilet branch at 1/4 inch per foot, the stub-out must be exactly 5 inches higher than the building drain connection. Layout mistakes on slab plumbing are very expensive to correct after the pour, so running these numbers with precision before excavation is essential. Many experienced plumbers run these calculations twice before marking the slab.
Sanitary drains carry blackwater and greywater from plumbing fixtures inside the building. They are subject to IPC Section 704.1 minimums and the over-slope limitations because they must carry solids suspended in liquid. Storm drains carry rainwater, which is essentially clean and contains no solids to transport. Storm drain systems tolerate a wider range of slopes and can operate correctly at much steeper grades without the solid-liquid separation problem. The IPC addresses storm drainage in Chapter 11, which uses different sizing and slope criteria than the sanitary provisions in Chapter 7. If your project involves a French drain, a downspout connection, or a site drainage system, the same minimum slope concepts apply but the over-slope concern is much less critical. Always clarify which drain type you are designing before applying slope standards.
The fractional notation “1/4 inch per foot” means that for every 1 foot (12 inches) of horizontal travel, the pipe descends 1/4 of an inch vertically. This is a compact way to express a slope ratio. In decimal form, 1/4 inch per foot is 0.25 inches per foot. As a percent slope, it is 0.25 divided by 12, multiplied by 100, which equals 2.083 percent. As a ratio, it is 1:48 (one unit of drop per 48 units of horizontal run, because 12 inches in a foot divided by 0.25 equals 48). The fraction notation is dominant in US field practice because it is easy to work with in the field: 1/4 inch per foot means a 1-inch shim block on a 4-foot level, which any carpenter or plumber can understand and apply without a calculator.
The underlying math, slope equals drop divided by run, works universally in any unit system. However, the IPC compliance check in this calculator is calibrated specifically to US IPC 2024 and IRC 2021 requirements, which use inch-per-foot slope standards. Most European countries use a different standard, expressing slope in mm per meter or as a percentage. The UK uses BS EN 12056, which specifies 1:40 to 1:110 slopes depending on pipe type and system design. If you are working outside the US, use the find-slope mode to calculate your actual slope in inches per foot, then convert to your local standard independently. The basic drop and run arithmetic is the same regardless of the code framework.
The multi-segment tool calculates cumulative drop across a drain run that changes slope at one or more points. In real buildings, a drain line might run at 1/4 inch per foot for the first 10 feet from the fixture, then join a larger-diameter horizontal branch that runs at 1/8 inch per foot for another 30 feet, then connect to the building drain at a different elevation. Each segment has its own length and slope. The multi-segment calculator tracks the total horizontal run and total vertical drop across all segments so you can see the cumulative elevation change at the end of the full run and verify that each segment meets its IPC minimum. This is particularly useful for complex bathroom groupings, additions where the new drain must connect to an existing system at a specific elevation, or any situation where the drain changes direction or changes pipe size along its path.
IPC slope requirements apply specifically to horizontal drainage piping, which the code defines as any pipe running at less than 45 degrees from horizontal. Vertical pipes, stacks, and any pipe running at 45 degrees or steeper are governed by different code provisions and do not have minimum slope requirements because they drain by essentially free-fall. The transition between a horizontal branch drain and a vertical stack is typically made with a fitting called a sanitary tee or a wye-and-eighth bend combination. The horizontal branch must maintain its required slope right up to the connection with the vertical stack. Horizontal portions of a drain system that run at a very slight angle, less than 45 degrees from level, are subject to the full IPC 704.1 slope minimums.