Yes—P-traps are required by plumbing code for nearly every fixture that connects to a drain, and the requirement is long-standing rather than a recent addition. The International Plumbing Code (IPC) and the Uniform Plumbing Code (UPC), the two model codes adopted in most U.S. jurisdictions, both mandate a water seal between a fixture and the drainage system. The trap is the component that holds that seal.
The reason is simple and hasn't changed in a century of plumbing practice: without a trap, sewer gas flows freely back through the drain into the building. A P-trap's water column blocks that path. What the codes do vary on is the details—trap size, depth of seal, venting distance, and the exceptions where a trap isn't required or isn't permitted. Getting those details wrong is where most code violations and callbacks originate.
What plumbing codes actually require of a trap
The core requirement in both model codes is a liquid seal of between 2 and 4 inches of water between the fixture drain and the sewer. Typical residential fixtures—sinks, lavatories, tubs, showers, toilets—use a trap with a 2-inch seal, which is the minimum. Deeper seals up to 4 inches are permitted but not necessary for ordinary fixtures, and oversized seals can slow drainage.
Beyond seal depth, the codes require that every trap be:
- Self-cleaning, meaning the flow pattern scours the trap rather than letting debris settle.
- Accessible for cleaning, unless it has a removable cleanout or is a type that can be cleaned without disassembly. A trap arm under a sink is generally accessible through the cabinet.
- Protected against siphonage by a vent, so the trap doesn't get sucked dry when other fixtures discharge.
- Free of moving parts—no mechanical or "bellows" traps of the type sold as retrofits.
- Of a code-recognized type, which in practice means a tubular or tubular-brass P-trap under a fixture, or a plastic P-trap (PVC/ABS) for newer installations.
A common misreading is that the trap must be below the fixture. It does have to be, but the code's real constraints are about the trap arm—the section of pipe between the trap outlet and the vent.
The IPC limits the trap arm length according to pipe diameter: a 1¼-inch trap arm is limited to 3½ feet, a 1½-inch arm to 5 feet, and a 2-inch arm to 8 feet, measured from the trap weir (the bottom of the trap outlet) to the vent. If the trap arm is longer than that, the trap isn't adequately vented, and it can siphon.
The P-trap vs. the S-trap, drum trap and other types
Not every "trap" satisfies code. The P-trap is the shape that works because its outlet runs horizontally to a vent before the drain turns down. An S-trap—which drops straight down after the trap—is prohibited by both model codes because it tends to self-siphon and lose its seal. This is the reason a sink drain that connects to a floor drain below without a vent is a code violation, even if it "looks" trapped.
Drum traps, once common for tubs and laundry sinks, are generally not permitted for new work under current codes because they're hard to clean and don't reliably self-clean. Bell and bladder traps and "flexible" traps with corrugated interiors are also disallowed in most jurisdictions: the corrugations trap debris and the flexible body can lose its shape or seal.
The practical rule of thumb: if you see a P shape (water enters one side, exits the other horizontally, then the pipe runs to a vent), it's likely code-compliant. If you see an S, a drum, or a corrugated flex trap, expect a correction.
Toilets are a special case
Toilets don't use a separate P-trap. The trap is integral to the fixture—the porcelain bowl contains a built-in trapway with a water seal. That's why you don't install a P-trap under a toilet, and why a toilet that gurgles or loses its seal points to a venting or drain problem rather than a missing trap. The code treats the toilet's integral trap as satisfying the trap requirement.
Where traps are required, and where they aren't
The default in both model codes is that every fixture connected to the drainage system must be trapped, with a few listed exceptions:
Fixtures that generally must be trapped
- Lavatories, kitchen sinks, and utility sinks
- Bathtubs and shower receptors (showers are trapped, including the shower drain and, where present, the tub-shower combination)
- Washing machine standpipes
- Floor drains (though some codes allow floor drains to be trapped as a group with a single trap under conditions)
- Drinking fountains and similar fixtures
- Water closets (via integral trap)
The common exceptions
- A fixture with an integral trap, such as a toilet, doesn't need an added trap.
- A group of fixtures can sometimes share a single trap if the code permits it and the fixtures are close together—this is more common in commercial settings than residential.
- A fixture that drains to a trap that serves another fixture is generally prohibited (a "double-trapped" or shared-trap arrangement on the same branch usually isn't acceptable), so don't assume you can skip a trap by tying into a neighbor's.
- Floor drains in some applications can be trapped as a group or omitted under specific conditions, but those conditions are narrow and jurisdiction-specific.
The phrase "every fixture must be trapped" is the safe default. For any specific fixture you're installing, the manual or the authority having jurisdiction (AHJ) will tell you if an exception applies.
Why the trap must be vented
A trap without a vent can still lose its seal. When water flows down a drain, it pulls air behind it; without a vent to supply that air, the pressure drop can siphon the trap dry. The code's trap-arm length limit and venting requirements exist precisely to prevent this.
A common failure mode in older homes is a sink trap that gurgles and smells—the trap is present but the vent is missing or blocked, so the seal breaks. Fixing the smell usually means fixing the venting, not replacing the trap.
Code editions, jurisdiction and the AHJ
There's no single national plumbing code in the U.S.; states and localities adopt one of the model codes, often with amendments. The two most common are the International Plumbing Code (IPC), published by the International Code Council, and the Uniform Plumbing Code (UPC), published by IAPMO. The two agree on the fundamentals—2-to-4-inch seal, self-cleaning trap, vented trap arm—but differ in details like trap-arm length tables and specific exceptions.
A few practical implications:
- The edition matters. Codes are updated on roughly three-year cycles. A requirement in the current edition may not have existed in the edition your jurisdiction adopted, though the trap requirement itself is old and stable.
- Amendments are local. A jurisdiction may add stricter local requirements (for example, requiring a trap primer on floor drains in certain occupancies) or specific exceptions.
- The AHJ has the final say. The plumbing inspector for your jurisdiction interprets and enforces the code. When in doubt, the permit office is the authority—not a general rule from a national code that your locality may not have adopted.
If you're doing permitted work, the safe approach is to ask the permit office which code edition applies and to confirm any exception you plan to rely on before you install.
Trap sizing and the fixture drain connection
Trap size must match the fixture. The trap must be at least as large as the fixture drain it serves, and the codes set minimum trap sizes by fixture type. Typical minimums include:
- Lavatory: 1¼-inch trap (some codes allow 1½-inch)
- Kitchen sink: 1½-inch trap
- Bathtub and shower: 1½-inch or 2-inch depending on the drain
- Washing machine standpipe: 2-inch trap
- Floor drain: 2-inch or larger, depending on the drain
An undersized trap on a fixture with a larger drain creates a restriction and increases the chance of siphonage and clogging. Oversizing a trap isn't a code violation in itself, but it can reduce the scouring velocity that keeps the trap self-cleaning, which is why the trap should generally match the fixture's drain size rather than exceed it.
There's also the trap weir rule: the trap weir (the lowest point of the trap outlet) must be below the fixture's flood level rim. This ensures that if the drain backs up, water overflows the fixture rather than rising inside the trap and leaking at the joint.
In practice, this is why a trap installed above the bottom of a sink can be a problem—the trap needs to sit below the fixture so gravity and the flood-level relationship work.
When a trap isn't enough: venting and backwater issues
A trap holds a seal only when it's properly vented and the drainage system is functioning. A few failure scenarios worth understanding:
- Siphonage from a nearby fixture. A toilet flushing or a tub draining can pull air through a shared branch and break a nearby trap seal if the venting is inadequate. This is a venting problem, not a trap problem.
- Backpressure. If the sewer backs up, pressure can push through traps. Backwater valves protect the building; the trap itself can't prevent this.
- Evaporation. A trap on a rarely used fixture can evaporate dry. Floor drains in unused areas are notorious for this, which is why some codes require trap primers or periodic maintenance.
- Improper slope. A drain that's sloped too steeply or too flat can drain unevenly and leave the trap seal unstable; the codes specify slope for this reason.
Do-it-yourself checks that reveal trap problems
When you're evaluating an existing installation, a few observable conditions tell you whether the trap complies or is malfunctioning:
- Look for the P shape. Remove the trap or look at it—a compliant trap has a water-holding bend with a horizontal outlet. A corrugated flexible trap is a red flag for inspection.
- Look for an S shape. If the outlet drops straight down without a horizontal run to a vent, it's an S-trap and likely noncompliant.
- Check for a vent. The trap arm should run to a vent before it joins a vertical drain. Under-sink cabinets often show the trap arm going into the wall—the vent is inside the wall or above.
- Smell test. A persistent sewer smell with a full trap usually means a venting issue; a smell with a dry trap means the trap lost its seal.
- Gurgling and slow drains. These point to venting problems or partial clogs, not necessarily a missing trap.
These checks are diagnostic aids, not a substitute for an inspector's determination. If a permit is required for the work, the inspection will be the final word.
How a P-trap earns its keep in practice
The mechanism is worth understanding because it explains why the code is so insistent. When water flows through a drain, it leaves behind a small pool in the trap's bend. That pool is the seal. The horizontal outlet to the vent means the seal has a stable air reference above it; without that vent, the drain's own flow can pull the seal out.
The trap is therefore not just a physical fixture—it's a system of trap, vent, and slope working together. A code-compliant trap installed without regard to venting is only partly compliant in practice, even if the parts are the right ones.
Common code-violation patterns to avoid
- Installing an S-trap because the drain line runs straight down, then trying to rely on a vent higher up. The code requires the trap's outlet to be horizontal before the drop.
- Using a flexible or bellows trap as a quick retrofif. These are sold in hardware stores but typically fail the code's self-cleaning and no-moving-parts tests.
- Sharing a trap between two fixtures on the same branch. Most codes require each fixture to have its own trap unless a specific exception applies.
- Skipping the trap on a laundry sink or utility sink because "the drain already has one." Check the drawing or the inspector's requirement; utility sinks are generally trapped.
- Leaving the trap arm too long without a vent. The trap is present, but it siphons; the smell and gurgling are the symptoms.
- Not matching trap size to the fixture. A 1¼-inch trap under a kitchen sink on a 1½-inch drain restricts flow and invites clogs.
What the codes mean when the word "required" appears
Code language like "every fixture shall be trapped" is mandatory, not advisory. In permit inspections, a missing trap—or an S-trap, or a flex trap—is a correction item. In resale or insurance contexts, a noncompliant trap can show up in disclosures and can affect the outcome of a buyer's inspection. The requirement is one of the oldest in plumbing regulation, and it's one of the least controversial: a trap is cheap, effective, and necessary.
The main ambiguity in the question—whether all P-traps are required, or whether there are fixtures that don't need one—is resolved by the exceptions. Toilets don't need an added trap because the trap is built in. A few commercial arrangements allow shared traps. Otherwise, the default is a trap per fixture, properly vented and sized.
A practical way to decide what your installation needs
If you're adding or replacing a drain and need to know whether a P-trap is required, work through this order:
- Identify the fixture. Most fixtures—sinks, lavatories, tubs, showers, laundry stands, floor drains—require a trap. Toilets don't, because the trap is integral.
- Check the local code edition. Ask the permit office which model code (IPC or UPC) applies and whether amendments exist. The trap requirement itself is consistent; the details vary.
- Verify trap size. Match the trap to the fixture drain—typically 1¼-inch for a lavatory, 1½-inch for a kitchen sink and tub, 2-inch for laundry and floor drains.
- Confirm venting. The trap arm must be vented within the code's length limit, and the trap outlet must run horizontally before the drop. This is the step most likely to fail inspection.
- Use a code-recognized trap type. Tubular or plastic P-traps are standard; S-traps, drum traps, and flexible traps generally are not.
- Keep it accessible. Provide a cleanout or a removable trap where the code requires one, and leave room under the sink for maintenance.
If any of those steps is uncertain for your jurisdiction, the inspector or permit office is the authority to consult before the work begins. The cost of confirming an exception is far less than the cost of redoing a drain.
Frequently Asked Questions
Does a kitchen sink need a P-trap if it has a garbage disposal?
Yes. The disposal discharges into a P-trap; the disposal doesn't replace the trap. The trap must be downstream of the disposal and properly vented.
Can I replace a P-trap with a flexible corrugated trap?
Generally no. The flexible traps sold as quick fixes typically fail the code's requirement that the trap be self-cleaning and free of moving parts, and inspectors commonly reject them. Use a rigid tubular or plastic P-trap instead.
Is a P-trap required under a floor drain in a garage?
Floor drains are generally trapped, and code often requires the trap to be protected against evaporation—sometimes with a trap primer. The exact requirement depends on the code edition and the garage's use; confirm with the permit office.
Why does my P-trap smell if it's still full of water?
A full trap that still smells most often indicates a venting problem: the seal is being siphoned or the vent is blocked. Check the trap arm's vent connection and the length of the trap arm against the code limit for the pipe size.
Does an older home have to be upgraded to meet the current trap code?
Codes typically apply to new work and repairs. Replacing a fixture or drain is usually treated as new work and must meet the adopted code, but a pre-existing trap that was compliant when installed may be grandfathered. The inspector can tell you how the applicable code applies to your project.
Can two sinks share one P-trap?
Some codes allow a single trap for a group of fixtures under specific conditions, but sharing a trap between two separately draining sinks on the same branch is generally not permitted. Unless a listed exception clearly applies, give each fixture its own trap.