What You're Actually Doing When You Plumb a Toilet to the Sewer Line
Plumbing a toilet to the sewer line means running a drain pipe from the toilet's outlet to the main sewer line that leaves your house. The toilet sits above the floor, and waste flows downward through a trap (a U-shaped section of pipe that holds water to block sewer gases) and then into a larger pipe called a branch drain that connects to your main sewer line. The slope of every pipe matters: drains need to fall at least one-quarter inch per foot toward the sewer line, or waste and water will pool and cause backups.
This is not a job for someone without plumbing experience if the work involves breaking concrete, cutting into existing walls, or tying into the main sewer line itself. Those steps require permits, inspections, and often a licensed plumber. However, if you are replacing an existing toilet in the same location or running a new line through an unfinished basement or crawlspace where the main line is visible and accessible, the basic principles are the same.
Key Takeaways
- Toilet drain pipes must slope downward at least one-quarter inch per foot toward the sewer line, or waste will not flow properly.
- The trap under the toilet must be vented through a vent pipe that connects to your home's vent stack, or the toilet will drain slowly and smell.
- Most jurisdictions require a permit and inspection before you tie a new toilet drain into the main sewer line.
- Existing toilet locations are usually the easiest to work with because the drain and vent are already in place and you only need to replace the toilet itself.
- PVC pipe is the standard material for new drain lines in most areas, though cast iron and copper exist in older homes.
Understanding Slope and Why It Matters
Water and waste will not move through a horizontal pipe. They need gravity to pull them downward. A drain pipe that is too flat will cause solids to settle and water to pool, creating clogs and backups. A pipe that drops too steeply (more than one inch per foot) can cause water to drain faster than solids, leaving waste behind.
Measure the distance from the toilet outlet to the point where the drain connects to the main sewer line. For every 12 inches of horizontal distance, the pipe must drop at least 3 inches. Use a level and a tape measure as you lay out the route. Mark the high point (at the toilet) and the low point (at the main line), then calculate the drop needed. If the main sewer line is 20 feet away, the drain must drop at least 5 inches over that distance.
In a basement or crawlspace, this is straightforward because you can see the main line and measure directly. In a slab foundation or finished space, you will need to know where the main line exits the house — usually visible outside where it enters the municipal sewer or septic tank.
The Trap and Why Every Toilet Needs One
The trap is the curved section of pipe directly under the toilet. It holds standing water that acts as a seal, blocking sewer gases from rising back up into the bathroom. Without a trap, your toilet would smell like the sewer line. The trap is built into most modern toilet bowls, but the drain pipe leaving the toilet must also have a trap if the toilet's internal trap is not enough — this depends on local code and the distance to the vent.
When you flush, water fills the trap and then drains out, pulling air in behind it. That air needs to come from somewhere, and that is where the vent pipe comes in. If the vent is blocked or missing, the trap will empty as the toilet drains, breaking the seal and allowing gases to enter the bathroom.
Venting the Drain: The Second Pipe You Cannot Forget
Every drain needs a vent pipe. The vent allows air to enter the drain as water leaves, which prevents a vacuum that would slow drainage and siphon the trap dry. For a toilet, the vent pipe connects to the drain line somewhere between the toilet and the main sewer line, then rises vertically and connects to your home's main vent stack (the large pipe that runs up through the roof).
The vent must rise at least 6 inches above the highest point where it could be submerged by water — usually the rim of the toilet or the level of the roof if the vent exits there. In most codes, the vent must be at least 10 feet away from any window, door, or air intake, so sewer gases do not enter the house.
If your home already has a vent stack and you are adding a toilet in the same room or nearby, you may be able to tie the new vent into the existing stack. If you are adding a toilet far from the main stack, you may need to run a new vent line all the way to the roof. This is where a plumber's knowledge of local code becomes essential.
Pipe Size and Material
Toilet drains are typically 3 inches in diameter, while other fixture drains (sinks, showers) are 1.5 or 2 inches. The main sewer line is usually 4 inches. When you connect a toilet drain to the main line, it must tie in at the correct size — a 3-inch toilet drain cannot straightforward shrink to 2 inches partway through.
PVC plastic pipe is the standard for new installations in most areas. It is affordable, straightforward to cut and fit, and lasts 50 years or more. Older homes may have cast iron (heavy, durable, but corrodes over time) or copper (expensive, durable, rarely used for drains today). Check your local code before you buy materials — some jurisdictions still require cast iron in certain situations, and some have restrictions on PVC.
Connections between pipes use slip couplings, wyes (Y-shaped fittings for branch drains), and elbows (90-degree bends). For PVC, you glue joints with solvent cement. For cast iron, you use rubber couplings or lead and oakum (an old method that requires skill). If you are uncertain about the material in your existing line, a plumber can identify it and advise on how to tie in.
When You Need a Permit and Inspection
Any new toilet drain that ties into the main sewer line requires a permit in most jurisdictions. The permit process involves submitting a plan, paying a fee (usually $50 to $200), and having an inspector visit before you cover the work and after it is complete. The inspector checks that the slope is correct, the vent is properly sized and routed, and all connections are find.
Replacing a toilet in an existing location usually does not require a permit because you are not changing the drain or vent. You are only removing the old toilet and installing a new one. However, if you move the toilet to a different spot in the same room, you will likely need a permit because the drain and vent routes change.
Skipping the permit process can create problems when you sell the house, when you file an insurance claim after a flood, or when a future owner discovers unpermitted work. It also means the work was never inspected, so you have no assurance it meets code.
The Basic Steps for Running a New Toilet Drain
If the main sewer line is visible and accessible (in a basement or crawlspace), here is the sequence: First, locate the main sewer line and identify where you will tie in. Second, measure the distance and calculate the required slope. Third, plan the route for the drain pipe, avoiding obstacles and ensuring the slope is achievable. Fourth, cut into the main line at the tie-in point (or use a saddle fitting if you cannot cut) and install a wye fitting to accept the new 3-inch drain.
Fifth, run the 3-inch PVC pipe from the wye to the toilet location, maintaining the correct slope and supporting the pipe every 4 feet with straps or hangers. Sixth, install a trap at the toilet outlet if code requires one (check your local rules). Seventh, plan and run the vent pipe from the drain to the main vent stack, ensuring it rises properly and does not exceed the maximum distance allowed (usually 6 feet for a toilet). Eighth, test the drain by running water and observing flow, then call for inspection before covering any pipes with drywall or concrete.
Common Mistakes and How to Avoid Them
The most common mistake is running the drain pipe too flat. A slope that looks level to the eye is often too flat. Use a level and measure every few feet. Another mistake is forgetting the vent or running it incorrectly — the vent must rise, not run horizontally, and it must connect to the main stack or exit the roof properly. A third mistake is using the wrong pipe size or material, which can cause slow drainage or code violations.
A fourth mistake is tying into the main sewer line without a permit or inspection. This creates liability and future problems. A fifth mistake is not supporting the pipe adequately, which causes it to sag over time and creates low spots where waste pools. PVC pipe is lightweight but needs support every 4 feet. Cast iron is heavier and needs more support.
Frequently Asked Questions
Can I tie a toilet drain into a sink drain instead of the main sewer line?
No. A toilet drain is 3 inches in diameter and carries a large volume of water and solids. A sink drain is 1.5 or 2 inches and cannot handle the load. The two must have separate paths to the main sewer line, though they can merge into the main line at the same point.
What slope do I need if my toilet is only 6 feet from the main line?
At one-quarter inch per foot, a 6-foot run requires a drop of 1.5 inches. This is achievable in most basements. Measure the height of the main line at the tie-in point, then subtract 1.5 inches to find the height the toilet drain must be at 6 feet away.
Do I have to run a vent all the way to the roof?
In most cases, yes. The vent must reach open air above the roofline. Some codes allow a vent to connect to an existing vent stack inside the house if the stack already vents to the roof. Check your local code or ask the building department.
What happens if the main sewer line is under concrete?
You will need to break the concrete to access the line, which is a job for a licensed plumber with the right equipment. This is one of the most common reasons homeowners hire a professional rather than doing the work themselves.
Can I use flexible PVC hose instead of rigid PVC pipe?
No. Flexible hose is not approved for drain lines in most codes. It can kink, collapse under pressure, or sag and create low spots. Use rigid PVC pipe rated for drain applications.