
How to Plumb a Shower Drain to Code
Knowing how to plumb a shower drain comes down to three things. Set a waste outlet of at least 2 inches under the UPC (1 1/2 inches under the IPC), trap it with a 2- to 4-inch seal, and run the trap arm at 1/4 inch per foot to a vent within the code's length limit. Then seal the drain to a pan liner or bonded membrane that passes a flood test. Low-use floor and trench drains also need their trap seals protected by an approved primer or barrier device.
How does a shower drain work?
A shower drain works by catching water at floor level through a strainer, holding a plug of water in a trap to block sewer gas, and passing the flow on into a vented waste pipe. Learning how to plumb a shower drain starts with that sequence, because each rough-in rule protects one of those three jobs. Under the IPC the strainer is removable, at least 3 inches across, with openings no smaller than 1/4 inch. IPC 304.2 also limits openings on drain inlets to 1/2 inch so rodents cannot get through. Both the 2021 IPC and UPC require the trap to hold a liquid seal of 2 to 4 inches. The vent keeps that seal from being siphoned out or blown back by pressure swings in the drainage system.
A site-built shower has a second path for water, under the tile. Water that soaks through the setting bed reaches the pan liner, which slopes to a subdrain set flush with the subbase. UPC 408.7 requires that subdrain to have a clamping ring or other device that makes a tight connection between the liner and the drain, and to have weep holes into the waste line, protected so they cannot clog. If the weep holes block, water sits in the mortar bed instead of draining away.
Outlet, trap and trap arm sizes under the IPC and UPC
For a shower drain plumbing rough in, the two codes start from different minimums. UPC 408.4 calls for a waste outlet and fixture tailpiece of at least 2 inches, plus a strainer whose waterway is at least equal to the tailpiece area. IPC 421.3 sets the shower waste outlet at not less than 1 1/2 inches, and waste fittings must meet ASME A112.18.2/CSA B125.2. The UPC requires the trap to be the same size as the trap arm it feeds. The IPC requires that a trap never be larger than the drainage pipe it discharges into.
Once the trap is set, the trap arm runs to the vent under these rules:
- Slope: 1/4 inch per foot for pipe 2 1/2 inches and smaller (IPC Table 704.1). The UPC trap arm table keeps the same 1/4 inch per foot.
- Length (UPC Table 1002.2), measured from the trap weir to the inner edge of the vent: a 1 1/2-inch arm runs 3 to 42 inches and a 2-inch arm runs 4 to 60 inches.
- Vent opening: never below the weir of the trap (UPC 1002.4).
- Changes of direction: up to 90 degrees are allowed without a cleanout (UPC 1002.3).
Watch out
Do not carry one code's size onto another code's job. A 1 1/2-inch shower outlet that passes under the IPC fails under the UPC, which requires 2 inches. Confirm which code your jurisdiction has adopted before you buy the drain body.
Types of shower drains and how each seals to the pan
The different types of shower drains differ mainly in how they seal to the waterproofing below the tile, and that choice drives how you frame and slope the floor:
- Clamping ring (three-piece) drain: the lower body sits flush with the subbase, the liner laps over it, and a clamping ring locks the liner down. Weep holes carry water into the waste line. This is the subdrain UPC 408.7 describes for a built-up pan.
- Bonded flange drain: a load-bearing bonded waterproof membrane, either sheet-applied or trowel-applied and meeting ANSI A118.10, bonds to the drain flange. Under IPC 421.5.2, a sheet-applied bonded membrane does not have to be recessed into the wall backing.
- Linear drain: the code sections behind this guide set no rules specific to linear drains. The general shower outlet, strainer and liner rules still apply, along with the manufacturer's instructions, which UPC 402.9 requires you to follow.
Whatever the drain, the pan must rest on a smooth, structurally sound base. Pitch a site-built liner at 1/4 inch per foot (2 percent) toward the drain and fasten it watertight at the outlet. Turn the liner up the walls at least 2 inches above the finished threshold under the IPC, or 3 inches above the top of the finished dam under the UPC. Recess it into the backing so it takes no room from the wall finish, and keep nails out of it below a point 1 inch above the threshold. Approved liners include PVC sheet to ASTM D4551 (solvent-welded), CPE sheet to ASTM D4068, and sheet lead weighing at least 4 pounds per square foot. On UPC work, the finished floor slopes 1/8 to 1/2 inch per foot to the drain. A dam or threshold measures 2 to 9 inches from its top down to the top of the drain.
Sizing a 2-inch shower trap arm and vent
Tap Next to go through it.
Step 1
Size the trap. On a UPC job the shower outlet is 2 inches, and the trap must match its trap arm, so you need a 2-inch trap and a 2-inch arm. The one exception is a bathtub-to-shower retrofit: UPC Table 702.1 note 9 permits a 1 1/2-inch trap and trap arm where the shower is no larger than 36 by 60 inches.
Step 2
Find the allowed length. UPC Table 1002.2 allows a 2-inch arm a maximum of 60 inches (5 feet) of developed length from the trap weir to the inner edge of the vent. The minimum is 4 inches, which is twice the arm diameter.
Step 3
Work out the fall. At 1/4 inch per foot over 5 feet, the arm drops 5 x 1/4 = 1 1/4 inches between the trap and the vent fitting.
Step 4
Check the vent opening. Set the vent takeoff so its opening sits no lower than the trap weir.
Step 5
Size the vent. A UPC individual vent must be at least 1 1/4 inches and at least half the drain diameter. Half of 2 inches is 1 inch, so that floor is 1 1/4 inches. The vent must also carry the shower's load under Table 703.2. A single-head shower is 2 drainage fixture units in Table 702.1, and a 1 1/4-inch vent carries only 1 unit. Use a 1 1/2-inch vent, which carries up to 8 units and runs up to 60 feet.
Step 6
On an IPC job, the 1/4 inch per foot slope from Table 704.1 is the same. Take the maximum trap-to-vent distance from the IPC's own trap arm table, which this guide does not reproduce.
What to take from it
For a 2-inch shower on a UPC job, the trap arm is 4 to 60 inches long, falls 1 1/4 inches over its full length, and takes at least a 1 1/2-inch vent with the opening no lower than the weir.
Protecting trap seals in floor and trench drains
Showers are used every day, so their traps refill on their own. A floor drain in a mechanical room or a garage can sit dry for weeks until the seal evaporates and sewer gas comes up through the grate. Under IPC 413, floor drains conform to ASME A112.3.1, ASME A112.6.3 or CSA B79. They need removable strainers, ready access and an outlet of at least 2 inches. That rises to 3 inches in public coin laundries and in the central washing rooms of multifamily buildings. Trench drains comply with ASME A112.6.3. IPC 1002.4.1 requires protection for emergency floor drain traps and for any trap seal subject to evaporation. UPC 1007.1 requires a trap seal primer on floor drain traps that see infrequent use, unless the Authority Having Jurisdiction decides one is not needed.
The approved ways to keep the seal wet:
- Potable water trap seal primer valve: meets ASSE 1018 (UPC 1007.2) and stays accessible for maintenance.
- Drainage-type, wastewater-supplied or electronic primer: meets ASSE 1044. Under the IPC, its discharge enters the trap above the seal on the inlet side.
- Barrier-type trap seal device: meets ASSE 1072, is fitted to the manufacturer's instructions, and shields the floor drain trap seal from evaporation (IPC).
- Fixture drain connection (IPC): a lavatory or hand sink drain in the same room, or a drinking fountain drain in the same or an adjacent room, can protect an emergency floor drain, trench drain or floor sink. Route it below the floor surface, never on or above it. Connect it below the receiving fixture's flood level rim and above its trap inlet.
Choosing between a hub drain and a floor drain
The hub drain vs floor drain decision turns on what the drain has to receive. A floor drain sits in the floor to take water off the floor itself, such as washdown, spills or a leaking appliance. UPC 1006.1 requires its inlet to be in full view, its trap to be easy to clean, and a backwater valve wherever sewage could flow back. A hub drain is an indirect waste receptor: a pipe such as a water heater pan drain discharges into it. IPC 504.7.2 lets a pan drain of at least 3/4 inch, run full size, end over a suitably located indirect waste receptor or a floor drain. The code sections behind this guide give no height or separation rules for hub drains, so get those from your local code official.
Either way, a floor drain that only catches the occasional drip is a textbook low-use trap. Pair it with one of the protection methods above.
Keeping trench drains separate from French drains
On the trench drain vs French drain question, the two only look alike. A sloped trench drain tied into the sanitary system is a trapped fixture built to ASME A112.6.3, and its piping follows the slopes in IPC Table 704.1. What the trade calls a French drain is a subsoil drain under IPC 1111.1. It uses open-jointed, horizontally split or perforated pipe at least 4 inches in diameter. It discharges to a trapped area drain, a sump, a dry well or an approved point above ground, with an accessible backwater valve where the building is subject to backwater. Perforated pipe cannot hold a trap seal or contain sewage, so never join the two systems.
What the rough-in inspection checks before tile
Expect the inspector to check these before any mortar or tile goes down:
- The trap is set true to its liquid seal, holds 2 to 4 inches of seal, and has its vent opening no lower than the trap weir.
- IPC 312.9 liner test: plug the drain watertight and fill the pan to at least 2 inches deep at the threshold. Build a temporary threshold if the real one is under 2 inches. Hold the water at least 15 minutes with no sign of leakage.
- UPC 408.7.5 liner test: fill to the level of the rough threshold, with the test plug placed so the subpan is tested on both its upper and under sides where it clamps to the drain.
- The weep holes are open and protected from clogging.
- The liner height, fastening and pitch match the rules above.
Key point
Pass the flood test before the mortar bed goes in. A shower drain rough in that starts leaking after tiling means tearing out a finished floor.
The comparison below puts floor drains and trench drains side by side, including where a hub drain fits.
Floor drains and trench drains compared
| Floor drain | Trench drain | |
|---|---|---|
| Product standard | ASME A112.3.1, ASME A112.6.3 or CSA B79 | ASME A112.6.3 |
| Minimum outlet | At least 2 inches, but 3 inches in public coin laundries and multifamily central washing rooms | No separate size in these code sections |
| Indirect waste | A water heater pan drain may end over it, as it may over an indirect waste receptor (hub drain) | No indirect waste allowance in these code sections |
| Trap seal protection | Trap seal primer, barrier-type device (ASSE 1072) or, for an emergency floor drain, a fixture drain connection | Trap seal primer or a fixture drain connection from a lavatory, hand sink or drinking fountain |
The difference
Pick the drain by the waste it receives, then protect its trap seal.
Frequently asked questions
Do concealed slip joints on a shower trap need an access panel?
Yes. Both the IPC and UPC require an access panel or utility space of at least 12 inches in its smallest dimension for concealed slip joints. Slip joints need an approved elastomeric gasket and belong only on the trap inlet, the trap outlet or within the trap seal. The UPC also allows no more than one slip joint fitting on the outlet side of a trap.
What changes if the shower has no threshold?
Under UPC 408.5, a shower without a threshold makes the floor space in the same room a wet location. That floor area must then meet the wet location requirements of the building, residential and electrical codes, so coordinate with the other trades before rough-in.
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.


