Plumbing Code and Regulations: How the Rules Stack Up
The hierarchy that answers most questions
No plumbing code applies in a vacuum. The chain runs: state statute and licensing law, then the locally adopted model code (IPC, UPC, or NSPC, in a specific edition year), then the standards referenced inside that code (ASME, ASTM, ASSE, NSF), then the manufacturer's listing and installation instructions, then the approved drawings. When two requirements conflict, the more restrictive governs; but a written local amendment always beats the model text. The authority having jurisdiction (AHJ) interprets the code, issues permits, performs inspections, and may approve alternate materials or methods only where the code grants that authority and the alternate is equivalent in quality, strength, and safety.
Words that carry weight
Learn the code vocabulary. "Shall" is mandatory, "should" is advisory, "approved" means acceptable to the AHJ, "listed" means tested by a recognized agency, and "labeled" means bearing that agency's mark. A listed product installed contrary to its listing is a violation even though the material itself is legal. Know the definitions of developed length, fixture unit, flood level rim, air gap, and occupied space - many questions are simply definition questions dressed up as field problems.
Traps candidates fall into
Assuming the model code controls when the state or city has amended that section; applying a new-construction rule verbatim to a repair or replacement; assuming an existing nonconforming condition is permanently grandfathered when the code requires correction upon alteration; and citing a material standard when the question hinges on installation.
Rule of thumb
Local amendment beats model code; stricter beats looser; and when the question describes a hazard (an unprotected cross-connection, an unsafe flue), the answer is almost never "leave it as is."