OpenCity Record
Building Permits & Inspections

Do I Need a Building Permit? A Project-by-Project Guide

Do I need a permit for a fence, shed, deck, roof or water heater? See the usual rule for 13 home projects, the 2024 IRC limits and how to check your city.

By OpenCity EditorialUpdated Reviewed by Casey Glade on

See what’s happening in your city

Quick answer

Usually yes if the job adds space, changes the structure, or touches wiring, plumbing, gas or heating. The model code most U.S. cities use, the International Residential Code, skips the building permit for small jobs: one-story sheds up to 200 square feet, fences up to 7 feet, low retaining walls and finish work. Your city may set tighter limits.

Key facts

  • Section R105.2 of the 2024 International Residential Code exempts one-story detached accessory structures up to 200 square feet and fences up to 7 feet tall from a building permit.
  • A deck skips the permit under the model code only if it's 200 square feet or less, no more than 30 inches above grade at any point, not attached to the house and not the required exit.
  • Cities and counties change these numbers. One city exempts sheds only up to 120 square feet, while one county allows 400.
  • States split on who adopts the code. Some apply one residential code statewide, while others leave the edition and local changes to each city or county.
  • Starting work before you get a required permit adds a fee under IRC section R108.6. Some cities set it at 100 percent of the normal permit fee.

You need a building permit for most home projects that add space, change the structure, or touch wiring, plumbing, gas or heating. Many small jobs can skip it. The 2024 International Residential Code (IRC), the model code most U.S. cities adopt, exempts one-story sheds up to 200 square feet, fences up to 7 feet, retaining walls up to 4 feet and finish work like paint and flooring. So the real answer to "do I need a permit" depends on the project and on how your city changed the model code when it adopted it.

Sample city ordinance amending the model code's list of work exempt from a permit, with the shed limit struck from 200 to 120 square feet and notes on the code edition, zoning, local changes and the deck rule.

Sheds, fences and low decks can skip a permit under the model code, but work on the house itself usually can't.

When do you need a building permit?

The rule starts in section R105.1 of the IRC, which says anyone who plans to build, enlarge, alter, repair, move or demolish a house has to apply to the building official and get a permit first. The same rule covers installing or changing the electrical, gas, mechanical or plumbing systems inside the house, and section R105.2 then lists the work that's exempt.

In plain terms, expect to need a permit whenever your project does any of the following:

  • It adds floor area, the way a room addition, a sunroom or a detached garage does.
  • It moves, removes or cuts into a wall, beam, rafter or other structural part of the house.
  • It adds or relocates wiring, outlets, pipes, gas lines, vents or ductwork, even inside an existing room.
  • It changes how a space is used, like converting a garage or an attic into a bedroom.
  • It replaces gas or electric equipment such as a furnace or a water heater, which the model code treats as permitted work.

Paint, carpet, new cabinets and countertops don't need a permit under the model code, as long as you aren't changing the structure or the plumbing and wiring behind them.

Which projects are exempt from a permit under the IRC?

The table below quotes the building items in section R105.2 of the 2024 IRC directly from the code, and your city may have changed any of them when it adopted the code.

#Permits are not required for (2024 IRC R105.2, building)
1"Other than storm shelters, one-story detached accessory structures, provided that the floor area does not exceed 200 square feet (18.58 m²)."
2"Fences not over 7 feet (2134 mm) high."
3"Retaining walls that are not over 4 feet (1219 mm) in height measured from the bottom of the footing to the top of the wall, unless supporting a surcharge."
4"Water tanks supported directly upon grade if the capacity does not exceed 5,000 gallons (18 927 L) and the ratio of height to diameter or width does not exceed 2 to 1."
5"Sidewalks and driveways."
6"Painting, papering, tiling, carpeting, cabinets, counter tops and similar finish work."
7"Prefabricated swimming pools that are less than 24 inches (610 mm) deep."
8"Swings and other playground equipment."
9"Window awnings supported by an exterior wall that do not project more than 54 inches (1372 mm) from the exterior wall and do not require additional support."
10"Decks not exceeding 200 square feet (18.58 m²) 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."

The deck rule is easy to misread, because the 30 inches is measured at any point under the deck. A deck that sits a foot off the ground at the back door but rises to 40 inches at the far corner needs a permit. So does any deck attached to the house, no matter how small it is.

A "surcharge" on a retaining wall means extra weight pressing down from above, like a sloped yard, a parked car or a building. That's why a 3-foot wall holding up a driveway still needs a permit even though it's under the 4-foot limit.

The trade sections of R105.2 have short exempt lists of their own. They cover things like replacing a light bulb, plugging in approved portable equipment, using portable heaters and fans, clearing a clogged drain and fixing a leak without new pipe. Once you replace or move pipe, wire or ductwork, the code treats the job as new work, and new work needs a permit.

There's one more catch, because an exemption only covers the building permit itself. Section R105.2 says an exemption doesn't authorize work that breaks the code or "any other laws or ordinances of this jurisdiction." Your exempt shed still has to meet zoning setbacks, and your fence may still need a zoning permit.

Do I need a permit for a fence, shed, deck or remodel?

This table gives the usual answer for 13 common projects, where "model rule" means the 2024 IRC before any state or city changes.

ProjectUsually need a permit?Model rule (2024 IRC)What to check locally
FenceNot a building permit if 7 ft or underR105.2 exempts fences up to 7 ftMany cities require a zoning or fence permit and cap front-yard height
Shed or small workshopNot if one story and 200 sq ft or lessR105.2 exempts detached accessory structures up to 200 sq ftSome cities use 120 sq ft; setbacks apply; wiring needs an electrical permit
DeckOnly small, low, freestanding decks skip it200 sq ft or less, 30 in. or lower at every point, not attached, not the required exitAttached decks need a permit; guards are required above 30 in.
Patio slab or paversDepends on the cityNot named in R105.2Patio covers and roofs need a permit; check drainage and lot coverage
Replacement windowsDepends on the cityNot named in R105.2Bigger openings need a permit; some cities require one for all window jobs
Water heaterYes in many citiesR105.1 covers replacing plumbing and gas systemsSame-size swaps still need a permit in many cities
Bathroom remodelYes if you move plumbing, wiring or wallsFinish work exempt; plumbing and electrical notTile, a new vanity top and paint alone usually need none
Kitchen remodelYes if you move plumbing, gas, wiring or wallsCabinets and countertops exemptNew appliance circuits usually need an electrical permit
RoofDepends on the cityNot named in R105.2Some cities skip permits when the new roofing matches the old; others require them
Rooftop solarYesBuilding and electrical permitsSome cities issue instant permits through SolarAPP+
Swimming poolYes, except small prefab poolsPrefab pools under 24 in. deep exemptIn-ground pools must also meet the pool and spa code (IRC R328)
Retaining wallNot if 4 ft or under with no surchargeMeasured from bottom of footing to top of wallA slope or driveway above the wall counts as a surcharge
DrivewayNot a building permitSidewalks and driveways exemptA new curb cut may need a right-of-way or driveway permit

Three-question permit check: wiring or plumbing work needs a trade permit, structural or space changes need a building permit, and only exempt projects under the model size limits probably skip one.

Plan on a permit whenever the job touches pipes, wires or structure; only small projects on the exempt list can skip one.

Do I need a permit to replace a water heater, roof or windows?

Replacement projects are where local requirements differ the most. Section R105.1 treats replacing plumbing, gas, electrical and mechanical systems as permitted work, but building departments draw the line between a repair and a replacement differently for roofs and windows.

Water heaters. Many cities want a permit even for a same-size water heater, because the job touches plumbing plus a gas line or an electrical circuit. Some cities spell it out and require a permit for every installation, swaps included. Others make it quick by treating a tank swap as an over-the-counter permit, so you can often get it the same day. The inspector checks the venting, the pressure relief valve and, where the code requires them, the seismic straps that keep the tank from tipping over.

Roofs. Some cities skip the permit when the new roofing is similar to the old, but require one when the job changes the look of the house. Others require a permit for every reroof and exempt only small repairs, such as patches under 100 square feet. One city began requiring permits for all residential reroofing, residing and window replacement on May 1, 2025.

Windows. Rules for replacement windows vary. Some cities skip the permit when the new windows are similar in style to the old ones, but require one if you change the window type, such as a casement to a double-hung. Making an opening bigger means cutting into the wall's structure, which the model code treats as permitted work. Bedroom windows also have to stay large enough to work as an emergency exit, which is one reason inspectors care about them.

Do I need a permit for solar panels?

Usually, yes, because rooftop solar adds weight to the roof and ties into your electrical panel. Expect a building permit, an electrical permit or both, plus any approval your utility requires before the system connects to the grid.

The approval process is getting faster in some places. SolarAPP+, an online tool developed by the National Renewable Energy Laboratory and free for city and county permit offices, checks standard home systems against the code and approves eligible permits right away, while it sends more complex systems to a person for review.

Why is my city's answer different from the code?

The IRC is only a model. It has no legal force until a state or city adopts it, and they can change it when they do. The International Code Council publishes a new edition every three years, and states and cities adopt one on their own schedule, sometimes skipping an edition entirely.

States also split on who does the adopting. Some states set one residential code that applies statewide, and local changes need approval from a state code board. Others have no statewide building code, so each city or county adopts its own edition and local changes.

Shed limits show how far the numbers can drift from the model. The 2024 code says 200 square feet, but one city uses 128, a second city and a town use 120, and one county allows 400.

Bar chart of shed size limits without a permit: one county 400 square feet, the 2024 model code 200, one city 128, a second city 120 and one town 120, with an example 150-square-foot shed marked.

A 150-square-foot shed skips the permit under the model code but needs one under three of the four local codes shown (sources: 2024 IRC R105.2 and each local code).

Where cities adopt the code themselves, the choice happens at a public meeting. Three city councils in three states show what that vote looks like:

That means two cities can enforce different editions of the residential code in the same year, and in states without a statewide code, even two cities in the same state can. The edition matters, because the exempt-work limits and even the section numbers change from one edition to the next. To find your own city's vote, search recent meetings for the International Residential Code.

From the record

Real examples from public meetings

  • Murfreesboro, TN

    City Council ·

    Approved 7-0

    Adopted Ordinance 26-O-34 on second and final reading, moving the city to the 2024 International Residential Code and the rest of the 2024 international codes, with local amendments.

  • Marshalltown, IA

    City Council ·

    Approved 7-0

    Adopted Ordinance 15117 on third reading, moving the city to the 2021 International Residential Code with Appendix AF, the radon control methods for new homes.

What happens if you skip a required permit?

The city can post a stop-work order and charge you to catch up on the paperwork. Under section R108.6 of the IRC, anyone who starts work before getting a required permit owes an extra fee, set locally, on top of the normal permit fee. Some cities set that extra fee at 100 percent of the usual permit fee, so you pay double.

The bigger cost often comes later, when a building inspector asks you to open finished drywall to see the wiring or framing behind it. Buyers, appraisers and insurance companies can also ask about work that doesn't match the permit record. Our guide to unpermitted work explains how to legalize a project after the fact.

How do you check your city's permit rules?

  1. Find the exempt-work handout by searching for your city's name plus "work exempt from permit," since many building departments post a one-page list.
  2. Check which code edition your city adopted, which the handout or the city code will name, and read the adopting ordinance for local changes.
  3. Check zoning on its own, because fence height, shed setbacks and lot coverage are zoning rules that apply even when you don't need a building permit.
  4. Ask the building department in writing, with the address, a short description and a sketch with sizes, so you have an answer to show if another inspector disagrees.
  5. Read your HOA rules too, since they can be stricter than the city's and the HOA enforces them on its own.
  6. Call 811 before you dig, because fence posts, deck footings and retaining walls all need a free utility locate first.

To see which permits a house already has, use our guide on how to look up permits on a property. To see the code votes behind your city's rules, find your city and open its recent council meetings.

This is general information, not legal or tax advice.

New in your city

See what’s being built in your city

Rezonings, site plans, subdivisions and variances show up on city agendas weeks before the bulldozers do. Pick your city to see the development applications on its agendas, such as rezonings, site plans, subdivisions and variances, with the status of each. It lists the whole city; it does not search by address.

Find your city

Common questions

Do I need a permit to build a shed?

Under the 2024 International Residential Code, a one-story detached shed of 200 square feet or less doesn't need a building permit. Many cities use a smaller limit, such as 120 square feet, and zoning setbacks still apply. Running power to the shed needs an electrical permit.

Do I need a permit for a fence?

The model code exempts fences up to 7 feet tall from a building permit. Many cities still require a zoning or fence permit and set lower limits for front yards. Check your city's zoning code and your HOA rules before you set posts.

Do I need a permit to replace a water heater?

In many cities, yes, even for a same-size swap, because the job involves plumbing plus a gas or electrical hookup. Some cities require a permit for every water heater installation. The inspection checks venting, the relief valve and, where required, the straps.

Do I need a permit for a deck?

Only small, low, freestanding decks skip the permit under the model code. The deck must be 200 square feet or less, no more than 30 inches above grade at any point, not attached to the house, and not the required exit. An attached deck needs a permit no matter how small it is.

What happens if I build without a permit?

The city can stop the work, charge an extra fee and make you open finished walls for inspection. Unpermitted work can also surface when you sell, refinance or file an insurance claim. Our unpermitted work guide explains how to legalize a project after the fact.

Sources

  1. 2024 International Residential Code, Chapter 1: Scope and Administration · International Code Council
  2. 2024 IRC Section R105.2: Work exempt from permit · International Code Council
  3. Aurora City Code Sec. 22-184: Residential code amendments · City of Aurora, Colorado
  4. International Residential Code (local amendments) · City of Aberdeen, Washington
  5. Clallam County Code 21.01.045: Work exempt from permit · Clallam County, Washington
  6. Town Code 7-1-2: Building code amendments · Town of Fountain Hills, Arizona
  7. Moses Lake Municipal Code 16.02.087: Investigation fees, work without a permit · City of Moses Lake, Washington
  8. Re-Roofing, Re-Siding, & Window Replacement · City of Wauwatosa, Wisconsin
  9. Building Permits · City of Rochester, Minnesota
  10. Water heater replacement permit handout · City of Dublin, California
  11. Water heater replacement permit requirements · City of Geneva, Illinois
  12. Residential roof or reroof permit handout · City of Lakewood, Colorado
  13. Streamlining Solar Permitting: SolarAPP+ · U.S. Department of Energy
  14. G.S. 143-138: North Carolina State Building Code · North Carolina General Assembly
  15. Building Codes · Colorado Office of the State Architect

Free for residents

Never miss a decision about your neighborhood

OpenCity Record turns your city’s meetings into plain-English summaries, votes and a weekly email. Find your city to start.

Not sure? Browse every covered state

  • Know what’s on the agenda

    See items before the meeting, while there’s still time to speak up.

  • See what’s being built

    Rezonings, site plans and variances on your city’s agendas.

  • See how your council voted

    Every recorded vote, linked to the meeting it happened in.

  • Get the weekly email

    One free email a week with what your city’s meetings decided.