Plumbing is the system of pipes, fittings, valves, and fixtures that delivers potable water to every sink, shower, and appliance in a building, removes wastewater and sewage, and vents sewer gases safely to the atmosphere. It is one of the most ancient building technologies — Roman aqueducts and lead pipes date to the 1st century BC — and one of the most consequential for public health. Modern plumbing codes exist because improperly installed plumbing can contaminate drinking water, expose occupants to sewer gas (containing hydrogen sulfide, methane, and pathogens), and cause catastrophic water damage. This lesson covers the two major plumbing subsystems: water supply and drain-waste-vent (DWV).
Training Video
Plumbing 101: Supply and Drain
Animated pipe routing through a building showing supply and DWV systems · 15 min
Water Supply Systems
The water supply system delivers potable (drinkable) water under pressure to every fixture and appliance in the building.
System Components (from street to fixture):
- Water main — municipal water pipe in the street (typically 6"–12" diameter ductile iron)
- Service line — pipe from main to the building (typically 3/4"–2" copper or PE for residential; 2"–6" for commercial). The water meter and main shutoff valve are at or near the property line.
- Building main — pipe entering the building, typically through the foundation wall or slab, with a main shutoff valve inside
- Water heater — divides the system into cold and hot water distribution
- Branch lines — horizontal pipes that serve groups of fixtures
- Fixture risers/drops — vertical pipes to individual fixtures
- Fixture supply stops — shutoff valves at each fixture for isolation
Pipe Materials for Water Supply:
- Copper (Type L and Type M): The traditional standard for water supply piping. Type L (medium wall) is used for most above-ground residential and commercial applications; Type M (thin wall) is acceptable in some jurisdictions for residential. Joined by soldering (sweat joints), brazing, or press-fit connections. Copper is durable (50–70+ year life), has natural antimicrobial properties, and resists UV degradation. However, it is expensive and susceptible to corrosion in aggressive water conditions (low pH, high dissolved oxygen).
- PEX (Cross-Linked Polyethylene): Flexible plastic tubing that has rapidly become the dominant residential water supply piping material. Available in 3/8"–1" diameters in long continuous rolls (100–1,000 ft). Three types: PEX-a (Engel method, most flexible), PEX-b (silane method, most common), PEX-c (irradiation method). Joined by crimp rings, clamp rings, expansion fittings, or push-fit connectors. PEX advantages: lower material and labor cost than copper; freeze-resistant (expands without bursting); corrosion-proof; quiet (no water hammer). PEX limitations: cannot be exposed to UV light (degrades); not allowed for exposed exterior use; some jurisdictions still restrict or require specific types.
- CPVC (Chlorinated Polyvinyl Chloride): Rigid plastic pipe joined by solvent cement (glued joints). Common in residential hot and cold water supply, especially in southern states. Less expensive than copper but more brittle; can become fragile with age and certain chemical exposures (some spray foam insulations and fire caulks attack CPVC).
Water Supply Design Principles:
- Pressure: Municipal water pressure is typically 40–80 psi at the meter. Pressure above 80 psi requires a pressure reducing valve (PRV) to protect fixtures and piping. Buildings taller than 3–4 stories typically require a booster pump because pressure drops approximately 0.43 psi per foot of elevation.
- Pipe sizing: Based on the number and type of fixtures served, using fixture unit calculations. A fixture unit is a measure of the probable demand — a lavatory faucet is 1 fixture unit; a bathtub is 2; a commercial dishwasher may be 4. The total fixture units, combined with available pressure and developed length of piping, determine the required pipe diameter.
- Hot water: Water heaters (tank or tankless) typically deliver water at 120°F for residential use. Commercial buildings may use a higher temperature (140°F) with thermostatic mixing valves at fixtures to prevent scalding. Recirculation loops maintain hot water availability at distant fixtures, eliminating the wait for hot water (and the wasted water) but adding energy cost.
- Cross-connection control: Any physical connection between potable water and a non-potable source is a cross-connection and must be prevented. Backflow can occur when supply pressure drops (backsiphonage) or when downstream pressure exceeds supply pressure (backpressure). Backflow preventers — reduced pressure zone (RPZ) assemblies, double-check valve assemblies, and vacuum breakers — are required at irrigation connections, fire sprinkler connections, boiler makeup, and other potential cross-connections.
Drain-Waste-Vent (DWV) Systems
The DWV system removes wastewater and sewage from the building by gravity and maintains atmospheric pressure in the drain piping through a network of vent pipes.
System Components:
- Fixture drains — the tailpiece and trap at each fixture (sink, toilet, shower, etc.)
- Traps — U-shaped or P-shaped pipe sections that hold a water seal (typically 2"–4" of water) to block sewer gas from entering the building. Every fixture must have a trap. Toilets have integral traps.
- Branch drains — horizontal (sloped) pipes connecting fixture drains to the main drain. Minimum slope is 1/4" per foot for pipes 3" and smaller; 1/8" per foot for 4" and larger pipes.
- Drain stacks — vertical pipes receiving branch drains. A soil stack carries toilet waste; a waste stack carries other fixture waste (though these terms are often used interchangeably in modern codes).
- Building drain — horizontal (sloped) pipe at the lowest level collecting all drain stacks and running to the building sewer
- Building sewer — pipe from the building to the municipal sewer main (or septic system)
- Cleanouts — access fittings for rodding and clearing blockages. Required at the base of each stack, at each change of direction greater than 45°, and at regular intervals (every 100 feet for 4" pipe).
DWV Pipe Materials:
- PVC (Schedule 40): The most common DWV material for residential and light commercial. White plastic pipe joined by solvent cement. Lightweight, inexpensive, corrosion-proof, smooth interior (resists buildup). Not rated for continuous temperatures above 140°F.
- ABS: Black plastic pipe similar to PVC. Common in western states and Canada. Also joined by solvent cement. ABS and PVC cannot be solvent-cemented to each other — a mechanical coupling (banded or no-hub) is required for transitions.
- Cast iron: Traditional DWV material, still required by some codes in commercial buildings and multi-family residential, especially for drain stacks (cast iron is quieter than plastic). Hubless cast iron is joined with stainless steel band clamps (no-hub couplings). Cast iron is heavy but provides superior sound isolation and fire resistance.
- Copper (DWV): Thin-wall copper pipe used in some commercial DWV applications. Excellent longevity but expensive.
Venting Principles:
Vent pipes serve two critical functions:
- Prevent trap siphonage — when water flows down a drain pipe, it creates negative pressure (suction) behind it that can siphon the water out of downstream traps, breaking the seal. Vent pipes allow air to enter the drain system, equalizing pressure and protecting trap seals.
- Remove sewer gases — vent pipes extend through the roof, allowing sewer gases to dissipate harmlessly to the atmosphere rather than building up in the drain piping.
Vent types:
- Individual vent — a dedicated vent pipe for a single fixture trap
- Common vent — a single vent serving two fixture traps on opposite sides of the same wall (back-to-back fixtures)
- Wet vent — a vent pipe that also serves as a drain for another fixture (e.g., a lavatory drain that also vents a downstream toilet)
- Circuit vent — a single vent serving a group of fixtures on a branch drain (common in commercial bathrooms)
- Air admittance valve (AAV) — a mechanical one-way valve that admits air when negative pressure occurs but closes under positive pressure to prevent sewer gas escape. Allowed by most codes in specific applications as an alternative to traditional vent piping.
Water Heaters
Tank Water Heaters:
- Storage tanks (30–80 gallon residential; up to 120 gallon commercial) with gas burner or electric elements
- Recovery rate: How quickly the heater can reheat a full tank (gas heaters recover faster than electric)
- Energy factor (UEF): Efficiency rating accounting for standby losses; condensing gas tank heaters achieve 0.80+ UEF
- Temperature and pressure (T&P) relief valve: Critical safety device that opens if temperature exceeds 210°F or pressure exceeds 150 psi. Must be piped to a safe discharge point (floor drain or exterior). Never cap, plug, or remove a T&P valve.
Tankless (Demand) Water Heaters:
- Heat water on demand as it flows through the unit — no standby losses
- Gas-fired units (130,000–200,000+ BTU/hr) or electric units
- Flow rate limited: Rated in gallons per minute (GPM) at a temperature rise; a typical residential gas tankless produces 8–10 GPM at a 35°F rise
- Advantages: Endless hot water; compact size; longer life (20+ years); higher efficiency (0.87–0.97 UEF for gas condensing)
- Limitations: Higher upfront cost; may require gas line and vent upgrades; flow rate limited (may not serve multiple high-demand fixtures simultaneously)
Gas Piping
Natural gas and propane piping is part of the plumbing system and is governed by plumbing and fuel gas codes.
- Materials: Black steel pipe (threaded or welded) is the traditional standard. CSST (corrugated stainless steel tubing) is a flexible alternative that installs faster but requires proper bonding to the grounding electrode system to prevent damage from lightning-induced arcing.
- Sizing: Based on BTU/hr demand of all connected appliances, pipe length from meter to appliance, and allowable pressure drop (typically 0.5" w.c. for natural gas). Undersized gas piping causes low inlet pressure to appliances, reducing performance and potentially creating dangerous conditions.
- Shutoff valves: A main shutoff at the meter and individual appliance shutoff valves within 6 feet of each appliance.
- Testing: Gas piping must be pressure-tested before use (typically 3 psi air test for 10 minutes for low-pressure residential systems; higher pressures for commercial).
Key Terms
- DWV
- Drain-Waste-Vent — the gravity drainage and venting system
- PEX
- Cross-linked polyethylene — flexible water supply tubing
- CPVC
- Chlorinated polyvinyl chloride — rigid plastic water supply pipe
- Fixture unit
- Unit of measure for probable water demand from a fixture
- Backflow preventer
- Device that prevents contamination of potable water by reverse flow
- RPZ
- Reduced Pressure Zone assembly — high-hazard backflow preventer
- Trap
- U-shaped pipe section that holds a water seal to block sewer gas
- Trap seal
- The depth of water in a trap (typically 2"–4")
- Soil stack
- Vertical drain pipe that receives toilet waste
- Vent stack
- Vertical vent pipe extending through the roof
- AAV
- Air Admittance Valve — mechanical one-way vent valve
- T&P valve
- Temperature and Pressure relief valve on water heaters
- CSST
- Corrugated Stainless Steel Tubing — flexible gas piping
- PRV
- Pressure Reducing Valve — reduces water pressure to safe levels