By the Best Plumbers Editorial Team. Published November 15, 2026.
Every toilet in your home needs two things to work properly: a drain that carries waste away and a vent that lets air into the system. Get either one wrong and you can end up with slow flushes, gurgling drains, or sewer gas drifting into the bathroom.
In the video below, the team at Hammerpedia walks through one simple way to plumb and vent a toilet using just a handful of basic drain, waste, and vent (DWV) fittings. As the video points out, there are several acceptable ways to vent a toilet. This one is a clean, easy-to-follow pattern that shows how the pieces fit together and what the plumbing codes require.
Here is a plain-English breakdown of what the video covers, with a few notes from us on when it makes sense to call a pro.
The Basic Layout: Flange, Bend, Wye, and Vent
The pattern in the video starts at the floor and works downstream:
- A 4-inch closet flange. This is the ring at floor level that the toilet bolts to and seals against with a wax ring.
- A short piece of 4-inch PVC that drops straight down from the flange.
- A 4x3 closet bend. The bend is 4 inches on the inlet and 3 inches on the outlet, turning the drain from vertical to horizontal.
- A wye with a 45 immediately downstream. This fitting is where the vent connects. Its size depends on your local plumbing code.
- A vent pipe that rises up the wall and ties into the home's existing venting.
If you have never seen what is inside the porcelain, our toilet anatomy diagram labels the parts of a toilet, which makes the rest of this layout easier to picture.
One detail is worth emphasizing. The vent should come off the top of the horizontal drain, not the side or bottom, so waste flowing past cannot run up into the vent. Dry vents are generally required to connect above the centerline of the drain they serve, then rise vertically before turning horizontal.
Does a Toilet Really Need a Vent?
Yes. The video answers this one directly: plumbing codes require every trap and trapped fixture to be vented, and that includes fixtures with internal traps like toilets. Under the International Plumbing Code (IPC), Section 901.2.1 says exactly that.
The reason is simple physics. When a toilet flushes, a slug of water and waste rushes down the drain. Without a vent, that moving water creates negative pressure behind it and can siphon the water out of the toilet's trap. Once the trap seal is gone, there is nothing stopping sewer gas from coming back up into the bathroom.
That is why a missing or blocked vent so often shows up as a smell. If you are noticing an odor, our guide to sewer smell in the bathroom walks through the usual suspects. And if your toilet gurgles or drains slowly even though nothing is clogged, read how to tell if your plumbing vent is clogged.
Individual Venting vs. Other Methods
The method in the video is called individual venting, sometimes called conventional venting. That simply means the toilet gets its own vent pipe that serves only its trap.
It is not the only option. Codes also allow:
- Common venting, where one vent serves two fixtures, such as back-to-back toilets.
- Wet venting, where a drain for one fixture also acts as the vent for another, a common approach in bathroom groups.
- Circuit venting, used for a row of fixtures on the same horizontal branch, often in commercial restrooms.
Individual venting is the easiest to understand and inspect, which is why it is a good starting point. If you are designing a full bathroom, our article with tips to plan your bathroom plumbing and layout covers how fixture placement affects your drain and vent options.
How Big Should a Toilet Vent Be?
This is where your local plumbing code matters. In the United States, most areas follow one of two codes: the International Plumbing Code (IPC) or the Uniform Plumbing Code (UPC).
Under the IPC, the video explains that a toilet's individual vent can be 1-1/2 inches, based on Section 906.2. In that case you can use a 3x3x1-1/2 inch wye with a 1-1/2 inch street 45 to start the vent.
Under the UPC, toilet vents are commonly sized larger, typically 2 inches, with the wye and street 45 sized to match. The video also notes that in UPC areas it is common to see one toilet in a home plumbed with a 3-inch, or even 4-inch, vent. That oversized vent helps satisfy the UPC's aggregate venting requirement, which looks at the total vent area serving the building.
Because vent sizing rules change from one jurisdiction to the next, always confirm with your local building department before you buy fittings. For a broader look at how pipe diameters are chosen across a whole house, see our plumbing pipe size chart guide.
How Far Can the Vent Be From the Toilet?
The pipe between a fixture's trap and its vent is called the trap arm, or fixture drain. How long it can be depends, again, on your code.
IPC: The video points out that the IPC places no length limit on a toilet's trap arm. The toilet still needs a vent, but the fixture drain can run as far as the layout requires.
UPC: The UPC is stricter. The distance from the toilet to its vent is limited to 6 feet, and that limit stays at 6 feet even if you use a 4-inch toilet drain. The UPC wants the distance measured from the face of the closet flange, along the centerline of the pipe, to the inner edge of the vent opening.
If you are in a UPC area and your layout puts the vent more than 6 feet away, you will need to move the vent or rethink the route.
What Size Drain Does a Toilet Need?
Regardless of which code you follow, the minimum drain size for a toilet is 3 inches. In the video's layout, the flange and the short drop are 4 inches, but every part of that run could be 3 inches and still meet code, for example a 4x3 closet flange feeding a 3-inch 90.
The closet flange matters for another reason, too. A flange that is damaged, set too low, or not secured to the floor is one of the most common reasons a toilet rocks or leaks. If you see water around the base, our guide on why a toilet leaks at the base explains what to check.
How Many Toilets Can Share a 3-Inch Drain?
The video closes with a question many homeowners ask when adding a bathroom. The answer depends on your local code, so check yours, but here is the UPC's position as the video describes it:
- No more than 3 toilets can connect to any 3-inch horizontal drain. Add a fourth, and that horizontal drain must increase to 4 inches.
- A 3-inch horizontal drain also cannot carry more than 35 drainage fixture units (DFUs), based on UPC Table 703.2.
- A toilet that flushes 1.6 gallons or less counts as 3 DFUs. Older toilets that flush more than 1.6 gallons count as 4 DFUs.
So even if you only have three toilets on a 3-inch line, the other fixtures connected to that same drain still count toward the 35 DFU limit.
Planning a New Bathroom or Basement Toilet?
The video's layout is a great way to understand how a toilet is drained and vented. Putting one in your own home is a different matter. Most jurisdictions require a permit and inspection for new drain and vent piping, and mistakes in slope, vent placement, or fitting orientation are expensive to fix once the floor and walls are closed up.
If you are finishing a basement, it pays to plan ahead. Our article on the benefits of having rough-in plumbing installed in your basement explains why roughing in the drains and vents early can save money later. If you are simply swapping an old toilet for a new one on an existing drain, our step-by-step guide on how to remove an old toilet and replace it with a new one is a better fit.
When to Call a Plumber
Venting and drain sizing are where DIY bathroom projects most often go wrong. Call a licensed plumber if:
- You are adding a toilet where there was not one before.
- Your existing toilet gurgles, drains slowly, or smells like sewer gas.
- You are not sure whether your area follows the IPC or the UPC.
- Your project needs a permit and inspection.
Before you hire, a few minutes of research goes a long way. Our list of questions to ask before hiring a plumber covers what to ask before any work starts.
When you are ready, search for plumbers near me on Best Plumbers. You will see plumbing companies only, organized by the areas they serve, with every review published, good and bad, so you can choose a plumber with confidence.
Video credit: Hammerpedia on YouTube. Plumbing codes vary by location; always confirm requirements with your local building department.