What is the purpose of a P-trap?
Have you looked under your sink only to see a maze of pipes? Water obviously needs somewhere to drain, but is all that plumbing really necessary? Yes — more than just moving water, those pipes help keep your home safe and smelling clean, and the piece doing most of that work is the P-trap.
What Is a P-Trap?
A P-trap — sometimes searched as p trap, ptrap, pea trap, or pee trap since it's easy to mishear — is the curved section of pipe installed under nearly every sink in your home. In most Sacramento houses, you'll find one under every bathroom and kitchen sink.
The purpose of a P-trap comes down to two jobs:
- It traps debris draining from the sink so it doesn't travel deep into your plumbing system and form a stubborn clog.
- It blocks sewer gas from passing back up the pipe and into your home.
P-traps are typically made from PVC pipe or chrome-plated steel — steel is often chosen for exposed plumbing since it looks more finished. There are other trap styles out there too, and a few of them are actually prohibited under California plumbing code, which we'll get to below.
How Does a P-Trap Work?
A P-trap gets its name because it combines two 90-degree joints with a connecting section of pipe, giving the whole unit the shape of the letter "P." One joint connects to the sink's drain; the other connects to the drain line running into your wall.
Inside that bend, water sits and creates a seal — this is what does the actual work. That standing water blocks sewer gas from escaping back up through the pipe and into your house. Sewer gas can carry noxious odors that, at best, smell like rotten eggs and, at worst, are explosive or poisonous. At the very bottom of the "P," there's a small cleanout cap that a plumber (or a handy homeowner) can use to clear out anything the trap has caught.
P-Trap vs. Other Trap Types
P-traps aren't the only trap style out there, and it's worth knowing the difference — especially since a couple of the alternatives aren't allowed under current code.
| Trap Type | How It Works | Allowed by California Code? |
|---|---|---|
| P-trap | Curved pipe holds a water seal to block sewer gas | Yes — standard for sinks |
| S-trap | Similar shape, but vents differently and can siphon its own water seal dry | Generally not allowed in new installations |
| J-trap / drum trap | Older bell-shaped design, harder to clean and vent properly | Restricted or prohibited in most modern code |
If your home has an older S-trap or drum trap, it's worth having a plumber take a look — not because it's an emergency, but because it may not meet current code and can be more prone to losing its seal.
P-Traps in Different Fixtures
A P-trap under a bathroom sink works the same way as one under a kitchen sink, but a few setups are worth calling out:
- Kitchen sink P-trap: Often sees more debris (grease, food particles) than a bathroom trap, so it's more prone to clogging over time.
- Garbage disposal P-trap: If you have a garbage disposal, the trap sits just below it and needs to be positioned correctly so waste doesn't back up into the disposal itself.
- Bathroom sink P-trap: Usually smaller in diameter and more likely to trap items accidentally dropped down the drain — which, incidentally, makes the cleanout cap handy for retrieving them.
P-Trap Installation and Code Requirements
One of the best things about a P-trap is that it's inexpensive and fairly simple to install. If you're tackling it yourself, make sure PVC joints are properly solvent-welded for a tight, leak-free seal.
California plumbing code does place a couple of restrictions on P-traps that are worth knowing before you install or modify one:
- No more than three fixtures per trap. You can't connect more than three utility appliances to a single P-trap — so if you've got multiple sinks in a laundry or utility room, only three can share one line and trap.
- Infrequently used traps need a trap primer. Any P-trap on a line that doesn't get regular use should have a trap primer installed. A trap primer keeps the water seal topped off so sewer gas can't get through. In dry climates or low-use fixtures, that seal water can evaporate over time, letting gas back into the house.
Our Sacramento plumbing team can tell you whether a P-trap is allowed on the specific line you're working with — code details vary more than most people expect.
Frequently Asked Questions
What is the purpose of a P-trap?
A P-trap has two jobs: it holds a water seal that blocks sewer gas from entering your home, and it catches debris before it can travel deeper into your plumbing and cause a clog.
What does a P-trap do if it dries out?
If the water seal evaporates — common in rarely used sinks or floor drains — sewer gas can pass freely into your home. Running water through the fixture for a few seconds usually refills the trap and re-seals it. If it dries out repeatedly, a trap primer is the long-term fix.
Is a P-trap the same as an S-trap or J-trap?
No. They look similar, but S-traps and J-traps (drum traps) vent differently and are more prone to losing their water seal through siphoning. Most are restricted or prohibited under current California code for new installations.
How many sinks can be connected to one P-trap?
Up to three fixtures can share a single P-trap and drain line under California code. Beyond that, you'll need additional traps.
Do I need a trap primer on my P-trap?
If the fixture is used infrequently — a guest bathroom, a laundry sink, a floor drain — yes. A trap primer keeps the seal from evaporating and prevents sewer gas from getting into the house.
Why does my P-trap smell?
Usually one of three things: the water seal has evaporated, debris has built up and started to rot inside the trap, or the trap itself has a slow leak. A quick flush of water resolves a dry trap; a lingering smell after that is worth having a plumber check.
So if a kitchen or bath upgrade is on your to-do list, or you've got a mysterious smell coming from your pipes, the P-trap is usually where to look first. When in doubt, call our professional Sacramento plumbers team to give you a hand.
Call (916) 455-4548 or request a quote online.



