Quick answer
Under the 2024 International Residential Code, a deck is exempt from a permit only if it meets all four conditions: it is no larger than 200 square feet, no more than 30 inches above grade at any point, not attached to the house or townhouse, and does not serve the required exit door (IRC R105.2). Any deck that fails one test needs a permit, and your city or county may set stricter limits. Zoning setbacks and HOA approval can apply even when no building permit is needed.
What the model code says
Most U.S. cities and counties base their residential rules on the International Residential Code (IRC), published by the International Code Council. The current edition is the 2024 IRC. Many places still enforce the 2021 or an earlier edition, and almost all of them amend it, so treat the following as the starting point rather than the final word.
When a deck is exempt
Section R105.2 lists work that does not need a permit. For decks, the 2024 text reads:
Decks not exceeding 200 square feet (18.58 m2) in area, that are not more than 30 inches (762 mm) above grade at any point, are not attached to a dwelling or townhouse and do not serve the exit door required by Section R318.4.
All four conditions have to be true:
- Size: 200 square feet or less.
- Height: the walking surface is no more than 30 inches above grade at any point. On a sloping yard, measure at the lowest grade, not the average.
- Freestanding: not attached to the house or a townhouse. A deck bolted to the rim joist or ledger fails this test.
- Not the required exit: the deck is not the landing for the home’s required egress door. If the door it serves is the house’s one required exit, the deck is part of the exit path and needs review.
The 2021 IRC used nearly the same wording but said “not attached to a dwelling” and cited Section R311.4. The 2024 edition added townhouses and renumbered the egress section.
R105.2 also says that being exempt from a permit “shall not be deemed to grant authorization for any work to be done in any manner in violation of the provisions of this code or any other laws or ordinances.” An exempt deck still has to be built to code and still has to meet zoning rules.
Key construction rules inspectors check
The IRC’s prescriptive deck rules are in Section R507:
- Footings (R507.3). Decks must sit on concrete footings or another approved system. Footings must be at least 12 inches below undisturbed ground (R507.3.2). Where the deck is attached to a frost-protected house, footings must extend below the local frost line or be otherwise frost-protected (R507.3.3). Your jurisdiction’s frost depth is in its local design criteria (IRC Table R301.2).
- Attachment (R507.8 and R507.9). An attached deck must be “positively anchored to the primary structure,” and the attachment “shall not be accomplished by the use of toenails or nails subject to withdrawal.” If the inspector cannot verify a positive connection, the deck must be self-supporting. Ledgers must be at least 2×8 nominal, cannot be hung on stone or masonry veneer, and need flashing that extends at least 2 inches above the ledger. Lateral-load hold-downs (R507.9.2) are required in specific configurations.
- Materials and fasteners (R507.2). Treated lumber, composite boards, and connectors must meet the listed standards. Corrosion-resistant fasteners matter because treated wood is corrosive to plain steel.
- Guards (R321). Required on open sides more than 30 inches above grade within 36 inches of the edge. The minimum height is 36 inches, and openings must not pass a 4-inch sphere.
- Stairs (R318.7). Stairs need a clear width of at least 36 inches, risers of no more than 7¾ inches, treads of at least 10 inches, and a handrail on at least one side where there are four or more risers.
Zoning, HOA rules, and setbacks
A building permit answers “is it safe?” Zoning answers “is it allowed here?” Even an exempt deck usually has to respect:
- Setbacks. Minimum distances from property lines. Many zoning codes treat a raised deck as part of the house for setback purposes, while a grade-level patio may be allowed closer to the line.
- Lot coverage or impervious-surface limits. Some codes count decks, others do not.
- Easements. Utility and drainage easements often prohibit permanent footings.
- Historic districts and HOAs. Design review and private covenants are separate from the building permit. An HOA approval does not replace a permit, and a permit does not override HOA rules.
Ask the zoning or planning desk for the setback that applies to your lot before you draw the deck. A survey or plat showing property lines makes that conversation faster.
Permits and inspections you can expect
For a deck that needs a permit, a typical sequence is:
- Plan review. The office reviews a site plan and construction drawings. Some offices accept a completed prescriptive deck worksheet in place of drawings.
- Footing inspection. This happens after holes are dug and before concrete is poured, so the inspector can check depth and bearing.
- Framing inspection. This happens before decking covers the structure, so the inspector can see the ledger attachment, flashing, joist hangers, beams, posts, and lateral connections.
- Final inspection. Guards, stairs, handrails, and overall completion are checked.
Some jurisdictions combine steps, and electrical work for deck lighting or receptacles is often a separate permit. Ask the office how to schedule inspections and how much notice it needs.
What to prepare
- Site plan showing the house, the deck footprint, distances to each property line, and any easements.
- Framing plan with joist size, spacing, and span; beam size; post size and height; footing size and depth; and the ledger attachment method.
- Elevation or section showing deck height above grade, guard height, and the stair layout.
- Materials list, including lumber treatment and fastener and connector types.
- Contractor information if someone else is building it, or confirmation that you are permitted to pull an owner-builder permit.
- HOA approval letter if your community requires one. Some permit offices ask to see it.
How permit fees are calculated
We don’t publish a single “deck permit cost” because fees are set locally and change often. Most offices use one of three methods:
- Valuation-based. The application asks for the value of the work (IRC R105.3 requires the applicant to “state the valuation of the proposed work”). The fee is a percentage or a stepped table based on that value. Many jurisdictions check stated values against the International Code Council’s Building Valuation Data, which the ICC describes as “a resource that jurisdictions across the U.S. use as a benchmark to determine building permit fees.” For example, the City of San Diego’s Information Bulletin 101 (January 2024) lists a valuation of $45 per square foot for wood decks. That is a valuation used to compute the fee, not the fee itself.
- Per square foot. A fixed rate times the deck area.
- Flat fee. A single fee for a residential deck, sometimes with separate plan-review and reinspection charges.
To estimate your cost, open your county’s fee schedule from our directory and ask the office which method applies to decks.
Common mistakes
- Measuring height at the wrong spot. The 30-inch test applies “at any point,” so a deck that is 18 inches high at the house can be 36 inches high at the far corner.
- Assuming “freestanding” means exempt. A freestanding deck larger than 200 square feet, or one serving the required exit door, still needs a permit.
- Lagging into veneer or skipping flashing. These are among the most common reasons a framing inspection fails.
- Pouring footings before the inspection. Once concrete is in, the inspector cannot verify the depth.
- Forgetting zoning. A deck that passes structurally can still violate a setback.
- Relying on the model code alone. Local codes often change the exemption thresholds or still enforce an older edition. Always read your jurisdiction’s version.
State notes
Some states set a rule for this project statewide. These notes come from our state research; your city or county may add its own requirements.
- Connecticut
- A deck or ramp does not need a building permit only if it is no more than 200 square feet, no more than 30 inches above grade at any point, not attached to the house, needs no guards, and does not serve the required exit door. Other decks need a permit. Source
- Massachusetts
- 780 CMR 51.00 R105.2: no building permit for decks of 200 sq ft or less, not more than 30 inches above grade at any point, not attached to a dwelling, and not serving a required exit door. Other decks need a permit. Source
- Michigan
- Under R 408.30505, a deck needs no building permit only if it is 200 square feet or less, no more than 30 inches above grade, not attached to the house, not within 36 inches of the house and does not serve an entry door. Other decks need a permit. Source
- Minnesota
- Where the State Building Code is enforced, a deck or platform no more than 30 inches above grade does not need a building permit, as long as it is not attached to a structure with frost footings and is not part of an accessible route (Minnesota Rules 1300.0120). Source
- North Carolina
- Repairing or replacing deck boards, railings, pickets and stair treads is exempt from a building permit when the project costs $40,000 or less (G.S. 160D-1110(c)). Building, adding to or repairing a deck's load-bearing structure needs a permit at any cost. Source
- North Dakota
- Where the state building code is enforced, the state amendment to IRC R105.2 exempts decks up to 120 sq ft that are no more than 7 inches above grade at any point, are not attached to the house, and do not serve the required exit door. Other decks need a permit where the code is enforced. Source
- Ohio
- A deck is exempt from RCO approval only if it is no more than 200 sq ft, no more than 30 inches above grade at any point, not attached to the house, and does not serve the required exit door (RCO 102.10). Attached decks need approval where a certified residential department has jurisdiction. Source
- Pennsylvania
- No UCC permit is needed for an uncovered deck whose floor is no more than 30 inches above grade (34 Pa. Code § 403.62(c)(8)). Higher or covered decks need a residential permit. Source
- South Carolina
- An owner of residential property who builds a deck of 200 sq ft or less that is no more than 30 inches above grade at any point is exempt from the building permit requirement (S.C. Code § 40-59-265). Source
Common questions
Do I need a permit for a ground-level deck?
Under the model IRC, a deck no more than 30 inches above grade at any point, no larger than 200 square feet, not attached to the house, and not serving the required exit door is exempt from a building permit. If it is attached to the house or larger than 200 square feet, it needs one. Check your local code, because many jurisdictions adopt a different threshold.
Does replacing deck boards need a permit?
The IRC lets ordinary repairs proceed without an application, but repairs cannot include removing or cutting structural members or changing a required means of egress (IRC R105.2.2). Swapping surface boards on a sound frame is often treated as a repair; replacing joists, beams, posts, or the ledger usually is not. Ask your permit office how it classifies the work.
How high can a deck be before it needs a railing?
The 2024 IRC requires guards on open sides of walking surfaces more than 30 inches above the floor or grade below at any point within 36 inches horizontally of the edge (R321.1.1). Guards must be at least 36 inches high (R321.1.2) and must not let a 4-inch sphere pass through (R321.1.3).
Can I attach a deck to my house's brick or stone veneer?
No. The 2024 IRC says deck ledgers shall not be supported on stone or masonry veneer (R507.9.1.1). An attached deck must be positively anchored to the house structure, or designed to be self-supporting (R507.8, R318.5).
What happens if I build a deck without a permit?
Local enforcement varies. Common outcomes include a stop-work order, an after-the-fact permit with additional fees, opening up finished work for inspection, or removal. Unpermitted structures can also surface during a home sale inspection. Your county's profile in our directory lists any published penalty information.
Check your county’s rules
The rules above are the model-code starting point. Your county or city decides which edition applies, what it changed, and what it charges. Look up the permit office that serves your address.
Sources
- 2024 International Residential Code, Chapter 1 (R105.2 work exempt from permit), unamended adoption reproduced by UpCodesup.codes
- 2024 International Residential Code, Chapter 5 (R507 decks)up.codes
- 2024 International Residential Code, Chapter 3 (R318 egress and stairs, R321 guards)up.codes
- 2021 International Residential Code, Chapter 1 (for comparison of the deck exemption)up.codes
- International Code Council: Building Valuation Datawww.iccsafe.org
- City of San Diego Information Bulletin 101: Building Valuation Schedule (January 2024)www.sandiego.gov
Last reviewed October 2026. Section numbers refer to the International Code Council’s model codes. We checked the wording against the published adoptions linked above, which reproduce the model text without amendment unless the source notes a state amendment. Codes take effect only when a state or local government adopts them, and many make amendments. This guide is general information, not legal or engineering advice. Suggest a correction
