Do You Need a Permit to Build a Deck?
The 30-inch rule, attached vs freestanding decks, what inspectors actually check, and the resale cost of skipping the paperwork.
Last updated: July 2026
First, the standard caveat — and it matters: permit rules are set by local jurisdictions and vary widely from city to city and county to county. The figures on this page are the most common U.S. thresholds, drawn from model codes that most localities adapt to taste. Confirm your exact rules with your city or county building department before you set a single footing.
The 30-Inch Rule
Thirty inches above grade is the magic number in most U.S. building codes, and it isn't arbitrary — it's the height at which a fall stops being a stumble and starts being an injury. Cross it and two things happen: the deck needs a permit, and guardrails become mandatory (typically 36 inches tall for residential decks, with balusters spaced so a 4-inch sphere can't pass through). Below 30 inches, many jurisdictions treat a freestanding deck like a patio: no permit, no required railing. Above it, the deck is a structure people can fall off of, and the code treats it accordingly.
Note that height is usually measured from the lowest adjacent grade within a set distance — so a deck that's 24 inches high on the uphill side but 36 inches high where the yard slopes away is an over-30 deck.
Attached vs Freestanding
The second big trigger is attachment. A deck bolted to your house via a ledger board is structurally part of the house — it transfers load into the home's band joist, and a failed ledger connection is the single most common cause of catastrophic deck collapses. That's why attached decks generally require a permit at any height: the jurisdiction wants eyes on the ledger fasteners and flashing. A freestanding ("floating") deck on its own posts or blocks, under 30 inches and under the local size threshold (often around 200 sq ft), is the configuration most likely to be exempt. If you're near the line, building freestanding — even a few inches off the house — can be the difference between a permit and no permit.
What Inspectors Check
If your deck is permitted, expect at least a footing inspection and a final. Knowing the checklist makes the inspections painless:
- Footing depth vs frost line: Footings must extend below your area's frost depth so freeze-thaw cycles can't heave the deck. Size the pours with our concrete calculator.
- Ledger flashing and fasteners: Proper flashing over the ledger and structural screws or through-bolts (never just nails) into solid framing.
- Joist spans and beam sizing: Span tables dictate maximum joist lengths per lumber size and spacing — undersized framing is a common DIY red flag.
- Railing height and baluster spacing: 36-inch guardrails with the 4-inch sphere rule on decks over 30 inches.
- Stair geometry: Consistent riser heights (typically max ~7.75 inches), adequate tread depth, and graspable handrails. Get the rise/run math right the first time with our deck stair calculator.
Skipping It = Resale Trouble
Beyond fines and stop-work orders, the real cost of an unpermitted deck usually surfaces years later, at sale time. Unpermitted decks are one of the top flags in home inspections — they're large, visible, and easy for an inspector to check against permit records. Buyers respond by demanding retroactive permits (with penalty fees and sometimes partial demolition to expose framing), negotiating the price down, or walking away. Your insurer may also deny claims for injuries or damage involving an unpermitted structure. For a project that often costs thousands in materials alone (see our deck cost guide), a permit that typically runs a few hundred dollars is cheap protection.
Ready to build it right? Estimate boards, joists, and hardware with the decking calculator and follow our how to build a deck guide.
Ready to Plan Your Deck?
Get decking board counts, joist layouts, and hardware estimates for your exact deck dimensions.
Decking Calculator →Reminder: permit rules are set by your local jurisdiction and vary widely. The thresholds above are the most common U.S. figures — confirm with your city or county building department before starting.
Frequently Asked Questions
Sometimes — the common exemption is a freestanding, ground-level deck under 30 inches above grade and under roughly 200 square feet that isn't attached to the house and doesn't serve its required exit door. Outside that narrow case, plan on a permit: decks over 30 inches high need one almost everywhere in the U.S., and attached decks typically need one at any height because the ledger connection is a structural, safety-critical detail. Thresholds vary by jurisdiction, so confirm with your local building department before building.
Under most U.S. codes, a deck less than 30 inches above grade doesn't require a guardrail. At 30 inches or more, a guardrail becomes mandatory — typically 36 inches tall for residential decks, with balusters spaced so a 4-inch sphere can't pass through. Height is generally measured from the lowest adjacent grade, so a deck on sloped ground can require a railing even if one side is close to the ground. Many builders add railings below 30 inches anyway for safety and appearance; the code number is a floor, not a recommendation.
Usually not, if they stay inside the exemption box: freestanding (no ledger attachment to the house), under 30 inches above grade, and under the local size threshold — often around 200 square feet. That combination is exempt in many U.S. jurisdictions. Exceed any one of those — attach it, raise it, or supersize it — and permit requirements typically kick in. Even exempt floating decks must respect setback rules and easements, so check placement rules with your building department even when no permit is required.