
Toilet Rough In: Measurements, Clearances, and Flange Installation
A toilet rough in is the drain, vent, supply and flange work set before the bowl arrives. The center of the closet flange sits at the rough-in distance the manufacturer gives, measured square off the finished wall. Both the 2021 IPC and UPC require at least 15 inches from the toilet's centerline to any side wall or obstruction, with 21 inches of clear space in front under the IPC and 24 inches under the UPC.
What a toilet rough in includes
A toilet rough in is everything you install for the water closet before the bowl itself is set. Water closet is the code term for a toilet. The 2021 IPC defines rough-in as the parts of the plumbing system put in ahead of the fixtures: drainage, water supply and vent piping, the fixture supports, and any fixture built into the structure. For a toilet, that means the closet bend or stub, the closet flange, the vent and the supply, all in position before the wall is closed. Under IPC Section 112.2, the rough-in inspection comes once the roof, framing, fireblocking, firestopping, draftstopping and bracing are in place and all sanitary, storm and water distribution piping is roughed in. It must happen before any wall or ceiling membrane goes up.
Toilet rough in dimensions come from two places. The first is the rough-in distance, from the wall behind the bowl to the center of the outlet. So what is the rough in size for a toilet? The distance belongs to the fixture you are installing, so you take it from the manufacturer's installation instructions, which the UPC requires you to follow (UPC 402.8). The second group is the distances to side walls, neighboring fixtures and the space in front. Those are set by code, and they are the standard toilet measurements an inspector checks with a tape.
How do I measure a toilet rough in?
Measure square off the finished wall surface behind the toilet to the center of the closet flange or drain pipe. Then compare that figure with the rough-in distance on the manufacturer's sheet for the bowl you are setting. Work from the finished face, not the stud: every layer of drywall, backer board and tile moves the wall closer to the flange.
On site, take the readings in this order:
- Hook the tape on the finished wall surface, or on the face the finish will reach. Do not hook it on baseboard or trim.
- Hold the tape perpendicular to the wall and read to the center of the flange or pipe.
- Measure from each side wall, partition or obstruction to the same center point to confirm side clearance.
- Once the bowl is chosen, measure from its front to the nearest wall, fixture or door to confirm front clearance.
Finding the flange position from bare studs
Tap Next to go through it.
Step 1
Read the rough-in distance for the bowl from the manufacturer's installation sheet. Call it R.
Step 2
Add up the thickness of every layer that will cover the studs behind the toilet: drywall or backer board, then the tile and its setting bed. Call the total T. Take each thickness from the materials actually going on that wall.
Step 3
With only studs in place, set the flange center R + T out from the stud face.
Step 4
Check the result after the wall is finished. Measured from the finished surface, the distance to the flange center should now read R.
What to take from it
Lay out from the stud face only after adding the full finish thickness. If you leave out the tile and setting bed, the flange ends up too close to the finished wall.
Toilet clearance to side walls and partitions
Both model codes set the same side minimum. IPC Section 405.3.1 and UPC Section 402.5 forbid setting a water closet closer than 15 inches (381 mm) from its center to a side wall, partition or other obstruction, and the IPC names vanities in that list as well. With 15 inches on each side, the space between walls is 30 inches. Where partitions or other obstructions do not separate adjacent water closets, the IPC requires at least 30 inches (762 mm) center to center. The UPC requires at least 30 inches (762 mm) center to center to a similar fixture. The IPC also sets compartment sizes. A stall for a floor-mounted water closet must be at least 30 inches wide and 60 inches (1524 mm) deep. A stall for a wall-hung water closet must be at least 30 inches wide and 56 inches (1422 mm) deep.
Front clearance: 21 inches under the IPC, 24 under the UPC
The space in front of the bowl is where the two codes part ways. IPC 405.3.1 requires at least 21 inches (533 mm) in front of the water closet to any wall, fixture or door. UPC 402.5 requires at least 24 inches (610 mm) of clear space in front. Confirm which code your jurisdiction has adopted before the room is framed. A layout that passes at 21 inches is 3 inches short under the UPC. The UPC also requires the fixture to be set level and properly aligned with the walls beside it.
Water closet setting and flange rules: 2021 IPC vs 2021 UPC
| 2021 IPC | 2021 UPC | |
|---|---|---|
| Center to side wall or obstruction | 15 in (381 mm) minimum, including vanities | 15 in (381 mm) minimum |
| Center to center, adjacent water closets | 30 in (762 mm) minimum where not separated | 30 in (762 mm) minimum to a similar fixture |
| Front clearance | 21 in (533 mm) to any wall, fixture or door | 24 in (610 mm) of clear space |
| Compartment size | 30 x 60 in floor-mounted, 30 x 56 in wall-hung | Not set in Section 402.5 |
| Flange specification | Minimum thickness by material | About 7 in across, with a 1½ in face for the seal |
| Closet screws and bolts | Copper alloy | Copper alloy, copper or listed equally corrosion-resistant material |
The difference
For accessible installations, ICC A117.1 replaces the 15-inch side minimum with a 16 to 18 inch range.
Setting and securing the closet flange
A toilet closet flange, which the UPC also calls a closet ring, joins the drain to the bowl. The bowl is held down by closet bolts through the flange. Both codes want the flange solidly supported. UPC 402.6 requires its bottom to bear on an approved firm base, and IPC 405.4 requires it to be attached to the drain and anchored to the structure. Fasten it to the building structure with corrosion-resistant screws or bolts. The IPC calls for copper alloy closet screws and bolts. The UPC also accepts copper or another listed material that resists corrosion as well. The UPC adds that the fasteners must be sized and numbered to carry the fixture.
How the flange joins the pipe depends on the material:
- Lead bends or stubs: burned or soldered.
- Cast iron soil pipe: caulked.
- ABS and PVC: solvent cemented.
- Other materials: screwed or fastened in an approved way.
Under UPC 402.6.1, a closet flange is about 7 inches (178 mm) in diameter. Together with the soil pipe, it presents a face 1½ inches (38 mm) wide for the closet seal or gasket.
IPC 405.4.1 sets minimum thicknesses: 0.125 inch (3.2 mm) for copper alloy and 0.25 inch (6.4 mm) for plastic. Cast iron and galvanized malleable iron need 0.25 inch plus at least 2 inches (51 mm) of caulking depth. Hard lead flanges must weigh at least 1 pound 9 ounces (0.7 kg) and contain at least 7.75 percent antimony by weight.
Warning
Before you call the rough inspection, cut the closet bend or stub off smooth and even with the top of the flange, as UPC 402.6.1 requires. A stub left standing above the ring is a violation. When the bowl goes on, seal it to the flange with an approved gasket, washer or setting compound. The joint where the bowl meets the floor must also be made watertight (IPC 405.6, UPC 402.2).
When you can use an offset closet flange
An offset closet flange sets the bowl's outlet off-center from the pipe below. That helps when roughing in a toilet where a joist sits in the path of the drop. The IPC accepts it: Section 704.2 says an offset closet flange does not count as reducing the drain size in the direction of flow. It treats a 4-inch by 3-inch water closet flange the same way. The UPC draws a hard line in one case. Under Section 402.6.3, floor-mounted, back-outlet water closets must not use offset, eccentric or reducing closet flanges, and their soil pipe must be at least 3 inches (80 mm) in diameter. Those bowls also need a 90-degree angle between floor and wall at the outlet centerline. They need a flat mounting surface at least 5 inches (127 mm) to each side of it.
Check yourself
At a UPC rough-in inspection, the inspector finds a PVC closet bend standing above the top of a solvent-cemented closet flange that bears on a firm base. What is wrong?
- Nothing. The bend is trimmed after the bowl is set.
- The bend must be cut off smooth and even with the top of the flange before the rough inspection.
- The flange should be raised to the height of the bend.
- An offset closet flange is required here.
Accessible water closets under ICC A117.1
Accessible installations move the toilet farther from the side wall. ICC A117.1 Section 604.2 requires a wall or partition behind the water closet and on one side. The centerline must be 16 inches (405 mm) minimum and 18 inches (455 mm) maximum from the side wall or partition. That is a range, not just a minimum, so a toilet set at the plain-code 15 inches fails. Section 604.3 requires clearance around the fixture at least 60 inches (1525 mm) wide, measured from the side wall, and 56 inches (1420 mm) deep, measured from the rear wall. That clearance may overlap the water closet, associated grab bars, paper dispensers, sanitary napkin receptacles, coat hooks, shelves, accessible routes, clear floor space at other fixtures and the turning space. No other fixture or obstruction may sit inside it. The centerline range and the minimum size change with the type of installation:
| Installation | Centerline from side wall | Minimum size |
|---|---|---|
| Wheelchair accessible compartment (604.2, 604.9.2.1) | 16 in min, 18 in max | 60 in wide, 56 in deep wall-hung, 59 in (1500 mm) deep floor-mounted |
| Ambulatory accessible compartment (604.2, 604.10.2) | 17 in (430 mm) min, 19 in (485 mm) max | 60 in deep, 35 in (890 mm) to 37 in (940 mm) wide |
| Water closet for children's use (604.11.2) | 12 in (305 mm) min, 18 in max | Clearance per Section 604.3 |
| Type A dwelling unit (1103.11.2.4) | 16 in min, 18 in max | Clearance 60 in wide, 56 in deep |
Frequently asked questions
Do grab bars or toilet paper dispensers count as obstructions for side clearance?
Not under the UPC. Section 402.5 states that paper dispensers and accessibility grab bars are not obstructions. Measure the 15 inches from the toilet's center to the wall or partition itself.
What is the smallest building drain that can serve a toilet?
Under the 2021 IPC, a building drain serving a water closet must be at least 3 inches in diameter. That minimum appears as a note to Table 710.1(1), the table for sizing building drains and sewers by drainage fixture units.
How far can a toilet be from the stack in a single-stack vent system?
IPC Section 917.4.1 limits a water closet connection to 4 feet of developed length, measured horizontally from the stack. Where the connection is made with a sanitary tee, the limit rises to 8 feet. Under Section 917.4.3, vertical piping in the fixture drain is not counted toward that distance.
How close can a children's toilet be to the wall under the IPC?
IPC 405.3.1 has an exception for an accessible children's water closet. It may be set as close as 12 inches from its center to the required partition or wall on one side. Every other water closet under that section keeps the 15-inch minimum.
Does a wall-hung toilet need a carrier?
Yes. IPC 405.4.3 requires wall-hung bowls to be supported by a concealed metal carrier attached to the building's structural members, so no strain reaches the fixture connector or the piping. The carrier must conform to ASME A112.6.1M or ASME A112.6.2.
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.


