Get started
Menu

Do You Need a Permit to Put a Fence Up? Zoning vs Building

Alexander Novak Updated 28 November 2026 13 min read

ScaledPlans · Field notesGet started
Plans in. Quantities out.Get started
New cedar privacy fence going up in a backyard, freshly set posts with an orange string line, a few panels hung, plan sheets, a level and a tape measure on a sawhorse in front, golden evening light

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.

Comparison card: a building permit checks structure and is needed for fences over 7 ft under the IRC model code, while a zoning or fence permit checks height by yard, location and material and is set by your city
The building code skips most fences. Zoning does not.

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
Short white picket fence along a front yard beside a public sidewalk, a gray house and garage behind it, a sawhorse with a drill and rolled plan sheets nearby
A low, open fence is the usual front yard shape

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.

Worked example: a 6 ft panel on an 8 inch grade drop measures 6 ft 8 in, and adding a 1 ft lattice topper makes it 7 ft 8 in, over the 7 ft IRC exemption
The topper on the slope crosses 7 ft

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
Matrix of five fences: a 6 ft backyard privacy fence, 4 ft front yard picket and like for like repair usually need no building permit, an 8 ft fence requires one and a pool fence often does
One location change can flip the answer

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.

Tall cedar board privacy fence running along a side property line between two backyards, the neighbor's roof showing above it, plan sheets and a tape measure on a work table
A 6 ft privacy fence along the side lot line

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.

Checklist for pool barriers: 48 inch minimum height, self-closing gate, latch at 54 inches or on the pool side, gate swings away from the pool, no gaps that pass a 4 inch sphere
Pool barriers carry their own checklist
Black aluminum pool fence and gate around a backyard in-ground pool, the latch mounted at the top of the gate post, plan sheets and a tape measure on a wooden bench in front
A pool gate with its latch mounted up high

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.

Red and yellow utility locate flags and a red painted line in a lawn beside a freshly dug fence post hole, a post hole digger on the dirt pile and a wooden post leaning against the house
Locate marks first, post holes second

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

  1. 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.

  2. 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.

  3. 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?

  4. Contact 811

    Request a free utility locate a few business days before digging, and wait for the marks.

  5. Keep the reply

    Save the written answer with your house papers for a buyer, a lender or a neighbor dispute later.

Five step card for getting a fence permit answer in writing: find your lot lines, sketch the run, email zoning and building, call 811, keep the reply
A sketch and one email get you a written answer

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

Can you replace your own fence without a permit?

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.

Do I need my neighbor's permission to put up a fence?

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.

What permits are needed for fence installation?

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.

Get started

About the author

Alexander Novak

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