Chapter VI

Plumbing Related Mathematics

MasterPlumberPractice study guide with diagrams.

Plumbing Related Mathematics

Learning Objectives

Upon completing this chapter, you will be able to:

4.Calculate drainage fixture unit (DFU) loads and convert them to required pipe sizes using the appropriate code tables.
5.Apply the horizontal pipe slope requirements and compute allowable lengths and drops for drainage piping.
6.Perform vent sizing calculations, including the ½-inch rule and the 1-inch rule for wet vents.
7.Determine water supply fixture unit (WSFU) demands and apply the ¾-inch minimum service line rule.
8.Compute expansion tank sizing for potable water systems and thermal expansion pressures.
9.Calculate gas pipe sizing using the longest run method and pressure drop tables.
10.Solve for septic tank and leach field capacities based on occupancy and percolation rates.
11.Apply basic geometric formulas (area, volume, circumference) to pipe sizing, tank capacities, and trench excavations.

1.1 The Mathematical Framework of the Code

The plumbing code is fundamentally a set of performance criteria expressed in numbers. A master plumber must be fluent in the arithmetic that underlies these criteria. The 2018 International Plumbing Code (IPC) and the 2018 Uniform Plumbing Code (UPC) both rely on a fixture-unit system that converts disparate fixtures (a water closet vs. a lavatory) into a common numerical load. The Texas Master exam tests your ability to apply these numbers, not merely recall them.

Key definitions you must internalize:

Drainage Fixture Unit (DFU): A dimensionless number assigned to a fixture that represents its probable discharge load into the drainage system. One DFU equals approximately 7.5 gallons per minute (gpm) of intermittent flow, or 1 cubic foot per minute.
Water Supply Fixture Unit (WSFU): A dimensionless number representing the probable water demand of a fixture, weighted for frequency of use and flow rate. One WSFU is roughly equivalent to 1 gpm for private use and 1.5 gpm for public use.
Critical Level (CL): The height above a fixture’s flood level rim at which a backflow prevention device must be installed. This is a measurement, not a calculation, but it appears in math problems involving vertical clearances.

The trap: Candidates often confuse DFU and WSFU. They are NOT interchangeable. A 1.6-gallon water closet is 3 DFU but only 2.5 WSFU (private) or 4.0 WSFU (public). Always read the problem statement to identify which system you are sizing.


1.2 Drainage System Sizing — The DFU Method

1.2.1 Total DFU Load

The first step in any drainage sizing problem is to sum the DFU values for all fixtures connected to a branch, stack, or building drain. The IPC assigns DFU values in Table 709.1 (IPC) or Table 702.1 (UPC). You must memorize the common ones:

FixtureDFU
Water closet (1.6 gpf or less)3
Water closet (greater than 1.6 gpf)4
Lavatory (bathroom sink)1
Kitchen sink (domestic)2
Bathtub or shower stall2
Laundry tub / utility sink2
Floor drain1
Dishwasher (domestic)1
Washing machine (domestic)3

Exam trap: A continuous flow fixture (e.g., a commercial dishwasher with a pump) is NOT counted in DFU. It is calculated at its actual gpm discharge and added to the system as a separate load. The code requires that continuous flow be converted to DFU by dividing the gpm by 7.5.

Example: A restaurant has 4 water closets (3 DFU each), 6 lavatories (1 DFU each), 2 service sinks (2 DFU each), and a continuous-flow dishwasher discharging 15 gpm. Total DFU = (4×3) + (6×1) + (2×2) + (15 ÷ 7.5) = 12 + 6 + 4 + 2 = 24 DFU.

1.2.2 Sizing Horizontal Branches and Building Drains

Once you have the total DFU, you use the appropriate sizing table. For the IPC, this is Table 710.1(1) for horizontal branches and Table 710.1(2) for building drains and stacks. The UPC uses Table 710.1. The critical columns are:

Slope: The minimum slope for a pipe 4 inches or larger is 1/8 inch per foot (1% slope). For pipes smaller than 4 inches, the minimum is 1/4 inch per foot (2% slope).
Maximum DFU capacity: This varies by pipe diameter and slope.

Memorize these anchor points (IPC Table 710.1(2)):

2-inch pipe at 1/4 inch per foot: 21 DFU
3-inch pipe at 1/4 inch per foot: 42 DFU (but a 3-inch water closet connection is limited to 3 DFU per fixture)
4-inch pipe at 1/4 inch per foot: 180 DFU
4-inch pipe at 1/8 inch per foot: 160 DFU
6-inch pipe at 1/8 inch per foot: 700 DFU

The trap: A 3-inch horizontal branch can carry 42 DFU, but if it receives a water closet, the code requires a minimum 3-inch pipe for the water closet connection itself. You cannot reduce to 2 inches downstream of a water closet even if the DFU count would allow it.

1.2.3 Stack Sizing

Drainage Stack Capacity vs Stack Height Drainage Stack Capacity vs Stack Height IPC/UPC 2018 — Chapter 6: Plumbing Related Mathematics — Master Plumber Theory VENT 1 BR. INT. 2 BR. INT. BASE MAX CAPACITY 42 DFU 3" Stack H = 1 story ONE-STORY STACK VENT 1 BR. INT. 2 BR. INT. 3 BR. INT. BASE MAX CAPACITY 48 DFU 3" Stack H = 3+ stories MULTI-STORY STACK Short fall = less siphon Long fall = greater siphon = more DFU ⚠ FIELD NOTE: Adding a fixture? Re-measure stack height from highest branch interval to base — not fixture count. MasterPlumberPractice

A drainage stack is sized differently from a horizontal branch. The IPC Table 711.1 provides the capacity of stacks based on the number of DFU and the stack height (the distance from the highest fixture connection to the lowest). The key concept is that a stack’s capacity increases with its height because of the "siphonage" effect of falling water. For a 3-inch stack with a height of more than 3 stories, the capacity may be 48 DFU, but for a one-story height, it is only 42 DFU.

Field point: When you add a fixture to an existing stack, you must verify the stack’s total height and its current load. A master plumber does not simply count fixtures; he measures the stack height from the highest branch interval to the base.


1.3 Slope and Drop Calculations

Slope and Drop Calculation With Invert Math Slope and Drop Calculation With Invert Math TX-MST Ch.6 Plumbing Related Mathematics · IPC/UPC 2018 · OSHA 1926 · NFPA 54 · Closed-Book Recall Inv: 100.00 Inv: 99.58 40 ft @ 1/8 in/ft Drop = 5 in Drop = Slope × Length 0.125 × 40 = 5.00 in Invert = 100.00 − 0.42 100.00 − 5/12 = 99.58 ft Building Drain Slope Limit Gauge 1/8 1/4 1/2 Max 1/2 in/ft for 4"+ pipe Liquids outrun solids Trap Arm Distance 30 in max 1-1/4" trap: 30" max along pipe Measured along pipe, not vertical drop Key Code References: IPC 704.1 / UPC 704.1 · Slope ≥ 1/4 in/ft for ≤3" pipe · 1/8 in/ft for ≥4" pipe · Max 1/2 in/ft OSHA 1926.651 · NFPA 54 Ch.5 · TAS 2018 · Invert math: Elev − Drop MasterPlumberPractice

The code mandates minimum slopes to ensure self-scouring velocities (2 feet per second at full flow). The formula for drop is:

Drop (inches) = Slope (inches per foot) × Length (feet)

Common values:

1/4 inch per foot = 2% slope
1/8 inch per foot = 1% slope
1/2 inch per foot = 4% slope (used for 1-1/2 inch and smaller pipes in some jurisdictions)

Example: A 40-foot building drain at 1/8 inch per foot slope must have a total drop of 0.125 × 40 = 5 inches. If the invert at the upstream end is at elevation 100.00 feet, the downstream invert is at 100.00 − (5 ÷ 12) = 99.58 feet.

Exam trap: The code prohibits a slope greater than 1/2 inch per foot for pipes 4 inches or larger, because excessive slope causes liquids to outrun solids. If a problem gives you a slope of 3/4 inch per foot, the answer is "re-slope to 1/2 inch per foot maximum," not a calculation.

Venting and slope interplay: The vent connection point must be within the allowable distance from the trap weir. For a 1-1/4 inch trap, the maximum distance is 30 inches (IPC Table 906.1). This is a linear measurement along the pipe, not a vertical drop. A common error is to measure the vertical drop instead of the developed length.


1.4 Vent Sizing Mathematics

1.4.1 The ½-Inch Rule

The IPC (Section 906.2) requires that a vent pipe have a minimum diameter of one-half the diameter of the drain pipe it serves. For a 3-inch drain, the vent must be at least 1-1/2 inches. For a 4-inch drain, the vent must be at least 2 inches.

Exception: A 1-1/4 inch vent may serve a 2-inch drain if the vent is not longer than 40 feet (this is a specific table value, not a general rule).

1.4.2 The 1-Inch Rule for Wet Vents

A wet vent (a pipe that serves as both drain and vent) must be one pipe size larger than the minimum required for the drain alone. For a bathroom group wet-vented through a 2-inch drain, the wet vent must be 3 inches. This is a "one size up" rule, not a mathematical doubling.

1.4.3 Vent Length and Diameter

The maximum length of a vent is determined by its diameter and the total DFU load on the drain it serves. IPC Table 910.2 provides these values. For example, a 1-1/2 inch vent can serve up to 8 DFU and can be 60 feet long. A 2-inch vent can serve 24 DFU and be 100 feet long.

The trap: The vent length is measured as the developed length from the connection to the drain to the point where it terminates in open air (or connects to a vent header). It is NOT the vertical rise alone. A vent that rises 10 feet and then runs horizontally 50 feet has a developed length of 60 feet.


1.5 Water Supply Sizing — The WSFU Method

1.5.1 Determining Demand

The IPC (Table E103.3(2) in Appendix E, or the mandatory Table 610.3 in the UPC) assigns WSFU values. For a private residence, a water closet is 2.5 WSFU; for public use, it is 4.0 WSFU. A lavatory is 1.0 WSFU (private) or 1.0 WSFU (public) — the difference is minimal for lavatories but significant for water closets and urinals.

Critical distinction: The code requires you to size the building supply based on the total WSFU, then convert to gallons per minute using a demand curve. The IPC provides a conversion table (Table E103.3(3)) that is non-linear. For example:

10 WSFU ≈ 6 gpm
20 WSFU ≈ 9 gpm
50 WSFU ≈ 18 gpm
100 WSFU ≈ 33 gpm

Field point: A master plumber must know that the demand curve assumes a probability of simultaneous use. A 50-unit apartment building does not have all 50 water closets flushing at once. The WSFU system accounts for this statistically.

1.5.2 Minimum Pipe Sizes

The code mandates minimum pipe sizes regardless of calculated demand:

Building supply: 3/4 inch minimum (IPC Section 605.2)
Individual fixture supply: 3/8 inch minimum for lavatories and sinks; 1/2 inch for water closets, bathtubs, and showers
Water heater: 3/4 inch cold water inlet and hot water outlet

The trap: A master plumber cannot reduce a building supply to 1/2 inch even if the calculated demand is only 2 gpm. The 3/4 inch minimum is absolute.

1.5.3 Velocity and Pressure Drop

The code limits velocity in piping to 8 feet per second (IPC Section 604.4) to prevent erosion and water hammer. The pressure drop due to friction is calculated using the Hazen-Williams formula, but for the exam, you only need to use the code’s tables (IPC Table E103.3(5) for friction loss). The formula is:

Pressure drop (psi) = Friction factor × Length (feet) ÷ 100

Where the friction factor is read from the table based on pipe size and flow rate.

Example: A 3/4-inch copper pipe flowing at 5 gpm has a friction loss of approximately 7.5 psi per 100 feet (from the table). For a 60-foot run, the drop is 7.5 × 0.6 = 4.5 psi.


1.6 Thermal Expansion Calculations

When a water heater heats water, the water expands. In a closed system (with a check valve or backflow preventer on the supply), this expansion increases pressure. The formula for expansion volume is:

Expansion volume (gallons) = System volume (gallons) × Expansion coefficient × Temperature rise (°F)

The expansion coefficient for water is approximately 0.0003 per °F (at typical domestic temperatures). For a 40-gallon water heater heated from 50°F to 140°F (a 90°F rise):

Expansion = 40 × 0.0003 × 90 = 1.08 gallons

The code (IPC Section 607.3) requires a thermal expansion tank sized to absorb this volume. The tank must be sized based on the initial system pressure and the maximum allowable pressure (usually 80 psi or the relief valve setting).

The trap: The expansion tank is required only when the system is closed (has a backflow preventer or pressure-reducing valve). In an open system (with a vent to atmosphere), expansion is relieved by backflow into the supply — no tank is needed.


1.7 Gas Pipe Sizing — The Longest Run Method

The 2018 International Fuel Gas Code (IFGC) requires gas piping to be sized using either the longest run method (prescriptive) or the branch length method (more precise). For the exam, the longest run method is standard.

1.7.1 Steps

97.Determine the total gas load (in BTUs per hour) of all appliances.
98.Identify the longest run from the meter or regulator to the farthest appliance.
99.Using the appropriate table (IFGC Table 402.4(2) for natural gas, Schedule 40 steel pipe), find the pipe size that can carry the required load over that distance.

Example: A house has a 40,000 BTU furnace, a 36,000 BTU water heater, and a 30,000 BTU range. Total load = 106,000 BTU/hr. The longest run is 50 feet. From the table, a 1-inch pipe can carry 140,000 BTU/hr at 50 feet (with a 0.5-inch water column pressure drop). Therefore, 1-inch pipe is adequate for the main line.

The trap: The longest run is measured from the point of delivery (meter) to the farthest appliance, not the sum of all branch lengths. The branch to the range may be only 20 feet, but if the furnace is 50 feet away, the main line must be sized for 50 feet.

1.7.2 Pressure Drop Allowances

For low-pressure systems (less than 1.5 psi), the allowable pressure drop is 0.5 inches water column (WC) for natural gas. For high-pressure systems (1.5 psi to 5 psi), the drop is 3 psi. The tables are different for each pressure regime.

Field point: A master plumber must verify the specific gravity of the gas. The tables are based on natural gas with a specific gravity of 0.60. If the gas is propane (specific gravity 1.53), the tables must be adjusted by a factor of the square root of the ratio of specific gravities. For propane, the correction factor is approximately 0.63 (i.e., the pipe must be larger).


1.8 Septic Tank and Leach Field Sizing

Septic Tank and Leach Field Sizing Worked Septic Tank & Leach Field Sizing — Worked Example TX Master Plumber · IPC/UPC 2018 · Chapter 6: Plumbing Related Mathematics · Closed-Book Recall SEPTIC TANK from house scum liquid level sludge to leach field TANK SIZING RULE 1,000 gal — first bedroom + 250 gal — each add'l bedroom 3-bedroom home: 1,000 + 2(250) = 1,500 gal LEACH FIELD TRENCHES 30 min/inch trench 1 — 90 ft² trench 2 — 90 ft² trench 3 — 90 ft² gravel backfill percolation LEACH FIELD SIZING — DESIGN FLOW × LOADING FACTOR Step 1 — Design flow: 150 gal/bedroom/day × 3 bedrooms = 450 gal/day Step 2 — Loading factor (30 min/in perc rate): 0.6 ft²/gal/day Step 3 — Required trench area: 450 gal/day × 0.6 ft²/gal/day = 270 ft² total Percolation rate → loading factor (from table, closed-book recall) 5 min/in 10 min/in 15 min/in 30 min/in 45 min/in 60 min/in 1.2 0.9 0.7 0.6 0.45 0.35 ⚠ Closed-book recall: Trench area = design flow × loading factor. 3-bedroom home → 1,500 gal tank minimum. Perc rate drives loading factor. MasterPlumberPractice

The Texas State Board rules and the IPC (Appendix K) require septic tanks to be sized based on the number of bedrooms or the estimated daily flow. The standard rule is:

Septic tank capacity (gallons) = 1,000 gallons for the first bedroom + 250 gallons for each additional bedroom

For a 3-bedroom home: 1,000 + (2 × 250) = 1,500 gallons minimum.

Leach field sizing is based on the percolation rate (minutes per inch of water drop). The required trench area is:

Area (square feet) = Daily flow (gallons) × Loading factor (from percolation table)

For a percolation rate of 30 minutes per inch, the loading factor is approximately 0.6 square feet per gallon per day. For a daily flow of 450 gallons (3 bedrooms × 150 gallons per day), the area is 450 × 0.6 = 270 square feet of trench bottom.

The trap: The daily flow is not the same as the septic tank capacity divided by a retention time. The code assumes 150 gallons per bedroom per day for residential use. A master plumber must use this design flow, not the actual water meter reading.


1.9 Geometric Formulas for the Field

1.9.1 Pipe Volume and Capacity

Volume of a cylinder (gallons) = (π × r² × L) ÷ 231 (where r and L are in inches)

For a 4-inch pipe, 10 feet long: r = 2 inches, L = 120 inches. Volume = (3.1416 × 4 × 120) ÷ 231 = 1,508 ÷ 231 = 6.5 gallons.

Field point: This is used to calculate the volume of water that must be drained from a system before repair, or the volume of a trap primer reservoir.

1.9.2 Trench Excavation

Volume of a trench (cubic yards) = (Width (ft) × Depth (ft) × Length (ft)) ÷ 27

A 100-foot trench, 2 feet wide, 5 feet deep: (2 × 5 × 100) ÷ 27 = 37 cubic yards. A master plumber uses this to estimate excavation costs and to verify that the pipe slope is achievable given the existing grade.

1.9.3 The 45-Degree Offset

For a 45-degree offset, the travel length is the offset distance multiplied by 1.414. The run (horizontal distance) equals the offset. For a 12-inch offset:

Travel = 12 × 1.414 = 17 inches (measured center-to-center of the fittings).

The trap: This calculation does not include the fitting allowance (the distance the pipe inserts into the fitting). In practice, you must subtract the fitting take-out. On the exam, however, the problem will state whether to use center-to-center or end-to-end.


1.10 Code Navigation — Where to Find It

ConceptIPC (2018)UPC (2018)IFGC (2018)
DFU valuesTable 709.1Table 702.1
Horizontal branch sizingTable 710.1(1)Table 710.1
Stack sizingTable 711.1Table 711.1
Slope requirementsSection 710.1Section 710.1
Vent sizing tablesTable 906.1, 910.2Table 906.1, 911.1
Wet vent rulesSection 909Section 909
WSFU valuesTable E103.3(2)Table 610.3
Demand conversionTable E103.3(3)Table 610.3
Minimum pipe sizesSection 605.2Section 605.2
Thermal expansionSection 607.3Section 608.3
Gas pipe sizingTable 402.4(2)
Longest run methodSection 402.4
Septic tank sizingAppendix KAppendix K

Exam strategy: Even though the exam is closed book, you must know the structure of the code. When a question references "Table 709.1," you should immediately know it is the DFU table. When it references "Section 607.3," you should know it is thermal expansion. This mental map is your only reference in the exam room.


1.11 Common Exam Traps and Field Realities

134.Fixture unit confusion: A 3-inch drain can carry 42 DFU, but a 3-inch water closet connection is limited to 3 DFU per fixture. You cannot connect two water closets to a 3-inch horizontal branch and claim 6 DFU on a 2-inch pipe — the 2-inch pipe is prohibited for water closets.
135.Slope direction: The code requires slope downward in the direction of flow. A problem that gives you an invert elevation at the downstream end higher than the upstream end is a trick — the answer is "re-pipe," not a calculation.
136.Vent termination height: A vent must terminate at least 6 inches above the roof (IPC Section 903.5). This is a measurement from the roof surface, not from the attic floor. A common error is to measure from the top of the insulation.
137.The 80 psi rule: The code requires a pressure-reducing valve if the static water pressure exceeds 80 psi (IPC Section 607.2). This is a threshold, not a calculation. If a problem gives you 85 psi, the answer is to install a PRV, not to upsize the pipe.
138.Continuous flow: Always convert continuous flow (gpm) to DFU by dividing by 7.5. A 30 gpm pump discharge is 4 DFU. Failing to do this will under-size the drain.
139.Water heater expansion: The expansion tank must be sized for the total system volume, not just the water heater tank. If the problem gives you 100 feet of 3/4-inch pipe, you must add that volume (100 × 0.003 gallons per foot = 0.3 gallons) to the tank volume.

1.12 Summary

Plumbing mathematics on the Texas Master exam is not abstract algebra — it is applied code arithmetic. The candidate must be able to:

Sum DFU and WSFU loads accurately.
Read and interpolate code tables.
Apply minimum size and slope rules.
Convert between gallons, cubic feet, and inches.
Recognize when a code rule (not a calculation) governs the answer.

The master plumber’s responsibility is to protect the public health, safety, and welfare. Every number in the code is tied to that duty. A miscalculated drain slope causes backups and disease transmission; an undersized gas line causes carbon monoxide backdrafting. The mathematics is the tool, but the code’s intent is the law. Master both, and the exam — and the field — will follow.

Ready to test this chapter?

Practice with exam-aligned questions and timed simulations.

Start Practicing Free