
Rough-In Plumbing: Dimensions, Clearances, and Code Requirements
Rough-in plumbing is the phase of construction where water supply, drainage, waste and vent pipes are run through the structural framing to each fixture location before walls, floors and ceilings are closed. Under both the 2021 IPC and the 2021 UPC, that rough piping must be tested and pass a rough-in inspection before any of it is concealed.
What is rough-in plumbing?
Rough-in plumbing means setting the full drain, waste, vent and supply layout in the open framing so that every fixture has a drain and water waiting at the right point when it is set. On a bathroom plumbing rough-in, that means the closet flange, the lavatory drain with its sanitary tee and vent takeoff, the tub drain, and the hot and cold stub-outs. Every opening that will not get a fixture straight away is plugged or capped in an approved manner. Lines for future fixtures end in an approved cap or plug and are counted when sizing the drain.
Several drain rules are fixed at this stage and cannot be corrected once the drywall is up. Under IPC Table 704.1, horizontal drainage pipe of 2 1/2 inches or less needs at least 1/4 inch per foot of slope, 3 to 6 inches needs 1/8 inch per foot, and 8 inches or larger needs 1/16 inch per foot. Where the drainage piping is upstream of a grease interceptor, it needs at least 1/4 inch per foot whatever its size. Pipe size must never drop in the direction of flow. A 4-inch by 3-inch closet flange does not count as a reduction. The UPC requires the closet bend or stub to be cut off flush with the top of the closet ring before you call for the rough inspection. That ring is about 7 inches in diameter and presents a 1 1/2-inch face for the gasket. Required cleanouts cannot be concealed inside walls, and a cleanout opening at a finished wall must sit within 1 1/2 inches of the wall surface.
Testing and inspection before anything is concealed
Both codes require drainage, vent and water distribution piping to be tested and inspected before it is covered. Under IPC 112.2, the rough-in inspection takes place once the roof, framing, fireblocking, firestopping, draftstopping and bracing are in place and all sanitary, storm and water distribution piping is roughed in, but before any wall or ceiling membrane goes on. You may not work past that point until the code official approves it. The UPC sets the same limit: no portion of the system is covered, concealed or put into use until it is inspected and approved. The UPC also requires tests to be done with the Authority Having Jurisdiction (AHJ) or its representative present. Under the IPC, the permit holder supplies the equipment, labor and power for each test and is responsible for making sure the work will hold the test pressure. The test is done with water, or with air for piping other than plastic. IPC 312.1.1 sets the gauge resolution.
| Test pressure | Gauge increments (IPC 312.1.1) |
|---|---|
| 10 psi or less | 0.10 psi or finer |
| Over 10 psi up to 100 psi | 1 psi or finer |
| Over 100 psi | 2 psi or finer |
The UPC gives two methods for drainage and vent piping (Section 712):
- Water test: close every opening except the highest one and fill to overflow. When testing in sections, give each section at least a 10-foot head of water and retest the top 10 feet of the section before it. Hold the water at least 15 minutes, with no leaks.
- Air test: close all other openings and pump to a steady 5 psi, or enough to balance a 10-inch column of mercury. Hold it at least 15 minutes without adding air.
Watch out
Neither code allows an air test on plastic pipe. On a PVC or ABS drain system, plan for a water test from the start, and leave yourself a high opening to fill from.
Water closet clearances under the IPC and UPC
Both codes require a water closet to be set at least 15 inches from its center to any side wall or obstruction. The IPC lists a partition and a vanity as obstructions too. The two codes differ on the space in front of the bowl: the IPC requires 21 inches to any wall, fixture or door, and the UPC requires 24 inches. Mark the flange center from these figures before you cut the subfloor. The comparison below also covers urinals and lavatories.
Minimum fixture clearances: IPC Chapter 4 vs UPC Chapter 4
| 2021 IPC | 2021 UPC | |
|---|---|---|
| Water closet, center to side wall or obstruction | 15 in | 15 in |
| Water closets side by side, center to center | 30 in where no partition separates them | 30 in to a similar fixture |
| Clear space in front | 21 in for water closet, urinal, lavatory or bidet | 24 in for water closet, lavatory or bidet |
| Urinal, center to side wall or partition | 15 in | 12 in |
| Urinals, center to center | 30 in where no partition separates them | 24 in |
| Lavatory, center to side wall | 15 in | No side distance set in 402.5 |
| Water closet compartment | 30 in by 60 in floor-mounted, 30 in by 56 in wall-hung | Not set in 402.5 |
| Relief from the rule | Accessible children's water closet: 12 in to the partition or wall on one side | Paper dispensers and accessibility grab bars are not obstructions |
The difference
Lay out to the code your jurisdiction has adopted, not to the code you trained on.
Setting lavatory and kitchen sink stub-outs
The code sections covered here set no lavatory drain height, no kitchen sink drain height and no copper stub-out height. Those positions come from the fixture. The UPC requires fixtures to be installed to the manufacturer's instructions. Under IPC 301.7, where those instructions and the code conflict, the more restrictive of the two applies. When you are roughing in plumbing for a bathroom or a kitchen, set the drain outlet and stubs so that the trap, the tailpiece and the shutoff valves fit the fixture you are actually installing. Several code rules shape that layout. UPC 402.1 requires pipes from fixtures to be run to the nearest wall. Under IPC 405.9, slip joints are allowed only at the trap inlet, the trap outlet and within the trap seal, and concealed slip joints need an access panel or utility space at least 12 inches in its smallest dimension, or another approved arrangement. UPC 402.10 requires an access panel or utility space at least 12 inches in its least dimension, arranged without obstructions so the slip joints can be reached for inspection and repair. Under IPC 405.8.1, any fixture overflow must connect on the inlet side of the trap, except that the overflow from a flush tank serving a water closet or urinal discharges into the fixture it serves.
Watch out
Get the client's fixture model and its rough-in sheet before you stub out. A drain set at a habitual height can leave a shallow-bowl sink or a deep vanity with no room for the trap, and the fix means opening a finished wall.
Bathtub and shower valve, spout and head positions
The code sections covered here do not fix a bathtub faucet height, a mixing valve height or a shower head height. The tub faucet height and the other positions come from the valve and fixture manufacturer. The UPC does govern how these parts relate to each other. The supply to a bathtub filler valve must be protected by an air gap or in accordance with Section 417.0. Hot water from the filler is capped at 120°F. That limit is enforced by a limiting device to ASSE 1070/ASME A112.1070/CSA B125.70 or CSA B125.3, or by a water heater to ASSE 1084. Control valves and shower heads go on the sidewall, or are arranged so that the head does not spray at the entrance and the bather can adjust the water before stepping in. The riser from the valve to the shower head must be fastened to the structure, whether or not it is exposed.
The IPC requires waterproof wall surfaces above a tub with a shower head, and in shower compartments, to at least 6 feet above the room floor and 70 inches above the drain. A shower compartment needs at least 900 square inches and a 30-inch least dimension under the IPC. As an exception, IPC 421.4 allows a compartment with a minimum dimension of at least 25 inches, provided it has at least 1,300 square inches of cross-sectional area. The UPC requires 1,024 square inches and room for a 30-inch circle, but that minimum area and dimension do not apply to a shower receptor at least 30 inches wide and 60 inches long. Under both codes these minimums are kept up to 70 inches above the drain. An on-site liner is tested too. The IPC test uses water at least 2 inches deep at the threshold, held for 15 minutes. The UPC test fills the receptor to the rough threshold.
Boring and notching framing for pipe runs
IPC 301.2 requires plumbing to be installed with due regard for the strength of structural members. UPC 309.4 forbids installing materials in a way that harms the building structure. For buildings over two stories, IPC 107.1 requires the construction documents to show where pipe penetrations will be made and how structural safety, fire-resistance rating and fireblocking will be maintained. The code sections covered here give no hole or notch sizes. Take those limits from the building code your jurisdiction applies (IPC 307.2 points to the International Building Code). Both plumbing codes do require protection plates: under IPC 305.6, concealed pipe other than cast iron or galvanized steel run through holes or notches less than 1 1/4 inches from the edge of a member needs steel shield plates at least 0.0575 inch (No. 16 gage) thick, extending at least 2 inches above sole plates and below top plates. Under UPC 312.9, plastic and copper pipe within 1 inch of the exposed framing edge needs steel nail plates at least No. 18 gauge, extending at least 1 1/2 inches beyond the pipe.
Warning
The rough-in inspection happens with the framing exposed, so every bored joist and notched stud is in plain view. Check the structural limits before you cut, not after the inspector flags an overcut member.
Accessible fixtures under ICC A117.1
Where the building code calls for accessible facilities, both the IPC (Section 404) and the UPC (Section 403) require accessible fixtures to comply with ICC A117.1. Chapter 6 of A117.1 covers plumbing elements. Section 603 covers toilet and bathing rooms, 604 covers water closets and toilet compartments (604.9 for wheelchair-accessible compartments), and 606 covers lavatories and sinks. Take the water closet centerline, knee and toe clearances and control reach figures from those sections of the edition your jurisdiction adopts, and rough in to them rather than to the general clearances above. A children's water closet must have the clearance set out in A117.1 Section 604.3.
Two rough-in details often catch installers. First, water supply and drain pipes under an accessible lavatory or sink must be insulated or arranged so that a user cannot touch them, and the space underneath must have no sharp or abrasive surfaces. Pipe coverings must meet ASME A112.18.9 or ASTM C1822. Second, showers designed to A117.1 are exempt from the UPC minimum shower dimensions, so take their layout from the standard itself.
Check yourself
You are roughing in an accessible lavatory that must comply with ICC A117.1. What does the standard require for the water supply and drain pipes beneath it?
- They must be insulated or configured to protect against contact, with no sharp or abrasive surfaces under the lavatory
- They only need to run to the nearest wall
- They must sit behind an access panel at least 12 inches in its smallest dimension
- No protection is needed if the lavatory is wall-hung
Frequently asked questions
Who has to book the rough-in inspection?
Under both the IPC and the UPC, the permit holder or their authorized agent schedules the inspections and tells the code official when the work is ready. The holder must also give the inspector access to the work. Under the UPC, the AHJ may require the request at least 1 working day ahead, in writing or by phone.
What happens if rough piping is covered before it is inspected?
Under the UPC, piping that is concealed before it has been inspected, tested and approved must be uncovered once the AHJ issues a notice to do so. Neither the AHJ nor the jurisdiction pays for removing or replacing the materials needed to expose the work. The IPC likewise bars covering any noncompliant portion until the code official authorizes it.
What size waste outlet does a bathtub or shower need?
The UPC requires a bathtub or whirlpool bathtub to have a waste outlet and tailpiece of at least 1 1/2 inches in diameter, fitted with an approved stopper or strainer. A shower needs a waste outlet and tailpiece of at least 2 inches, and its strainer must have a waterway at least equal to the area of the tailpiece.
How thick does a water closet floor flange have to be?
IPC 405.4.1 requires at least 0.125 inch for copper alloy and 0.25 inch for plastic. Cast iron and galvanized malleable iron flanges must be at least 0.25 inch thick with at least a 2-inch caulking depth. The flange must be fastened to the structure with corrosion-resistant screws or bolts.
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.


