Building a fence on the property line means constructing a shared structure that you and your neighbor both have a legal interest in, and the rules that come with that reach into ownership, permits, surveys, zoning, and cost-splitting. Before any post goes in the ground, you need a professional survey to confirm the boundary, your neighbor’s written agreement on placement and design, a municipal building permit in most jurisdictions, and an 811 utility locate. Skip any of those and you can end up tearing the fence down and starting over.
On the Line or Set Back on Your Own Side
The most consequential decision comes before materials or height: does the fence sit exactly on the boundary, or a few inches inside your own land?
A fence built exactly on the boundary line is legally treated as a shared structure in most states. Both owners have an interest in it regardless of who paid, and that shared status usually means you cannot remove, replace, or significantly alter the fence without your neighbor’s agreement. The upside is that many states let you ask your neighbor to split the cost of building and maintaining it.
A fence set back even a few inches entirely onto your side belongs solely to you. You control design, maintenance, and removal without needing anyone’s permission. The tradeoff is a lost strip of usable yard and no obligation on your neighbor to help pay for anything. For homeowners who want full control, or who expect a difficult neighbor, that small setback can prevent years of conflict.
If you do build on the line, get your neighbor’s written agreement on placement, design, and cost-sharing before any work begins. A handshake understanding has no legal weight when a dispute surfaces three years later.
Confirm the Line With a Survey
Guessing the boundary from an old fence, a hedge, or a change in the grass is one of the most expensive mistakes in residential fencing. Those visual cues drift over decades. The only reliable method is a professional land survey.
A licensed surveyor uses GPS equipment and recorded deed measurements to locate the iron pins or monuments buried at your lot corners. Those pins define the legal boundary. A standard residential boundary survey typically costs between $500 and $2,000, and complex or large lots run higher. That figure is a fraction of what you would spend relocating a misplaced fence or defending an encroachment claim.
Your property deed is on file at the county recorder’s office and contains the legal description of your lot. Pull a copy before ordering the survey so the surveyor can cross-reference it. If the physical markers on the ground do not match the legal description, trust the survey and adjust your fence plan accordingly.
Check the Deed for Easements
Even on land you own outright, your deed may contain easements that restrict where you can build. Utility easements are the most common. They give power, gas, water, or telecom companies the right to access buried lines or overhead equipment. Plant fence posts in a utility easement and the company can remove your fence to reach their infrastructure at your cost.
Access easements are less common but equally binding. They grant a neighbor or the public the right to cross a strip of your property, often to reach a landlocked parcel behind yours. A fence blocking that path creates an immediate legal problem.
Your title report, available from the title company that handled your home purchase, lists all recorded easements. Read it before you finalize the layout. If you no longer have the title report, a title search through a local title company or attorney will surface these encumbrances.
Zoning, Height, Setbacks, and HOA Rules
Municipal zoning codes control the physical dimensions of residential fences, and they vary enough from one jurisdiction to the next that you cannot assume what applied at your last house applies here.
Front-yard fences are almost universally limited to three to four feet to preserve sight lines for drivers and pedestrians. Side-yard and backyard fences generally top out at six feet, though some jurisdictions allow up to eight feet in situations like lots bordering busy roads or commercial zones. Barbed wire, razor wire, and electrified fencing are typically banned in residential areas. Chain link may be restricted in front yards or historic districts.
Many codes also impose setback requirements. Even if you intend to build on the property line, your municipality may require the fence to sit a certain distance from the sidewalk, street, or an intersection to preserve visibility at corners. Violating a setback usually means the city can order you to move the fence at your expense.
If you live in a community governed by a homeowners association, a second layer of rules applies. HOA covenants frequently dictate materials, colors, styles, and which side of the fence faces your neighbor. These private restrictions often exceed the municipal code. Violations can trigger daily fines and forced modification, so review your CC&Rs before you choose materials or design.
Permits and the 811 Call
Most municipalities require a permit for any new fence. The application is straightforward, but skipping it creates real risk: an unpermitted fence can trigger code enforcement fines, mandatory removal, and complications when you try to sell the house.
What the Permit Application Requires
Expect to provide the proposed fence height, materials, and estimated project cost. You will also need a site plan showing where the fence sits in relation to your home, the property lines, and the street. Some jurisdictions require a signed neighbor consent form when the fence goes directly on the boundary. Without that signature, the permit office may reject the application to avoid creating a dispute it would later have to mediate.
Permit fees for residential fences generally run from $25 to $75 in smaller jurisdictions, and larger cities may charge more. Processing takes anywhere from a few business days to two weeks. Submit early so permit delays don’t derail your contractor’s schedule.
Call 811 Before You Dig
Once the permit is approved, contact 811 before putting any post holes in the ground. Federal law requires anyone planning excavation to notify the one-call system so utility companies can mark the location of buried gas, electric, water, and telecom lines in the work area.1Office of the Law Revision Counsel. 49 USC 60114 – One-Call Notification Systems Fence post holes are deep enough to strike these lines, and hitting a gas main or fiber optic cable creates both danger and expensive liability.
Call or submit your request online a few business days before digging starts. Utility locators come out and mark the lines with paint or flags at no charge.2811 Before You Dig. 811 Before You Dig After the fence is built, most jurisdictions require a final inspection to confirm the height, location, and materials match what was approved. Passing that inspection closes the permit and protects you from future enforcement action.
Shared Ownership and Splitting the Cost
A fence sitting directly on the property line is jointly owned in most states, and a majority of states have some form of shared-fence law addressing how neighbors divide the financial burden. The specifics vary, but the principle is the same: both owners benefit from the boundary fence, so both should contribute.
In states with strong “good neighbor fence” statutes, the law presumes neighbors split the reasonable costs of building and maintaining a boundary fence equally. That presumption can be rebutted, but it gives you leverage if your neighbor tries to enjoy the fence without paying. These laws typically require written notice to your neighbor before work begins, describing the project, the estimated cost, and how you propose to divide expenses. The required notice period is commonly 30 days.
Not every state mandates cost-sharing. In some states there is no legal obligation for a neighbor to contribute unless they agreed in writing. That is another reason the on-the-line versus set-back decision matters. If your state does not require cost-sharing and your neighbor refuses to contribute, building on the line hands them a shared ownership interest in a fence they did not help pay for.
Whatever your state’s rule, put the agreement in writing before construction starts. Cover placement, design, height, materials, who hires the contractor, and how each owner will pay their share. Keep copies of estimates and invoices; those documents are what you would rely on if the split ever had to be enforced.
If the Fence Ends Up Over the Line
A fence placed even a foot over the boundary onto your neighbor’s land is an encroachment, and the consequences range from mildly annoying to genuinely serious depending on how long it goes unaddressed.
In the short term, your neighbor can demand you remove or relocate the fence. If you refuse, they can seek a court order compelling removal and may recover damages for loss of use of their land. Relocation, legal fees, and any damages awarded will dwarf what you saved by skipping the survey.
The longer-term risk is adverse possession. If a misplaced fence sits uncorrected for enough years, the person using the enclosed land can potentially claim legal ownership of it. The required period varies widely by state, from as few as five years to as many as 30, with ten to twenty years most common. The claim requires open, continuous, and exclusive use of the land without the true owner’s permission, and a fence is one of the clearest physical markers courts look at.
If you discover an existing fence is over the line, act promptly. Granting your neighbor written permission to keep the fence in place, through a revocable license agreement, prevents them from later claiming they used the land without your knowledge. You and your neighbor can also sign a boundary line agreement acknowledging the true property line even if the fence does not sit exactly on it. Record either document with your county to protect future buyers.
When a Neighbor’s Tree Damages the Fence
A falling branch or a toppling tree from next door is one of the most common ways a boundary fence gets destroyed, and the question of who pays trips homeowners up every time.
The general rule is that your own homeowner’s insurance covers damage to your fence from storms, falling trees, and similar sudden events under the “other structures” portion of the policy. That coverage is typically capped at around ten percent of your dwelling coverage amount.3Progressive. Does Homeowners Insurance Cover Fences? If your home is insured for $300,000, you likely have up to $30,000 for the fence and other detached structures.
The calculus shifts when the neighbor knew the tree was diseased or leaning dangerously and did nothing. If you notified them in writing that the tree was a hazard and they ignored you, they may be liable under a negligence theory, and your insurer may pursue them through subrogation after paying your claim. That is why a paper trail matters: if you see a dead or leaning tree near the fence, send your neighbor a dated letter or email describing the risk before anything falls.