Introduction
A fence is a structure on your property line, and structures near property lines are regulated. Permits, height limits, setbacks, utility locates, HOA rules — the compliance side of a fence project isn’t glamorous, but it’s the part that can stop a project cold: a stop-work order, a forced relocation, or a neighbor dispute that costs more than the fence did.
The Fence Post Calculator handles the engineering quantities — posts, holes, concrete. This guide covers the regulatory ones: what to check, where to check it, and when. Fence regulations vary widely by jurisdiction, so this guide deliberately avoids citing specific code sections — your local building authority (the AHJ, or Authority Having Jurisdiction) is the only source that counts.
Permits: Do You Need One?
Whether a fence needs a building permit depends on your jurisdiction and the fence itself. Common triggers include:
- Height. Many jurisdictions require permits above a threshold height — commonly around 6 ft (1.8 m) for side and rear yards, lower for front yards. A 6-ft privacy fence sits right at the line where permits often kick in.
- Location. Corner lots, fences near sidewalks, and fences in drainage or utility easements face extra rules.
- Material and type. Some areas restrict certain materials or require specific designs in historic districts.
- Pool enclosures. Fences around swimming pools are regulated almost everywhere, with specific requirements for height, gate latching, and climbability — a separate and stricter regime than an ordinary yard fence.
The permit question is answered by one phone call or website visit to your local building or planning department. Ask three things: is a permit required for my fence, what are the height and setback limits, and are there easements on my lot the fence must avoid? The estimating guide explains how setbacks change your measured run lengths.
Setbacks and Property Lines
Know where your line is
Don’t guess the property line from the neighbor’s fence, the sidewalk, or “about where the old one was.” If there’s any uncertainty — and there’s usually some — a survey (or the existing survey markers, verified) is far cheaper than rebuilding a fence six inches onto the neighbor’s lot. Fence disputes are among the most common and most bitter neighbor conflicts; a survey is the cheapest insurance.
Respect the setback
Most jurisdictions require fences to sit inside the property line by a specified distance — commonly a few inches to a foot or more, sometimes more for front yards. Measure your fence runs from the actual fence line, not the property boundary, since the setback shortens the runs. Utility and drainage easements are effectively no-build zones: the fence must avoid them entirely, because the easement holder can require removal.
The “good side” rule
Many jurisdictions and HOAs require the finished (good) side of the fence to face outward — toward the neighbor or the street. This affects material ordering (which side the pickets go on) rather than the post count, but check before the panels go up: flipping a finished fence is an expensive lesson.
Utility Locates: Call Before You Dig
In the US, calling 811 (or your state’s one-call center) arranges free marking of buried public utilities — gas, electric, water, sewer, communications — typically within a few business days. Key points:
- It’s free to the excavator.
- It’s legally required before digging in most states — including hand digging post holes.
- It marks public utilities; private lines (irrigation, landscape lighting, a gas line to your own grill) are your responsibility to locate.
- Marks expire — typically after a couple of weeks — so schedule the locate close to your dig date.
- Hand-dig carefully within the tolerance zone around marked lines.
Outside the US, every country has its own equivalent service — check with your local authority. The principle is universal: never put an auger in the ground blind. This step is also the first item on the install-day checklist.
HOA and Deed Restrictions
Homeowners associations and deed restrictions can regulate fences more strictly than the city does — and they can do it in ways you’d never guess:
- Approved materials, colors, and styles (sometimes down to a specific product list).
- Maximum and minimum heights, sometimes different from the city’s.
- Required setbacks larger than the jurisdiction’s.
- Prohibited fence types in front yards.
- Architectural review before construction — building first and asking later can mean tearing it down.
Get HOA approval in writing before ordering materials. The HOA’s rules are a private contract you agreed to when you bought the property — “the city said it was fine” is not a defense against them.
Height Limits and Special Cases
Front vs. rear yards
Front-yard fences are typically limited to lower heights (often 3–4 ft / 0.9–1.2 m) than side and rear yards (often 6 ft / 1.8 m), for sight-line and neighborhood-character reasons. Corner lots often have additional sight-triangle restrictions near the intersection.
Pool fences
Pool enclosure fences are regulated separately and strictly in most jurisdictions: minimum heights (commonly 4–5 ft), self-closing and self-latching gates, latch placement out of children’s reach, and limits on horizontal members that could be climbed. If your fence encloses a pool, research the pool-barrier requirements specifically — they override the ordinary fence rules.
Drainage and floodplains
Fences in drainage paths or floodplains may need to allow water passage (open designs rather than solid privacy fences) or may be restricted entirely. If your lot has a drainage easement or sits in a mapped floodplain, ask the building department before designing.
Working With the AHJ
The Authority Having Jurisdiction — your city or county building department — is the final word on what your fence must satisfy. A productive approach:
- Ask early, before ordering materials or finalizing the design.
- Bring a sketch: lot dimensions, fence location, heights, gate locations. It makes the conversation concrete and fast.
- Ask about inspections: some jurisdictions inspect post holes before the concrete goes in (depth verification) — schedule the work so an inspection doesn’t strand open holes.
- Get it in writing: permit approvals, variances, and verbal guidance you relied on. Paper beats memory in every dispute.
- Budget the fee and the time: permit fees are usually modest, but review can take days to weeks — plan the project schedule around it.
None of this changes the post arithmetic — 20 posts still need 80 bags — but it changes where those posts are allowed to stand and how tall the fence on top of them can be. The pro tips guide covers the installation practices that keep the built fence matching the approved plan.
Related Guides
- Estimating Guide — measuring runs and choosing spacing.
- Install-Day Checklist — everything to verify before you start digging.
- DIY vs Pro — when to dig the holes yourself and when to hire.
- Complete Guide — the full overview of fence post planning.
- FAQ — quick answers to the most asked questions.
Frequently Asked Questions
Do I need a permit to build a fence?
It depends on your jurisdiction, the fence height, and the location. Many areas require permits for fences above a threshold height (commonly around 6 ft). Check with your local building department before starting — it’s one phone call.
How far inside the property line must a fence be?
Setback requirements vary by jurisdiction and sometimes by HOA — commonly a few inches to a foot or more. Verify your property line with a survey if there’s any doubt, and measure runs from the actual fence line.
Is calling 811 really required for post holes?
In most US states, yes — the one-call locate law applies to any digging, including hand-dug post holes. It’s free, and striking a buried utility is far more expensive than the few days’ wait.
Get Your Number
Compliance first, concrete second: confirm the permit, the setback, the HOA approval, and the utility locate — then run the Fence Post Calculator for the quantities. A fence that’s legal, well-placed, and correctly estimated is a fence you build exactly once.
Disclaimer: Calculator results are planning estimates based on the dimensions you enter. Verify quantities with your supplier and consult a licensed professional or your local building authority for structural or code-related decisions.
