Deck design is governed by the building code adopted by the specific state or local jurisdiction where the deck is built—typically the International Residential Code (IRC) or a state or provincial amendment of it—so there is no single national deck code; the IRC supplies the model prescriptive rules (footings, posts, ledgers, joists, beams, stairs, guards, and deck live/dead loads), but permit thresholds, frost-depth footing requirements, snow, wind, and seismic criteria, and local amendments differ by location and edition.
Why "the building code for decks" is not one document
The question asks for building codes for deck design without naming a jurisdiction. That matters because a deck legal in one place can fail inspection a few miles away. Three layers stack on top of each other:
1: The model code. In the United States, most one- and two-family dwellings are regulated under the International Residential Code, published by the International Code Council. The IRC's Chapter 5, Section R507 covers exterior decks in detail: footing sizes, post and column requirements, ledger attachment to the house, joist and beam spans (with span tables), stair geometry, and guard and handrail rules. The IRC is a model—it has no legal force until a jurisdiction adopts it. 2: The state or local adoption and amendments. A city, county, or state adopts a specific edition (for example, the 2021 IRC) and then amends it. Boulder County, Colorado, illustrates this: its residential deck requirements state that one- and two-family construction follows the 2021 IRC along with current county-adopted amendments. The amendments can change anything from wind-speed assumptions to permit triggers. 3: Zoning, homeowner-association, and manufacturer rules. Setbacks, lot coverage, height limits, and appearance standards come from zoning, not the building code. Composite decking, railing systems, and engineered connectors must be installed per the manufacturer's instructions and evaluation reports—an approval that satisfies the building code but not a manufacturer's installation requirements can void a warranty.
A Canadian source in the evidence set shows the same structure under a different code family: Edmonton's uncovered-deck guide says the National Building Code (Alberta Edition) governs, and directs applicants to the NBC and its illustrated user's guide. The principle is the same; the document is not.
The prescriptive path versus engineered design
The IRC gives designers more than one route to compliance. New York State's wood-deck guidance is unusually clear about this: Section R301 of the 2020 Residential Code of New York State addresses design loads (live, dead, snow, wind, seismic, flood), and it offers a prescriptive path, an "alternative provisions" path, and an engineered-design path. The prescriptive tables are what most decks use—they tell you, for a given joist spacing and span, what size lumber and what footing diameter you need, without an engineer. The engineered path uses actual structural calculations and is required when the deck falls outside the tables: unusual shapes, heavy hot tubs, tall posts, large cantilevers, or high wind or seismic exposure.
Mixing the two paths carelessly is a common error. A deck built from span tables but with a ledger fastened by a method the table does not describe is neither fully prescriptive nor engineered, and an inspector may reject it.
What the IRC prescriptive provisions actually require
The IRC's deck provisions are detailed, and the specifics change between editions, so treat the following as the shape of the requirements rather than a substitute for the adopted text:
Live and dead loads. Decks are designed for a minimum uniform live load (commonly 40 pounds per square foot for residential decks, with higher values where the code specifies, such as for certain occupancies) plus dead load. Snow loads come from the local ground snow load map; a deck in a snowy region must be designed for the same snow as the roof. Footings and frost depth. Footings must extend below the local frost line, which is set locally—this is one of the most location-specific numbers in deck construction. In cold climates, that can mean footings several feet deep; in warm climates, much shallower. Ledger attachment. The connection of the deck to the house is the most failure-prone part of the structure. The IRC prescribes ledger flashing, fastener type and spacing, and lateral-load connectors (such as tension ties) to keep the deck from pulling away from the house. Deck collapses in news reports are disproportionately ledger failures. Posts, beams, and joists. Tables give allowable spans by species, grade, and size. Post size and footing size scale with the tributary area the post carries. Guards and handrails. Decks more than 30 inches above grade generally need guards, with height and baluster-spacing rules designed to prevent a child from passing through or climbing. Stairs need handrails with specific height and graspability requirements. Stair geometry. Maximum riser height and minimum tread depth are prescribed, along with landing requirements.
Wood quality itself is regulated. Minnesota's deck guidance states that all wood must meet MRC R507.2.1, including grade (No. 2 or better) and preservative treatment or natural durability for exterior use. Using untreated or undersized lumber is a code violation even if the span "looks fine."
Permit thresholds differ sharply—and they are not the deck code
A frequent confusion is treating the permit trigger as the design standard. They are different questions: Does this deck need a permit? versus What must a permitted deck satisfy? The evidence set shows how much the first answer varies:
| Jurisdiction | Permit trigger (from the supplied source) |
|---|---|
| Minnesota | Deck more than 30 inches above adjacent grade; attached to a structure with frost footings; or part of an accessible route |
| Seattle | More than 18 inches above ground; a roof deck; or in an environmentally critical area |
| Boulder County, Colorado | Decks over 200 square feet, attached decks, and freestanding decks elevated 30 inches or more above grade |
Note the differences in kind, not just degree. Seattle's threshold (18 inches) is lower than Minnesota's (30 inches). Boulder County uses an area threshold (200 square feet) alongside an attachment trigger. Seattle adds a location trigger—environmentally critical areas such as landslide-prone or flood-prone sites—that has nothing to do with height. A homeowner who reads one jurisdiction's rules and assumes they transfer is making a category error.
A second, subtler point: a deck below the permit threshold is not thereby exempt from structural soundness, and many jurisdictions still expect guards where the height warrants them. The permit rule tells you whether to file paperwork; the adopted code tells you how to build.
The design loads you must know before sizing anything
Deck design starts with loads, and loads are local. The variables that most often change a design are:
Ground snow load. A deck in a high-snow region may need joists and beams sized for snow accumulation, not just the 40 psf live load. Wind speed. Boulder County's guidance explicitly flags wind-speed criteria as a design input for decks on certain parcels. Exposed decks, elevated decks, and decks with solid guards catch wind differently from open railings. Seismic exposure. In high-seismic regions, the lateral connections—especially the ledger and the post-to-footing connections—matter more, and prescriptive tables may not cover the case. Soil bearing capacity. Footing size depends on soil; poor soils require larger footings or engineered foundations. Frost depth. As noted, this sets footing depth and is entirely local.
These are the reasons an engineered design is sometimes unavoidable even for a modest deck: the prescriptive tables assume ordinary conditions, and unusual snow, wind, soil, or geometry pushes the project outside them.
Guards, stairs, and the details inspectors actually check
The structural frame gets the attention, but a large share of inspection failures are in the finish details:
Guard height and infill. Guards are typically required at 30 inches or more above grade, at a minimum height (commonly 36 inches for residential), with balusters spaced so a sphere of a specified size cannot pass through. Ladder-type infill that a child can climb is a known hazard and is restricted in many editions. Handrails. Stairs with more than a few risers need handrails at a prescribed height with a graspable profile. A 2x6 laid flat is a common mistake—it fails the graspability test. Stair dimensions. Consistent riser height matters; the code limits the variation between adjacent risers because uneven steps are a trip hazard. Ledger flashing. Flashing detail is a durability requirement as much as a structural one; a correctly sized ledger that rots because of missing flashing fails over time. Fasteners and connectors. The IRC prescribes fastener schedules and requires connectors (joist hangers, tension ties, post bases) rated for the application. Galvanized or stainless fasteners are required with treated lumber to avoid corrosion.
What changes between code editions
Editions matter because requirements are added and revised. The evidence set spans the 2019 NBC (Alberta), the 2020 Minnesota Residential Code, the 2020 Residential Code of New York State, and the 2021 IRC (Boulder County). A deck designed to a 2015 edition may not satisfy a 2021 edition, particularly in ledger attachment, lateral-load connectors, and guard details. When a jurisdiction adopts a new edition, existing decks are generally not required to be upgraded—but new construction and substantial alterations must meet the code in force at permit time. The specific edition adopted, and its effective date, is something only the local building department can confirm.
How to get the right answer for a specific deck
The practical sequence is:
1: Identify the jurisdiction—city or county—and ask the building department which code edition is adopted and whether amendments apply. 2: Check the permit threshold for that jurisdiction, since it may be height-based, area-based, attachment-based, or location-based. 3: Get the local design values: ground snow load, wind speed, seismic category, frost depth, and soil assumptions. 4: Decide prescriptive versus engineered based on whether the deck fits the span tables and ordinary conditions. 5: Confirm product approvals for composite decking, railing systems, and connectors, and follow the manufacturer's installation instructions. 6: Check zoning separately for setbacks, height, and lot coverage.
The one thing that cannot be answered without the location is the substantive question: which edition, which amendments, and which local loads apply. The structure of the answer—prescriptive tables, engineered design, ledger and guard requirements, permit triggers set locally—is stable across U.S. jurisdictions, and the Canadian example shows the same architecture under the National Building Code. The numbers are not.
Common misconceptions, briefly
"The IRC is the law." It is a model code. It becomes law only through adoption, and adopted editions are often amended.
"If I don't need a permit, there are no rules." Permit thresholds and design standards are separate. Guards, structural soundness, and manufacturer instructions still apply.
"Span tables cover every deck." They cover ordinary conditions. Hot tubs, tall decks, unusual shapes, and high snow, wind, or seismic exposure require engineering.
"A bigger footing is always safer." Footing size must match the load and soil; overbuilding is not a code violation, but mismatching the prescriptive table without engineering can create inspection problems and does not substitute for correct ledger and lateral connections.
"Treated lumber means any fasteners work." Corrosion-resistant fasteners are required with treated wood, and the wrong fastener can fail or void warranties.
For a deck that will be inspected, the reliable path is to treat the local building department as the authority on edition, amendments, and permit triggers, and to treat the IRC's prescriptive provisions—or an engineer's stamped design where the tables do not apply—as the construction standard.