The Rules Before You Build a Fence
Independent research · Last reviewed August 2026 · General orientation, not legal advice
The short answer
Four things govern your fence: city or county code (height, setback, permits), your HOA (often stricter), property law (where your line actually runs), and pool barrier code if you have a pool. Typical limits are 6 ft in back yards and 3–4 ft in front — but every one of these is local, so confirm before you buy anything.
What actually governs your fence
Fence rules feel confusing because several separate systems apply at once, and people tend to ask one authority about all of them. Here's who controls what:
| What | Controls | Ask |
|---|---|---|
| City / county zoning code | Height, setback, materials in some areas, corner-lot sight lines, permits | Your city or county planning or building department |
| Building permit process | Whether you need one, and inspection | Same department — see the permits page |
| HOA covenants (CC&Rs) | Style, colour, material, height — often stricter than the city | Your HOA's architectural committee |
| Property law / your deed | Where your boundary actually runs; easements | Your deed, plat map, and a licensed surveyor |
| Pool barrier code | A separate, stricter standard if you have a pool | Building department — see pool requirements |
The rule that trips people up: city code and HOA covenants apply independently. An HOA can forbid a six-foot fence the city would happily permit — but it can never authorise something the city prohibits. You need a yes from both.
The order to do this in
Doing these out of order is how people end up moving a finished fence. The sequence that avoids that:
- Find your actual boundary. Deed, plat map, and survey pins — before anything else.
- Check your height limit and setback with the city or county for your specific lot.
- Get HOA approval if you have one — submit before you order, not after.
- Confirm the permit requirement and who is pulling it.
- Talk to your neighbour if the fence is anywhere near the shared line.
- Then choose materials and get quotes.
Property lines and setbacks
The single most expensive fence mistake is building in the wrong place. A fence over the boundary can have to come down at your cost, and in some circumstances long-standing encroachments create genuine legal complications.
Find the line properly
In rough order of reliability: your deed and plat map (usually available from the county recorder), existing survey pins at the lot corners — often iron rods a few inches down, findable with a metal detector — and, definitively, a new survey by a licensed surveyor. Do not rely on the previous fence, a hedge line, or where the mowing stops; all three are frequently wrong. Online parcel maps and satellite overlays are useful orientation but are not survey-accurate and should never be the basis for placing a fence.
Where you're allowed to put it
Many jurisdictions expect the fence a few inches inside your line, which keeps the whole structure — including footings and any lean — on your land and leaves room to maintain the far side. Some allow building directly on the line by agreement with your neighbour, which makes it a shared fence with shared obligations. Some require a genuine setback from the street or sidewalk.
If you build inside your line, remember you still have to maintain the outside face — which, in practice, means asking your neighbour to step onto their land.
Height limits
Typical residential limits, though yours may differ:
- Back and side yards: commonly 6 ft, sometimes 8 ft with a permit.
- Front yards: commonly capped at 3–4 ft for visibility and street character.
- Corner lots: a sight triangle near the intersection usually limits height to around 3 ft so drivers can see — the rule most often missed.
- Pool barriers: a separate standard, usually 48–60 in with additional requirements.
This matters commercially, not just legally: if you want a privacy fence in a front yard capped at 4 ft, the honest answer is that a fence can't deliver privacy there and planting is the better route. Check the limit before you fall in love with a design.
If you need more height than allowed, most jurisdictions have a variance process — an application, a fee, sometimes a hearing where neighbours can object. It's slow but it exists.
Neighbours: ownership, cost-sharing, and the finished side
Who owns it
Generally, whoever paid for it and whose land it sits on. A fence entirely inside your boundary is normally yours alone — you maintain it and you decide about it. A fence straddling the line is typically jointly owned, with both owners responsible for upkeep. Several states have statutes about shared boundary fences and cost-sharing, and they differ enough that a real dispute warrants local legal advice rather than a general article.
Splitting the cost
If a neighbour agrees to share, put it in writing before work starts — who pays what, who owns it, who maintains which side, and what happens if one of you sells. A short signed note covering those four points prevents most of the disputes that otherwise surface years later. A neighbour is under no obligation to contribute to a fence you want and they don't, unless a local statute says otherwise.
Which side faces out
Convention — and in some places code or HOA rules — puts the finished side facing outward, leaving posts and rails on your side. It's worth doing even where it isn't required; it's the cheapest goodwill available on a shared boundary. A shadowbox or board-on-board fence looks identical from both sides and sidesteps the issue entirely, which is exactly why it's marketed as a “good neighbour” fence.
Tell your neighbour before work begins, even when you don't need their permission. Most boundary disputes start as surprises rather than disagreements.
HOA rules
If you're in an HOA, its architectural committee usually has to approve the fence before installation, and it can regulate things the city doesn't care about — style, colour, material, even picket spacing. Common restrictions include banning chain link in front yards, requiring a specific stain, capping height below the city limit, and mandating that the finished side face out.
Submit early. Approval can take weeks, and installing first and asking later routinely ends with the fence coming down at the owner's expense.
The five expensive mistakes
- Assuming the old fence was on the line. It frequently wasn't.
- Skipping the permit and getting a stop-work order or a removal notice.
- Building before HOA approval.
- Missing the corner-lot sight triangle and having to cut a new fence down.
- Not calling 811 before digging — free, usually required, and hitting a utility line is both dangerous and expensive.
Local rules vary. Everything on this page is general orientation. Fence rules are set locally and vary widely; boundary and ownership law varies by state. Confirm specifics with your city or county, use a licensed surveyor for boundary questions, and consult an attorney for a dispute. This is not legal advice.
Keep going
Frequently asked questions
- How tall can my fence be?
- Typically 6 ft in back yards, 3–4 ft in front, with tighter limits on corner lots. Set locally — confirm before ordering.
- How close to the property line can I build a fence?
- Often a few inches inside your line, though some areas allow building on it by agreement. Setbacks vary locally — and knowing where the line actually runs matters more.
- Who owns the fence between two houses?
- Usually whoever paid and whose land it sits on. A fence straddling the line is typically shared. State rules vary — get advice for an actual dispute.
- Do I need a permit to build a fence?
- Often yes, especially above a height threshold. See when you need a fence permit.
- Can my HOA override the city's fence rules?
- Both apply. An HOA can forbid what the city allows, but cannot authorise what the city prohibits. HOAs are usually stricter.
- Which side of the fence faces the neighbour?
- Convention (and some codes) puts the finished side outward. A shadowbox fence looks identical from both sides and avoids the question.