Ballpark Lab
Fence · How it works

Do You Need a Permit to Build a Fence?

Ballpark Lab Research TeamUpdated July 6, 20264 min read

Probably, yes: most U.S. cities and towns require a permit for a new fence, typically costing $50–$250 (about $150 in most places), and nearly all of them cap heights — usually 6 ft in back and side yards, 3–4 ft in front. The permit is the cheap part; the expensive mistakes are building over the property line or ignoring the HOA. Here's the checklist, in the order to run it.

1. The permit: $50–$250, and worth every dollar

Fence permit rules are hyper-local, but the pattern across the U.S. looks like this:

  • Most municipalities require a permit for any new fence; almost all require one above a threshold height, commonly 6 ft (7–8 ft in a few West Coast cities).
  • Cost: $50–$250 — we carry a mid allowance of $150 in the fence cost calculator.
  • The application usually wants a simple site plan: your lot, the fence line, heights, gate locations, and distances to property lines. Some offices require a plat or survey.
  • Rural and unincorporated areas often skip permits entirely — but deed restrictions and pool-barrier laws still apply.

Skipping the permit risks a stop-work order, fines, and — worst case — tearing out a non-conforming fence. Against a $5,000+ project (here's what fences cost in 2026), a $150 permit is noise.

2. Height limits: 6 ft back, 4 ft front

The most common code pattern in America:

  • Back and side yards: up to 6 ft without special approval. This is why 6 ft is the standard privacy-fence height.
  • Front yards: 3–4 ft, and often open styles only (picket, aluminum) rather than solid privacy panels.
  • Corner lots: a "sight triangle" near the intersection where fences must stay low (often ~3 ft) so drivers can see.
  • Over 6 ft: usually a variance or engineered permit. If you're pricing an 8-ft fence, resolve this before you fall for the quote.

These are typical values, not your values — a five-minute call to your building department settles it.

3. The property line: survey first, build second

More fence money is wasted on boundary mistakes than on any other error. The failure mode: you build to the old fence line, a hedge, or "where we always mowed," and it turns out to be two feet into the neighbor's parcel. Now you're negotiating, or rebuilding.

  • Get a boundary survey if you have any doubt — it costs a few hundred dollars and stakes the actual corners. Some permit offices require it anyway.
  • Build just inside your line. Many jurisdictions allow a fence on the line only with a neighbor agreement; others require a small setback.
  • Talk to the neighbor first. In some states, "good neighbor" fence laws can even obligate cost-sharing on a boundary fence — and either way, a heads-up prevents the dispute that turns into a survey war.

4. The HOA: a second, often stricter, approval

If you're in an HOA, city approval isn't enough. Architectural review committees commonly regulate material (chain-link is widely banned in front-facing locations), color, style, height, and even which direction the finished side faces. Submit before you sign a contract — HOAs can and do force removal of unapproved fences, and installers won't eat that cost.

5. Pools: the fence that isn't optional

If the fence encloses a pool, a different body of law kicks in. Most states mandate a pool barrier of at least 48 inches with self-closing, self-latching gates that open away from the pool, and many regulate climbability (rail spacing, mesh size) and door alarms on house walls that form part of the barrier. This is life-safety code, inspected and enforced. We keep a state-by-state breakdown in the pool permits, codes & safety guide — and if you're pricing the whole project, the pool cost calculator carries fencing as a line item.

6. Call 811 before anyone digs

Fence posts go 2 feet or more into the ground — deep enough to find gas, electric, cable, and water lines. Federal law and every state require calling 811 (or filing online) before digging; utilities come mark their lines for free, usually within a few business days. A pro crew will handle this, but confirm it happened before the augers show up — homeowner-dug post holes cause a depressing number of utility strikes. It's step one of the actual build; see how a fence is installed for the rest.

The pre-contract checklist

  1. Call the building department: permit needed? Height limits? Setbacks? Survey required?
  2. Locate your true property line (survey if uncertain) and talk to affected neighbors.
  3. Submit HOA architectural review, if applicable.
  4. If a pool is involved, verify barrier code compliance in the design.
  5. Confirm the 811 locate is scheduled.
  6. Only then compare quotes.

Get your number

Rules tell you what you can build; the calculator tells you what it costs — including the permit allowance, gates, and removal. Run your footage, material, and height and get a low/mid/high estimate to hold against bids.

Open the fence cost calculator →

Run your own number

Estimate installed fence cost by material, height, and length — posts, panels, concrete, gates, and removal, with a low–high range and confidence score.

Estimate my cost →

Frequently asked questions

Do you need a permit to build a fence?
In most U.S. cities and towns, yes — especially for fences over a threshold height, commonly 6 ft. Permits typically cost $50–$250. Some rural and unincorporated areas skip permits entirely, so the only reliable answer comes from your local building department.
How tall can a fence legally be?
The typical U.S. pattern is up to 6 ft in back and side yards and 3–4 ft in front yards, with anything taller requiring a variance or special permit. Corner lots often face extra sight-triangle restrictions near the intersection. Exact numbers vary by municipality, so check your local code.
Can my neighbor build a fence on the property line?
Rules vary by state and city. Many places allow a fence directly on the line with the neighbor's agreement, while others require a setback of a few inches to a few feet. The practical answer: get a survey, build just inside your own line, and talk to the neighbor before the crew shows up.
Do I need a survey before installing a fence?
It's strongly recommended, and some permit offices require a plat or survey with the application. A boundary survey costs a few hundred dollars; building even a foot over the line can mean tearing out and rebuilding the fence at your expense, plus a neighbor dispute.
What happens if you build a fence without a permit?
Common outcomes are a stop-work order, a fine, paying for the permit retroactively, and in the worst case being ordered to modify or remove a non-conforming fence. Unpermitted work can also surface during a home sale. For a $50–$250 permit, it isn't worth the risk.
Related guides

A ballpark estimate for planning — not a final quote. Fence data last updated July 1, 2026.