The short answer
There is no single national plumbing vent code for roofs. Most U.S. jurisdictions adopt a model code, usually the International Plumbing Code (IPC) or the Uniform Plumbing Code (UPC), and then amend it. Your local building department has the final word. The points below are common in model codes, but exact numbers can differ, so confirm them locally before you build or change anything.
What a plumbing vent does
A plumbing vent is the pipe that rises from your drain system and exits through the roof. It lets air into the drain lines so water flows freely, keeps trap seals from being siphoned out, and lets sewer gases escape above the house. It is a different thing from the attic vents described in common types of roof vents, which move air through the attic space.
Typical requirements
- Height above the roof: Model codes generally require the pipe to extend a minimum distance above the roof surface, commonly about 6 inches. Some local rules ask for more, and snow depth can lead to taller pipes in snowy regions.
- Distance from openings: Vent terminations are generally kept away from windows, doors, and air intakes. A frequently cited approach is either a horizontal distance (often 10 feet) or a minimum height above the opening (often 3 feet).
- Pipe size in cold climates: In places with very low winter temperatures, codes may require the part of the vent that passes through the roof to be larger, often at least 3 inches in diameter, so frost does not close the opening.
- Material and connections: Vents are typically ABS, PVC, cast iron, or copper depending on the code. Joints must be sealed properly and the pipe supported.
- Roof used as a deck: If people use the roof, the pipe may need to be much taller.
- Not terminating in the attic: Plumbing vents are meant to exit outside, not end inside the attic space.
Flashing and roofing details
Where the pipe passes through the roof, a flashing (often a rubber boot, lead, or metal collar) keeps water out. Rubber boots can crack with age and are a common leak source, so they are worth checking during any inspection or when you consider roof parts and names. The flashing should be shingled into the roof, with the upper edge under the shingles above it and the lower edge over the shingles below, so water runs over it rather than behind it.
Finding your local rule
Call or visit your local building department and ask which plumbing code edition applies and whether any amendments cover roof penetrations. A licensed plumber will know the local rules, and a roofer can coordinate with them when a new roof is installed. If a vent pipe is leaking, damaged, or too short, it is wise to have it fixed by a professional.