Chapter X

Plumbing Mathematics

MasterPlumberPractice study guide with diagrams.

Plumbing Mathematics

Learning Objectives

By the end of this chapter, you should be able to:

4.Calculate fixture unit loads and convert them to required design flow rates for water supply and drainage systems.
5.Apply the sizing tables and formulas from the 2018 IPC for sanitary drainage, venting, and storm drainage.
6.Perform slope, pitch, and grade calculations for horizontal drainage piping.
7.Determine water heater recovery rates and expansion tank sizing using code-accepted formulas.
8.Solve for pressure, head, and flow relationships as they apply to water distribution systems.
9.Navigate the IPC, IFGC, and Maryland code references quickly under timed, open-book conditions.

1.1 The Foundation: Fixture Units and Flow Rates

The single most important mathematical concept in the IPC is the fixture unit. The code assigns a dimensionless number—either a Drainage Fixture Unit (DFU) or a Water Supply Fixture Unit (WSFU)—to each type of fixture. These values are not direct flow rates; they are statistically derived weights that account for the probability of simultaneous use.

1.1.1 Drainage Fixture Units (DFUs)

DFUs are found in IPC Table 709.1 (and the expanded Table 709.2 for sanitary drainage). The critical distinction: for a private lavatory, the DFU value is 1; for a public lavatory, it is also 1, but for a sink in a public restroom, it may be 2. The trap size and the fixture type drive the DFU, not the actual pipe size.

Key calculation: Once you have total DFUs for a branch or stack, you convert to required pipe diameter using Table 710.1(1) (horizontal branches) and Table 710.1(2) (vertical stacks). These tables give maximum DFU loads for each pipe size at specific slopes (for horizontals) or stack heights (for verticals).

Field point: A master plumber must sum DFUs carefully, separating public vs. private fixtures. A common field error is using the same DFU for a public water closet (10 DFU) and a private water closet (6 DFU) when both are on the same branch.

1.1.2 Water Supply Fixture Units (WSFUs)

WSFUs are found in IPC Table E201.1 (informative appendix) or more practically in IPC Table 610.3 for individual fixtures. The conversion from WSFU to gallons per minute (gpm) is done via IPC Table E202.1 or Table 610.3 (for continuous flow). The key curve: for a system with 10 WSFUs, the demand is approximately 10 gpm; for 100 WSFUs, demand is approximately 30 gpm; for 1000 WSFUs, demand is approximately 100 gpm. This is a diminishing returns curve—do not assume linear scaling.

Critical formula: For continuous flow fixtures (e.g., hose bibbs, irrigation), add the actual gpm to the WSFU-derived demand. The code requires that the total demand be the sum of the intermittent (WSFU-based) demand plus the continuous flow rate.


1.2 Water Distribution System Sizing

1.2.1 The Velocity and Pressure Relationship

The IPC requires that the water distribution system be designed to deliver a minimum flow pressure of 8 psi at each fixture (per IPC Table 604.3), except where higher pressures are specified (e.g., 15 psi for a flush valve). The maximum static pressure is 80 psi unless a pressure-reducing valve is installed (IPC 604.8).

Head pressure formula: Pressure (psi) = Head (feet) × 0.433. Conversely, Head (feet) = Pressure (psi) ÷ 0.433. A 10-foot vertical rise reduces pressure by 4.33 psi. This is a pure physical constant—memorize 0.433.

Friction loss: The IPC does not mandate a specific friction loss formula (Hazen-Williams is the industry standard), but the code requires that the system be sized so that the velocity does not exceed 5 feet per second for hot water and 8 feet per second for cold water (to prevent water hammer and erosion). Use IPC Table E202.1 or the appropriate engineering tables to check velocity.

1.2.2 Sizing the Building Supply

Building Supply Sizing: WSFU to Table Building Supply Sizing: WSFU to Table IPC 2018 Table E103.3(3) — Developed Length & WSFU → Service Size BUILDING FIXTURES WC LAV TUB KIT WC LAV SHWR 1.6 1.0 1.4 1.4 1.6 1.0 1.4 METER TOTAL WSFU 9.4 1.6+1.0+1.4+1.4+1.6+1.0+1.4 TABLE E103.3(3) WSFU SVC SIZE 6.0 ½" 8.0 ¾" 9.4 1" 12.0 1¼" 20.0 1½" 30.0 2" Assumes 60 psi, 40 psi residual, 40 ft developed length (typical) DEVELOPED LENGTH: Meter → farthest fixture (2nd fl. lav) = 38 ft FARTHEST FIXTURE SERVICE: 1" Ø Pressure @ meter: 60 psi static Min residual: 40 psi ΔP available: 20 psi MasterPlumberPractice KEY: Water flow Critical node

The building supply (water service) is sized using IPC Table E103.3(2) or the equivalent. The process:

29.Calculate total WSFUs.
30.Determine the developed length (longest run from the meter to the farthest fixture).
31.Apply the pressure loss allowance: typically, the code assumes a friction loss of 10 psi for the service and distribution (per IPC E103.3), but you must subtract the elevation loss and the fixture pressure requirement from the available static pressure.
32.Use the table that corresponds to your available pressure (e.g., 40, 50, 60 psi) and the developed length to find the required pipe size.

Exam trap: The tables in Appendix E are based on Type L copper or Schedule 40 PVC. If the pipe is a different material, you must use the equivalent length correction factors. Do not ignore the "developed length" column—it includes fittings as equivalent lengths.


1.3 Sanitary Drainage: Slope and Capacity

1.3.1 The ¼-Inch Rule

Drainage Slope by Pipe Size (1/4 vs 1/8) DRAINAGE SLOPE BY PIPE SIZE IPC 704.1 — Slope of Horizontal Drainage Piping PIPE ≤ 3 INCHES ¼″ 1 FT SLOPE: ¼″ PER FOOT IPC 704.1 PIPE ≥ 4 INCHES ⅛″ 1 FT SLOPE: ⅛″ PER FOOT IPC 704.1 WHY TWO SLOPES? ≤ 3″ — ¼″/FT • Required for smaller pipes • Prevents solids settling ≥ 4″ — ⅛″/FT • Larger pipes self-scour • Flatter slope permitted ⚠ HYDRAULIC JUSTIFICATION Flatter slope only where flow rates are sufficient to keep pipe clean MINIMUM SLOPE TABLE (IPC 704.1) PIPE SIZE SLOPE REQUIRED 2½″ or less ¼″ per foot 3″ to 6″ ⅛″ per foot 8″ or larger 1/16″ per foot MasterPlumberPractice ▼ steeper slope for small pipes — scouring velocity ▼ flatter slope OK for large pipes — hydraulic justification

IPC 704.1 requires that horizontal drainage piping be sloped at ¼ inch per foot (2% grade) for pipe sizes up to 3 inches, and ⅛ inch per foot (1% grade) for pipe sizes 4 inches and larger, unless the slope is hydraulically justified. The code permits a minimum slope of 1/16 inch per foot for pipes 6 inches and larger if the velocity at full flow is at least 2 feet per second.

Slope calculation: Slope (%) = (Vertical drop ÷ Horizontal run) × 100. For a ¼-inch-per-foot slope, the drop over 12 feet is 3 inches. For a 10-foot run at ⅛-inch slope, the drop is 1.25 inches.

Field point: When laying pipe, a master plumber uses a level and a tape measure, not a calculator. But for the exam, you must be able to compute the total drop over a given run and determine whether a proposed slope meets code. The trap: the code allows you to increase slope, but never decrease below the minimum. However, excessive slope (greater than 45°) can cause solids to separate from liquid—so the code caps the vertical change.

1.3.2 Stack Sizing and the "Three-Story Rule"

For a vertical stack, IPC Table 710.1(2) provides DFU capacity based on the stack diameter and the total number of branch intervals. A branch interval is a story-level connection of horizontal branches to the stack. The table has three columns: stacks with up to 3 branch intervals, stacks with more than 3 branch intervals, and the total DFUs for the entire stack.

Key concept: The capacity of a stack is not the sum of the capacities of its branches. The stack's limiting factor is the ability of air to flow upward while water flows downward. For a 3-inch stack with more than 3 branch intervals, the maximum DFU load is 48, but the total load on the stack cannot exceed 48 DFUs regardless of how many branches are connected.


1.4 Venting Mathematics

1.4.1 The 1:8 Rule and Vent Sizing

IPC 905.5 (the "1:8 rule") states that a vent connection to a horizontal drainage branch must be made above the centerline of the pipe, and the vent must rise vertically at least 6 inches above the flood level rim of the fixture before connecting to any other vent. The mathematical implication: the angle between the vent and the drain must be no less than 45° from horizontal.

Vent sizing: Individual vents are sized per IPC Table 906.1, which is based on the drainage fixture unit load and the developed length of the vent. A vent serving 10 DFUs with a developed length of 30 feet requires a 1¼-inch vent. The trap: the developed length of a vent is measured from the farthest fixture connection to the point where the vent connects to a main vent or stack vent, not just the vertical rise.

1.4.2 Circuit and Wet Venting

Circuit venting (IPC 911) allows one vent to serve up to eight fixtures on a horizontal branch, but the vent must connect to the branch between the two most upstream fixtures. The mathematics: the total DFU load of the circuit-vented branch cannot exceed the limits of Table 911.1, and the vent size must be at least ½ the diameter of the drainage branch, but not less than 1¼ inches.

Wet venting (IPC 909): A wet vent can serve both a lavatory and a water closet, but the wet vent must be sized per Table 909.1. The trap: a wet vent cannot serve fixtures that discharge from a garbage disposer or a bidet, and the wet-vented section must not receive discharge from a fixture above.


1.5 Storm Drainage and Roof Drainage

1.5.1 Rainfall and Runoff

IPC 1106 requires that storm drainage be sized based on the 100-year, 1-hour rainfall rate for the location. The code provides a map (Figure 1106.1) with rainfall rates in inches per hour. For Maryland, this rate is typically between 3 and 4 inches per hour, depending on the county.

Runoff formula (rational method): Q = C × I × A, where Q is the flow in cubic feet per second, C is the runoff coefficient (0.9 for roofs), I is the rainfall intensity in inches per hour, and A is the area in acres. For a flat roof, the area is the horizontal projection. For a pitched roof, the area is the horizontal projection, not the sloped surface area.

Practical conversion: 1 inch of rainfall on 1 square foot of roof = 0.623 gallons. Therefore, a 1000-square-foot roof receiving 4 inches per hour of rain produces 2492 gallons per hour, or 41.5 gpm.

1.5.2 Sizing Vertical Conductors

IPC Table 1106.2 provides the capacity of vertical conductors (leaders) based on pipe diameter and rainfall rate. For a 4-inch leader at a 4-inch-per-hour rainfall rate, the maximum roof area is approximately 3600 square feet. For horizontal gutters and drains, use Table 1106.3, which accounts for slope.

Exam trap: The tables are based on the roof being sloped at ½ inch per foot for horizontal drains. If you use a lesser slope, you must reduce the capacity. Also, a vertical leader that offsets more than 45° must be treated as a horizontal drain for sizing purposes.


1.6 Water Heaters and Expansion Tanks

1.6.1 Recovery Rate

IPC 607.2 requires that water heaters be sized to supply the peak hourly demand. The recovery rate is the amount of water heated to the set temperature in one hour. The formula:

Recovery (gph) = (Total heat input in BTU/hr) ÷ (8.33 lb/gal × temperature rise in °F)

For an electric heater with a 4500-watt element: 4500 W × 3.412 BTU/hr per watt = 15,354 BTU/hr. For a 70°F temperature rise (from 50°F incoming to 120°F setpoint): Recovery = 15,354 ÷ (8.33 × 70) = 26.3 gph.

Field point: The code does not dictate the recovery rate; it dictates that the heater must meet the demand. A master plumber must calculate the peak demand (from IPC Table 610.3 or the manufacturer's data) and compare it to the heater's recovery capacity.

1.6.2 Thermal Expansion Tanks

IPC 607.3 requires a thermal expansion control device when a backflow preventer or check valve is installed on the water supply. The expansion tank sizing formula (per the standard engineering approach):

Tank volume = (Water volume in system × Expansion factor) ÷ (1 − (P1 ÷ P2))

Where P1 is the initial (static) pressure and P2 is the maximum allowable pressure (usually the relief valve setting). The expansion factor for water heated from 50°F to 140°F is approximately 0.02 (2% volume increase). For a 40-gallon water heater with 30 gallons of water, the expansion volume is 0.6 gallons. The tank must be sized to absorb this volume without raising the system pressure above the relief valve setting.


1.7 Fuel Gas Piping (IFGC)

1.7.1 Gas Demand and Pipe Sizing

IFGC Chapter 4 requires that gas piping be sized to deliver the required BTU/hr at a pressure drop not exceeding 0.5 inches of water column (for natural gas at pressures less than 14 inches WC). The sizing tables (IFGC Table 402.4(1) and (2)) provide capacities for Schedule 40 pipe and standard tubing.

Key conversion: 1 cubic foot of natural gas ≈ 1000 BTU. A furnace requiring 100,000 BTU/hr needs 100 cubic feet per hour (cfh). The tables are based on specific gravity (0.60 for natural gas) and a specific pressure drop. If the gas specific gravity differs, apply the correction factor from IFGC 402.5.

Field point: The longest run from the meter to the farthest appliance determines the pressure drop column. You do not size each branch based on its own length; you use the total developed length from the meter to the most remote appliance for all branches.

1.7.2 Gas Pressure and Manometer Math

1 inch of water column (WC) = 0.0361 psi = 249 Pa. A typical natural gas appliance requires 3.5 to 7 inches WC. The IFGC requires a test pressure of 1.5 times the system pressure, but not less than 3 psi for a 10-minute test (IFGC 406.4). For a system operating at 7 inches WC, the test pressure is 10.5 inches WC minimum.


1.8 Code Navigation: Where to Find It

ConceptPrimary Code LocationSupporting Table/Figure
DFU valuesIPC 709.1Tables 709.1, 709.2
Drainage pipe sizingIPC 710.1Tables 710.1(1), 710.1(2)
WSFU valuesIPC 610.3Table 610.3
Water demand conversionIPC E202.1Table E202.1
Minimum flow pressuresIPC 604.3Table 604.3
Maximum static pressureIPC 604.8
Drainage slopeIPC 704.1
Vent sizingIPC 906.1Table 906.1
Circuit ventingIPC 911.1Table 911.1
Wet ventingIPC 909.1Table 909.1
Storm rainfall ratesIPC 1106.1Figure 1106.1
Vertical conductor sizingIPC 1106.2Table 1106.2
Horizontal storm drain sizingIPC 1106.3Table 1106.3
Water heater sizingIPC 607.2
Expansion tanksIPC 607.3
Gas pipe sizingIFGC 402.4Tables 402.4(1), 402.4(2)
Gas pressure testIFGC 406.4
OSHA excavation29 CFR 1926.651

1.9 Practical Field Points and Exam Traps

Head to Pressure: 0.433 psi per Foot Head to Pressure: 0.433 psi per Foot IPC 2018 / IFGC 2018 — Plumbing Mathematics (MD-MST Ch.10) • Open-Book Reference Water Column 0 ft 5 ft 10 ft 15 ft 20 ft CONVERSION P = H × 0.433 psi = ft × 0.433 20 ft × 0.433 = 8.66 psi P = H × 0.433 0 psi 2.17 4.33 6.50 8.66 psi × 0.433 × 0.433 ⚠ WARNING Do NOT confuse head (ft) with pressure (psi). 1 ft ≠ 1 psi psi 0 15 8.66 20 ft 0 ft 8.66 psi 0 psi MasterPlumberPractice 20 ft 8.66 Static pressure only — subtract friction losses & fitting equivalent lengths for dynamic head
86.The 0.433 factor: Every pressure question on the exam will involve this constant. A 20-foot elevation change equals 8.66 psi. Do not confuse head (feet) with pressure (psi).
87.Fixture unit vs. flow rate: A 4-inch drain can carry 160 DFUs on a horizontal branch, but a 4-inch water pipe can only deliver about 60 gpm. These are different systems—do not cross-apply the tables.
88.The "continuous flow" addition: When a system has a hose bibb (5 gpm continuous), you must add that 5 gpm to the demand derived from WSFUs. The trap: the hose bibb also counts as a WSFU, so you double-count it if you are not careful. The code requires you to add the continuous flow to the total, but the fixture unit for the hose bibb is only used to size the branch, not the main.
89.Slope direction: Drainage slopes are always expressed as drop per foot of run. A ¼-inch-per-foot slope over 20 feet is a 5-inch drop. The trap: the code allows ⅛-inch-per-foot for 4-inch pipe, but only if the pipe is 4 inches or larger. A 3-inch pipe at ⅛-inch slope is a violation.
90.Vent developed length: The vent table uses developed length, which includes fittings. A vent that rises 10 feet and offsets 5 feet horizontally has a developed length of at least 15 feet plus fitting equivalents.
91.Maryland-specific: Maryland adopts the IPC without significant state amendments for plumbing, but the exam is administered by PSI and may include questions on the Maryland State Board of Plumbing rules regarding licensing, continuing education, and permit requirements. Know that the master plumber is responsible for the work of all journeymen and apprentices under their supervision.
92.OSHA 29 CFR 1926: For trenching and excavation, the master plumber must ensure that trenches deeper than 5 feet are protected (shoring, sloping, or shielding). The math: a 6-foot trench in Type B soil requires sloping at 1:1 (45°), meaning the trench opening must be 6 feet wider than the bottom on each side.

1.10 Summary of Critical Formulas

Pressure (psi) = Head (ft) × 0.433
Head (ft) = Pressure (psi) ÷ 0.433
Slope (%) = (Drop ÷ Run) × 100
Rainfall runoff (gpm) = (Roof area × Rainfall rate in inches/hr × 0.623) ÷ 60
Water heater recovery (gph) = BTU/hr input ÷ (8.33 × Temperature rise in °F)
1 inch WC = 0.0361 psi
1 cubic foot natural gas ≈ 1000 BTU

Master these relationships, know which table governs each calculation, and practice navigating the IPC and IFGC quickly. The open-book exam rewards speed in finding the right table, not memorization of every value.

Ready to test this chapter?

Practice with exam-aligned questions and timed simulations.

Start Practicing Free