
Master Plumber Mather and Core Plumbing Math Formulas
The core plumbing math of the trade, often searched for as master plumber mather, comes down to three formulas: drainage fall equals run length times pitch per foot, pipe volume equals length times volume per foot (or bore area times length), and offset travel equals the set times the fitting-angle constant. Getting these right keeps work compliant with the 2021 IPC and 2021 UPC and saves costly mistakes on site.
Calculating total drainage fall
The first calculation is drainage fall: total fall equals the horizontal length of the run times the pitch per foot. A 40-foot horizontal drain at 1/4 inch per foot drops 40 x 1/4 = 10 inches. Subtract that from the starting invert elevation to get the invert at the downstream end, then check it against the depth of the connection you have to reach. If the outlet sits higher than the result, the run will not make grade at that pitch, and you will need a steeper start, a shorter run or a different route.
The pitch exists to keep the flow moving fast enough to scour solids along the pipe. Charlotte Pipe's cast iron technical manual names 2 feet per second as the usual minimum self-cleansing velocity, allows 2.5 feet per second where more flow is wanted, and treats 10 feet per second as a sensible upper limit to limit grit abrasion. Too little slope causes more than stoppages: the Copper Development Association notes that liquid left standing in a poorly sloped copper drain can corrode the tube.
Minimum slopes under the 2021 IPC and 2021 UPC
The pitch you multiply by is set by code. IPC Section 704.1 requires uniform alignment and uniform slope and points to Table 704.1: 1/4 inch per foot for pipe 2 1/2 inches and smaller, 1/8 inch per foot for 3 to 6 inches, and 1/16 inch per foot for 8 inches and larger. Any piping upstream of a grease interceptor needs at least 1/4 inch per foot whatever its size. The UPC works the other way round. Section 708.1 sets 1/4 inch per foot (2 percent) as the general minimum and allows 1/8 inch per foot (1 percent) only for pipe 4 inches or larger, only where a deep street sewer, the structure or the building layout makes 1/4 inch impractical, and only after the Authority Having Jurisdiction approves it. UPC 701.3.3 also requires drainage fittings to be made for a 1/4 inch per foot grade.
Minimum horizontal drainage slope: IPC vs UPC
| 2021 IPC | 2021 UPC | |
|---|---|---|
| 2 1/2 inches and smaller | 1/4 inch per foot | 1/4 inch per foot (2 percent) |
| 3 inches | 1/8 inch per foot | 1/4 inch per foot. The reduced-slope exception does not reach 3-inch pipe |
| 4 to 6 inches | 1/8 inch per foot | 1/4 inch per foot, or 1/8 inch per foot (1 percent) where impractical and first approved by the AHJ |
| 8 inches and larger | 1/16 inch per foot | Drainage piping: 1/8 inch per foot with AHJ approval. Building sewers: 1/16 inch per foot with AHJ approval |
| Upstream of a grease interceptor | At least 1/4 inch per foot, any size | No separate slope rule in the sections covered here |
| What allows a reduced slope | None: the table values apply outright | Deep street sewer, structural features or building arrangement, plus prior AHJ approval |
The difference
Check which code your jurisdiction adopted before you multiply: the same 3-inch run can need twice the fall under the UPC.
Finding internal water volume from Appendix E
Plumbing math for water piping volume is a lookup and a multiplication: length of run times volume per foot. IPC Section E105.1 directs designers to Table E105.1 for the approximate internal volume of distribution piping, listed in ounces of water per foot of tube. For 50 feet of 3/4-inch Type L copper, 50 x 3.22 = 161 ounces. The same length of 3/4-inch PEX CTS SDR 9 holds 50 x 2.35 = 117.5 ounces, so material choice changes the answer as much as size does.
Common values from IPC Table E105.1:
- 1/2 inch: Type M copper 1.69, Type L copper 1.55, PEX CTS SDR 9 1.18 ounces per foot
- 3/4 inch: Type M copper 3.43, Type L copper 3.22, PEX CTS SDR 9 2.35 ounces per foot
- 1 inch: Type M copper 5.81, Type L copper 5.49, PEX CTS SDR 9 3.91 ounces per foot
Volume for pipe the table does not list
When the material or size is missing from Table E105.1, work from the inside diameter. Find the cross-sectional area of the bore (0.7854 x ID squared), multiply by the run length in inches to get cubic inches, then convert cubic inches to gallons with the standard US gallon conversion. Take the inside diameter from a published table, such as IFGC Tables A105.1 and A105.2: 1-inch Schedule 40 steel has an ID of 1.049 inches, so its area is about 0.864 square inches, and 100 feet (1,200 inches) holds about 1,037 cubic inches. Always use the actual ID, never the nominal size.
Offset geometry: set, run and travel
Offsets carry pipe around beams, footings and other obstructions, and the codes care how you make them. UPC 706.3 (horizontal to horizontal) and 706.4 (vertical to horizontal) call for 45-degree wyes, combination wye and one-eighth bends or other approved fittings of equivalent sweep, and 706.4 also permits branches or offsets of 60 degrees where installed in a true vertical position. IPC 708.1.4 requires a cleanout where a horizontal drainage pipe, a building drain or a building sewer changes horizontal direction by more than 45 degrees. Where more than one such change occurs within 40 feet of developed length of piping, the cleanout at the first change serves all the changes within that 40 feet. IPC 710.1.1 sizes horizontal stack offsets as building drains in accordance with Table 710.1(1), except as required by Section 711.3, and IPC 710.1.2 sizes vertical stack offsets as straight stacks in accordance with Table 710.1(2), except where required to be sized as a building drain in accordance with Section 711.1.1.
Every offset is a right triangle. The set is the distance the pipe has to move sideways, the run is the distance it travels along the original line, and the travel is the hypotenuse, measured center to center of the two fittings. Travel equals the set times the constant for the fitting angle. With 45-degree fittings the set and run are equal and the constant is 1.414, so a 12-inch set needs 16.968 inches of travel.
From travel to cut length
Travel is a centerline figure, but you cut the pipe that sits between the fittings. Subtract the takeoff of each fitting, the distance from its center to where the pipe stops in it, taken from the fitting maker's dimensions. Forgetting one takeoff is the most common reason an offset comes up long.
45-degree offset with a 12-inch set
Tap Next to go through it.
Step 1
Identify the set: the pipe must move 12 inches sideways using two 45-degree fittings.
Step 2
Choose the constant: for 45-degree fittings it is 1.414, and the run also equals 12 inches.
Step 3
Find the travel: 12 x 1.414 = 16.968 inches, about 16 31/32 inches center to center.
Step 4
Read the takeoffs: for this illustration assume 1 1/2 inches per fitting, 3 inches for both. Use your own fittings' published figures on the job.
Step 5
Find the cut length: 16.968 – 3 = 13.968 inches, about 13 31/32 inches of pipe.
What to take from it
Multiply the set by the angle constant for center-to-center travel, then subtract both fitting takeoffs to get the piece you actually cut.
Frequently asked questions
Is there a maximum slope for horizontal drainage pipe?
For some systems, yes. Under IPC 915.2.1 a horizontal combination waste and vent pipe may not exceed 1/2 inch per foot (4 percent slope). Under IPC 914.3 the vent section of a circuit-vented horizontal branch may not exceed 1 unit vertical in 12 units horizontal (8.3 percent).
How much fall does a 60-foot, 4-inch horizontal drain need?
Under IPC Table 704.1, 4-inch pipe falls in the 3 to 6 inch range at 1/8 inch per foot, so 60 x 1/8 = 7.5 inches. Under UPC 708.1 the general minimum is 1/4 inch per foot, so 60 x 1/4 = 15 inches. The run drops to 7.5 inches only where 1/4 inch is impractical and the Authority Having Jurisdiction first approves 1/8 inch per foot.
Does Table E105.1 cover materials other than Type M, Type L and PEX?
Yes. Table E105.1 also lists Type K copper, CPVC CTS SDR 11, CPVC SCH 40, CPVC SCH 80, PE-RT SDR 9 and composite ASTM F1281. At 3/4 inch these hold 2.90, 2.67, 3.38, 2.74, 2.35 and 3.39 ounces per foot. So 50 feet of 3/4-inch CPVC SCH 40 holds 50 x 3.38 = 169 ounces.
Where can a horizontal branch connect to a horizontal stack offset?
IPC 704.3 requires horizontal branches to connect to a horizontal stack offset at a point not less than 10 times the diameter of the drainage stack downstream from the upper stack. For a 4-inch stack, that is at least 40 inches downstream.
Disclaimer: The information provided in this educational content has been prepared with care to reflect current regulatory requirements for continuing education. However, licensing rules and regulations can vary by state and are subject to change. While we strive for accuracy, ExpertCE cannot guarantee that all details are complete or up to date at the time of reading. For the most current and authoritative information, always refer directly to your state’s official licensing board or regulatory agency.


