
Every decision on a plumbing job – which pipe, which fitting, how much slope – is only “right” if it matches the code your inspector enforces. That sounds obvious, but it's where most failed inspections start: a habit that passed for ten years in one city fails on day one in the next.
This guide is step one of the system. Get it answered first, and every other choice gets easier.
Two model codes, one trade
There is no single national plumbing code in the United States. Two organizations publish model codes, and states and cities adopt them – usually with their own changes.
| International Plumbing Code (IPC) | Uniform Plumbing Code (UPC) | |
|---|---|---|
| Published by | International Code Council (ICC) | IAPMO |
| Where it dominates | East, South, Midwest – e.g. NY, FL, GA, VA, NC | West – e.g. CA (as the California Plumbing Code), WA, OR, HI |
| Update cycle | Every 3 years | Every 3 years |
| 1- and 2-family homes | Often the plumbing chapters of the IRC | Covered by the UPC itself |
The two codes agree on far more than they disagree – both ban S-traps, both require a 2–4 inch trap seal, both size drains with fixture units. But the details differ, and the details are what fail inspections: DFU tables, trap arm lengths, venting rules and some material standards. Read the full comparison in IPC vs UPC: which code applies in your state.
Model code + amendments = the code you actually work under
A state adopts a specific edition (2018, 2021 or 2024) and then adds amendments. A city can add its own on top. That means:
- The edition matters. Your state may still enforce an older edition than the one on the shelf.
- The city can be stricter than the state. Large cities often ban or restrict products like air admittance valves or concealed push-to-connect fittings.
- The AHJ has the final word. The inspector and building official interpret the code on your job.
Field tip
Taking a job in a new town? Call the building department before you order materials. Ask: “Which plumbing code and edition do you enforce, and do you have local amendments?” Two minutes on the phone beats a callback.
Working with the AHJ – not against it
Inspectors aren't your opponent; most of them want you to pass. Ask questions before rough-in, not after a red tag. Have listings and installation instructions on your phone. When the code can be read two ways, ask “how do you want it?” – then write down the date, the name and the answer. For alternative materials not listed in the code, get the approval in writing before you install.
The stamps on the pipe are your proof
The code rarely names brands. It says a product must meet a standard and be listed by an approved agency – and the print line is how you prove it. Anything touching drinking water needs NSF/ANSI/CAN 61 (health effects) and NSF/ANSI 372 (lead-free). No marking usually means no approval. See how to read pipe markings.
Inspections: a test you can study for
A failed inspection rarely comes from one big mistake. It comes from small, predictable things: a missing nail plate, a gauge that dropped, a cleanout nobody can reach. Know the list, run your own inspection first, and the real one becomes a formality. Start with the 11 reasons plumbing fails inspection.
The manufacturer's instructions are part of the code
Both the IPC and the UPC require products to be installed according to their listing and the manufacturer's instructions. Install a PEX fitting with the wrong tool or a press fitting with the wrong jaw, and the listing no longer applies – the warranty is void and the liability moves to you. When the code and the instructions disagree, follow the stricter one.
Guides in this section
Frequently asked questions
Is the IPC or the UPC used in my state?
Most of the East, South and Midwest use the IPC (homes often fall under the IRC's plumbing chapters). California, Washington, Oregon, Hawaii and much of the West use the UPC. Some states – such as Massachusetts, Illinois and Wisconsin – write their own code, and New Jersey uses the NSPC. Always confirm the adopted edition with your state and city.
Who is the Authority Having Jurisdiction (AHJ)?
The person or office with legal power to interpret and enforce the code where you work – usually the local plumbing inspector and the building official. The water utility, health department or fire marshal can be the AHJ for parts of the same job.
Do I need a permit to replace a water heater?
In most jurisdictions, yes. New work, replacement work and alterations generally need a permit; small repairs like clearing a stoppage or fixing a leak without new piping are usually exempt. Check with your building department.




