Siamchon NewsScience & the Built Environment
Engineering explained / Building science

The Science of Plumbing Traps: How Water Seals Prevent Sewer Gases From Entering Buildings

A small bend in a drainpipe performs a surprisingly important task. Its standing water creates a physical barrier between indoor air and the gases moving through a building's drainage system.

An illustrated science explainer · Plumbing systems & indoor air

Every time a sink drains, wastewater passes through a section of pipe that deliberately retains some water. That leftover water is not a defect. It is the mechanism that allows a plumbing trap to separate a room from the sewer-connected piping beyond it.

The science of plumbing traps is a practical example of fluid mechanics at work. Gravity determines where water settles, pressure differences determine whether it stays in place, and a properly designed venting system helps preserve the seal as other fixtures discharge. Understanding these relationships explains both why traps work and why a seemingly harmless dry drain can create an indoor-air problem.

The water-barrier principle

A conventional P-trap has a curved section beneath a sink or other plumbing fixture. After the fixture empties, gravity pulls excess water toward the drainage system, but the geometry of the bend leaves a pool behind. This retained water is called the trap seal.

Air and sewer gases cannot pass freely through an intact water seal. To move gas from the drain side into the room, a pressure difference would have to displace the water sufficiently to compromise the barrier. Under normal operating conditions, the seal stays in place while wastewater flows over and through it.

2–4 in.

Typical code-specified liquid-seal depth. The 2024 International Residential Code specifies a fixture-trap seal of at least 2 inches (51 mm) and no more than 4 inches (102 mm). The applicable adopted code and exceptions must be checked locally.

The seal is not a filter that chemically neutralizes gases. It is a physical separation. That distinction matters: a trap can be made of ordinary approved plumbing material because the protective function comes primarily from water and pipe geometry, not a special absorbent substance.

Visual model: the water left in a P-trap

Simplified P-trap water seal diagramA pipe descends from a sink, curves downward and upward, then connects to the drain. Blue water remains in the curved section and separates room air from the sewer-side pipe.From sinkToward drainRetained water seal
Conceptual illustration, not a scale installation diagram. The water retained at the bend forms the barrier; the outlet connects to the downstream drainage and venting system.

Why air pressure matters as much as gravity

The shape of the trap explains how water remains after a fixture drains. But pipe geometry alone cannot guarantee the seal will survive every operating condition. Flowing wastewater can change air pressure in the drain piping, particularly when large volumes of water move quickly.

Negative pressure and siphonage

If pressure on the drain side drops sufficiently, water can be drawn out of the trap. This is called siphonage. The problem is especially associated with unsuitable configurations, such as traditional S-traps, that can encourage the trap to empty as wastewater moves away.

Positive pressure and blowout

Pressure can also rise downstream of a trap. If a surge is strong enough, it may push water back toward the fixture or force it out of the seal. Either direction of pressure imbalance can leave the barrier weakened.

Vents stabilize the system

Plumbing vents provide a path for air to enter or leave drainage piping, limiting pressure fluctuations that would otherwise disturb fixture traps. The International Code Council explains that vent systems are designed to protect trap seals by controlling pressure differences during normal drainage operation.

A useful physics connection:

Water pressure depends on the height of a water column. A 2-inch water seal provides a limited hydrostatic barrier, which is why plumbing codes address both seal depth and the pressure changes allowed in vented drainage systems. A trap is not intended to withstand unlimited pressure.

Four ways the invisible barrier can fail

Evaporation during long periods of disuse

In a rarely used guest bathroom, floor drain, or vacant building, water gradually evaporates. Once the remaining seal becomes too shallow, odors may find a route into occupied spaces.

Siphonage caused by drainage flow

An improperly vented or poorly configured drain may experience negative pressure that pulls water from a trap. Repeated gurgling can be a clue that pressure and venting deserve investigation.

Backpressure from the drainage network

Downstream pressure changes can push against the water seal. Severe disturbances may reduce or displace it, especially where the drainage or vent system is compromised.

Leaks, poor installation, or damaged components

A cracked trap, loose joint, or incorrectly installed assembly can undermine the barrier or permit gases to escape around the pipe connection, even if water remains in the bend.

The U.S. Environmental Protection Agency identifies drain traps and sewer vents as important sewer-gas barriers in buildings. It also notes that sewer-gas exposure can be more than a nuisance under some conditions. A persistent or strong odor should not automatically be dismissed as a harmless smell.

What this science means for building maintenance

Because a plumbing trap is passive, its protection can be overlooked until a room begins to smell. Facilities teams can use the underlying science to decide what to inspect first and when professional help is appropriate.

  • Check infrequently used fixtures. Water added to a dry trap can restore its seal, provided there is no underlying leak or venting problem.
  • Look beyond the affected drain. Recurring odors after the trap has been refilled may indicate venting, damaged piping, or other drainage defects.
  • Consider trap-seal protection. Some floor drains and other evaporation-prone fixtures use approved trap primers or barrier-type devices, subject to local code and manufacturer requirements.
  • Do not improvise pipe configurations. A trap's dimensions, position, connection, and venting arrangement affect whether it can hold its seal reliably.
  • Escalate serious concerns. Strong sewer odors, multiple affected drains, sewage backups, or symptoms among occupants warrant prompt professional assessment. If there is a suspected hazardous gas exposure, leave the area and contact appropriate emergency services.

The goal is not to eliminate all standing water from plumbing. In this specific location, standing water is the safety feature. The engineering challenge is to retain enough water to block gas while allowing wastewater and debris to pass through the fixture drain.

Frequently asked questions

Why does a P-trap always contain water?

The low point of the curved pipe lies below its outlet level. Gravity drains the excess but leaves water in the bend, forming the seal that blocks sewer-side gases.

Can sewer gas enter a building through a dry drain?

Yes. When evaporation or another failure removes the water seal, the drain may provide a pathway for gases from the drainage system into indoor air.

Does pouring water into a smelly drain always fix the problem?

No. Refilling can restore a trap that simply dried out, but odors may return if the cause is a leak, siphonage, venting defect, or another problem.

Why are S-traps discouraged or prohibited?

Their configuration can encourage self-siphonage and loss of the protective water seal. Modern model plumbing codes prohibit traditional S-traps in many applications; local rules govern specific installations.

Are plumbing traps the same as sewer vents?

No. A trap retains water to block gases at a fixture; vent piping helps manage pressure within the drainage system so that the trap can keep its seal.

Sources and further reading

This article is an educational explanation of general building-science principles, not a substitute for a site inspection or locally adopted plumbing code.

  1. International Code Council, 2024 International Residential Code, Chapter 32: Traps — seal depth and trap protection requirements.
  2. International Code Council, 2024 International Plumbing Code, Chapter 9: Vents — pressure differences and trap-seal protection.
  3. U.S. Environmental Protection Agency, Controlling Pollutants and Sources: Indoor Air Quality Design Tools for Schools — drain traps, sewer vents, and indoor air.
  4. IAPMO, Uniform Codes Spotlight: Trap Seals — seal geometry and performance.