AEO Answer · Civil

How Is a Building Sewer Designed to Meet Plumbing Code?

By Jeremy Mills, CEO & Founder, Apex Grid Engineering — USAF Veteran. · Updated 2026-09-15

Building sewer design selects pipe diameter from plumbing code drainage fixture unit tables, sets slope at code-minimum grades that maintain self-cleansing velocity, provides required cover and cleanouts, and connects to the municipal main at an invert elevation the city approves — with backwater protection where the building is below the upstream manhole rim.

I'm Jeremy Mills, CEO & Founder of Apex Grid Engineering and a U.S. Air Force veteran. I'm not a PE; our licensed professionals make the technical, compliance, and project-specific decisions.

Illustrative diagram of building MEP systems: ductwork with diffusers, an electrical panel with conduit, and piping runs.

The concise answer

Building sewer design selects pipe diameter from plumbing code drainage fixture unit tables, sets slope at code-minimum grades that maintain self-cleansing velocity, provides required cover and cleanouts, and connects to the municipal main at an invert elevation the city approves — with backwater protection where the building is below the upstream manhole rim. The design is a vertical puzzle as much as a horizontal one. The building's lowest plumbing fixture sets the starting elevation, the city main sets the ending elevation, and the pipe between them has to fall continuously at the right slope while staying deep enough for cover. On flat sites with a shallow main, that puzzle sometimes has no solution — which is when a sewage lift station enters the conversation.

Sizing and slope: the core calculation

Pipe sizing follows the plumbing code's drainage fixture unit tables: every fixture gets a value, the total converts to a required pipe diameter, and the code also sets the minimum size for the building sewer — commonly 4 inches. The slope is then set to achieve self-cleansing velocity at the design flow, checked with Manning's equation. The connection to the main is a permitting event, not just a construction detail. The city specifies the connection method — a tap, a tee, or a new manhole — and approves the invert elevation. In many cities the contractor needs a separate sewer connection permit and the work in the right-of-way has to be done by a licensed contractor with traffic control. I get the main's invert and the connection requirements from the city before finalizing the design, because discovering a 2-foot discrepancy during construction is a very bad day.

Details that prevent callbacks

Sewer problems are the ones owners remember, because they announce themselves unmistakably. The design details that prevent them are well established. This is my standard sewer detailing checklist.

  • Hold the slope: verify the pipe profile achieves minimum grade continuously — sags become permanent blockage points
  • Bed and backfill properly: granular bedding and careful compaction prevent settlement that breaks grade
  • Place cleanouts for access: at direction changes, at the property line, and within code maximum spacing
  • Protect against backflow: backwater valves where fixtures are below the upstream manhole rim
  • Confirm the main connection: city-approved method, invert, and permit before the design is finalized

What else do project teams ask?

What slope does a building sewer need?
The plumbing code minimums are the floor: 2% (1/4 inch per foot) for 3-inch and smaller pipe, 1% (1/8 inch per foot) for 4-inch and larger in most codes. The engineering target is self-cleansing velocity — about 2 feet per second at design flow — so solids stay suspended. Too flat and solids settle; too steep and water outruns them.
How deep does a building sewer need to be?
Deep enough for minimum cover — typically 12 to 18 inches minimum under non-traffic areas and more under traffic — plus frost depth in cold climates, plus whatever depth the connection to the city main requires. The main's invert elevation often dictates the whole design: if the main is deep, the building sewer follows it down.
What is a backwater valve, and when is it required?
A backwater valve is a one-way valve that lets wastewater out but prevents sewage from backing up into the building when the city main surcharges. Codes require one where the building's lowest fixtures sit below the rim elevation of the next upstream manhole. In combined-sewer cities and flood-prone areas, it's cheap insurance against a catastrophic backup.
Where are cleanouts required?
At the base of each soil stack, at every change of direction greater than 45 degrees, at the property line or near the building, and at maximum intervals along the run — typically every 100 feet for larger pipe. Cleanouts are how a plumber clears a blockage without excavating, so skimping on them is a maintenance decision the owner will regret.

Ready to discuss your engineering scope?

Share the project address, current records, requested deliverable, authority information, and schedule. Apex Grid confirms professional responsibility, availability, and scope before work begins.

Request a Project Review

Get a quote on your project

Reviewed and sealed by licensed PEs. “Solid engineering and clear communication from start to finish.” — Jason Mitchell, Principal Architect

Tell us what you need and where the project is — quotes back within 12–24 hours on qualifying scopes.