
Vent and Drain Piping: DWV Installation and Code Guide
Vent and drain piping is a building's sanitary drainage network. Gravity carries liquid and solid waste out, while vents let air move through the pipes so pressure stays balanced and fixture trap seals hold. A code-compliant system depends on the right pipe material, correct slope and drainage fixture unit sizing under the IPC and UPC.
What is DWV pipe?
DWV pipe is the pipe and fittings that carry used water and waste out of a building and let air into the system. DWV stands for drain, waste and vent. Vent and drain piping works as one drainage system with two jobs. The drain and waste side moves water down and out by gravity. The vent side connects that system to outside air, so water falling through the pipes does not pull a vacuum behind it. Charlotte Pipe's cast iron manual calls vent lines the system's source of outside air. The IPC states that a gravity drainage system only works properly when an air path runs all the way through it.
The path waste takes from fixture to sewer
Every fixture first discharges through its own fixture trap, which holds a water seal against sewer gas. From the trap, the trap arm runs to a vertical vent connection. Past that point the fixture drain continues into a horizontal branch drain, and branches discharge into a vertical stack. Charlotte Pipe calls the main stack the soil stack. It rises from the building drain, up through the structure and out through the roof, where its open top forms the roof vent terminal. At the bottom, the building drain is the lowest piping. It collects everything inside the building walls and delivers it to the building sewer, which the UPC says begins 2 feet outside the building wall. The building sewer then carries the discharge to a public sewer, a private sewer, a private sewage disposal system or another point of disposal.
The code names pipes by what they carry. Soil pipe carries sewage containing fecal matter, so a water closet branch and the stack it enters are soil piping. Other fixtures discharge waste. Every change of direction must guide flow the way it is going. The UPC lets a horizontal line enter a stack through a 45 or 60 degree wye, a combination wye and one-eighth bend, a sanitary tee or sanitary tapped tee, or another fitting of equal sweep. Horizontal-to-horizontal joins need a 45 degree wye, a combination wye and one-eighth bend, or an equivalent. A common mistake is using a sanitary tee to turn flow from vertical to horizontal: IPC Table 706.3 allows it only from horizontal to vertical. The IPC also keeps branches clear of the stack base: they must connect at least 10 stack diameters downstream of it.
How vents protect the trap seal
Water rushing down a stack pushes air ahead of it and drags air behind it. Without a vent, that pressure swing can siphon a trap dry or force sewer gas back through it. The UPC defines a plumbing vent as the pipe that prevents trap siphonage and backpressure and equalizes air pressure inside the drainage system. The IPC sets a limit: the vent system must let air in or out so that no fixture trap seal sees a pressure differential greater than 1 inch of water column (249 Pa). Every trap or trapped fixture must be vented by one of the methods Chapter 9 permits, and each building drain needs at least one vent pipe extending outdoors.
Where the vent sits on the trap arm matters. UPC Table 1002.2 limits the developed length from the trap weir to the inner edge of the vent. That length may never be less than two trap-arm diameters, and the arm is kept at 1/4 inch per foot. For a water closet, the length is measured from the top of the closet flange to the inner edge of the vent and may not exceed 6 feet. For other fixtures, the table gives the minimum and maximum trap-to-vent distance by trap arm diameter:
| Trap arm diameter (inches) | Minimum trap-to-vent distance (inches) | Maximum length (inches) |
|---|---|---|
| 1 1/4 | 2 1/2 | 30 |
| 1 1/2 | 3 | 42 |
| 2 | 4 | 60 |
| 3 | 6 | 72 |
| 4 | 8 | 120 |
| Over 4 | 2 x diameter | 120 |
Choosing DWV pipe material
IPC Table 702.1 lists the pipe approved for above-ground soil, waste and vent work:
- ABS and PVC plastic in IPS diameters (Schedule 40, DR 22 and DR 24, with a solid, cellular core or composite wall)
- PVC plastic with a 3.25-inch O.D. and a solid, cellular core or composite wall (ASTM D2949)
- cast iron
- copper and copper-alloy pipe and tubing
- galvanized steel
- glass
- polyolefin
- PVDF
- stainless steel
Underground pipe and building sewer pipe have their own lists in Tables 702.2 and 702.3, so check the right table for the location before you order. On most jobs the choice comes down to PVC DWV pipe, ABS or cast iron soil pipe. Weigh how each joins, how quietly it runs, how it behaves in a fire and how hot the waste will get. Where wastewater will be hotter than 140°F, IPC 702.5 requires the sanitary drainage piping material to be rated for the highest temperature of the wastewater.
Plastic DWV vs cast iron soil pipe
| PVC DWV and ABS | Cast iron soil pipe | |
|---|---|---|
| Joining | PVC: purple primer to ASTM F656, then solvent cement to ASTM D2564, with the joint made while the cement is wet. ABS: solvent cement to ASTM D2235 on clean, dry surfaces. Both may use push-fit fittings to ASME A112.4.4. | Hub and spigot with an elastomeric compression gasket to ASTM C564 (tested to ASTM C1563), or mechanical joint couplings. |
| Mechanical and threaded joints | Elastomeric-seal mechanical joints are for underground work unless approved above ground. Thread only Schedule 80 or heavier wall, with dies made for plastic. | Mechanical joints are of the elastomeric compression type or mechanical joint couplings. No threading rule is given in the sources. |
| Noise | No noise rating is given in the sources. Charlotte Pipe's Quiet House design keeps plastic on lavatory, shower and tub lines. | Described by Charlotte Pipe as extremely quiet, which is why it is used for the stacks in that design. |
| Fire | Not described as noncombustible in the sources. | Noncombustible, and the primary DWV material in high-rise construction. |
| Temperature | Check the manufacturer's rating wherever wastewater will exceed 140°F. | The same 140°F rule in IPC 702.5 applies. |
| Testing | Water test only. Never use air. | Water or air test under UPC 712, but Charlotte Pipe, the cast iron maker, warns never to test its cast iron with compressed air or gas. |
The difference
Match the joint method and test method to the material, and confirm the temperature rating wherever wastewater exceeds 140°F.
Warning
Never air-test plastic DWV. The UPC allows water or air tests but bars air on plastic pipe. Charlotte Pipe warns that compressed air or gas in ABS, CPVC or PVC pipe and fittings can fail explosively and cause severe injury or death.
Sizing drains and setting slope under Chapter 7
Chapter 7 of both the 2021 IPC and the 2021 UPC governs the materials, design and installation of sanitary drainage. Pipe size follows load. Each fixture carries a value in drainage fixture units (DFU), and each pipe is sized for the total DFU flowing into it. The UPC computes these loads from its Tables 702.1 and 702.2. The IPC sizes building drains and horizontal stack offsets from Table 710.1(1), and straight stacks and vertical offsets from Table 710.1(2). Where a pump or ejector discharges into a gravity drain, the UPC counts 2 fixture units for each gallon per minute. Horizontal pipe must run in uniform alignment at a uniform slope no flatter than IPC Table 704.1:
| Pipe size (inches) | Minimum slope (inch per foot) |
|---|---|
| 2 1/2 or less | 1/4 |
| 3 to 6 | 1/8 |
| 8 or larger | 1/16 |
| Any size upstream of a grease interceptor | 1/4 |
Slope and size work together, because more fall lets the same pipe carry a bigger load. UPC Appendix C Table C 304.2 shows this for building drains and building sewers, giving the maximum DFU by pipe diameter at slopes of 1/16, 1/8, 1/4 and 1/2 inch per foot. In the table below, the 3-inch values at 1/4 and 1/2 inch per foot carry table note 2: no more than two water closets or two bathroom groups, or three in a single-family dwelling.
| Pipe diameter (inches) | Max DFU at 1/16 in/ft | Max DFU at 1/8 in/ft | Max DFU at 1/4 in/ft | Max DFU at 1/2 in/ft |
|---|---|---|---|---|
| 2 | – | – | 21 | 26 |
| 2 1/2 | – | – | 24 | 31 |
| 3 | – | 20 | 42 | 50 |
| 4 | – | 180 | 216 | 250 |
| 5 | – | 390 | 480 | 575 |
| 6 | – | 700 | 840 | 1,000 |
| 8 | 1,400 | 1,600 | 1,920 | 2,300 |
| 10 | 2,500 | 2,900 | 3,500 | 4,200 |
| 12 | 3,900 | 4,600 | 5,600 | 6,700 |
| 15 | 7,000 | 8,300 | 10,000 | 12,000 |
Watch out
Drain size never gets smaller in the direction of flow. IPC 704.2 allows only three exceptions. The first is a 4-inch by 3-inch water closet flange. The second is a closet bend with a 4-inch inlet and 3-inch outlet, as long as the 4-inch leg stands upright below the flange. The third is an offset closet flange.
Vent sizing, length and roof termination under Chapter 9
Chapter 9 of the 2021 IPC and the 2021 UPC sets which vent arrangements are allowed, how large they must be and where they end.
Under IPC 906.1, stack vents and vent stacks are sized from Table 906.1 using developed length and connected DFU. They may never be smaller than half the diameter of the drain served, or 1 1/4 inches.
IPC 906.2 covers individual, branch, circuit and relief vents:
- at least half the required drain diameter
- at least 1 1/4 inches
- one nominal size larger for the entire run once developed length passes 40 feet
Developed length runs from the farthest point where the vent connects to the drainage system to where it joins the vent stack or stack vent, or leaves the building.
When you install the vents, the IPC also requires you to:
- Grade vent and branch vent pipe so it drains back to the drainage pipe by gravity.
- Connect every dry vent to a horizontal drain above the drain's centerline.
- Rise each dry vent vertically to at least 6 inches above the flood level rim of the highest trap or trapped fixture it vents.
- Provide a vent stack for every drainage stack with five or more branch intervals, except drainage stacks installed under Section 913. Connect it at the stack base at or below the lowest horizontal branch, or to the building drain within 10 stack diameters downstream of the stack.
- Terminate vent stacks and stack vents outdoors, or at a stack-type air admittance valve under Section 918. At least one stack vent or vent stack in each plumbing system must reach open air.
- Make roof joints around vent pipes watertight with lead, copper, galvanized steel, aluminum, plastic or other approved flashing.
The UPC reaches the same goals with its own rules:
- Vents are sized from length and fixture units under Table 703.2.
- Individual vents must be at least 1 1/4 inches and no less than half the diameter of the drain served.
- The building's vents together must have a cross-sectional area at least equal to that of the largest required building sewer.
- Only one-third of a minimum-size vent's permitted length may run horizontally, unless the vent is increased one pipe size for its whole length.
- Unless prohibited by structural conditions, each vent rises at least 6 inches above the flood-level rim of its fixture before turning horizontal. Vents less than 6 inches above the rim are installed with approved drainage fittings, material and grade to the drain.
- Vent pipes pass through the roof without being reduced in size.
Check yourself
Under IPC 906.2, a branch vent serves a drain required to be 3 inches, and the vent's developed length is 45 feet. What is the minimum vent diameter?
- 1 1/4 inches
- 1 1/2 inches
- 2 inches
- 3 inches
Frequently asked questions
What is PVC DWV?
PVC DWV is polyvinyl chloride plastic pipe and fittings made for drain, waste and vent service. The IPC lists it in IPS diameters, including Schedule 40, DR 22 and DR 24, with a solid, cellular core or composite wall, to standards such as ASTM D2665 and ASTM F891. A 3.25-inch outside diameter version to ASTM D2949 is also listed. It is approved above ground, underground and for building sewers.
Is primer always required on PVC DWV joints?
No, but the exception is narrow. Under the IPC, you may skip primer only when both conditions are met: the solvent cement is third-party certified to ASTM D2564, and it is used only on nonpressure PVC drain, waste and vent pipe and fittings up to and including 4 inches. Otherwise, purple primer to ASTM F656 goes on before the cement.
How is a finished DWV system tested?
The IPC's final test is a detailed visual inspection. Where a smoke test is used, fill every trap with water and push thick, pungent smoke through the system. When smoke shows at the roof openings, close them and hold 1 inch of water column for at least 15 minutes. For the UPC water test, no section may see less than a 10-foot head of water, and the water stays in for at least 15 minutes before inspection.
Can an existing building drain be reused with new plumbing?
Yes, if it proves sound. When an entire drainage system is replaced, the IPC requires existing building drains under slabs and existing building sewers to be examined internally. The inspection confirms correct slope direction, no breaks or obstructions, and enough capacity for the new load. The UPC allows reuse where examination and testing show the piping meets the requirements for new work.
How do you rough in drainage for a future fixture?
Under the IPC, the drain for a future fixture ends in an approved cap or plug. A vent rough-in must be installed with it, at least half the diameter of the rough-in drain. The vent rough-in connects to the vent system or is vented another approved way, and it must be marked as a vent.
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.


