Plan it

Do I need a permit?

A deck, a shed, a fence, a water heater, a new roof: what the building code most towns use says, where towns are stricter, and what to ask yours.

Under the model code most US towns adopt (the International Residential Code, R105.2), no building permit is needed for a one-story detached shed up to 200 sq ft, a fence up to 7 ft, a retaining wall up to 4 ft holding nothing up, a deck of 200 sq ft or less that is no more than 30 inches high and not attached to the house, sidewalks and driveways, and finish work like paint, tile and cabinets. A water heater replacement, a new roof, new wiring or new plumbing needs one almost everywhere. Many towns are stricter (sheds over 120 sq ft, fences over 6 ft, every deck), so ask your building department first.

Updated · From the International Residential Code (2021 and 2024, R105.1 and R105.2) and cities' own permit pages · Not legal advice: your building department decides

Your project

Every question and every answer

What are you planning?

Is it attached to the house, or does a door open onto it?

A deck like this needs a building permit

Why: The model code most towns use (the International Residential Code, R105.2) only exempts decks that are 200 sq ft or less, no more than 30 in above the ground at any point, not attached to the house, and not serving its exit door. Anything else needs a permit, and some places want one for every deck (Montgomery County, MD: "A building permit is required for all decks regardless of the height above grade").

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. Bring a plan: the deck's size, its height, how it attaches to the house (the ledger), the joist and beam sizes, and the footings. The deck planner draws the framing plan.
  3. Ask how deep the footings must go (the frost line) and which inspections they want: usually the footing holes, the framing, and a final.
  4. Digging footings or posts? Call 811 a few days before, so the buried lines get marked.

A building permit isn't the only rule: zoning (how close to the property line, how tall, how much of the lot), your HOA, and a historic district can all apply even when no permit is needed.

How high is it at its highest point?

From the ground to the top of the decking, at the spot where the ground is lowest.

How big is it?

Probably no building permit, but check first

Why: The model code exempts "Decks not exceeding 200 square feet in area, that are not more than 30 inches above grade at any point, are not attached to a dwelling" and that don't serve the house's exit door (IRC R105.2). Some towns are stricter and want a permit for every deck (Montgomery County, MD).

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. A building permit isn't the only rule: zoning (how close to the property line, how tall, how much of the lot), your HOA, and a historic district can all apply even when no permit is needed.
  3. Digging footings or posts? Call 811 a few days before, so the buried lines get marked.

The code itself says an exemption "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" (IRC R105.2): no permit still means building it right.

How big is its floor, and how tall?

Will it have power, water or gas run to it?

Probably no building permit

Why: The model code exempts "one-story detached accessory structures, provided that the floor area does not exceed 200 square feet" (IRC R105.2), and towns stricter than that usually draw the line at 120 sq ft (Beaumont and Oakland, CA). Yours is under both.

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. Check the setbacks: how close to the property line and the house a shed may go is zoning, permit or not.
  3. A shed on a concrete slab or with deep footings: call 811 before you dig.

The code itself says an exemption "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" (IRC R105.2): no permit still means building it right.

The wiring or the plumbing needs a permit

Why: Running power, water or gas to a shed is installing a system, and the model code wants a permit for that (IRC R105.1: to "install, enlarge, alter, repair, remove, convert or replace any electrical, gas, mechanical or plumbing system"). The shed itself may still be exempt.

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. Usually a licensed electrician or plumber pulls the permit and does the work; some towns let a homeowner do it on their own house.
  3. The buried line to the shed has its own depth rules: call 811 before you dig.

Will it have power, water or gas run to it?

It depends on your town

Why: The model code exempts one-story detached sheds up to 200 sq ft (IRC R105.2, since the 2009 edition; before that it was 120). Some towns still stop at 120 sq ft (Beaumont and Oakland, CA), so a shed between the two needs a permit there and not elsewhere.

  1. Ask your building department one question: "What's the largest shed I can build without a permit?" Search for your city or county's name and "building permit", or call city hall.
  2. Check the setbacks and your HOA either way.
  3. Close to the limit? A shed 1 ft smaller each way can be the difference: 10 x 12 is 120 sq ft.

The code itself says an exemption "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" (IRC R105.2): no permit still means building it right.

A shed this size needs a building permit

Why: The model code's exemption is for one-story detached structures up to 200 sq ft (IRC R105.2). Bigger, two stories, or attached to the house, and it's a permit.

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. Bring a site plan (where it sits, the distances to the property lines and the house) and the shed plan: floor, walls, roof framing and the foundation.
  3. Expect zoning to check the setbacks and lot coverage.
  4. Digging footings or posts? Call 811 a few days before, so the buried lines get marked.

A building permit isn't the only rule: zoning (how close to the property line, how tall, how much of the lot), your HOA, and a historic district can all apply even when no permit is needed.

How tall will it be?

No building permit under the model code, but check zoning

Why: The model code exempts "Fences not over 7 feet high" (IRC R105.2). But fences are mostly a zoning matter: how tall in front and back, and where on the lot. Some cities want a fence permit from zoning anyway (Sioux Falls, SD: "A fence permit is required by the zoning division").

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall. Ask about the height limits for the front and the back yard.
  2. Know where the property line is: the plat or a survey. Many towns and HOAs say which side faces out.
  3. Digging footings or posts? Call 811 a few days before, so the buried lines get marked.

The code itself says an exemption "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" (IRC R105.2): no permit still means building it right.

Your town may want a permit

Why: The model code exempts fences up to 7 ft (IRC R105.2), but some cities exempt only up to 6 ft (Federal Way, WA and Beaumont, CA: "Fences not over 6 feet high"), and zoning often caps back-yard fences at 6 ft.

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. Know where the property line is before you set a post.
  3. Digging footings or posts? Call 811 a few days before, so the buried lines get marked.

A building permit isn't the only rule: zoning (how close to the property line, how tall, how much of the lot), your HOA, and a historic district can all apply even when no permit is needed.

A fence over 7 ft needs a permit

Why: The model code's exemption stops at 7 ft (IRC R105.2), and zoning usually allows less.

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. Bring the height, the post spacing and footing depth, and where it runs on the lot.
  3. Digging footings or posts? Call 811 a few days before, so the buried lines get marked.

A building permit isn't the only rule: zoning (how close to the property line, how tall, how much of the lot), your HOA, and a historic district can all apply even when no permit is needed.

What kind?

No building permit

Why: The model code exempts "Prefabricated swimming pools that are less than 24 inches deep" (IRC R105.2): a kiddie pool or a small soft-sided one.

  1. Empty it when you're not watching: a few inches of water is enough to drown a toddler.
  2. Plug the pump into a GFCI-protected outlet, not an extension cord.

A pool or hot tub like this needs a permit

Why: Only prefabricated pools under 24 in deep are exempt (IRC R105.2). Deeper pools and hot tubs need a permit, and the code that the IRC points to (the International Swimming Pool and Spa Code) sets the barrier: the fence, the gates and their latches, the doors from the house.

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. Ask for the barrier rules before you buy: fence height, self-closing and self-latching gates, door alarms. Towns change them (Prosper, TX wants a taller barrier than the model code).
  3. The pump and the heater's wiring need an electrical permit, usually from an electrician.

A building permit isn't the only rule: zoning (how close to the property line, how tall, how much of the lot), your HOA, and a historic district can all apply even when no permit is needed.

How tall is it, from the bottom of the footing to the top?

Probably no building permit

Why: The model code exempts "Retaining walls that are not over 4 feet in height measured from the bottom of the footing to the top of the wall, unless supporting a surcharge" (IRC R105.2). Some places stop at 3 ft (Montgomery County, MD and Alexandria, VA).

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. Measure from the bottom of the footing, not from the ground: a 3.5 ft wall on a buried course can be over 4 ft.
  3. Plan the drainage behind it (gravel and a perforated pipe): water pressure is what pushes walls over.
  4. Digging footings or posts? Call 811 a few days before, so the buried lines get marked.

The code itself says an exemption "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" (IRC R105.2): no permit still means building it right.

This retaining wall needs a permit

Why: Over 4 ft from the bottom of the footing, or holding up a surcharge (a driveway, a slope, a building or a fence above it), and the model code wants a permit (IRC R105.2). Many towns then want an engineer's design.

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. Ask whether they need an engineer's drawings: walls this tall often do.
  3. Digging footings or posts? Call 811 a few days before, so the buried lines get marked.

A building permit isn't the only rule: zoning (how close to the property line, how tall, how much of the lot), your HOA, and a historic district can all apply even when no permit is needed.

Is it attached to the house?

Probably a permit

Why: The model code doesn't name pergolas. Its small-structure exemption is for detached buildings (IRC R105.2), so a pergola or patio cover attached to the house is usually treated as an addition to it and needs a permit.

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. Bring how it attaches (the ledger and its fasteners), the post footings, and the span of the beams.
  3. Digging footings or posts? Call 811 a few days before, so the buried lines get marked.

A building permit isn't the only rule: zoning (how close to the property line, how tall, how much of the lot), your HOA, and a historic district can all apply even when no permit is needed.

How big is it?

Often no permit, but ask

Why: The model code doesn't name pergolas. Many towns treat a freestanding one like a shed: no building permit up to 200 sq ft (Maplewood, MN: "Gazebos and pergolas which are larger than 200 square feet require a building permit"). Others ask for one either way.

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. A building permit isn't the only rule: zoning (how close to the property line, how tall, how much of the lot), your HOA, and a historic district can all apply even when no permit is needed.
  3. Digging footings or posts? Call 811 a few days before, so the buried lines get marked.

The code itself says an exemption "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" (IRC R105.2): no permit still means building it right.

A pergola this size likely needs a permit

Why: Freestanding but over 200 sq ft: past the model code's small-structure exemption (IRC R105.2) and past the line towns like Maplewood, MN draw for pergolas.

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. Bring the post footings, the beam spans and the site plan.
  3. Digging footings or posts? Call 811 a few days before, so the buried lines get marked.

A building permit isn't the only rule: zoning (how close to the property line, how tall, how much of the lot), your HOA, and a historic district can all apply even when no permit is needed.

Usually no building permit

Why: The model code exempts "Sidewalks and driveways" (IRC R105.2), and a patio slab on the ground is usually treated the same way. Work at the street, like a new curb cut or a driveway apron, is the city's, and needs their approval.

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. Check how much of your lot can be paved: some towns limit hard surfaces for drainage.
  3. Slope it away from the house: about 1/8 to 1/4 in per foot.
  4. Digging footings or posts? Call 811 a few days before, so the buried lines get marked.

The code itself says an exemption "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" (IRC R105.2): no permit still means building it right.

Replacing a water heater needs a permit almost everywhere

Why: Water heaters aren't on the model code's list of exempt work, and it wants a permit to "replace" a plumbing, gas or electrical system (IRC R105.1). Towns say it plainly: "Permits are required for all water heater replacements" (Morgan Hill, CA); a gas one needs a permit "even if it is a like-for-like replacement" (Fairfax County, VA).

  1. A plumber usually pulls the permit as part of the job; ask them to. Doing it yourself: many towns give homeowners a permit for their own house.
  2. The inspector checks the relief valve and its pipe, the gas line and the venting, the expansion tank if the code wants one, and in some states the earthquake straps.
  3. Keep the permit card: it matters when you sell the house.

A new roof usually needs a permit

Why: A roof replacement isn't on the model code's exempt list (IRC R105.2), and towns ask for one: "A building permit is required to replace roof covering materials (re-roof) except when the replacement area is 10 percent or less of the roof area" (Arlington, TX).

  1. A roofer usually pulls the permit; make sure yours does and that it's in the contract.
  2. Ask whether the old shingles must come off: the code limits layers, and a replacement goes down to the roof deck (IRC R908).
  3. Small repairs (a few shingles) are often exempt: ask where your town draws the line.

What kind of electrical work?

Usually no permit, but ask

Why: The model code exempts minor repairs, like "the replacement of lamps", and reinstalling a receptacle, but not new outlets (IRC R105.2). Many towns treat swapping a switch, an outlet or a light fixture for the same kind, in the same box, as minor; some want a permit for any wiring.

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. Turn the breaker off and test the wires with a tester before you touch them.
  3. Swapping an outlet: the outlet guide walks you through it, safely.

New wiring needs an electrical permit

Why: A new circuit, a new outlet or light where there wasn't one, or panel work is installing or altering an electrical system, and the model code wants a permit for that (IRC R105.1).

  1. Most of this is an electrician's job, and they pull the permit.
  2. Some towns let homeowners wire their own house with a permit and an inspection: ask yours.

No permit for low-voltage work

Why: The model code exempts wiring and devices "operating at less than 25 volts and not capable of supplying more than 50 watts of energy" (IRC R105.2): a doorbell, a thermostat's wires, low-voltage landscape lights on a plug-in transformer.

  1. Turn off the breaker for the transformer or the furnace before you touch its terminals anyway.

What's the job?

No permit for repairs

Why: The model code exempts "The clearing of stoppages or the repairing of leaks in pipes, valves or fixtures, and the removal and reinstallation of water closets", as long as nothing is replaced or moved (IRC R105.2).

  1. Shut the water off at the fixture's valve (or the main) before you open anything.
  2. The toilet and faucet guides walk through the common fixes.

It depends on your town

Why: The model code's exemption stops at repairs; it doesn't cover "the replacement or rearrangement of valves, pipes or fixtures" (IRC R105.2). Many towns don't ask for a permit to swap a faucet or a toilet for a new one in the same place; some do.

  1. Ask your building department before you start: they decide, and they can tell you in a minute. Search for your city or county's name and "building permit", or call city hall.
  2. A new fixture in a new spot, or new pipes in the wall, is new work and needs a permit everywhere.

New pipes need a plumbing permit

Why: Moving a fixture, adding one, or replacing pipe in the walls is new plumbing work, and the model code wants a permit (IRC R105.1; R105.2 says replacing a defective concealed pipe "shall be considered as new work").

  1. A plumber usually pulls the permit.
  2. A bathroom remodel often needs building and electrical permits too: ask once for all of them.

No permit

Why: The model code exempts "Painting, papering, tiling, carpeting, cabinets, counter tops and similar finish work" (IRC R105.2).

  1. Moving a wall, a window or a door, or changing the plumbing or the wiring behind the new finishes is different: that needs a permit.
  2. Living in a condo or a historic district? Your association or the district may have its own rules.

Find your building department

Permits come from your city, or the county outside city limits. Type your town and we'll search for its permit page:

Where the answers come from

  1. The rules are the International Residential Code's, the model code most US towns adopt for houses: R105.1 (when a permit is needed) and R105.2 (the work exempt from one), in the 2021 and 2024 editions.
  2. Where towns differ comes from cities' own permit pages, named in each answer: Montgomery County, MD; Oakland and Beaumont, CA; Federal Way and Kirkland, WA; Sioux Falls, SD; Fairfax County and Alexandria, VA; Arlington, TX; Maplewood, MN.
  3. The shed limit went from 120 to 200 sq ft in the 2009 IRC (ICC change RB4-07/08), which is why some towns still say 120.

The model code's lines

Shed
one story, detached, up to 200 sq ft
Fence
up to 7 ft
Retaining wall
up to 4 ft from the bottom of the footing, holding nothing up
Deck
up to 200 sq ft, 30 in high, freestanding, no door onto it
Pool
prefabricated, under 24 in deep

Not legal advice: your building department decides. Not yet reviewed by a building official.

Questions people ask

Do I need a permit to build a deck?

Usually. The model code most towns use exempts only decks of 200 sq ft or less, no more than 30 inches above the ground, not attached to the house and not serving its exit door; some towns want a permit for every deck.

How big a shed can I build without a permit?

The model code exempts one-story detached sheds up to 200 sq ft, but some towns stop at 120 sq ft. Ask your building department for your town's number.

Do I need a permit to build a fence?

Not under the building code for fences up to 7 ft (some towns say 6 ft), but zoning sets fence heights and some towns want a fence permit anyway.

Do I need a permit to replace a water heater?

Almost everywhere, yes, even for a like-for-like replacement. A plumber usually pulls it as part of the job.

Do I need a permit for a new roof?

Usually, yes: a re-roof isn't on the model code's exempt list, and most towns ask for one; small repairs are often exempt.

More apps