Can My Neighbor Build a Fence on the Property Line?

Yes, your neighbor can build a fence on the property line, but because that line runs through land you both own, a fence sitting directly on it is treated as a shared boundary fence and typically requires your agreement. If your neighbor doesn’t want to involve you, the workaround is to set the fence a few inches inside their own property, where they don’t need your permission and you have no say over the design. Local zoning rules on height, materials, and setbacks apply either way.

On the Line Versus Just Inside It

The exact placement changes the legal picture more than most people expect.

A fence built squarely on the boundary is a boundary fence, sometimes called a partition fence. It occupies land belonging to both owners, so most jurisdictions treat it as shared property. Both neighbors generally need to agree before it goes up, and both carry some responsibility for maintaining it afterward.

A fence built entirely inside your neighbor’s own yard is a different situation. They don’t need your blessing, they own the whole fence, and they alone pay to repair it. The cost is a strip of usable yard given up to the setback. Some local codes actually require a setback of two to eight inches from the boundary regardless of preference, which pushes the fence onto one owner’s land by default.

So if a neighbor asks whether you’re okay with a fence on the line, that question matters. If they don’t ask and simply build a few inches inside their side, that’s their right.

When Your Agreement Is Required

For a true boundary fence, a number of states have “good neighbor fence” or “partition fence” laws that spell out how the process works. The neighbor proposing the fence typically has to give written notice, often 30 days in advance, describing the planned fence, the timeline, and the estimated cost. The framework assumes both neighbors benefit equally, so both owe an equal share of the reasonable cost of construction and upkeep.

“Reasonable” is the operative word. These statutes don’t let a neighbor force you to split the bill for an ornate wrought-iron fence when a standard wood fence would serve the purpose. If the proposed fence is excessive for the area, or provides you no real benefit, you can challenge the cost share.

In states without a specific fence-sharing statute, neighbors can still put a written agreement in place documenting who pays for construction and who handles maintenance. Getting the terms on paper heads off the selective memory that tends to develop a few years after installation.

Local Rules Apply Either Way

Whether the fence sits on the boundary or wholly on your neighbor’s side, municipal and county codes govern its physical characteristics. Height limits are the most common restriction. A typical pattern is a maximum of four feet in front yards and six feet on the sides and rear, though the specific numbers vary by location. Anything taller usually needs a variance or special permit.

Local codes commonly address several other things:

  • Materials, with some areas prohibiting chain link in front yards or barbed wire in residential zones.
  • Setbacks from sidewalks, streets, and intersections to preserve driver sight lines.
  • Finished-side orientation, with many ordinances requiring the “good side” of the fence to face outward, leaving the post-and-rail side facing the builder’s own yard.
  • Building permits for new fence construction, with modest fees but real consequences (fines and a mandatory tear-down) for building without one.

If the property is inside a homeowners’ association, HOA covenants add a second layer of rules on top of the municipal code and often restrict style, color, and height more aggressively than the city does. Both the local building department and the HOA governing documents are worth checking before materials are ordered.

Make Sure the Line Is Actually Where You Think It Is

Almost every fence dispute starts with someone confidently pointing at what they believe is the property line and being off by a foot or two. Before a post goes in the ground, the boundary needs to be established by a licensed land surveyor. A surveyor reviews deeds, historical records, and physical markers to pin the legal boundary. For a standard residential lot, expect somewhere in the range of $300 to $1,000, more for larger, irregular, or heavily wooded properties.

The plat map from the county recorder’s office is a reasonable starting reference, but plat maps show approximate boundaries, not inch-level precision. They’re useful for a general sense of things and useless in court. A professional survey produces a legally defensible document, and if a fence disagreement ever escalates, that survey is the single most important piece of paper you own.

Skipping the survey looks like a smart cost saving until it isn’t. A fence that crosses the property line, even by a few inches, is an encroachment. The wronged neighbor can demand it be torn down at the builder’s expense, and courts routinely order exactly that.

If a Fence Ends Up on Your Side of the Line

A misplaced fence isn’t only a short-term encroachment problem. Left in place long enough, it can shift legal rights permanently through two related doctrines.

Adverse possession lets someone claim legal ownership of land they’ve openly, continuously, and exclusively occupied without the true owner’s permission. The required time period varies widely by state, from as few as five years to twenty or more. Some states also require the claimant to have paid property taxes on the disputed strip during that period. A fence is one of the classic ways courts find the “open and notorious” element satisfied, because a fence is about as visible a claim to a boundary as you can make.

A prescriptive easement works the same way but grants a right to use the land rather than outright ownership. A neighbor who has been mowing, gardening, or otherwise using a strip of your land on their side of a misplaced fence for a decade or more may have a viable prescriptive easement claim, depending on state law.

The practical response: if you discover a neighbor’s fence sits over your line, address it promptly. The longer it stays, the stronger their legal position gets. Granting explicit written permission for the fence’s current placement can actually protect you, because permissive use defeats both adverse possession and prescriptive easement claims.

Spite Fences

A fence put up purely to block a neighbor’s view, light, or enjoyment of their property is known as a spite fence. Many states have laws or common-law doctrines that treat spite fences as a private nuisance, giving the affected neighbor grounds to sue for removal. Courts generally look at two things: whether the fence exceeds a reasonable height for the area and whether it was erected primarily to annoy rather than to serve a legitimate purpose like privacy or security.

Proving intent is the difficult part. Courts weigh the totality of circumstances, including the fence’s height relative to local norms, whether it serves any practical function for the person who built it, and the history of the relationship between the neighbors. A ten-foot solid fence along a boundary where six feet is standard, built shortly after a dispute, tells a fairly clear story. When a court finds a fence qualifies as spite, it can order the height reduced or the fence removed entirely.

If You and Your Neighbor Disagree

Most fence disagreements don’t need a courtroom. They need a conversation, ideally before construction rather than after. Bringing a copy of a professional survey to that conversation removes the guesswork and keeps the discussion grounded in facts instead of competing assumptions about where the line runs.

When direct conversation stalls, mediation is the next step. A neutral mediator helps both sides find a workable compromise, and it’s faster and far cheaper than litigation. Many communities offer mediation programs through local courthouses or bar associations for a nominal fee or at no cost, and whatever the parties agree to can be put into a signed written agreement.

If mediation fails and the dispute involves a real encroachment, property damage, or a neighbor ignoring local building codes, a real estate attorney can send a formal demand letter, file a complaint with the local code enforcement office, or pursue a quiet title action or injunction in court. Fence litigation isn’t glamorous, but it’s sometimes the only way to protect property rights when a neighbor refuses to cooperate.