Do You Need a Permit to Put a Fence Up? Zoning vs Building
Alexander Novak Updated 28 November 2026 13 min read
In this article
Do you need a permit to put a fence up? Often yes, but usually not the permit people expect. Under the model building code most US cities use, a fence 7 feet tall or less needs no building permit at all. The permit most fences need comes from zoning, and it is about where the fence goes and how tall it is in each part of the yard.
That split is the whole answer. People search their building code, find the fence exemption and stop. Then the zoning office sends a letter about a 6 foot privacy fence in the front yard, a fence over the property line or a pool fence with the wrong gate. The structure was never the problem. The location was.
| Your fence | Building permit under the model code? | Zoning or fence permit? |
|---|---|---|
| 7 ft or less, side or back yard | Not required | Often required, check locally |
| 7 ft or less, front yard | Not required | Often required, with a lower height limit |
| Over 7 ft anywhere | Required | Usually required too |
| Around a swimming pool | Often required as a pool barrier | Usually required |
| Like for like repair of a few boards | Not required | Often not, ask first |
Do you need a permit to put a fence up? Two different offices
Most US cities and counties base their house rules on the International Residential Code. Its list of work exempt from a building permit, IRC R105.2, includes item 2 in the 2021 edition: fences not over 7 feet high. Your state or city adopts its own edition and can amend it, so confirm the number where you live.
The building exemption does not touch zoning. Zoning is a separate code, run by a separate desk, that controls what you can put where on a lot. Fences are one of the things it controls most often: height by yard, distance from the street, corner sight lines, materials and sometimes which side faces out. Many cities make you file a short fence or zoning permit for any new fence so they can check those rules before the posts go in.

So ask two questions, not one. Does the building department need a permit for a fence this tall? And does the zoning office need a permit for a fence in this spot? The first answer is usually no. The second one is the one that decides your project. Once both answers are settled, size the footings with our chart of how many bags of concrete per fence post before you buy.
How tall can a fence be without a permit?
Under the IRC model code, 7 feet for the building permit. Zoning heights are set by each city, and front yards almost always get a lower limit than side and back yards, because a tall solid fence near the street blocks the view of drivers and walkers. Your city's zoning code or fence handout names the exact numbers for each yard.
| Where the fence goes | What usually sets the height | What to look up |
|---|---|---|
| Front yard, facing the street | Zoning front yard limit, often the lowest | Front yard height and whether open or solid matters |
| Side yard behind the front of the house | Zoning side yard limit | Where the front yard ends on your lot |
| Back yard | Zoning rear yard limit | Rear yard height, easements |
| Corner lot near the intersection | Sight triangle rule | The clear zone at the corner |
| Any yard, over 7 ft | Building code plus zoning | Both permits, and often a variance |

The front yard is where most fence trouble starts. A 6 foot privacy fence that is fine 30 feet back can be over the limit once it turns the corner toward the street. On a corner lot you have two front yards in many codes, so the low limit runs down both sides that face a street.
How to measure fence height on a slope
Measure from the finished ground to the top of the fence, and do it at the low end of each panel. That is the usual method, but your code says exactly where to measure, so check the definition before you buy panels. On flat ground it does not matter. On a slope it is the difference between passing and not.
Here is a fictional yard. A 6 foot panel stepped down a slope can have 8 inches of open ground under its low end. Measured there, the fence is 6 feet 8 inches. Add a 1 foot lattice topper and it is 7 feet 8 inches, over the model code exemption, even though every panel on the delivery truck said 6 feet.

Posts count too. A post cap that sticks up a few inches above the panels is part of the fence in many codes. If you are close to a limit, plan the post tops to the limit, not the boards. Standard post and rail sizes are in our lumber dimensions chart, and they matter when you work out how much post sits above grade.
Fence permits by situation
Here is the usual verdict for the fences people actually build. Each row assumes an IRC based building code with no local change to item 2. Your zoning code is the variable.
| Situation | Building permit under the model code? | What to check first |
|---|---|---|
| 6 ft privacy fence in the back yard | Usually not | Rear yard height and easements |
| 4 ft picket or open fence in the front yard | Usually not | Front yard height, open vs solid |
| 8 ft privacy fence | Required | Whether zoning allows 8 ft at all |
| Fence around a pool | Often required as a barrier | Gate, latch and height rules |
| Replacing a few damaged boards or one panel | Usually not | Whether your city counts it as repair |
| Tearing out and replacing the whole fence | Usually not, zoning may want one | Whether the old fence met today's rules |
| Retaining wall with a fence on top | Often required for the wall | Total height and wall height |

Two rows deserve a note. Replacing a whole fence is where people get caught: the old fence may have been built before the current zoning rules, and a new one has to meet today's rules, not the old height. And a fence on top of a retaining wall is measured very differently from place to place, so ask before you stack them.

The same pattern runs through every small backyard project. Our guides to shed permits, deck permits and pergola permits work through the same exemption list for other structures.
Do you need a permit for a pool fence?
Usually yes. A fence around a swimming pool is a safety barrier, not just a fence, and most offices review it on its own terms even where other fences need no permit. In many places the barrier is part of the pool permit itself, and the pool cannot pass final inspection until the fence and gates do.
The checks are specific. The federal CPSC pool barrier guidelines call for a barrier at least 48 inches high, gates that close and latch on their own, a latch at least 54 inches up or on the pool side, and no openings a small child can climb through. Your local code may add to that list.


Property lines, neighbors and 811
No permit office decides where your property line is. You do, from your survey or recorded plat, and if you are not sure, a licensed surveyor marks it. Do not use the old fence as the line. Old fences are often a foot or more off, in either direction, and a new fence built on the old one's mistake carries it forward. Price the fence from those boundary lengths, not the acreage: one acre can need anywhere from 835 to 1,452 ft of fence depending on its shape.
Before you dig the first post hole, contact 811. It is free, and call811.com asks you to reach out a few business days before you begin any digging, fences included. The utility companies then mark their buried lines with paint and flags so your auger does not find a gas line. While you wait for the marks, work out the concrete: ten typical post holes take about 20 bags of 80 lb mix, and how many bags of concrete come on a pallet shows why that is under half a pallet. If you would rather carry lighter bags, the fence post math in 60 lb bags works out to 13 bags for ten 8 in holes.

How to find out if your fence needs a permit
The free method takes an evening and one email. It works whether you are a homeowner or a fence contractor quoting the job.
How to check if your fence needs a permit
- Find your lot lines
Pull your survey or plat and mark the lines on the ground with the corner pins if you can find them. Do not measure from the old fence.
- Sketch the fence run
Draw each run with its height, material, gates and the distance to each lot line and the street. Note any pool, slope or corner lot.
- Ask zoning and building in writing
Email both desks the sketch and ask two questions: do I need a permit for this fence, and does it meet the height and location rules?
- Contact 811
Request a free utility locate a few business days before digging, and wait for the marks.
- Keep the reply
Save the written answer with your house papers for a buyer, a lender or a neighbor dispute later.

When the answer is yes, the office will usually ask for a site plan: the lot, the house, every fence run with its height, gates and distance to the lines. Our site plan for permit guide shows what a fence site plan needs, and the general site plan guide covers the drawing itself.
Here is the wall. The free method gets you a yes or no, but a yes means drawing that site plan to scale, measuring every run and turning it into a post, rail and board count before you can quote or order. Doing it by hand means redrawing every time the owner moves a gate. Run the post and rail math in the framing calculator first.
ScaledPlans measures your plan or photos and drafts the permit site plan and material takeoff, and you check every quantity before you submit or price it. Get started when the office asks for a drawing.
Fence permit mistakes and what they cost
| Mistake | What it costs you |
|---|---|
| Checking only the building code exemption | A zoning violation on a fence that needed a zoning permit |
| Using the old fence as the property line | A fence on the neighbor's land, or a strip of your yard given away |
| Running a tall privacy fence into the front yard | An order to cut it down or move it |
| Measuring height at the high side of the slope | A fence over the limit at its low end |
| Adding a lattice topper later | A legal fence turned into an over height one |
| Digging before the 811 marks | A hit utility line, a repair bill and a safety risk |
| Treating a pool fence like any fence | A failed pool inspection and a gate to replace |
What happens if you skip a permit you needed depends on the city, but the usual list is a notice of violation, fines, a demand to apply after the fact, or an order to lower or remove the fence. Most of these surface at the worst time: when a neighbor complains, or when you sell and the buyer asks about the fence.
The bottom line
You often need a permit to put a fence up, but it is usually a zoning or fence permit, not a building permit. Under the IRC model code, a fence 7 feet or less is exempt from the building permit. Zoning still sets the height for each yard, the sight lines near the street and the rules for pools, and many cities want a short permit for any new fence.
The one habit that matters most is checking the location before the height: front yard, corner lot and pool are where fences fail. Get the answer in writing, call 811, then dig.
Frequently asked questions
Often, for a repair. Replacing a few boards or one damaged panel at the same height and spot is usually treated as maintenance. Tearing out and replacing the whole fence is different in many cities: the new fence has to meet today's zoning rules, and some offices want a permit for it. Ask your zoning office before you order materials.
Usually not for a fence fully on your own land, but you do need to know where your land ends. Use your survey, not the old fence, and keep the fence inside your line unless you and the neighbor agree in writing to share it. Some cities also require the finished side to face out, so check your zoning code.
Usually a zoning or fence permit from the city, and a building permit only for a fence over 7 feet under the IRC model code. A pool barrier often needs its own review or is part of the pool permit. Check both desks in writing, and contact 811 before digging.
Put it on your next bid
Plans in. Checked quantities out.
Upload the plan you are bidding, review every quantity on the drawing and export the list.
Share article
About the author
Founder
Alexander Novak founded ScaledPlans and builds the product: how plans are measured, what each document includes and how every number stays checkable on the drawing.
More articles
Permits & site plans · 12 min Joist Span Chart for Decks: 2x6 to 2x12 by Spacing
The full deck joist span chart from the 2021 IRC: 2x6 through 2x12 at 12, 16 and 24 inches on center for southern pine, fir and cedar, how snow load shortens it, how far you can cantilever, and a 12 ft deck worked out both ways.
Permits & site plans · 11 min How Many Square Feet in an Acre? 43,560 and How It Looks
An acre is 43,560 square feet, about 208.7 ft on each side if it were a square. Here is the acre to square feet chart, common lot sizes in acres, a worked lot example, and why two one acre lots can need very different amounts of fence.
Permits & site plans · 12 min Building a Deck: How to Do It in 7 Steps, From Footings Up
Lay it out, pour footings below the frost line, bolt a flashed ledger, set posts and a beam, hang the joists, then deck it. Design it in the opposite order: the boards set the joist spacing, and the joists set the beam and footings.
Permits & site plans · 13 min Do You Need a Permit to Remodel a Kitchen? 8 Triggers to Check
Most cosmetic kitchen remodels need no permit: paint, flooring, backsplash, cabinets and countertops in the same layout are finish work under the IRC model code. Move the sink, add an outlet or circuit, run a gas line, duct a hood outside or change a wall, and you usually need plumbing, electrical, gas or building permits. Here is the job by job answer and how to get it in writing.
Permits & site plans · 13 min Do You Need a Permit to Replace a Water Heater? Usually Yes
Most US cities require a permit to replace a water heater, even a same spot swap: the code exempts repairs, not new equipment. Here is which permits each job needs, what the inspector checks on the vent, gas line and relief valve, and how to get the answer in writing.
Permits & site plans · 12 min Do You Need a Permit for a Bathroom Remodel? Job by Job Answers
Most cosmetic bathroom remodels need no permit: paint, tile and fixtures set back in the same spot are finish work under the IRC model code. Move a fixture, replace pipe or wiring in a wall, add a circuit or a fan, or change a wall, and you usually need plumbing, electrical or building permits. Here is the job by job answer and how to get it in writing.