
Residential Plumbing Systems: Basics, Codes, and Pipe Materials
Residential plumbing is made up of two separate networks. A pressurized potable water supply brings clean hot and cold water to fixtures and the water heater. A gravity drain, waste and vent (DWV) system carries wastewater away, and its vents let air in and out through the roof.
Two separate networks make up a residential plumbing system
Every residential plumbing job, from a vanity swap to a new house, comes down to two sets of pipe that never share water. The supply side runs under pressure. It pushes potable water out to faucets, fixtures and the water heater. Potable water is water fit for drinking, cooking and household use. The drainage side has no pump behind it. Wastewater falls through sloped pipe by gravity, and vent pipes let air move in and out so that flow stays smooth.
The UPC gives a broad plumbing system definition. It takes in the potable supply and distribution piping, every fixture and its trap, the drainage and vent pipes, the building drain and building sewer, and water heaters with their vents. It also covers all the joints, devices and connections inside the property lines. The building drain collects waste inside the structure. The building sewer starts where that drain ends and carries the discharge to a public sewer, a private system or another point of disposal.
Key point
Keep the two networks apart. The IPC requires the potable supply to be designed, installed and maintained so that nonpotable liquids, solids or gases cannot get into it through a cross connection, which is any piping connection through which they could reach the supply. That is why a faucet spout must sit above the fixture's flood level rim, the rim water would spill over, with an air gap. The air gap is the open space between the spout opening and that rim. For a lavatory whose opening is no wider than 1/2 inch, that gap is at least 1 inch away from a wall and 1 1/2 inches close to one.
Which code chapters cover each part
This guide follows the 2021 editions of the International Plumbing Code (IPC) and the Uniform Plumbing Code (UPC). Both codes sort the types of plumbing work into chapters. For the main chapters covered in this guide, the numbers match: water heaters in Chapter 5, water supply and distribution in Chapter 6, sanitary drainage in Chapter 7 and vents in Chapter 9. The numbering does not match for every chapter, so check the contents of the code you are working to. Both also place their definitions in Chapter 2, where the plumbing terms used throughout are explained.
Where to look for each part of the house:
- IPC Chapter 4, fixture connections: IPC Section 405, in Chapter 4, governs how fixtures connect to drainage piping. UPC Chapter 4 likewise covers plumbing fixtures, faucets and fixture fittings, and the minimum number of fixtures by occupancy (UPC 401.1).
- Chapter 5, Water Heaters (IPC and UPC): heater installation and safety devices. One example: the IPC requires a vacuum relief valve to ANSI Z21.22 on any bottom-fed water heater.
- Chapter 6, Water Supply and Distribution (IPC and UPC): materials, design and installation of hot and cold supply piping, plus backflow protection.
- Chapter 7, Sanitary Drainage (IPC and UPC): drainage pipe, fittings, joints and the design of gravity piping.
- Chapter 9, Vents (IPC and UPC): vent arrangements, where vents connect and how they are sized.
- IPC Chapter 10, Traps, Interceptors and Separators: trap requirements and trap seal protection. It points to Chapters 4 and 7 for materials and connections.
On the riser diagram below, click each numbered point to match a part of the house to the chapter that regulates it.
The numbered points
Tap a number on the picture, or a card.
-
1. Water service main
The pressurized potable supply entering the house. IPC Chapter 6 and UPC Chapter 6 govern its materials, design and installation.
-
2. Water heater
Fed from the cold supply, it sends hot water out to fixtures. Covered by Chapter 5 of both codes.
-
3. Fixture trap
Holds the water seal under each fixture. IPC Chapter 10 sets trap requirements.
-
4. Drainage stack
Carries wastewater down by gravity to the building drain. Chapter 7 of both codes.
-
5. Roof vent terminal
The vent rises above the fixtures and ends outdoors through the roof. Chapter 9 of both codes.
Trap seals: the water barrier at every fixture
A fixture trap is the curved section of pipe under a sink, tub or other fixture that stays full of water after the fixture empties. That standing water is the trap seal. It stops air and odors in the drainage piping from coming back up through the fixture into the room where your client lives. If the seal is lost, nothing stands between the drain and the house.
Where a trap could dry out between uses, the IPC allows a trap primer to refill it. A wastewater-supplied trap primer device must conform to ASSE 1044, and its discharge pipe connects to the trap above the seal, on the inlet side.
How vents protect the trap seal
Water moving through a drain moves air with it. Without an air supply, falling water can pull a trap empty, which is siphonage. It can also push air and waste back up through the fixture, which is backpressure. Vent pipes prevent both by connecting the drainage system to outside air through a vent terminal on the roof. This keeps pressure inside the pipes balanced. The UPC requires every fixture trap, except where the code says otherwise, to be protected this way and air to circulate through all parts of the drainage system.
Key point
Both codes set the same limit. The vent system must keep the pressure difference on any trap seal to no more than 1 inch of water column, a small pressure stated as the height of a column of water. The IPC gives this as 249 Pa. The UPC gives it as 0.24 kPa, measured on the outlet side of the trap. Memorize the 1-inch figure.
Follow the path in the diagram. Wastewater leaves the fixture trap, runs along the fixture drain and enters the drainage stack through a drainage fitting. The vent pipe above that joint lets air in so the seal holds. Under the IPC, the vent system may only be used for venting the plumbing. Never tie anything else into it.
Types of plumbing pipes for potable water
Supply pipe carries water under pressure to people who will drink it, so the material must be rated for pressure and approved for drinking water. IPC Chapter 6 regulates both the material and how it is joined. Of the types of plumbing pipes used for supply, this guide covers copper tube and crosslinked polyethylene (PEX).
Copper tube
The Copper Development Association (CDA) Copper Tube Handbook explains how to braze a joint. Heat both the tube and the fitting until they are hot enough to melt the filler metal, sweeping the flame between them. Keep the flame off the filler metal itself and slightly ahead of where you feed it in. A good joint pulls filler into the socket by capillary action and leaves a continuous fillet all the way around. The UPC also lets you change direction in copper with a bend instead of a fitting, but only with bending equipment that does not deform the tube or shrink its cross-section.
Warning
Check grounding before you replace metal pipe. Under IPC 601.3, existing metallic water service pipe used for electrical grounding must not be replaced with nonmetallic pipe or tubing until another approved means of grounding is in place.
PEX tubing
PEX is polyethylene whose molecular chains have been chemically linked. Once cured, it cannot be softened and reshaped. The Plastics Pipe Institute (PPI) guide describes it as tough and flexible enough to survive normal jobsite handling. It comes in long continuous lengths that need fewer fittings. It resists corrosion and mineral scaling, and it holds up well against chlorine and chloramines in buried service lines. If the water inside freezes, PEX usually expands and then returns to its original size when the ice thaws.
When you install a PEX plumbing system, never pull the tubing tight. Leave slack for expansion and contraction. Put valved manifolds where they can be reached, never sealed behind drywall, and label each valve. For a hydrostatic test, use potable water only, and do not allow water in the system to freeze. The test pressure must be at least the expected working pressure, but not less than 50 psi and not more than 160 psi at 73°F, unless the tubing manufacturer recommends otherwise.
PVC, ABS and cast iron for drain, waste and vent
DWV pipe carries waste by gravity, and IPC Table 702.1 lists the standards that above-ground soil, waste and vent pipe must meet. In a PVC plumbing system for drainage, the pipe in IPS (iron pipe size) diameters, including Schedule 40, conforms to ASTM D2665, ASTM F891, ASTM F1488 or CSA B181.2. Schedule 40 is one of the pipe ratings the table lists for these diameters, alongside DR 22 (PS 200) and DR 24 (PS 140). ABS conforms to ASTM D2661, ASTM F628, ASTM F1488 or CSA B181.1. Cast-iron pipe conforms to ASTM A74, ASTM A888 or CISPI 301. Copper tubing, including Type DWV, is also on the list.
The joining method often decides the material. ABS is solvent cemented with cement to ASTM D2235 or CSA B181.1, on clean, dry surfaces, with the joint made while the cement is still wet. Mechanical joints on ABS go underground only, unless approved otherwise. Noise and heat also matter. The UPC requires piping to meet the sound limits in the building code. Where wastewater will be hotter than 140°F, the IPC requires drainage pipe rated for the highest temperature it will carry.
Watch out
Do not glue ABS straight to PVC. Joints between different plastics need an approved adapter fitting. There is one exception: a single solvent-cement joint where the building drain meets the building sewer, made with cement complying with ASTM D3138. Plastic to cast-iron hub pipe needs a caulked joint or a mechanical compression joint.
Test yourself: sort each material into the network it serves.
Sort it
Tap where each pipe material to the network it is installed in.
- PEX tubing
- Copper water tube with brazed joints
- Schedule 40 PVC (ASTM D2665)
- Schedule 40 ABS (ASTM D2661)
- Cast-iron pipe (CISPI 301)
- Copper DWV tubing
The answers
Potable water supply: PEX tubing; Copper water tube with brazed joints
Drain, waste and vent: Schedule 40 PVC (ASTM D2665); Schedule 40 ABS (ASTM D2661); Cast-iron pipe (CISPI 301); Copper DWV tubing
Who invented the plumbing system?
No single person invented the plumbing system. Ancient civilizations, including the Indus Valley and Rome, built water supply and drainage works, and those ideas developed over centuries into the written codes you work to today.
Those codes exist to protect health. The IPC treats a building that is not properly ventilated, sewered or drained, or anything that makes a water supply unwholesome, as a nuisance. The UPC lets the Authority Having Jurisdiction order extra work where meeting the code alone still leaves a health or safety hazard.
Frequently asked questions
What water pressure is too high for a house?
Under the IPC, static pressure (the pressure in the piping when no water is flowing) above 80 psi inside the building calls for an approved pressure-reducing valve with a strainer, conforming to ASSE 1003 or CSA B356. The valve must bring the pressure down to no more than 80 psi. It must be designed to stay open if it fails, and its parts must be repairable without cutting the pipeline. Service lines to sill cocks and outside hydrants are an exception, as are main supply risers where pressure from the mains is reduced to 80 psi or less at individual fixtures.
How is a new DWV system tested?
The UPC water test fills the system, or each section, so that no section is tested with less than a 10-foot head of water. Head is the height of water standing in the vertical pipe: the higher the water rises, the higher the pressure it creates. The water must stay in place for at least 15 minutes before inspection. Charlotte Pipe recommends 10 feet of head, about 4.3 psi, and slow filling so that trapped air escapes. Never test ABS, CPVC or PVC with compressed air or gas: Charlotte Pipe warns it can cause explosive failure, serious injury or death, and the UPC bans air testing of plastic pipe.
How much slope does a horizontal drain pipe need?
IPC Table 704.1 sets the minimum slope by pipe size. Pipe 2 1/2 inches or smaller needs 1/4 inch per foot. Pipe 3 to 6 inches needs 1/8 inch per foot, and pipe 8 inches or larger needs 1/16 inch per foot. Piping upstream of a grease interceptor needs at least 1/4 inch per foot, whatever its size.
What layouts are used for a PEX water supply?
The PPI guide describes three layouts. Trunk and branch runs a large main that feeds smaller branches to each fixture. Parallel, or home-run, runs a separate line from a central manifold to each fixture. Zoned runs trunk lines to remote manifolds near grouped fixtures such as a bathroom.
Which plumbing books should an apprentice study?
Start with the code your jurisdiction adopts, either the 2021 International Plumbing Code or the 2021 Uniform Plumbing Code. Learn its chapter layout and definitions. Useful trade references include the CDA Copper Tube Handbook for copper joining, the PPI PEX Plumbing Design and Installation Guide, and the Charlotte Pipe Plastics Technical Manual for plastic DWV installation and testing.
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.


