Building codes vs zoning: what's the difference?
People say "code" for both, but they're two separate rulebooks, written by different people, answering different questions:
- Zoning asks: can this go here, at this size?
- The building code asks: is it built safely?
A project has to satisfy both. A perfectly built deck in the wrong spot fails zoning. A deck in the right spot with undersized footings fails the building code.
Side by side
| Zoning | Building code | |
|---|---|---|
| Who writes it | Your town, city or county | Usually the state, sometimes the town or county, almost always based on the International Codes |
| What it covers | Uses, setbacks, lot coverage, height, where accessory structures go | Footings, framing, guards and railings, stairs, egress, fire safety |
| Where you find it | The local zoning ordinance or code, and the zoning map | Your state or local building code, usually based on the International Residential Code for homes |
| How it's checked | Mostly from your site plan, at application | From your construction drawings, then inspections on site |
| If you don't fit | Change the project, or ask the zoning board for relief | Build it to code |
The building code
Most of the US builds to some edition of the International Codes, written by the International Code Council (ICC). Every state has adopted at least one ICC code, but how it is used varies: some adopt a code statewide, some leave it to each town or county, and some use one only for state buildings (American Wood Council). For houses, the one that matters is the International Residential Code (IRC). The edition in force, and the local changes made to it, differ from state to state, and sometimes from town to town.
The building code also decides what needs a building permit in the first place. The IRC's standard list exempts things like a one-story detached shed up to 200 square feet, a fence up to 7 feet, and a small low deck that isn't attached to the house (IRC 2021 R105.2). Many states and towns change those limits, so check yours.
Zoning
Zoning is local everywhere. Each town, city or county adopts its own rules under its state's zoning law, and the numbers vary widely. One town lets a small shed sit 5 feet from the line; the next wants 10 or 20.
Where people get caught
"No permit needed" doesn't mean "no rules." This is the big one. The IRC says plainly that an exemption from a permit doesn't authorize work that breaks the code or any other law, and a permit-free shed still has to meet zoning setbacks (IRC 2021 R105.2). Many towns also want a separate zoning permit for sheds and fences. Put a permit-free shed inside the setback and you can still be told to move it.
Other rules stack on top. Wetlands, septic systems, historic districts, flood zones and homeowners associations (HOAs) each have their own approvals, and they can apply even when the building code exempts the work.
Contractors know the code; the zoning is on you. A good deck builder will build to code without thinking about it. Where the deck can go on your lot is a separate question, and it's the one the site plan answers.
What each one needs from you
- For zoning: a site plan showing the lot, the project and the distances to each line.
- For the building code: construction details, such as footing size and depth, joist and beam sizes, ledger attachment, railings and stairs. For decks, many building departments want these on a separate drawing.
Magic Site Plan handles the zoning side: your lot, your project, the distances, and the setback guidance.