2021 IRC Chapter 30
Sanitary drainage is the piping that carries waste water and solids from every fixture to the building sewer, and it only works if three things are right at the same time: the pipe is an approved material joined correctly, it is sloped enough to keep solids moving, and it has cleanouts placed so a clogged line can actually be rodded open. This lesson covers those three subjects under 2021 IRC P3002 through P3005. It stops short of trap seals, drainage fixture unit sizing, and the specific minimum pipe sizes tied to fixture load, which are covered in Lessons 8 and 9. Texas cities commonly adopt the International Plumbing Code (IPC) rather than the IRC's plumbing chapters, often with local amendments, and any plumbing work still has to be performed by a plumber licensed by the Texas State Board of Plumbing Examiners; GCHS staff inspect, estimate, and manage that work rather than perform it. Check the specific code and edition the jurisdiction has adopted before citing a section number to a contractor or homeowner.
Drain, waste, and vent piping inside a building is limited to the materials in Table P3002.1(1) above ground and Table P3002.1(2) underground. Above ground, the list includes cast iron, ABS and PVC plastic pipe, copper or copper-alloy pipe and tubing, galvanized steel pipe, polyolefin pipe, and stainless steel drainage systems; galvanized steel may not be used underground and must stay at least 6 inches above ground (P3002.1). Plastic piping also needs allowance for thermal expansion and contraction. ABS and PVC cannot simply be solvent-welded to each other: P3003.2 prohibits solvent-cement joints between different types of plastic pipe, and P3003.13.4 requires an approved adapter fitting, with one narrow exception for a single solvent-cement joint between ABS and PVC at the end of a building drain and the beginning of the building sewer, using cement that meets ASTM D3138. CPVC, which shows up constantly in water distribution piping, is not on either drainage table; finding CPVC used as a drain line is a defect, not a code-compliant substitution. Some jurisdictions restrict ABS by local amendment over fire-spread concerns, which is one more reason to confirm the adopted code and amendments for the county or city where the work is happening before assuming a material is allowed.
A change in the direction of drainage flow has to use a fitting suited to that specific change. The sanitary tee, with its short, sharply curved branch, is approved only where flow drops from a horizontal branch into a vertical stack; used on its back to turn a horizontal run, or to bring a vertical stack into a horizontal line, it creates turbulence that a straight or nearly straight fall into it cannot smooth out, and the result is a fitting that collects solids and jams. A wye fitting combined with an eighth bend, a long-sweep quarter bend, or a combination wye and eighth bend is used instead wherever the change is horizontal to horizontal, or vertical to horizontal at the base of a stack. This is one of the most common defects GCHS inspectors find in unpermitted rehab plumbing, where a sanitary tee gets turned sideways because it was the fitting on hand, not because it belongs there.
P3005.3 sets the minimum slope for horizontal drainage piping by pipe diameter: pipe 2-1/2 inches and smaller must slope not less than 1/4 inch per foot, while pipe 3 inches and larger may slope at not less than 1/8 inch per foot. The larger pipe carries a deeper stream at the shallower slope and still moves solids along; a small pipe run at the smaller slope does not, which is why a 2-inch branch installed at 1/8 inch per foot is a citable defect even though that number is a valid code slope for a larger line. These figures are minimums, not targets: a horizontal drain run steeper than the minimum is generally acceptable, since the pipe still flows partly full and the practical limits are the available fall, the fitting geometry, and staying within the trap arm distance and slope rules covered in Lesson 9.
A cleanout is a capped or plugged fitting that lets a drain snake or auger reach into the line without cutting it open. P3005.2.1 requires cleanouts on horizontal drainage pipes and building drains at intervals of not more than 100 feet, measured along the developed length of the piping, and P3005.2.2 applies the same 100 foot interval to building sewers smaller than 8 inches. P3005.2.4 adds a cleanout at any change of horizontal direction greater than 45 degrees; where several such changes fall within 40 feet of developed length, the cleanout at the first one serves them all. P3005.2.3 puts a cleanout at the junction of the building drain and building sewer, or within 10 feet of developed length upstream of it. A cleanout that exists on paper but cannot actually be rodded is not a functional cleanout, so the code also sets a required clearance in front of it: not less than 18 inches for pipe 6 inches and smaller, and not less than 36 inches for pipe 8 inches and larger (P3005.2.9). P3005.2.10 adds that required cleanouts may not be installed in concealed locations, which include the inside of walls, below grade, and low crawl spaces, and a removable fixture trap can serve as a cleanout equivalent. (The plumbing codes some Texas cities adopt instead of the IRC set these tiers differently, so check the local code.) GCHS inspectors check this clearance directly, because a cleanout plate mounted flush against a finished wall or buried behind a built-in cabinet fails the requirement even if the fitting itself is correct.
In the field
A common rehab finding is a kitchen island or peninsula added over an existing drain line with no cleanout access left anywhere along the run. When a grease clog eventually forms, the only way in is to cut the finished floor or cabinet base open. Before pricing a kitchen remodel that reroutes or extends drainage, GCHS checks where the nearest existing cleanout sits, whether the new layout still leaves it reachable, and whether a new cleanout needs to be added to keep the full run within 100 feet of an access point.
The building drain is the lowest piping that collects the discharge from all other drainage piping inside the house and extends 30 inches in developed length of pipe beyond the exterior walls; beyond that point the same pipe is called the building sewer, and it conveys the drainage to the public sewer or private disposal system (definitions in Chapter 2). The distinction matters in practice because inspection responsibility, and sometimes material requirements, can differ between the two segments (compare Tables P3002.1 and P3002.2), with the building sewer often falling partly under a separate site-utility or plumbing permit depending on the jurisdiction.
P3005.4 says the size of the drainage piping may not be reduced in the direction of flow: a segment can stay the same size or step up moving downstream, but it can never step down, because a narrowing point is exactly where solids jam. This rule, together with the drainage fixture unit sizing covered in Lesson 8, means a drain layout has to be planned from the far end back toward the building sewer, not fixture by fixture in isolation. Access matters as much as size: a required cleanout may not be covered by mortar, plaster, or any other permanent material (P3005.2.10.2), and a threaded cleanout opening may not be used to add a fixture or extend piping unless another cleanout of equal size is installed with the required access and clearance (P3005.2.11). A casually capped stub left over from a remodel is not a cleanout; it is a stagnant pocket that collects solids and generates sewer gas, and inspectors will flag it.
A 3-inch building drain has to travel 32 feet from the base of a stack to the point it exits the foundation wall. At the P3005.3 minimum slope for that pipe size, 1/8 inch per foot, the total fall is 32 times 0.125, or 4 inches. If the stack's invert (its lowest inside point) sits 30 inches above the basement floor, and the drain must clear a 24-inch-deep footing along the way, the estimator checks that 30 inches minus 4 inches of fall still leaves the pipe above the footing at every point along the run; where it does not, the layout has to change, whether that means relocating the run, increasing the pipe size to lower the required slope, or lowering the stack's starting point.
1. Under P3005.3, the minimum slope required for a 2-inch horizontal drain is:
2. A 4-inch building drain may be sloped at a minimum of (P3005.3):
3. An inspector finds a 2-inch lavatory branch installed at 1/8 inch per foot of slope. This should be:
4. Installing a horizontal drain steeper than the code-required minimum slope is generally:
5. A sanitary tee is the correct fitting to use where drainage flow changes from:
6. An inspector finds a sanitary tee installed on its back to turn a horizontal drain run. This is:
7. Cleanouts on horizontal drainage piping and building drains are required at intervals not exceeding:
8. The minimum required clearance in front of a cleanout on a 4-inch building drain is:
9. A kitchen remodel buries the only cleanout on a drain run behind a new built-in cabinet with no access panel. This is:
10. Which of these is NOT listed as a drain, waste, and vent piping material in Tables P3002.1(1) and P3002.1(2)?
11. Joining ABS drainage pipe to PVC drainage pipe with ordinary single-material solvent cement is:
12. Under P3005.4, in the direction of flow, drainage pipe size may:
13. A horizontal drain has three changes of horizontal direction, each greater than 45 degrees, within 40 feet of developed length. Under P3005.2.4, the minimum number of cleanouts these changes require is:
14. A 3-inch building drain runs 24 feet at the P3005.3 minimum slope for that pipe size. Its total fall is approximately: