
What Is a P-Trap? Plumbing Code Rules, Sizing, and Trap Seal Depths
What is a P-trap in plumbing? It is the curved fitting on a fixture drain that holds a standing column of water, so sewer gas and odors stay out of the building while waste still drains freely. Under the 2021 IPC and 2021 UPC, each fixture trap must hold a liquid seal of not less than 2 inches and not more than 4 inches, and it must be protected by a vent so the seal is not siphoned out.
What a P-trap does and what it looks like
The purpose of a P-trap is set out in the IPC's notes to Chapter 10: the trap seal is the part of the drainage system that keeps odors from the drain piping out of the building. Every lavatory, sink, tub and shower you set depends on one, and an inspector will check its seal, its size, its vent and its joints.
From the side, the fitting looks like the letter P lying on its back. A U-shaped bend drops below the fixture outlet, then turns into a horizontal pipe that runs to the wall. That letter is where the name comes from, so when a client asks what is a pea trap in plumbing, they mean this same fitting. For the J-trap vs P-trap question, the J is the curved bend on its own. Add the horizontal outlet piece and you have the full P.
How a P-trap holds its water seal
Water fills the bottom of the bend and rises on both sides until it reaches the trap weir. The weir is the point on the outlet side where water spills over into the trap arm. Each time the fixture drains, the discharge pushes through the bend. As the flow stops, the bend refills to weir level, so the seal renews itself with every use. The IPC defines the depth of trap seal as the depth of liquid you would have to remove from a full trap before air could pass through it. In practice, that depth runs from the weir down to the dip, which is the lowest point of the inside top surface of the bend. The P-trap diagram below labels each of these parts.
Trap seal depth: 2 inches minimum, 4 inches maximum
Both model codes set the same range. IPC Section 1002.4 and UPC Section 1005.1 each require every fixture trap to hold a liquid seal of not less than 2 inches and not more than 4 inches. Each code allows a deeper seal in one case only. The IPC allows it for special designs relating to accessible fixtures. The UPC allows it where the Authority Having Jurisdiction finds a deeper seal necessary. Both codes also require the trap to clean itself in use: the IPC calls this self-scouring and the UPC calls it self-cleaning.
Watch out
Seal depth is a vertical measurement, from the weir down to the dip. It is not the pipe size, and it is not the volume of water in the bend. A deep-seal trap over 4 inches fails inspection unless one of the two exceptions above applies.
Sizing: one trap per fixture
Under IPC Section 1002.1, each fixture is trapped separately, except where the code permits otherwise, and no fixture may be double trapped. The vertical distance from the fixture outlet to the trap weir is limited to 24 inches. The horizontal distance is limited to 30 inches, measured from the centerline of the fixture outlet to the centerline of the trap inlet. The UPC also limits the tailpiece to 24 inches and allows no more than one trap on a trap arm. For size, IPC Section 1002.5 requires the trap to drain the fixture rapidly and to be at least the size in Table 709.1, and never larger than the drain it discharges into. UPC Section 1003.3 sets the minimum from Table 702.1 and allows no more than one pipe size above it. The UPC trap must also match the size of its trap arm. The comparison below sets the two codes side by side.
IPC vs UPC: fixture trap rules
| 2021 IPC | 2021 UPC | |
|---|---|---|
| Trap seal depth | 2 to 4 inches (1002.4), deeper for special designs relating to accessible fixtures | 2 to 4 inches (1005.1), deeper where the Authority Having Jurisdiction finds it necessary |
| Trap size | Not less than Table 709.1, and not larger than the drain it discharges into (1002.5) | Not less than Table 702.1, and no more than one pipe size larger. Same size as the trap arm (1003.3) |
| Prohibited traps | Moving-part, bell, crown-vented, partition (with exception), S and drum traps (1002.3) | Moving-part (including bladders and check valves), concealed-partition (with exception), S, bell and crown-vented traps. Drum and bottle traps only for special conditions (1004.1, 1004.2) |
| Slip joints | Approved elastomeric gasket. Only on the trap inlet, the trap outlet and within the trap seal (1002.2) | No more than one approved slip joint on the outlet side of the trap (1003.2) |
| Concealed slip joints | Access panel or utility space not less than 12 inches in its smallest dimension (405.9) | Access panel or utility space not less than 12 inches in its least dimension (402.10) |
The difference
Check which code your jurisdiction has adopted before you size or set a trap.
Trap types the codes prohibit
IPC Section 1002.3 bans six trap types outright:
- Traps that depend on moving parts to hold the seal
- Bell traps
- Crown-vented traps
- Traps not built into a fixture that depend on interior partitions for the seal, unless made of an approved material that resists corrosion and degradation
- S-traps
- Drum traps, except drum traps used as solids interceptors or serving chemical waste systems
The UPC bans the same S-traps, bell traps, crown-vented traps and moving-part traps. It also names bladders and check valves as devices that may not serve as a trap. It treats drum and bottle traps differently: rather than banning them, it limits them to special conditions. It also forbids any trap without a vent unless the code provides otherwise. The S vs P trap issue comes up on remodels: both codes prohibit S-traps, so a new or replacement trap must not be an S-trap. Crown venting has its own rule as well. IPC Section 909.3 bars any vent within two pipe diameters of the trap weir, and the UPC requires the trap arm to be at least twice its own diameter long.
Keeping the trap arm above the trap weir
The trap arm is the horizontal pipe from the trap weir to the vent fitting. The IPC calls it the fixture drain. The vent's job is to protect the seal: IPC Section 901.2 and UPC Section 901.3 both limit the pressure differential on a trap seal to 1 inch of water column. Under IPC Section 909.2, the total fall caused by the slope of the fixture drain must not exceed the diameter of that drain. The vent connection also may not sit below the trap weir, except on water closets. UPC Section 1002.4 sets the same rule for the vent pipe opening. On a 1 1/2-inch lavatory arm, that means the fall from the weir to the vent fitting cannot exceed 1 1/2 inches. Setting the trap high to clear a vanity drawer and then running the arm steeply down to a low sanitary connection breaks this rule. The P-trap plumbing diagram below shows a compliant arm next to one that is not.
Trap arm length limits
Both codes cap how far the vent may sit from the trap, based on pipe size and slope. The IPC measures from the trap weir to the vent fitting using Table 909.1, and places no limit on self-siphoning fixtures such as water closets. The UPC measures from the trap weir to the inner edge of the vent using Table 1002.2, with a slope of 1/4 inch per foot. It sets a minimum as well as a maximum. For a water closet, the UPC limit is 6 feet, measured from the top of the closet flange to the inner edge of the vent. The table below gives the limits in both codes for each trap size.
| Trap size (inches) | IPC slope (inch per foot) | IPC maximum distance (feet) | UPC minimum (inches) | UPC maximum (inches) |
|---|---|---|---|---|
| 1 1/4 | 1/4 | 5 | 2 1/2 | 30 |
| 1 1/2 | 1/4 | 6 | 3 | 42 |
| 2 | 1/4 | 8 | 4 | 60 |
| 3 | 1/8 | 12 | 6 | 72 |
| 4 | 1/8 | 16 | 8 | 120 |
| Exceeding 4 | Not listed | Not listed | 2 x diameter | 120 |
Under the UPC, a trap arm may change direction up to 90 degrees without a cleanout. For arms 3 inches in diameter and larger, the limit is 135 degrees.
Where slip joints are allowed
IPC Sections 1002.2 and 405.9 require slip joints to be made with an approved elastomeric gasket. They may be installed only on the trap inlet, the trap outlet and within the trap seal. UPC Section 1003.2 allows no more than one approved slip joint on the outlet side of a trap. It also requires a listed tubing trap adapter on every tubing trap. Under either code, a fixture with concealed slip joints needs an access panel or utility space at least 12 inches in its smallest dimension, so the joints can be inspected and repaired. The UPC does not count copper or copper alloy ground joint, flared or ferrule connections as slip joints. It also permits approved unions where they are accessibly located in the trap seal or between the fixture and its trap.
Check yourself
Under the 2021 UPC, which developed length from trap weir to vent is compliant for a 1 1/2-inch lavatory trap arm?
- 2 inches
- 36 inches
- 48 inches
- 72 inches
Frequently asked questions
How do you plumb a shower drain trap to code?
The general fixture trap rules apply to a shower: a vented trap with a 2-inch to 4-inch seal, sized to the code table, with the arm within the limits for its size. The UPC requires shower traps to be of standard design and made of ABS, cast-brass, cast-iron, lead, PP, PVC or another approved material. Where the trap sits in a recess below a slab, as with a bathtub, the IPC requires the recess to have corrosion-resistant, insect- and verminproof sides and bottom.
Can one trap serve more than one sink?
The UPC allows one trap to serve up to three single-compartment sinks or laundry tubs of the same depth, or three lavatories next to each other in the same room. The waste outlets must be no more than 30 inches apart, and the trap must be centrally located where three compartments are installed. Otherwise, each fixture gets its own trap.
Can a P-trap count as a cleanout?
Under IPC Section 708.1.6, a fixture trap that can be removed without disturbing concealed piping is accepted as a cleanout equivalent. A removable P-trap with slip or ground joint connections can also serve as the cleanout for drain piping one size larger than the trap.
What stops a trap seal from drying out?
Traps that see little use, such as floor drains, can lose their seal to evaporation. The IPC requires trap seals of emergency floor drain traps and trap seals subject to evaporation to be protected by one of the methods in Sections 1002.4.1.1 through 1002.4.1.5. Three of those methods are a potable water-supplied trap seal primer valve conforming to ASSE 1018 (1002.4.1.1), a barrier-type floor drain trap seal protection device conforming to ASSE 1072 (1002.4.1.4), and a fixture drain from a lavatory or hand sink serving an emergency floor drain, a trench drain or a floor sink in the same room, or one from a drinking fountain in the same or an adjacent room (1002.4.1.5). The remaining methods are in the other sections of that range. The UPC requires floor drain or similar traps subject to infrequent use to be protected with a trap seal primer, except where the Authority Having Jurisdiction does not deem it necessary for safety or sanitation. Potable water supply trap seal primer valves must comply with ASSE 1018, and drainage and electronic design type trap seal primer devices must comply with ASSE 1044.
Does a P-trap have to be installed level?
Yes. The IPC requires traps to be set level with respect to the trap seal, and the UPC requires them to be set true to their liquid seals. Both codes also require traps to be protected from freezing where necessary.
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.


