Quick answer
A plumbing P-trap is the curved section of drain pipe under a sink, tub or shower that stays filled with water, forming a seal that lets waste drain out while blocking sewer gas from coming back into the room.
Its shape looks like a sideways letter P: a U-bend that holds water, then a horizontal pipe called the trap arm that runs to a vent and the drain line in the wall.
Quick facts
The key facts about Plumbing P-Trap, with sources:
- Water seal depth
- Not less than 2 inches and not more than 4 inches (UPC 2018 §1005.1) 1
- Outlet to trap weir
- Tailpiece no longer than 24 inches (UPC 2018 §1001.2; Ohio IPC 2021 §1002.1.1) 12
- Prohibited traps
- “S” traps, bell traps, crown-vented traps, double trapping (UPC 2018 §1004.1) 1
- Trap arm length
- Set by pipe size: 30 inches at 1¼ inch up to 120 inches at 4 inch (UPC 2018 Table 1002.2) 1
Key takeaways
- A P-trap holds a small plug of water that stops sewer gas from rising out of a drain.
- Codes require a separate trap on each fixture, with a water seal of 2 to 4 inches under the UPC.
- The trap arm, the pipe from the trap to its vent, has a maximum length set by pipe size.
- A sewer smell from an unused drain usually means the trap has dried out; running water refills it.
- S-traps and double traps are banned in the model codes because they can siphon or block.
What a P-trap is and why every drain has one
Every drain in a home connects to a sewer or septic system that is full of gas, and without a barrier that gas would rise up the drain and into the room.
The P-trap is that barrier: its U-bend keeps a small pool of water after each use, and gas cannot pass through the water 3.
Michigan State University’s safety office explains it simply: the trap is filled with water that keeps gases from coming back up the drain, and if a sink is not used for a while, the water can evaporate and let sewer gas through 3.
The model codes treat traps as required. The 2018 Uniform Plumbing Code says each plumbing fixture shall be separately trapped by an approved liquid seal trap, except fixtures with built-in traps such as toilets 1. Ohio’s plumbing code, based on the 2021 International Plumbing Code, says the same 2.
P-trap vs toilet trap
A toilet has a trap cast into the bowl, so it needs no P-trap below it. The UPC exempts fixtures with integral traps from the separate-trap rule 1. Sinks, tubs, showers, washers and floor drains need their own.
How a P-trap holds its water seal
- Waste drains in: Water leaves the fixture through the tailpiece and drops into the trap.
- The bend fills: Water passes over the trap weir (the high point of the bend), and some stays behind in the U.
- The seal forms: That leftover water, 2 to 4 inches deep under the UPC, blocks gas from the drain line 1.
- The trap arm carries waste on: The horizontal pipe leaves the trap and slopes toward the vent and the drain.
- The vent protects the seal: A vent near the trap lets air in, so draining water does not suck the seal out. The UPC requires each trap to be protected against siphonage and backpressure by a vent 1.
- Fixture outlet and tailpieceNo more than 24 inches to the trap weir
- Trap bendHolds a 2–4 inch water seal
- Trap weirWhere the seal depth is measured to
- Trap armSloped pipe to the vent, length set by size
- Vent and drainAir in, waste out to the drain-waste-vent system
Seal depth and tailpiece limit from UPC 2018 §§1005.1 and 1001.2. Source: [1]
Types of traps the code allows and bans
| Trap | What it is | Code status (UPC 2018) |
|---|---|---|
| P-trap | U-bend with a horizontal outlet to a vented trap arm | The standard fixture trap |
| S-trap | U-bend that turns straight down, with no vented arm | Prohibited 1 |
| Bell trap | An old bell-shaped floor trap | Prohibited 1 |
| Crown-vented trap | A trap with the vent taken off its top (crown) | Prohibited 1 |
| Drum and bottle traps | Chamber-style traps | Only for special conditions 1 |
| Traps with moving parts | Bladders, check valves or other moving devices used as a trap | Prohibited 1 |
| Building (house) trap | A trap on the main building drain | Not installed unless the authority requires it 1 |
The UPC also bars double trapping, meaning two traps in series on one fixture, which can trap air and block flow 1.
Example: checking a bathroom sink trap against the UPC
This example checks one typical setup against the 2018 Uniform Plumbing Code. Your jurisdiction may use another code or edition.
| Item | Example setup | UPC 2018 rule | Result |
|---|---|---|---|
| Trap arm diameter | 1¼ inch | Table 1002.2 1 | Use the 1¼ inch row |
| Trap arm length | 24 inches from weir to vent | Max 30 inches; min 2½ inches 1 | Passes |
| Tailpiece length | 10 inches | No more than 24 inches 1 | Passes |
| Seal depth | 2½ inches | 2 to 4 inches 1 | Passes |
| Trap arm slope | ¼ inch per foot | Table note 1 1 | Passes |
| Traps on one arm | One | Not more than one trap per trap arm 1 | Passes |
If the same sink were 40 inches from its vent on a 1¼-inch arm, the arm would be too long. The fix is a larger arm size within code, a new vent closer to the trap, or another venting method your code allows.
The trap arm: the pipe between the trap and its vent
The trap arm is the section of drain pipe from the trap weir to the vent. It is part of the same assembly as the P-trap, and its length is one of the most checked items at a rough-in inspection.
The 2018 UPC sets the maximum developed length of a trap arm by pipe size, in Table 1002.2, and says it may not be shorter than two times the arm’s diameter. The arm must slope ¼ inch per foot.
For a toilet, the distance from the closet flange to the vent may not exceed 6 feet 1. A trap arm may change direction up to 90 degrees without a cleanout 1.
Why the limit? If the arm is too long, the far end can drop below the trap weir, and draining water can fill the pipe and siphon the seal.
The UPC also says the vent opening may not be below the trap weir, except for toilets and similar fixtures 1.
The IPC uses its own table of distances, so the numbers differ by code. Our page on plumbing venting covers the vent side.
What a P-trap does well, and where it falls short
Benefits
- Blocks sewer gas with nothing but water 3.
- Self-cleaning shape; the UPC requires traps (other than in interceptors) to be self-cleaning 1.
- Catches dropped rings and small items before they reach the drain line.
- Easy to reach and clean under most sinks.
- Works with a vent to keep its seal through normal use 1.
Limits
- The seal can evaporate in a drain that is rarely used 3.
- A missing or blocked vent can let the seal siphon out.
- Hair, grease and soap collect in the bend and cause slow drains.
- Slip-joint nuts can loosen and drip.
- In unheated spaces, the water seal can freeze; the UPC says traps shall be protected from freezing where needed 1.
How a P-trap loses its seal: evaporation, siphoning and freezing
A trap only works while it holds water. MSU’s safety office notes that an unused drain can dry out and let sewer gas into the room, and advises running water in every drain at least every few months, including floor drains 3.
For drains that sit unused for long periods, the code answer is a trap primer.
The UPC requires floor drains and similar traps that are rarely used to have a trap seal primer unless the authority decides it is not needed, and sets standards for them (ASSE 1018 and 1044) 1. See our page on the plumbing trap primer.
Siphoning is the other risk: without a vent, or with a trap arm that is too long, the rush of draining water can pull the seal out behind it. You will often hear it as a gurgle just after the sink empties, and a strong sewer smell may follow.
What drives the cost of P-trap work
Labor and access drive the cost of P-trap work, because the trap itself is a small, inexpensive part. We do not list prices for trap work, since fair numbers need dated local quotes.
Clearing a clog in the trap is the simplest job. Replacing a worn trap, converting an S-trap to a vented P-trap, or fixing a trap arm that is too long can mean opening a wall to add a vent, which adds drywall and finish work.
A permit may apply to venting changes. Our drain cleaning service page covers clogs, and the plumbing cost guide explains how quotes are built.
How to clean a sink P-trap in six steps
Removing a slip-joint sink trap is a common homeowner task that needs a bucket, gloves and sometimes a pair of pliers. Work slowly, because the bend will be full of dirty water.
- Prepare: Put a bucket under the trap, lay a towel down, and make sure nobody runs water in that sink while the trap is off.
- Loosen the nuts: Turn the two slip nuts counterclockwise by hand or with pliers, holding the trap steady so the tailpiece above it does not twist.
- Remove and empty: Lower the trap into the bucket, pour out the water, and clear hair and sludge from the bend with a bottle brush or an old toothbrush.
- Check the washers: Look at the slip washers and replace any that are cracked or flat.
- Reinstall: Seat the trap, hand-tighten the nuts, then snug them; the UPC allows only one slip joint on the outlet side of a trap 1.
- Test: Run water, then fill the basin and pull the stopper so a full rush of water passes through, and check both joints for drips with a dry paper towel.
Sewer gas and drain chemicals
Sewer gas contains hydrogen sulfide. The CDC’s ATSDR notes that at high levels it can dull your sense of smell, so odor is not a reliable warning 4.
If a strong sewer smell comes with headache, dizziness or nausea, air out the room, leave if it is strong, and call a plumber. Never open a trap that holds chemical drain cleaner; it can splash and burn.
If the clog is beyond the trap, in the trap arm or wall, a drain auger or a plumber is the next step.
How to keep traps from drying out or clogging
- Run water in rarely used sinks, tubs and floor drains every few months to refill the seal 3.
- Use a strainer in tub, shower and kitchen drains to keep hair and food scraps out of the bend.
- Do not pour grease down kitchen drains; it hardens in traps and lines.
- Check the slip nuts under each sink for drips once a year, and snug any that have worked loose.
- In unheated cabins and crawlspaces, protect traps from freezing 1.
The guest-bathroom smell
A sewer smell from a shower or floor drain that nobody uses is most often a dry trap. Pour water in to refill it; MSU calls this the easiest fix 3.
P-trap warning signs, and when to call a plumber
- Sewer odor that returns even after you refill the trap.
- Gurgling from a sink after it drains, a sign the seal is being siphoned.
- A trap that turns straight down into the floor or wall with no vented arm (an S-trap).
- Water dripping from slip nuts or a cracked trap.
- Two traps on one fixture, or a sink trap that sits far from any vent after a remodel.
Odor that persists may point to a vent or a cracked pipe; see our leak detection service, or the plumbing smoke test used to find gas leaks in drain lines.
UPC and IPC rules for P-traps and trap arms
Uniform Plumbing Code (IAPMO), 2018 edition, Chapter 10: §1001.2 requires each fixture to be separately trapped, limits the tailpiece to 24 inches and allows one trap per trap arm.
§1002.2 and Table 1002.2 set trap arm lengths; §1004.1 bans S, bell and crown-vented traps and double trapping; §1005.1 sets the 2–4 inch seal; §1007 covers trap seal primers 1.
International Plumbing Code, 2021 edition, as adopted in Ohio (OAC 4101:3-10-01, effective March 1, 2024): each fixture separately trapped, no double trapping, a 24-inch vertical limit from fixture outlet to trap weir and a 30-inch horizontal limit from outlet to trap inlet.
Ohio exempts garage floor drains in one- to three-family homes from trap seal protection 2.
Local adoption: States and cities adopt the UPC or the IPC (or IRC for homes) in different editions with amendments. Check the code your building department uses before changing a trap or vent.
Worker safety: OSHA lists hydrogen sulfide exposure limits, including a 20 ppm general industry ceiling 5.
P-trap vs trap arm, vent, AAV and floor drain trap
| Part | What it does | Main difference |
|---|---|---|
| P-trap | Holds a water seal at each fixture 1 | The seal itself |
| Trap arm | Pipe from trap weir to vent 1 | Length limited by size (Table 1002.2) 1 |
| Vent | Lets air in so the seal is not siphoned 1 | Protects the trap; does not seal |
| Air admittance valve | A one-way vent valve where codes allow it | Lets air in but not gas out |
| Floor drain trap | Trap on a floor drain | Often needs a trap primer if rarely used 1 |
P-trap myths
- Myth A sewer smell always means a broken pipe.
- Reality Often the trap has simply dried out; refilling it with water is the first step 3.
- Myth An S-trap works as well as a P-trap.
- Reality The UPC prohibits S-traps 1.
- Myth Adding a second trap gives extra protection.
- Reality Double trapping is banned in the UPC and in Ohio’s IPC-based code 12.
- Myth The trap arm can be any length if it slopes.
- Reality UPC Table 1002.2 sets maximum lengths by pipe size 1.
- Myth If you can’t smell sewer gas, you are safe.
- Reality ATSDR says high levels can deaden smell, so odor is not a reliable warning 4.
How local code and climate change the picture
Trap rules depend on which model code your state adopted. Jurisdictions on the UPC use its Table 1002.2 trap arm lengths; Ohio adopts the 2021 IPC with its own amendments, such as exempting garage floor drains in small homes from trap seal protection 12.
Climate is the second variable: in seasonal cabins and unheated spaces, the UPC calls for traps to be protected from freezing where necessary 1 so ask a local plumber how to winterize traps when a building is shut for the season.
When the P-trap matters, and what to try first
The P-trap matters whenever a drain smells, gurgles or drains slowly, and whenever you remodel a kitchen or bath and move a sink, because a sink moved farther from its vent can push the trap arm past its code limit.
Start simple: refill a dry trap, then clean a slow one. If the smell or gurgle stays after both, call a plumber to check the vent and trap arm. The guide below matches four common symptoms to a first step.
- If Smell from a drain nobody uses
- Then Run water to refill the trap
- If Slow sink
- Then Clean the trap
- If Gurgling after the sink drains
- Then Have the vent checked
- If S-trap, or a sink that was moved
- Then Have a plumber bring the trap arm and vent up to code
Questions about Plumbing P-Trap
Does every sink need a P-trap?
Yes, every sink needs a trap, and in nearly all homes that trap is a P-trap.
The water left in its U-shaped bend after each use forms a seal that lets waste drain away while stopping sewer gas from rising into the room.
Model codes, such as the UPC, require every fixture to have its own trap unless the fixture has one built in.
Why does my drain smell like sewer?
The most common cause is a dry trap. When a sink, shower or floor drain is not used for a while, the water in the trap evaporates and sewer gas can come up.
Run water to refill it. If the smell keeps coming back, the vent may be blocked or a pipe may be cracked, and a plumber should check it.
How deep is the water seal in a P-trap?
Under the 2018 Uniform Plumbing Code, each fixture trap must hold a water seal of at least 2 inches and no more than 4 inches, unless the authority requires a deeper seal.
A seal that is too shallow can be lost quickly, and one that is too deep can hold solids. Check your local code edition.
What is a trap arm?
The trap arm is the pipe that runs from the trap weir to the vent.
Its length is limited by pipe size: under UPC 2018 Table 1002.2, from 30 inches for a 1¼-inch arm up to 120 inches for a 4-inch arm, sloped ¼ inch per foot.
A trap arm that is too long can let draining water siphon the seal.
Are S-traps legal?
No, under the model codes. The 2018 Uniform Plumbing Code specifically prohibits S-traps, bell traps and crown-vented traps. An S-trap turns straight down without a vented trap arm, so draining water can siphon the seal out. Older homes may still have them; a plumber can convert one to a vented P-trap.
How often should I run water in an unused drain?
Michigan State University’s safety office advises running water in every drain at least every few months, including floor drains, to keep traps from drying out.
Drains that go unused for long periods, such as some floor drains, may need a trap primer, which the UPC requires for infrequently used floor drain traps unless the authority waives it.
Can a P-trap freeze?
Yes. A P-trap holds standing water, so in an unheated cabin, garage or crawlspace it can freeze and crack. The UPC says traps shall be protected from freezing where necessary. In seasonal homes, ask a local plumber how traps should be winterized.
Can I install two P-traps on one sink?
No. Double trapping is prohibited in the UPC and in Ohio’s IPC-based code. Two traps in a row can trap air between them and slow or stop drainage. A double-bowl sink normally uses one trap shared by both bowls, within the limits the code sets for distance between outlets.
Is sewer gas dangerous?
Sewer gas contains hydrogen sulfide, which smells like rotten eggs. CDC’s ATSDR says long-term exposure at low levels can cause eye irritation, headache and fatigue, and that at high levels the gas can deaden your sense of smell. If a strong odor comes with symptoms, air out or leave the space and call a plumber.
Sources
- IAPMO Uniform Plumbing Code 2018, Chapter 10 Traps and Interceptors (copy hosted by the City of Lynnwood, WA), retrieved .
- Ohio Admin. Code 4101:3-10-01, Traps, interceptors and separators (2021 IPC Chapter 10 as amended; effective March 1, 2024), via Cornell LII, retrieved .
- Michigan State University EHS, What’s That Stink? It Could Be Your Drain (February 2020), retrieved .
- CDC ATSDR, ToxFAQs: Hydrogen Sulfide, retrieved .
- U.S. OSHA, Hydrogen Sulfide: Hazards, retrieved .
Expert review
Written by the HyrePlumber Research team. Not yet reviewed by an outside expert. We say so rather than imply a review that has not happened; see our editorial policy.
How the numbers were checked: Trap requirements, seal depth, prohibited traps, trap arm lengths and trap primer rules are quoted from the 2018 UPC Chapter 10 (a copy hosted by the City of Lynnwood, WA).
IPC-based rules are from Ohio’s adopted code via Cornell LII. Dry-trap guidance is from MSU EHS; gas hazards from CDC ATSDR and OSHA. IPC trap arm distances were not reachable at source and are not quoted. No prices are given.
Suggest a correction. We fix errors and say what changed.