Installing a new toilet drain is not like replacing a toilet flange or swapping out the wax ring. It means cutting into the floor to access the waste pipe, running new pipe from the toilet location to the main waste stack, connecting into the existing drain system, and installing a vent so the toilet flushes without gurgling and the trap does not siphon dry. This is structural plumbing. It requires cutting and gluing large-diameter PVC or ABS pipe, cutting into the main stack while it contains whatever the upstairs bathroom just sent down, and ensuring the new drain meets the slope, sizing, and venting requirements of the plumbing code. A toilet drain that is installed wrong does not leak slowly. It leaks sewage into the floor cavity, the ceiling below, or the crawlspace.

This job is appropriate for a homeowner who has successfully completed smaller plumbing projects, such as replacing a sink drain or installing a dishwasher, and who understands how a drain-waste-vent system works. If you have never glued PVC pipe, cut into a main stack, or worked with plumbing that will be concealed behind drywall and flooring, this is not the project to learn on. The cost of a plumber to install a new toilet drain is typically between five hundred and fifteen hundred dollars depending on access and complexity. The cost of repairing a failed DIY toilet drain includes the plumber’s fee plus the cost of repairing the water damage from the leak you did not discover for six months.

Planning the Drain Location — The Rough-In Is the Only Measurement That Matters

The toilet drain must be positioned so the finished toilet sits the correct distance from the finished wall. The standard rough-in measurement is twelve inches from the center of the drain pipe to the face of the finished wall behind the toilet. A twelve-inch rough-in fits the vast majority of toilets sold in the United States. A ten-inch rough-in fits compact toilets designed for small bathrooms. A fourteen-inch rough-in fits a limited number of toilets, and buying a toilet for a fourteen-inch rough-in limits your choices to a handful of models. If you are installing a new drain, set it at twelve inches unless you have a specific reason to deviate.

The rough-in measurement is taken from the finished wall, not the framing. If the wall behind the toilet will be covered with half-inch drywall, the center of the drain pipe should be twelve and a half inches from the face of the stud. If the wall will have a wainscot or tile that adds thickness, account for that as well. A toilet that is too close to the wall will not fit. A toilet that is too far from the wall will leave a gap behind the tank that collects dust and looks like a mistake.

The drain pipe must also be positioned side to side so the toilet is centered in the space. The minimum clearance from the center of the toilet to a side wall or a vanity is fifteen inches under most plumbing codes. A toilet squeezed into a space with less than fifteen inches of clearance on either side is uncomfortable to sit on and violates code. Measure the available width, find the center, and position the drain accordingly.

Drain Pipe Sizing and the Closet Bend

A toilet drain must be at least three inches in diameter. Some codes require a four-inch drain for the toilet itself, and most codes require the main waste stack to increase to four inches at the point where the toilet drain connects if the main stack serves multiple fixtures. A three-inch toilet drain that connects to a three-inch main stack is acceptable in many jurisdictions. A three-inch toilet drain that connects to a three-inch main stack that also serves an upstairs bathroom may not be acceptable because the combined flow from multiple fixtures can overwhelm a three-inch pipe. The plumbing code in your jurisdiction is the authority. The building department can tell you the required pipe size over the phone.

The closet bend is the ninety-degree fitting that transitions from the vertical drain pipe under the toilet to the horizontal drain pipe that runs to the stack. A closet bend must be a long-sweep elbow, not a standard short-radius ninety. A short-radius ninety in a toilet drain will clog repeatedly because the abrupt direction change traps solids. A long-sweep elbow has a gradual curve that carries waste through the turn without slowing it down. The same rule applies to the fitting where the horizontal drain connects to the vertical stack. Use a wye fitting with a forty-five-degree elbow, or a long-sweep tee-wye, to make the connection so waste flows into the stack with the direction of flow, not against it.

Slope and Vent — The Two Requirements That Make a Toilet Flush Properly

A horizontal toilet drain must slope downward at a uniform pitch of one-quarter inch per foot. A slope that is too shallow allows solids to settle in the pipe and eventually clog. A slope that is too steep causes the water to run faster than the solids, leaving the solids behind to accumulate until they clog. The quarter-inch-per-foot slope is the plumbing code standard for three-inch and four-inch pipes, and it must be maintained for the entire horizontal run from the toilet to the stack. A level is not accurate enough to measure quarter-inch-per-foot over a short distance. Use a pitch level, a torpedo level with pitch markings, or measure the drop with a tape measure between two points of known distance.

A toilet drain must be vented. The vent allows air to enter the pipe behind the flowing water so the water does not create a vacuum that siphons the toilet trap dry. A toilet trap that has been siphoned dry allows sewer gas to enter the bathroom. The vent also allows air to escape ahead of the flowing water so the water does not compress the air and slow down. A toilet that gurgles when it flushes has a vent problem.

The vent for a toilet drain is typically a two-inch pipe that rises vertically from the horizontal drain near the toilet and connects to the main vent stack or exits the roof independently. The vent connection must be made downstream of the toilet but before the drain connects to the main stack. The vent pipe cannot run horizontally until it is at least six inches above the flood level of the highest fixture it serves, which means above the rim of the toilet. A vent that runs horizontally below the flood level will fill with water if the drain backs up and will not function as a vent.

If installing a dedicated vent is impractical because of the location of the toilet relative to existing walls and the roof, an air admittance valve, or AAV, may be allowed by your local code. An AAV is a mechanical valve that opens to admit air when the toilet flushes and closes to prevent sewer gas from escaping. An AAV installs under the sink or in a wall with an access panel and eliminates the need to run a vent pipe through the roof. AAVs are permitted by code in most jurisdictions but are not permitted in some. Check with the building department before relying on an AAV.

Cutting Into the Main Stack and Making the Connection

Connecting a new toilet drain to an existing main stack requires cutting a section of the stack out and installing a wye or a sanitary tee in the gap. The stack may be cast iron, PVC, or ABS. PVC and ABS are cut with a reciprocating saw or a handsaw. Cast iron is cut with a snap cutter or a reciprocating saw with a diamond blade, and it is heavy enough that the section above the cut must be supported before the cut is made. A cast iron stack that drops when cut can pull apart at the joints above, and repairing a separated cast iron joint inside a wall is a major project.

Before cutting the stack, determine whether any fixtures above the cut point are draining. If an upstairs toilet or shower drains through the section of stack you are about to cut, you must stop all water use in the house and warn the occupants. When the stack is cut, whatever is in the pipe at that moment will come out. Have a bucket and rags ready. Wear gloves and eye protection. The water in a main stack is not clean.

The fitting that connects the new drain to the stack must be oriented so the flow from the new drain enters the stack smoothly in the direction of flow. A wye fitting with a forty-five-degree elbow creates a forty-five-degree entry angle that carries the waste downward. A sanitary tee, which enters the stack at a flatter angle, is acceptable for the toilet-to-stack connection in some codes but is more prone to clogs. A wye is the better fitting for a toilet drain connection.

Dry-fit every piece of pipe and every fitting before applying glue. PVC and ABS cement sets in seconds, and a fitting that is glued at the wrong angle must be cut out and replaced. Mark the alignment of each joint with a pencil line across the pipe and the fitting. When you apply the cement and push the joint together, align the marks. Hold the joint for thirty seconds while the cement sets. Do not run water through the pipe for the cure time specified on the cement can, typically two hours for a full cure.

Setting the Flange at the Correct Height

The toilet flange is the last piece installed on the new drain. The flange must sit on top of the finished floor, not recessed into it and not floating above it on the pipe. A flange that is recessed below the finished floor requires a flange extender or a double wax ring to compensate. A flange that sits above the finished floor, more than a quarter inch, will hold the toilet off the floor and cause it to rock.

If the finished floor is not yet installed, the drain pipe should be cut so the flange will sit on top of the finished floor after it is installed. This requires knowing the finished floor thickness, which consists of the subfloor, the underlayment, and the finish flooring material, typically tile, vinyl, or laminate. Dry-fit the flange on the uncut pipe, measure the height, and cut the pipe so the bottom of the flange is flush with or slightly below the top of the finished floor. Install the finished floor, then glue the flange onto the pipe. The flange should sit flat on the finished floor with no gaps and no rocking.

FAQ — Installing a New Toilet Drain

How do I install a toilet drain in a concrete slab?

Cutting into a concrete slab to install a toilet drain is a major job that requires a concrete saw, a jackhammer, and the skill to dig down to the existing drain line, tie into it, and pour new concrete around the new pipe. The drain line under a slab is typically buried in gravel below the slab, and accessing it means cutting a trench through the slab. The concrete dust is silica, the work is physically demanding, and a mistake in the concrete repair creates a permanent uneven spot in the floor. This is a job for a plumber and a concrete contractor, not a DIY homeowner.

Can a toilet and a shower share the same vent?

Yes, under the plumbing code provisions for wet venting. A wet vent is a drain pipe that also serves as a vent for another fixture. In a common bathroom configuration, the sink drain serves as the wet vent for the toilet, provided the sink drain is two inches in diameter, connects to the toilet drain within the specified distance, and the piping is arranged so the vent connection is made through the sink’s dedicated vent or the sink’s drain pipe itself. Wet venting rules are specific and vary by code. The building department can tell you whether your proposed configuration complies.

The existing toilet drain is a lead pipe from the 1940s. Can I connect PVC to it?

Lead toilet drains are obsolete and should be replaced entirely, not patched. A lead pipe that is eighty years old has internal corrosion, a rough interior surface that catches debris, and a connection to the main stack that was made with lead and oakum and may be leaking. Connecting PVC to the stub of a lead pipe with a rubber coupling is a temporary repair that postpones the replacement by a few years at most. The correct repair is to remove the lead pipe all the way to the main stack and replace it with PVC. If the main stack is cast iron, the connection from PVC to cast iron is made with a rubber transition coupling approved for above or below ground use.

Last modified: June 13, 2026