This is general information, not legal advice. Fence law is set by each state and sometimes by each city or county, and it changes. For a real dispute, talk to a local real estate attorney.
The short answer
In most states there's no law that makes a neighbor pay for a fence they didn't ask for. If you build a fence on your own, you pay for it, and it's yours.
Texas is a typical example. Texas A&M's agricultural law program explains that a landowner has no legal obligation to help pay for a neighbor's fence on the property line, and that a fence the neighbor didn't pay toward belongs only to the person who built it. If two neighbors do agree to share the upkeep, Texas courts will hold them to it.
California: neighbors share by law
California works the other way. Under the state's Civil Code, neighbors are presumed to benefit equally from a fence that divides their properties, so they're presumed to be equally responsible for the reasonable cost of building it, maintaining it or replacing it when it needs replacing. A written agreement between the two of you can set a different split.
You have to give notice first
Before spending money on a shared fence, you have to give each neighbor 30 days' written notice. The law spells out what the notice must say:
- that the law presumes the two of you share the cost equally,
- what the problem with the fence is, and what you propose to do about it,
- the estimated cost,
- how you propose to split it, and
- the timeline.
An estimate from the fence cost calculator is a useful starting point for the conversation, but put a real quote in the notice.
When the 50/50 split doesn't apply
The presumption can be overcome if an equal split would be unjust. A court looks at things like whether the cost is out of proportion to the benefit for one neighbor, whether the fence would cost more than it adds to the property's value, whether paying would be a real financial hardship, and whether the project is unnecessary, excessive, or mostly about one person's taste. A plain replacement fence is easier to share than a custom one.
Farm states: rules for livestock fences
Several states have old "partition fence" or "division fence" laws that split the cost of a boundary fence between neighbors. They were written for farmland, and many of them only apply to land used for livestock. Check your own state's version before relying on one.
Minnesota is a good example. Its law says neighbors build and maintain a partition fence in equal shares when both properties are used, at least in part, to raise or keep livestock, and one of them wants the land fenced. A suburban backyard fence isn't what these laws are about.
When there's no law: agree, in writing
Most neighbors who split a fence do it by agreement, and most fence arguments start with a handshake that both sides remember differently. Before anyone digs, write down:
- Where it goes: on the line, or a few inches inside one property. If you aren't sure where the line is, get a survey first.
- What it is: material, height, style and the number of gates.
- Who pays what: half each, or a different split if one side wants something fancier.
- Which side faces whom: the finished side and the side with the posts and rails.
- Who looks after it: staining, repairs, and what happens if it blows down.
- What happens if one of you sells.
Signed and dated by both of you, that page is worth more than any law on the subject.
On the line, or inside your own land?
Where the fence sits changes who owns it. A fence built entirely on your side of the line is yours: you choose it, you pay for it, and you look after it. A fence right on the line is shared ground, which is where the arguments start.
Many people build a few inches inside their own line for exactly that reason. Our guide on how close a fence can be to the property line covers the setbacks some cities require.
Spite fences
A fence put up mainly to annoy the neighbor can be illegal. In California, a fence that unnecessarily goes over 10 feet and was put up maliciously to annoy the neighbor is a private nuisance, and the neighbor can go to court to have it dealt with. Several other states have similar "spite fence" laws.
Fair questions
Can my neighbor make me pay for a fence I didn't want?
In most states, no. In California, the law presumes you share the cost of a dividing fence, but you can argue that an equal share would be unjust, and the neighbor has to give you written notice first. In farm states, it usually depends on livestock.
What if the neighbor's fence is on my land?
Start with a survey, so you're arguing about facts. Then talk to the neighbor. If that doesn't work, it's a question for a local attorney, because the answer depends on your state's rules and how long the fence has been there.
Who gets the "good side" of the fence?
There's no national rule. Some cities and many homeowners associations require the finished side to face the neighbor or the street; others, like Salem, Virginia, have no rule at all. If you're sharing the cost, agree on it in writing.
What does a typical fence cost to share?
Our fence cost guide has prices by material, and the calculator prices your exact length and height.
Sources
- California Civil Code, Section 841: the shared cost of a fence between two properties, the 30-day written notice, and when that sharing doesn't apply.
- California Civil Code, Section 841.4: when a fence over 10 feet put up to annoy a neighbor counts as a private nuisance.
- Texas A&M AgriLife Extension, Texas Agriculture Law: My neighbor wants to build a fence: why a Texas neighbor generally doesn't have to share the cost of a fence, and who owns it.
- Minnesota Statutes, Section 344.03: Minnesota's partition fence rule, which splits the cost equally when both neighbors keep livestock.
- City of Salem, Virginia, Fence height limits: a city where fences need no permit, with height limits by yard and a sight triangle at corners.
- How we calculate: every suggested price behind this calculator, with the date it was last reviewed.