Water Record

P-Trap: How It Works, How to Replace One, and What Code Requires

How-to · published 2026-11-29

Short answer. The P-trap is the curved pipe under a sink. The water sitting in its bend blocks sewer gas. Oatey, a maker of P-traps: the trap “creates a powerful barrier that stops sewer gas and odor from entering your home.” It also catches what falls down the drain: its “u-shape captures sediment and prevents it from passing into the sewer.”

Replacing one takes a few slip nuts and washers. Under the 2021 International Plumbing Code (IPC), the water seal must be “not less than 2 inches (51 mm) and not more than 4 inches (102 mm),” and S-traps are on the list of prohibited traps.

Sources, read and archived in this site’s records: Oatey’s What is a P-Trap and How Does it Work? and its PVC Heavy Duty P-Trap instruction sheet; Keeney’s PP100PB P-trap installation instructions; Kallista’s (a Kohler brand) P21641 P-Trap instructions; and the ICC’s 2021 International Plumbing Code, Chapter 10.

The parts

Part What it is
Tailpiece The straight pipe coming down from the sink drain
J-bend The U-shaped piece that holds the water; Oatey: it “resembles the letter J”
Wall tube (trap arm) The pipe from the J-bend into the wall
Weir Oatey: “the upper bend of the p-trap in which the water would start to spill into the wall tube”
Slip nuts and washers They seal each sliding joint; the IPC requires “an approved elastomeric gasket”

Every time the sink drains, Oatey says, “new wastewater flushes through the p-trap, replacing the old water in the curve with fresh water.”

How deep the water seal is: Oatey vs. the code

Source Seal depth
Oatey (trap maker) “A 1-½-inch to 2-inch water seal at the weir”
2021 IPC, Section 1002.4 “Not less than 2 inches (51 mm) and not more than 4 inches (102 mm)”

The two ranges meet at 2 inches. Oatey describes how its traps work; the IPC is the model code many places adopt, so it’s the rule an inspector checks. Local codes adopt and amend model codes, so ask your local building department if it matters for an inspection.

Replacing a sink P-trap

Keeney’s and Oatey’s steps for a slip-joint trap:

  1. Turn off the water at the faucet and put a bucket under the trap. Keeney: “water and dirt will be present in the existing trap.”
  2. Remove the old trap. Loosen the slip nuts at the tailpiece and at the wall tube.
  3. Fit the wall tube. Oatey: “Measure and cut the wall tube to the length needed,” then insert it into the wall connector “making sure to use a slip joint washer to ensure a seal.” Keeney: slide the trim flange onto the wall tube before you connect it. For a new installation, Keeney says to check that “you have the proper adapter in the wall connection to accept the wall tube.”
  4. Put a nut and washer on the tailpiece. On Oatey’s PVC trap: “Use reducer washer if tailpiece is 1-1/4 in.”
  5. Join the J-bend to the tailpiece and the wall tube. Kallista says the tailpiece must extend 1 to 2 inches into the trap and “may need to be cut to fit.” Keeney: hand-tighten the nuts first, then “align parts and tighten with wrench.”
  6. Test. Run water and check every joint. Kallista’s checkout runs both hot and cold water through the trap.

Keeney’s two tips: on threaded drain connections, “Put thread sealant tape or pipe dope on the drain threads before attaching nuts.” And on chrome nuts, “Use a scrap of cloth to protect chrome finish” from the wrench.

On a PVC drain stub-out, Oatey’s heavy-duty trap starts with a solvent- cemented connector on the pipe out of the wall. Follow the cement maker’s instructions for that joint; the rest of the trap uses slip nuts.

Plastic or brass

Oatey compares the two common materials:

Some traps have a cleanout plug at the bottom. Kallista: it “is used to remove any debris that has fallen into the trap.”

What the code doesn’t allow

The 2021 IPC, Section 1002.3, lists prohibited traps, including:

Its other trap rules, from Section 1002:

When the trap is the problem