How a P-Trap Works: The 2-Inch Water Seal and the Vent That Protects It

In short

A P-trap works by holding water in its bend. That water plug, the trap seal, blocks sewer gas while waste flows through. The plumbing code requires a seal of at least 2 inches and, for most fixtures, no more than 4 (the IPC allows deeper seals on certain accessible fixtures). The vent keeps air pressure in the drain from pushing or pulling that water out: the International Plumbing Code (IPC) allows no more than 1 inch of water column of pressure difference at the trap.

Checked against: ICC Building Safety Journal (IPC Chapters 9, 10 and 11), New York City Plumbing Code 2022, Studor and Oatey product documents.

Two inches of standing water is the code minimum between your bathroom and the sewer. According to the International Code Council's summary of the IPC trap rules, each fixture trap needs a liquid seal of at least 2 inches and, for most fixtures, not more than 4. Everything else under the sink, and the vent pipe in the wall, exists to keep that small plug of water where it is.

When that water goes missing, you smell the sewer. When the pressure around it swings, you hear a gurgle. If you already have a specific symptom, our drains troubleshooting guide starts from the symptom and the fixture.

P-trap parts and what each one does

A sink trap is a kit of tubes held together by slip nuts. Dearborn's (Oatey's) bathroom P-trap instruction guide names the pieces: wall tube, waste connector, tailpiece and J-bend. The table adds the weir, slip nuts and the vent side.

PartIts jobHow it usually failsWhat you notice
TailpieceStraight tube from the sink drain down into the trapLoose slip nut or shifted washer at the top jointDrip at the joint below the sink basket or pop-up
Slip nuts and washersSeal each joint; the washer makes the seal, the nut squeezes itWasher hardens or sits crooked; nut backs offWet spot under one joint after the sink drains
J-bend (the trap itself)Holds the water seal and catches heavy debrisHair, soap and grease build up; old metal traps corrodeSlow drain, rotten-egg smell from the drain
WeirHigh point on the outlet side that sets the water levelDoes not fail; the seal can be pulled over itGurgle as the trap empties
Trap arm (wall tube)Carries water from the trap to the drain in the wall, sloping slightly downhillToo long, too steep or sagging for the vent to protect the sealGurgling after a full sink drains
Vent pipeLets air into and out of the drain so pressure does not move the sealBlocked at the roof by ice, leaves or nestsGurgling, slow drains in several fixtures, sewer smell
Air admittance valve (if fitted)One-way valve that lets air in under suction and closes against sewer gasSeal fouled or stuck; waste rising into it during a clogSewer smell inside the vanity cabinet, gurgling

Material matters more than most people think. Oatey's P-trap explainer says chrome-plated brass traps "can and will corrode over time," while polypropylene resists corrosion and acids.

Sink Tailpiece Slip nutwasher inside Trap seal2 to 4 in. Weirsets the water level Slip nut Top of the dip J-bendholds the water seal Trap armslopes down to the wall Vent joins above the weir Ventto the roofor an AAV air inand out Drain Wall
The water between the weir and the top of the dip is the trap seal. Air from the vent, not water from the trap, fills the space behind draining water. Schematic, not to scale.

How the water seal works, step by step

Gravity does all of it. No valve moves:

  1. Water enters. Water falls down the tailpiece and fills the J-bend from the inlet side.
  2. The bend overflows. As the inlet side rises, water spills over the weir into the trap arm. The code requires traps to be self-scouring, meaning normal flow rinses the inside, per the ICC overview.
  3. The slug runs off. The water in the trap arm flows downhill to the drain in the wall. Behind it, the drain needs air. The vent supplies it.
  4. The seal settles. When the flow stops, the water left in the bend sits level with the weir on the outlet side. The New York City Plumbing Code defines the trap seal as "the vertical distance between the weir and the top of the dip of the trap." That is the 2 to 4 inches the code asks for.
  5. Gas stays out. Sewer gas would have to push down through that water and up the other side to reach the room.

The ICC summary adds two rules: traps must be set level with respect to the seal, and slip joints are allowed only at the trap inlet, the trap outlet and within the seal. Level matters because the seal is measured vertically, from the weir down to the dip; tilt the trap and that height changes.

Why a trap needs a vent

Water falling through a drain shoves air ahead of it and leaves suction behind it. The ICC's Code Corner on IPC Chapter 9 puts numbers on it.

1 inch of water column (249 Pa) is the most pressure difference the IPC lets a trap seal see. A 2-inch seal exposed to it still keeps 1 inch of water.

Source: International Code Council, Code Corner: 2024 IPC Chapter 9, Vents

A 2-inch seal is worth a 2-inch water column, which the ICC gives as 498 Pa. The vent system's job, in IPC section 901.2, is to admit or release air so the pressure difference across the seal never passes half of that. Here is what happens when it does:

  • Suction (negative pressure). Lower pressure on the drain side makes the seal rise on that side and flow over the weir. The ICC says the loss is proportional to the amount of suction. Enough of it empties the trap.
  • Back pressure (positive pressure). Higher pressure on the drain side pushes the seal back toward the fixture. The ICC's example: bubbles rising through a toilet's seal mean excessive positive pressure on the drainage side.

Where the vent connects matters too. The 2022 New York City Plumbing Code requires the vent to connect above the weir of the trap it serves (section 909.2) and bans a vent within two pipe diameters of the weir (909.3, the old crown vent). Table 909.1 limits how far the trap may sit from its vent; the ICC's 2021 IPC venting brochure gives the same values.

Trap size and maximum distance to the vent

FixtureMinimum trap size (UPC table)Max. trap-to-vent distance (IPC Table 909.1)
Bathroom sink (lavatory)1-1/4 in5 ft at 1/4 in per ft slope
Kitchen sink, with or without disposal and dishwasher1-1/2 in6 ft at 1/4 in per ft
Bathtub or tub-shower1-1/2 in6 ft at 1/4 in per ft
Laundry sink1-1/2 in6 ft at 1/4 in per ft
Shower stall2 in8 ft at 1/4 in per ft
Clothes washer standpipe2 in8 ft at 1/4 in per ft
Toilet (1.6 gpf)3 in (trap built into the bowl)Not limited for self-siphoning fixtures (NYC 909.1 exception)

Trap sizes come from the Uniform Plumbing Code table that King County Public Health publishes; distances come from the IPC. Your state or city may use either code, with amendments.

Why S-traps are banned

An S-trap's outlet turns straight down instead of running sideways to a vent. Home inspector Reuben Saltzman describes it as a normal trap with a second, upside-down trap set right against it. IAPMO's Uniform Plumbing Code spotlight says the S-trap "makes the trap seal too susceptible to siphonage," and both the UPC and the IPC prohibit it. On a proper P-trap, Saltzman notes, the vent sits where the drain turns downward, and that breaks the siphon.

The vent itself: roof pipe or air admittance valve

The ICC brochure cites IPC section 904.1, which requires the vent system serving each building drain to have at least one vent pipe that extends to the outdoors. This Old House's guide to gurgling toilets says it is typically a 3- or 4-inch pipe and lists ice or snow, leaves and twigs, and animal nests as common blockages.

How far it must stick up is a local call. New York City requires open vent pipes to end at least 24 inches above the roof; Michigan's residential code says at least 1 foot. Both jump to 7 feet where the roof is used as a deck. Codes also set a minimum pipe size where the vent passes through the roof so frost cannot close it; New York City's is 4 inches.

Inside the house, individual fixtures can use an air admittance valve (AAV) instead of a pipe to the roof, where the local code allows it. An AAV is a one-way valve. Studor's Mini-Vent specification sheet says it opens and admits air when suction develops from a fixture draining, and closes by gravity when the flow stops. It lists the opening pressure as −70 Pa (−0.010 psi), under a third of the 249 Pa the IPC allows at the trap. Oatey's AAV primer gives the same −0.01 psi for its Sure-Vent.

The ICC brochure and Oatey's AAV installation guide agree on the placement:

  • At least 4 inches above the horizontal branch drain or fixture drain it vents.
  • At least 6 inches above any insulation, which could block its air inlet.
  • Accessible for replacement; a sink cabinet counts, a closed wall needs an access grille.
  • Within 15 degrees of vertical (Oatey).

The weakness: an AAV only lets air in. The ICC brochure says it "will not provide relief of positive pressures," which is why the open roof vent stays mandatory, and Oatey states that AAVs do not replace at least one stack vent through the roof. The same brochure warns that during a drain stoppage, waste rising into the valve can leave its seal "inoperable."

How a trap loses its seal: causes in order of likelihood

Phoenix's water department, in its sewer-odor guidance, tells residents to check the traps for water first, and the South Davis Sewer District calls a dry or missing P-trap one of the most common reasons for sewer odors. The other likelihood labels are our editorial ranking.

CauseHow commonThe testWhat you will seeFix or partDIY or pro
Dry trap (evaporation)Very common in guest baths, basements, vacant homesPour a quart of water down the drainSmell fades soon after; returns if the fixture sits unused againRun water monthly; a layer of mineral oil in rarely used drainsDIY
Slime and hair in the trap or drainCommon in bathroom sinks and showersGlass-of-water test, then smell the drain itselfRotten-egg smell at the drain even with water in the trapPull and clean the trap; new washers ($0.32 to $0.66)DIY
Leaking slip jointCommon after a trap has been taken apartFill the sink, drain it, hold dry paper towel under each nutA wet mark under one jointReseat the washer, retighten; new washerDIY
Blocked roof ventOccasional; seasonal with snow, leaves, nestsDrain a full tub; listen and watch the toilet bowlGurgles in other fixtures; toilet water rocks or dropsVent cleared from the roofPro (roof work)
Failed or fouled AAVOccasional, only where one is fittedSmell inside the cabinet near the valve; gurgle on drainingOdor at the valve, not at the drain openingNew AAV ($22.61 to $44.63)DIY if threaded; pro if glued or in a wall
S-trap or no ventLess common; older or DIY basement workLook under the sink; drain a full basin and listenTrap drops straight into the floor; loud gurgle at the end of drainingRe-pipe with a vent or an approved AAVPro
Back pressure from a blocked mainLess common, but seriousWatch the toilet while the washer or tub drainsBubbles rising in the bowl; several drains slow at onceMain line clearedPro

This Old House's piece on how a trap can lose water adds two rarer causes: wind across roof vents that makes trap water oscillate, and a string or fiber in the bend that wicks water out.

Five checks you can do in ten minutes

You need a flashlight, a quart jug, a drinking glass and a dry paper towel. Do them in order.

  1. Refill the trap. Pour a quart of water into each smelly drain. Phoenix says that is enough to fill a P-trap and restore a full seal. If the smell goes and stays gone, it was evaporation. South Davis suggests mineral oil for rarely used drains; unlike cooking oil, it does not go rancid.
  2. Rule out the water supply. Fill a glass from the cold tap, carry it to another room and smell it. Phoenix's test: no odor in the glass means the smell comes from the drains, not the water.
  3. Listen for a gurgle. Fill the sink or tub, pull the stopper and listen at the end. Saltzman calls that gurgle "a dead giveaway" that the fixture is not properly vented. Then drain the tub while you watch the toilet bowl. Water that rocks or drops points at the vent; bubbles rising through the bowl point at back pressure on the drain side.
  4. Find the leak. With the sink full, open the drain and hold a dry paper towel under every slip nut. No drip but still a smell? Phoenix notes vent pipe leaks inside walls, which a plumber can find with a smoke test.
  5. Look at the trap's shape. With the flashlight, follow the pipe from the bend. A P-trap's arm runs sideways into the wall. An S-trap drops into the floor. A valve on a short vertical pipe beside the trap is an AAV.

Still a smell or a slow drain? Clean the trap. HomeGuide's drain-cleaning guide lists the steps: bucket under the trap, loosen the two nuts, clean the inside with a brush or straightened wire, reassemble. Dearborn's guide: hand-tighten every slip nut, align, then tighten fully and test for leaks. Fixture guides: Kitchen Sink Not Draining, Slow Bathroom Sink Drain, Bathtub Drain Clogged and Shower Drain Clogged.

Parts and costs (checked November 2026)

PartPriceWhere we checked
1-1/4 in plastic P-trap kit (bathroom sink)$7.13PlumbingSupply.com
1-1/2 in plastic P-trap kit (kitchen sink, tub)$5.00 to $7.23PlumbingSupply.com
1-1/2 in J-bend only$3.17PlumbingSupply.com
1-1/2 in slip joint washer$0.32 (poly) to $0.66 (rubber)PlumbingSupply.com
Air admittance valve, 1-1/2 to 2 in$22.61 (Ayrlett) to $44.63 (Studor Mini-Vent); Oatey Sure-Vent $37.37PlumbingSupply.com

HomeGuide's plumber cost guide (September 2023) puts small jobs such as sink repairs at $125 to $350, with most plumbers charging $45 to $150 an hour and a minimum service fee of $50 to $200. Its drain-cleaning guide (December 2025) puts plumbing vent cleaning at $100 to $200 on average and snaking a simple toilet, sink, tub or shower drain clog at $100 to $275.

Stop and call a pro if

  • Sewage or dirty water comes up in a tub, shower or floor drain, or several fixtures slow down or back up at the same time. That is the main line, not one trap.
  • Bubbles rise through the toilet bowl whenever the washer or tub drains, even after you have cleared the fixture you were working on.
  • Gurgling or smell comes back after you have refilled and cleaned the trap, and the next step is the roof vent. Roof work and vent clearing belong to a plumber or roofer.
  • You find an S-trap, a trap with no vent, or a trap arm that leaks inside the wall. Re-piping a vent means opening walls and is a job for a licensed plumber.
  • The smell is rotten eggs near a gas appliance or gas meter. The Wisconsin Public Service Commission says to leave the area immediately and call the gas utility or 911 from outdoors, without using lights, appliances or phones near the leak.

Our safety policy explains where we draw the line between homeowner repairs and jobs for a licensed plumber.

P-trap and vent questions

Why does my sink gurgle after it drains?

Air is being pulled through the trap's water because the drain side is under suction, usually from a blocked or missing vent. Run the gurgle test above.

Is my S-trap illegal?

S-traps are prohibited under both the IPC and the UPC. Whether an existing one has to be changed is a question for your local building department; Saltzman notes there is usually no simple way to correct one.

Can I use an air admittance valve instead of a roof vent?

For a fixture or branch, often yes, where the local code accepts AAVs. The house still needs at least one open vent to the outdoors.

Does a dishwasher or disposal need its own trap?

Not usually. The UPC table King County publishes sizes one 1-1/2 inch trap for a kitchen sink with or without a disposal and dishwasher. For how the dishwasher hose should connect, see Dishwasher High Loop and Air Gap; for a smell from the disposal side, see Garbage Disposal Smells.

Sources

  1. International Code Council, An Overview of Plumbing Trap Requirements Under the IPC (2026)
  2. International Code Council, Code Corner: 2024 IPC Chapter 9, Vents (2025)
  3. International Code Council, Methods of Venting Plumbing Fixtures and Traps in the 2021 IPC
  4. NYC Department of Buildings, 2022 New York City Plumbing Code, Chapter 2: Definitions
  5. NYC Department of Buildings, 2022 New York City Plumbing Code, Chapter 9: Vents
  6. Michigan Administrative Code R 408.30532, Roof extension (Cornell LII)
  7. King County Public Health, Drainage and Venting Fixture Unit Values (UPC Table 702.1 excerpt)
  8. IAPMO, Uniform Codes Spotlight: Section 1004.1, Prohibited Traps (2017)
  9. Structure Tech, Reuben Saltzman, A Primer on "S" Traps (updated 2021)
  10. This Old House, How a Trap Can Lose Water
  11. This Old House, How To Fix a Gurgling Toilet
  12. City of Phoenix Water Services, Guidance Supplement 9: Sewer Odors in a Building or House
  13. South Davis Sewer District, What's That Smell? Understanding Sewer Odors and P-Traps (2026)
  14. Oatey, AAV Installation project guide
  15. Oatey, Oatey 101: Air Admittance Valves
  16. Studor, Mini-Vent Product Information and Specification Sheet
  17. Dearborn (Oatey SCS), Instruction Guide: Bathroom P-Trap (2020)
  18. Oatey, What Is a P-Trap and How Does It Work? (2022)
  19. PlumbingSupply.com, Plastic Tubular Drain Parts (prices checked November 2026)
  20. PlumbingSupply.com, Auto Vents: Air Admittance Valves (prices checked November 2026)
  21. HomeGuide, How Much Does It Cost to Unclog or Snake a Drain? (December 2025)
  22. HomeGuide, Plumber Cost (September 2023)
  23. Public Service Commission of Wisconsin, Natural Gas Consumer Safety