Neighbor fence laws are set almost entirely at the state and local level, but the framework is consistent across the country: a fence sitting on the property line is usually a shared cost, front yards are capped around three to four feet and back yards around six, and you need to check your zoning code and any HOA rules before building. When things go wrong — a neighbor who won’t pay their share, a fence a few inches over the line, or a wall built out of spite — most disputes get resolved in mediation or small claims court rather than full litigation.
Who Pays for a Shared Boundary Fence
When a fence sits directly on the property line, most states treat it as a shared structure. The general rule is that both neighbors split the cost of building, maintaining, and replacing it equally, whether or not the neighbor on one side wanted the fence in the first place. Some states have codified this into statutes often called “fence-out” or “partition fence” laws. Others reach the same result through common law.
There is an important nuance on materials. The shared-cost rule applies to a standard fence using typical materials for the area. If you want ornamental iron or composite panels that cost significantly more than a basic wood or chain-link fence, you can usually be required to pay the difference yourself. Your neighbor’s obligation extends only to what a reasonable, functional fence would cost.
Notice Before You Build or Repair
Before starting work on a shared fence, the neighbor proposing the project typically must give written notice to the adjoining owner. In states with detailed fence-sharing statutes, the notice must describe the problem, the proposed fix, estimated costs, and a timeline. Thirty days is a common notice period, though requirements vary.
Skipping this step can weaken your ability to recover the other neighbor’s share later. If your neighbor refuses to pay after proper notice, small claims court is the standard remedy. You will need the written notice, photos of the fence’s condition, and receipts or estimates. Small claims monetary limits run from roughly $5,000 to $25,000 in most states, which covers the vast majority of residential fence disputes.
Height, Setback, and HOA Limits
Local zoning codes set the physical limits, and these rules are consistent across the country. Front-yard fences are typically capped at three to four feet. Side and back yards can usually go up to six feet, sometimes eight on larger lots or along busy roads. The lower front-yard limit exists primarily for driver visibility at intersections and driveways.
Setback rules add another layer. Many jurisdictions require fences to sit a certain distance from the sidewalk, curb, or property line. Corner lots often face stricter visibility-triangle rules that prohibit tall fences or dense vegetation within a measured zone near the intersection. These limits apply to the fence itself, including any lattice, trellises, or decorative extensions added to the top. A six-foot privacy fence with a one-foot lattice topper is a seven-foot fence to the building inspector.
If you live in a community governed by a homeowners association, the HOA’s covenants likely impose tighter rules than the city code. HOA documents frequently dictate approved materials, colors, and styles — cedar or vinyl allowed, chain-link or metal sheeting banned — and may require architectural review board approval before construction. Boards can impose daily fines for unapproved fences, and those fines accumulate until you bring the structure into compliance. Where the city code and HOA rules conflict, the more restrictive standard controls. A code allowing six-foot fences does not help you if your HOA caps them at four.
When a Fence Crosses the Line
A fence built even a few inches over the property line onto a neighbor’s land creates an encroachment. The affected neighbor can demand removal, and a court can order you to tear it down and pay damages. This is why a professional boundary survey before construction matters. Relying on old fence lines, visual landmarks, or guesses about where your property ends is how encroachment disputes start.
There is a more serious long-term risk. A fence sitting on the wrong side of the line for years can transfer legal ownership of the disputed strip through adverse possession. Every state has an adverse possession statute, but the required time period varies widely, from as few as five years to 20 or 21, with most states falling in the 10-to-20-year range. The person claiming adverse possession generally must show that their use was open, continuous, exclusive, and without the true owner’s permission. Some states also require proof that property taxes were paid on the disputed parcel during the entire period.
If your neighbor’s fence encroaches on your land, address it promptly. A friendly conversation followed by a written boundary line agreement is the cheapest solution. The agreement should be recorded with the county recorder’s office so it binds future buyers. If either property has an outstanding mortgage, the lender may need to approve the adjustment, since it changes the legal description securing the loan. Ignoring an encroachment for a decade or more could cost you the land entirely.
Spite Fences
A spite fence is a structure built primarily to annoy or harm a neighbor rather than serve any legitimate purpose like privacy or security. Many states have statutes or common-law doctrines that classify a spite fence as a private nuisance. The typical threshold is a fence exceeding six to ten feet in height that has no reasonable use other than blocking a neighbor’s light, air, or view.
Courts evaluate intent by looking at the surrounding circumstances. A history of hostile interactions, a design that serves no practical function, or construction that coincidentally blocks a specific window or patio all point toward malice. If a judge finds the fence qualifies, the usual remedies include an order to reduce its height or remove it, along with damages for lost property value or diminished enjoyment of the land.
Proving a spite fence is harder than it sounds, because the builder will almost always claim a legitimate reason. The strongest cases involve a sudden, dramatic change after a dispute — something like a 12-foot solid wall appearing along a boundary the week after a noise complaint. Documentary evidence of the timeline and any hostile communications makes or breaks these claims.
Easements and Pool Fencing
Two situations change the ordinary fence rules enough that they are worth knowing before you build.
Check your deed and plat for recorded easements. A utility easement gives the utility company a legal right to access a strip of your land. Building a fence across it is not automatically prohibited, but the utility can remove your fence without permission if it needs access, and you typically bear the cost of removal and replacement. Some utilities will reconstruct a fence they tear down as a courtesy; they are under no obligation to do so. In an emergency, you may get no advance warning. If you need a fence to cross an easement, install a gate wide enough for the utility’s equipment and contact the utility company beforehand.
If you have a swimming pool, fence rules take on a safety dimension that goes well beyond aesthetics. The U.S. Consumer Product Safety Commission recommends pool barriers at least 48 inches tall, with 60 inches or more preferred, with strict limits on gaps under the fence and between slats, and gates that are self-closing and self-latching.1U.S. Consumer Product Safety Commission. Safety Barrier Guidelines for Residential Pools Many states and localities have adopted these guidelines into their building codes. A pool without a compliant barrier is a significant liability exposure, and many homeowner insurance policies require code-compliant fencing as a condition of coverage.
Resolving a Fence Dispute
Fence disputes escalate faster than almost any other property conflict, partly because you have to keep living next to the person. Before filing anything in court, consider community mediation. Many cities and counties offer free or low-cost mediation services for neighbor disputes, often run through the mayor’s office, a community justice center, or a nonprofit.
Mediation brings both neighbors together with a neutral third party who guides the conversation toward an agreement. It is not binding unless both sides agree to a resolution, but the success rate is high enough that some small claims courts require or strongly encourage mediation before scheduling a hearing. The process typically takes a single session.
If mediation fails, small claims court handles disputes about cost-sharing, damage from a poorly maintained fence, or reimbursement for emergency repairs. Bring copies of all written notices you sent, photographs of the fence’s condition, repair estimates or receipts, and your property survey.
Permits and Surveys Before You Start
Most jurisdictions require a permit before you build a fence, though some exempt short fences under a certain height, commonly four feet. The permit application typically requires a site plan showing the fence location relative to property lines, structures, sidewalks, and any easements, along with the height and materials for each section.
A professional boundary survey is the foundation of any fence project. Residential boundary surveys generally cost between $800 and $5,500 depending on lot size, terrain, and local market rates. That cost stings, but it is trivial compared to tearing down and relocating a fence that turns out to be on your neighbor’s property. Some jurisdictions will accept a neighbor’s signed consent form in place of a survey, but a survey protects you far better if a dispute develops later.
After the permit is approved and the fence is built, expect a final inspection by a building official who confirms the fence matches the approved plans and meets height, setback, and safety requirements. Skipping the permit or failing an inspection can result in fines and a mandatory rebuild.