A flexible P-trap is code-compliant only when the installation matches the plumbing code enforced in your jurisdiction and the trap's listing. In the United States, that usually means the International Plumbing Code (IPC) or the Uniform Plumbing Code (UPC), plus any local amendments — and those codes permit flexible traps in some fixtures with real restrictions on length, access and material.
So the accurate answer to "are flexible P-traps code?" is: sometimes, under specific conditions, and never as a substitute for a proper trap arm and vent.
The practical problem most people run into is simpler than the code text. A sink drain is a few inches off from the wall pipe, the tailpiece is short, and a corrugated accordion trap looks like the obvious fix. Whether that fix passes inspection depends on which codebook the local inspector uses, what fixture the trap serves, and whether the flexible section is a listed trap or an unlisted fitting.
Getting the distinctions right matters because a trap is a health and safety component — it holds the sewer gas seal for the whole fixture.
What a P-trap actually does and why flexibility is a compromise
A P-trap holds a water seal that blocks sewer gas from entering a building, and its shape creates a self-scouring flow that carries waste through the bend. The trap's outlet connects to a trap arm that runs to a vent, and that vent protects the seal from siphonage. Any trap — rigid or flexible — has to preserve all three functions: seal depth, smooth interior, and correct connection to a vented drain.
Flexible traps trade some of that reliability for installation convenience. Their corrugated walls create ridges where soap scum, hair and grease collect, and the ribs slightly reduce flow efficiency compared with a smooth-wall trap. That's why codes that address flexible traps tend to require smooth interiors and limit how much of the trap can be corrugated. The flexibility itself isn't the violation; it's the material and geometry that flexibility often brings with it.
A rigid P-trap is a defined assembly: two bends, a cleanout, and a smooth bore of consistent diameter. A flexible P-trap is usually a molded plastic or rubber accordion body with slip-joint nuts at both ends, sometimes with a built-in cleanout plug. The two are not interchangeable in every location, and code treats them differently depending on the fixture and the code edition.
What the IPC and UPC say about flexible traps
The IPC and UPC differ in how explicitly they address flexible traps, and that difference drives most of the confusion. Neither code bans flexible traps outright for every fixture, but both impose conditions that many quick accordion installations fail.
Under the IPC, the trap provisions in Chapter 10 require traps to be of a type that is smooth, self-cleaning and of a material compatible with the drainage system. The IPC allows slip-joint tubular traps for fixtures, and it permits some flexibility in the connection between the fixture and the trap — but the trap body itself is expected to meet the code's definition of a trap.
The IPC does not contain a standalone section that says "flexible traps are permitted here and prohibited there" in a single sentence; the compliance question is answered by the trap's listing, the smooth-interior requirement, and the local inspector's interpretation.
The UPC is more prescriptive. It includes specific language on the type and installation of traps and has historically been read to restrict corrugated flexible traps to certain applications, notably where the trap is exposed and accessible and where the code's material and smoothness requirements can be satisfied. The UPC's trap sections and its appendices provide more detail than the IPC's, and many jurisdictions that adopt the UPC enforce those details strictly.
The honest summary: there is no single national "flexible trap code" that applies everywhere. The governing text is the code edition in force in your city or county, and the binding interpretation is the local plumbing inspector's. A trap that passes in one jurisdiction can fail in the next town over because of which codebook was adopted, not because one inspector is stricter.
Where flexible P-traps are genuinely accepted
Flexible traps are most commonly accepted in a few specific situations, and these are the cases where the accordion kit is doing legitimate work rather than papering over a bad rough-in.
Exposed, accessible sink and lavatory drains are the classic case. A bathroom lavatory or kitchen sink with an exposed trap under the cabinet, where the trap can be visually inspected and removed, is the setting where slip-joint flexible traps are most often allowed. The trap is accessible, the seal can be checked, and the fixture is not concealed behind a wall or ceiling.
Fixture replacements where the drain stub-out doesn't line up account for most real-world use. When a new sink's tailpiece and the existing wall stub-out are offset by an inch or two, a flexible trap can bridge the gap without reworking the drain. Many jurisdictions accept this for exposed residential sinks, provided the trap remains accessible and the flexible section doesn't replace the trap arm or vent.
Temporary or movable fixtures — a utility sink that gets moved, a temporary laundry connection — can sometimes use flexible traps where the fixture is not permanently installed. Whether this is allowed depends entirely on local code and the inspector's reading; it is not a general exemption.
Manufactured fixtures with listed flexible traps are a different category. Some sink and vanity manufacturers ship a flexible trap as part of a listed assembly, and the listing — not the generic "flexible trap" label — controls whether it's compliant. If the trap came with the fixture and is listed as part of it, the installation may be acceptable where a generic accordion kit would not be.
Where flexible P-traps fail code or fail inspection
The failure cases are just as specific, and they're where most inspection problems arise. Knowing them in advance saves a re-inspection.
Concealed locations. A trap buried in a wall, ceiling, floor cavity or crawlspace generally cannot be flexible, and often cannot be a slip-joint trap at all. Codes require traps in concealed locations to be of a type that doesn't rely on accessible slip joints — typically a solvent-welded or otherwise permanent trap. An accordion trap behind drywall is a red flag on almost any inspection.
Replacing the trap arm or vent. A flexible trap connects the fixture to the trap arm. It does not replace the trap arm, and it absolutely does not replace the vent. A common illegal installation routes the accordion hose directly into the wall with no vented trap arm, which defeats the vent and allows the trap seal to siphon.
That's a code violation regardless of which codebook applies, because it breaks the venting requirement rather than the trap-material requirement.
Undersized or oversized connections. A flexible trap must match the fixture's drain size and the trap arm's size. Forcing a 1¼-inch trap onto a 1½-inch drain, or the reverse, creates a mismatch that codes address through the fixture drain and trap size tables. The accordion's flexibility makes these mismatches easy to create and easy to miss.
Corrugated interiors in the trap body. Where the code requires a smooth, self-cleaning trap, a fully corrugated accordion body may not qualify. Some flexible traps have smooth interior walls despite the exterior ribs; others are corrugated inside and out. The interior finish is the part that matters, and it's not visible after installation — which is why inspectors and manufacturers' listings, not appearance, decide compliance.
Unlisted or non-compliant materials. A trap sold as a generic "universal" accordion kit with no listing, no material specification and no sizing guidance is the least likely to satisfy a code that requires listed traps. Code compliance often runs through product listing and labeling, and a trap with no listing documentation is a weak position at inspection.
Improper slope and sag. Flexible traps that sag or are installed with a backfall in the trap arm prevent proper drainage and trap cleaning. Even where the material is allowed, the installation has to maintain the trap arm's slope toward the drain and keep the trap's water seal at the correct depth. A flexible hose that loops or sags between the fixture and the wall is both a code problem and a future clog.
How to decide whether a flexible trap is the right call
The decision comes down to three questions, answered in order. If any answer points the wrong way, use a rigid trap or rework the drain.
First, where is the trap? If it will be exposed and accessible under a sink, a flexible trap is at least in the conversation. If it will be concealed in a wall, floor, ceiling or crawlspace, plan on a rigid, permanent trap — and check whether the code requires a solvent-welded trap in that location.
Second, what fixture and what code? Confirm whether your jurisdiction enforces the IPC or the UPC and which edition, plus any local amendments. Then check the trap's listing and the code's trap-material and smooth-interior requirements for that fixture. A call to the local building department is faster and more reliable than guessing which codebook applies.
Third, does the flexible trap stay a trap? The accordion section should be limited to the trap body and the connections to the fixture and trap arm. It must not replace the trap arm, must not eliminate the vent, must match the drain size and must maintain slope. If the installation requires any of those compromises, the flexible trap is the wrong part regardless of what the code says about the material.
| Situation | Flexible trap likely acceptable? | What to check |
|---|---|---|
| Exposed lavatory or sink trap, accessible | Often, under IPC and some UPC readings | Trap listing, smooth interior, correct size, installed slope |
| Trap concealed in wall, floor or ceiling | Generally no | Code requires permanent/rigid trap; rework drain |
| Flexible hose replacing trap arm or vent | No | Venting and trap arm requirements are separate |
| Offset between tailpiece and stub-out | Sometimes, if exposed and accessible | Keep flexible section to trap body; don't sag |
| Generic unlisted accordion kit | Weak position | Look for listing, material spec, sizing guidance |
| Fixture shipped with a listed flexible trap | Possibly | The fixture's listing controls, not the kit's marketing |
The table is a starting point, not a substitute for the code text in force where you're working. A trap that fits the "often acceptable" row still fails if it's undersized, sagging, or installed without a vented trap arm.
Practical installation points that keep a flexible trap compliant
If you've confirmed a flexible trap is allowed for the fixture, a few installation practices determine whether it passes inspection and whether it keeps working.
Keep the trap accessible. Leave the cabinet space clear enough to reach both slip-joint nuts and any cleanout plug. A flexible trap that can't be removed for cleaning defeats the purpose of an accessible trap and makes future clogs worse.
Support the trap arm. The trap arm needs to slope toward the drain at roughly the code's specified fall and be supported so it doesn't sag. A flexible trap hanging free between the fixture and the wall puts stress on the slip joints and creates a low point where water sits.
Match the sizes exactly. Measure the fixture drain outlet and the trap arm diameter before buying. Don't rely on the accordion's ability to stretch over a mismatched fitting; a forced connection leaks and fails inspection.
Don't bury the flexible section. If any part of the trap or its connections will be enclosed, stop and switch to a rigid trap before closing the wall. Reopening a finished wall to replace a failed accordion trap is far more expensive than doing it right the first time.
Use the cleanout, or add one. Many flexible traps include a cleanout plug; use it for maintenance rather than removing the whole trap. If the code requires a cleanout at the trap and the flexible unit doesn't have one, that's a reason to choose a different trap.
Retain the listing documentation. If the trap is listed, keep the packaging or label. During inspection or a future sale, documentation that the trap is a listed product for the application is worth more than an inspector's visual impression of the accordion.
Common misconceptions about flexible traps and code
A few persistent beliefs about flexible traps cause avoidable problems, and correcting them is often the fastest route to a compliant installation.
"Accordion traps are banned everywhere." Not true. Many jurisdictions allow flexible traps for exposed, accessible sink drains, and some fixtures ship with them as part of a listed assembly. The restrictions are real, but the blanket ban is a myth.
"If it fits, it's fine." Fit is the least important criterion. Size, interior smoothness, listing, accessibility, venting and slope all matter more than whether the nuts thread onto the pipes. A trap that fits perfectly can still fail inspection or siphon its seal.
"The flexible trap replaces the trap arm." This is the most damaging misconception. The trap arm is the section from the trap's outlet to the vent connection, and it has its own slope, size and venting requirements. A flexible hose run from the sink directly into the wall skips all of that and is a code violation in essentially every code edition.
"Code is the same everywhere in the U.S." The IPC and UPC differ, editions differ, and local amendments differ. Two neighboring towns can enforce different rules for the same sink. The only reliable answer is the code in force at your address.
"A flexible trap is always a temporary fix." Some are; some are listed products intended for permanent use. The distinction depends on the product and the application, not on the word "flexible." Treating every accordion trap as temporary will push you toward unnecessary rework; treating every one as permanent will get you failed inspections.
The practical takeaway for a homeowner or contractor: decide the fixture's trap location and the applicable code first, choose a trap that's listed and correctly sized second, and keep the flexible section confined to the trap body with a proper, vented trap arm and slope. If the drain geometry can't be made to work within those limits, reworking the stub-out or using a rigid offset trap is the compliant path, not a longer accordion hose.