What Is a Plumbing Trap? Types, Working & Uses Explained

Civil Engineering · Building Services

What Is a Plumbing Trap? Types, Working & Uses Explained

A plumbing trap is one of the smallest fittings in a building’s drainage system, yet it quietly does one of the most important jobs: keeping sewer gas out of the rooms you live and work in. This guide covers the full definition, why it is needed, how it works, every major type, its advantages and disadvantages, whether is it safe, its everyday uses, and a step-by-step how to install guide.

Topic: Plumbing & Sanitary Engineering Reading time: ~11 min Level: Beginner to Intermediate Updated: 26 Jul 2026
Animated cross-section of a P-trap Wastewater flows through the pipe and over the curved trap while the water seal at the bottom blocks rising sewer gas bubbles from passing through. SEWER SIDE (GAS) FIXTURE TO DRAIN

● Blue seal = trapped water blocking gas    ● Copper dot = wastewater flowing through and out

02 · Purpose

Why Is a Plumbing Trap Used?

Every fixture connected to a drainage pipe — a sink, a floor drain, a toilet — is also connected, through that same pipe, to the building’s main sewer line, which carries decomposing waste and generates gases such as methane and hydrogen sulphide. Without a barrier, those gases would rise straight up through the pipe and into the room. A plumbing trap exists specifically to stop that from happening.

  • Blocks sewer gas: The water seal physically stops methane, hydrogen sulphide, and other foul gases from entering occupied spaces.
  • Keeps out insects and rodents: Cockroaches, mosquitoes, and small rodents commonly use unsealed drain pipes as an entry route; the water column blocks this path too.
  • Protects indoor air quality: Continuous gas leakage from an untrapped drain can make a bathroom or kitchen smell foul and, in poorly ventilated spaces, become a genuine health hazard.
  • Required by plumbing code: Almost every fixture that connects to a drain — basins, sinks, floor drains, water closets — must legally have a trap fitted directly beneath or built into it.

03 · Working Principle

How Does a Plumbing Trap Work?

A plumbing trap works purely on gravity and the geometry of the bend — no mechanical parts are involved. Here is the working principle step by step:

  1. Wastewater flows down from the fixture into the trap under gravity.
  2. Because the pipe curves upward before continuing to the drain, a portion of that water cannot fully drain away — it settles in the lowest part of the curve.
  3. This retained water forms the water seal, usually 50–75 mm deep, which completely blocks the pipe’s cross-section.
  4. Sewer gas rising from the drain side hits this water column and cannot pass through, exactly as shown in the animated diagram above.
  5. Every time the fixture is used again, fresh water flows through, replacing the old seal and keeping the barrier intact.
Engineering note: The seal only works while it stays full. If the water evaporates during long disuse, or gets pulled out by siphonage (a vacuum effect from an unvented pipe), the barrier disappears and gas can pass through freely — this is why correct venting design matters as much as the trap itself.

04 · Classification

Types of Plumbing Traps

Plumbing traps are classified mainly by their shape and their location of use. Below are the types most commonly specified in civil engineering drawings and plumbing layouts.

TYPE 01

P-Trap

Shaped like the letter P; discharges horizontally into a wall pipe. The most widely used trap for wash basins and sinks, and the least prone to siphonage.

TYPE 02

S-Trap

Shaped like the letter S; discharges straight down into a floor pipe. Common in older buildings but more prone to losing its seal through self-siphonage.

TYPE 03

Q-Trap

A full 90° loop used where a pipe must turn from a horizontal run into a vertical drop, common on upper floors of multi-storey buildings.

TYPE 04

Bottle Trap

Compact, cylindrical, bottle-shaped trap often chosen for wash basins where space and appearance matter; the base unscrews for easy cleaning.

TYPE 05

Drum / Bag Trap

A cylindrical drum-shaped trap that holds a larger water reserve, historically used for bathtubs and high-usage fixtures.

TYPE 06

Floor Trap (Nahani Trap)

Fitted into bathroom and courtyard floor drains with a perforated cover on top, stopping solid debris, gas and mosquitoes together.

TYPE 07

Gully Trap

Installed outside the building at ground level, it collects wastewater from kitchen and bathroom pipes before it enters the main underground sewer.

TYPE 08

Grease Trap

Used in commercial kitchens to separate fats, oils and grease from wastewater before it reaches the sewer line, preventing downstream blockages.

TYPE 09

Intercepting Trap

Fitted at the junction of the house drain and the public sewer; it has a cleaning eye and stops gas from the public sewer entering the house drain.

TYPE 10

Bell / Inverted-Cup Trap

An older-style trap in which an inverted bell dips into a water ring, once common in floor and yard drains before modern floor traps took over.

Trap TypeTypical LocationKey Trait
P-TrapBasins, sinksLow siphonage risk
S-TrapOlder floor-outlet fixturesHigher siphonage risk
Bottle TrapBasins (compact spaces)Easy to open & clean
Floor TrapBathroom / floor drainsCombines strainer + seal
Gully TrapOutside the buildingConnects house drain to sewer
Grease TrapCommercial kitchensSeparates fats & oils
Intercepting TrapBoundary of propertyBlocks public sewer gas

05 · Evaluation

Advantages and Disadvantages of Plumbing Traps

Advantages

  • Prevents sewer gas and foul odour from entering the building.
  • Simple design with no moving parts, so it rarely fails mechanically.
  • Low-cost to manufacture, install and replace.
  • Blocks entry of insects, mosquitoes and small rodents.
  • Many types (P-trap, bottle trap) are easy to open and clean.
  • Mandatory code compliance keeps the drainage system safe and legal.

Disadvantages

  • The water seal can evaporate if a fixture is unused for a long time.
  • Unvented traps, especially S-traps, are prone to self-siphonage.
  • Hair, grease and debris can accumulate and cause clogging.
  • Needs periodic cleaning and occasional reseal maintenance.
  • Adds extra fittings and space requirements to the pipe layout.
  • A poorly sloped or badly installed trap can slow drainage.

06 · Safety

Is a Plumbing Trap Safe?

Yes — a correctly installed and maintained plumbing trap is safe, and in fact it is the very fitting that keeps a drainage system safe by keeping sewer gas out of living spaces. The safety of a trap depends on three practical conditions being met:

  • The trap has the correct minimum seal depth (typically 50–75 mm) as per local code.
  • The drainage line is properly vented, so the seal cannot be pulled out by siphonage.
  • The fixture is used often enough, or is fitted with a trap-seal primer, so the water does not evaporate away during long idle periods.
Safety tip: If you notice a persistent drain smell in a rarely used bathroom, guest floor drain, or an unoccupied property, the water seal has most likely dried out — simply pour a jug of water down the drain to restore the seal.

07 · Applications

Common Uses of Plumbing Traps

Plumbing traps are used wherever a fixture connects to a drainage line. Typical applications include:

  • Under kitchen sinks and wash basins in homes and offices.
  • Built into the base of toilets (water closets), which contain an integral S- or P-shaped trap.
  • Bathroom and courtyard floor drains.
  • Bathtub and shower waste outlets.
  • Commercial kitchens, via grease traps, before wastewater joins the main drain.
  • At the boundary of a building’s drainage system, via gully and intercepting traps, before it meets the public sewer.
  • Industrial pretreatment systems, to separate oils or solids before discharge.

08 · Installation

How to Install a Plumbing Trap

Here is a general step-by-step method used for installing a trap such as a P-trap under a basin or sink:

  1. Choose the correct trap type for the fixture and confirm it meets local plumbing code.
  2. Shut off the water supply and remove any existing trap or waste fitting.
  3. Measure and cut the pipe to the exact length needed to align with the fixture outlet and drain line.
  4. Dry-fit the parts and check the slope of the horizontal pipe, typically between 1:40 and 1:100.
  5. Seal every joint using solvent cement, or compression nuts for a trap that must remain removable.
  6. Fill the trap with water to form the required seal depth, then check carefully for leaks.
  7. Test the flow by running water through the fixture — there should be no gurgling sound and no gas odour.

09 · Upkeep

Maintenance Tips to Keep a Trap Working

  • Run water through seldom-used drains every one to two weeks to keep the seal topped up.
  • Open the cleanout plug periodically to remove trapped hair, debris or grease.
  • Fit a strainer over kitchen sink drains to reduce the amount of oil and food waste entering the trap.
  • Install a trap-seal primer on floor drains in areas that stay dry for long periods.
  • Ensure the drainage line has proper venting so the seal is never siphoned out.

10 · Related Concept

Plumbing Trap vs. Vent Pipe

A trap and a vent pipe work as a team but do different jobs. The trap holds water to physically block sewer gas. The vent pipe is a separate, open pipe that lets outside air into the drainage system as water flows out of a fixture, balancing air pressure so the flowing water cannot create a vacuum strong enough to pull the water seal out of the trap. A trap without a vent is far more likely to siphon dry over time.

11 · FAQs

Frequently Asked Questions About Plumbing Traps

What is the main purpose of a plumbing trap?
The main purpose of a plumbing trap is to hold a small column of water, called a water seal, that blocks foul sewer gases, odours and insects from entering a building through the drainage system while still allowing wastewater to pass through.
What is a P-trap used for?
A P-trap is used under sinks, wash basins and similar fixtures to connect the fixture outlet to a horizontal waste pipe in the wall while maintaining a permanent water seal against sewer gas.
What is the standard depth of a water seal in a trap?
Most plumbing codes require a minimum water seal depth of about 50 millimetres, with 75 millimetres commonly recommended for fixtures connected to longer drainage runs.
Why does a plumbing trap sometimes smell bad?
A bad smell usually means the water seal has dried out from long disuse, been siphoned away by poor venting, or the trap has accumulated debris and grease that is decomposing.
Can I install a plumbing trap myself?
Simple traps such as a bottle trap or P-trap under a basin can often be replaced by a confident homeowner with basic tools, but traps connected to the main drainage layout, such as gully or intercepting traps, should be installed by a licensed plumber to meet local building code.
What is the difference between a P-trap and an S-trap?
A P-trap discharges horizontally into a wall-mounted waste pipe and is less prone to siphoning, while an S-trap discharges straight down into a floor pipe and is more likely to lose its water seal through self-siphonage, which is why many modern codes discourage it.
What is a gully trap?
A gully trap is a trap fixed outside a building at ground level that collects wastewater from kitchen or bathroom pipes before it enters the main underground sewer, stopping sewer gas from travelling back into the open yard drain.
Why do floor drains need a trap?
Floor drains need a trap, often called a floor or nahani trap, so that the water seal blocks sewer gas and mosquitoes from entering the bathroom through the floor opening while still letting wash water drain away.
How often should I clean a plumbing trap?
A household trap should generally be inspected and cleaned every three to six months, though kitchen traps exposed to oil and food waste may need attention more frequently to prevent clogging.
What happens if a plumbing trap has no water in it?
If a trap loses its water seal, there is no longer a barrier between the room and the drainage pipe, so sewer gas, odours and insects can pass directly into the building.
Is an S-trap banned in modern plumbing codes?
Many current plumbing codes restrict or discourage unvented S-traps because of their higher risk of self-siphonage, and recommend a properly vented P-trap instead, though local regulations vary.
What is a grease trap and who needs one?
A grease trap is a specialised trap that separates fats, oil and grease from kitchen wastewater before it reaches the sewer line, and it is typically required for restaurants, canteens and other commercial kitchens.