Putting a fence on the property line you share with a neighbor turns it into a shared structure with shared legal obligations, so before any post goes in you need an accurate survey, a check of local code and any HOA rules, a look for utility easements, an 811 locate ticket, and a written understanding with your neighbor about cost and maintenance. A mistake measured in inches can trigger removal orders, lawsuits, or a slow loss of land through adverse possession. The steps below walk through what to confirm, in what order, and what the law will hold you to once the fence is up.
Confirm the Boundary With a Survey First
Hire a licensed land surveyor before you do anything else. Old deed descriptions, visible landmarks, and the position of a previous fence are not reliable enough to build on. Surveyors place physical markers, usually iron pins or monuments, at each property corner using recorded plat maps and deed records, and those markers become the definitive proof of where one lot ends and the next begins.
Ask for a boundary survey specifically, not a location survey. A boundary survey establishes and verifies the legal property lines. A location survey maps existing structures against the lines but doesn’t independently confirm where the boundary actually is. For fence placement, you need the boundary confirmed. A residential boundary survey on a standard lot typically costs between $1,200 and $5,500 depending on lot size, terrain, and whether prior survey records are easy to pull.
Keep the plat. You’ll need it for the permit application, and it becomes your best evidence if a neighbor later disputes the fence’s position.
A Fence on the Line Is Shared Property
A fence sitting directly on the boundary is generally considered shared property under the law. Both neighbors benefit equally from the barrier, so both are expected to share equally in its cost. A majority of states have some form of “partition fence” or “boundary fence” statute codifying this, though the details vary. Some presume a 50/50 split for construction, maintenance, and replacement. Others only require cost-sharing for agricultural fencing, or limit the obligation to “necessary” fences rather than decorative ones.
These statutes typically require written notice before work begins. The notice usually must describe what’s wrong with the existing fence or why a new one is needed, the proposed solution, estimated costs, and a timeline. Thirty days’ advance notice is a common statutory requirement. That written notice is what triggers your neighbor’s legal obligation to contribute, so skipping it can undermine your ability to recover their share later.
If one neighbor wants a basic wood fence and the other wants ornamental wrought iron, the neighbor requesting the upgrade generally pays the cost difference above what a standard fence would run. Cost-sharing statutes protect against being forced to subsidize someone else’s taste.
If Your Neighbor Won’t Contribute
In states with mandatory cost-sharing laws, a neighbor who refuses to pay after proper written notice can be sued in small claims or civil court for reimbursement. Courts routinely order the non-paying neighbor to cover their half of reasonable construction or repair costs, sometimes with interest.
Not every state mandates cost-sharing, and even where the law exists, enforcing it takes time and money. A common practical workaround is to build the fence entirely on your own property, set back a few inches from the line. A setback fence belongs solely to you. You control its maintenance, design, and eventual replacement without needing anyone’s permission or financial participation. You lose a sliver of yard and gain full autonomy over the structure.
Local Height, Material, and Design Rules
Nearly every municipality regulates fence height, and the pattern is consistent across the country. Backyard fences are commonly capped at six feet, and front yard fences at three to four feet. Corner lots face additional “sight triangle” restrictions that keep fences low near intersections so drivers can see cross traffic and pedestrians.
Material restrictions are routine in residential zones. Barbed wire, razor wire, and electrified fencing are banned in most residential areas. Chain-link is allowed in most places but sometimes restricted in front yards for aesthetic reasons. Some jurisdictions require setbacks from sidewalks or the street right-of-way, meaning you may not be able to build at the very front edge of your property even if the fence is under the height limit.
Violating these codes can bring daily fines, a stop-work order, or a directive to tear the fence down at your expense. The real financial hit is usually the cost of removing and rebuilding a fence that should have been built to code the first time.
The Finished-Side Rule
Many local codes require the “finished” side of a fence to face outward, toward the neighbor or the street. Posts and rails stay on your side. The reasoning is partly aesthetic and partly practical: exposed framing facing a neighbor’s yard creates an eyesore and can become a climbing surface. If both neighbors own the fence together, the issue resolves itself, since both sides should look equally finished.
Pool Barrier Requirements
If the property has a swimming pool, the fence may need to double as a safety barrier, which triggers a stricter set of rules. The Consumer Product Safety Commission recommends a minimum barrier height of 48 inches, measured on the side facing away from the pool. Gates should swing away from the pool, close automatically, and latch on their own. If the latch sits lower than 54 inches from the ground, it should be on the pool side of the gate, at least 3 inches below the top, to keep small children from reaching it. Most local building codes adopt these CPSC standards or something stricter, so check your local requirements before assuming a standard 48-inch fence satisfies the pool code.
HOA Approval
If the property sits in a community governed by a homeowners association, the CC&Rs (Covenants, Conditions, and Restrictions) add a private layer of regulation on top of municipal codes. These documents frequently dictate specific materials, colors, styles, and heights, and the HOA’s limit may be lower than the city’s. Stain color, picket spacing, and whether vinyl is allowed in place of cedar are all fair game.
Most HOAs require you to submit a formal application to an architectural review committee before construction. The committee reviews plans against the community’s design guidelines and either approves, denies, or asks for changes. Building without approval is a serious mistake: the association can demand you tear the fence down at your own cost, impose monthly fines, or place a lien on your property. If your application is denied, the CC&Rs and bylaws usually set out an appeal process with a written deadline (often 30 days) and the right to a hearing. Whatever the outcome, get the final decision in writing.
Easements and What Sits Underground
Pull your property’s plat or title report and look for recorded utility easements before you plan where the fence goes. An easement gives a utility company or municipality the legal right to access a strip of your land for maintenance, repairs, or installation of underground infrastructure. Building a fence across an easement doesn’t automatically violate the law, but it creates a serious practical risk: the utility can remove your fence to access their infrastructure, and you’ll typically bear the cost of both removal and reinstallation.
Some municipalities flatly prohibit permanent structures within utility easements. Others allow fences if they don’t interfere with access, or if you install gates the utility can open. If your planned line crosses an easement, contact the utility provider before building. A removable fence section or a gate with a shared lock is a common compromise, and any arrangement should be in writing.
Call 811 Before You Dig
Every fence post is a hole, and every hole risks a buried gas line, water main, electrical conduit, or fiber-optic cable. Federal law requires anyone planning excavation to contact the national 811 one-call notification system before breaking ground. Under 49 U.S.C. ยง 60114, you cannot begin excavation in any state that has adopted a one-call system (all 50 have) without first using that system to locate underground facilities in the work area. Ignoring marked locations or failing to report damage to a pipeline can lead to federal penalties, and state-level penalties for violations start at $1,000 or more per incident in many jurisdictions. That’s before the cost of repairing a severed gas line or the liability if someone gets hurt.
The process is free. Call or go online to 811 at least two to three business days before digging (some states require more lead time). Utility operators come out and mark their buried lines with color-coded paint or flags. Once the markings are in place, you dig around them carefully.
Permits and Inspection
Whether you need a building permit for a fence depends on where you live. Many jurisdictions require permits for any new fence. Others exempt fences entirely or exempt those below a certain height, commonly six feet. Even where no permit is required, the fence still has to comply with all applicable zoning and building codes. Assuming “no permit needed” means “no rules apply” leads to code enforcement visits.
Where permits are required, the application typically asks for the fence’s dimensions, materials, location shown on a site plan, and relationship to property lines and existing structures. Permit fees are usually modest, and approval timelines generally run one to three weeks for straightforward residential applications. Construction cannot legally begin until the permit is issued and posted on the property.
After installation, some jurisdictions require a final inspection to verify the fence matches the approved plans, sits within legal boundaries, and meets code. Passing inspection closes out the permit and creates a public record that the fence was built lawfully. That record can protect you years later if a neighbor or future buyer questions its legality.
When a Fence Ends Up on the Wrong Side of the Line
If a survey shows an existing fence encroaches onto a neighbor’s property, the fence’s owner doesn’t automatically lose it, but the neighbor gains leverage. The encroaching fence remains the property of whoever built it, and the neighbor’s options generally include negotiating an informal resolution, requesting voluntary relocation, or filing a lawsuit seeking a court order to compel removal and recover damages for any reduction in property value.
What the affected neighbor should not do is tear down or move the fence themselves. Self-help against someone else’s structure, even one that’s trespassing on your land, creates legal complications and potential liability. The proper path is a conversation backed by a current survey, followed by legal action if the conversation fails.
Adverse Possession
A fence sitting in the wrong place for long enough can actually shift the legal boundary. Under the doctrine of adverse possession, a person who occupies someone else’s land openly, exclusively, and without the owner’s permission for a continuous statutory period can eventually claim legal ownership. The required time ranges from as few as 5 years to as many as 21 years depending on the state. A misplaced fence enclosing a strip of the neighbor’s yard is one of the most common triggers for these claims.
To succeed, the claimant must typically prove that their use of the land was actual (they physically used or maintained it), open and obvious (not hidden), exclusive (not shared with the true owner), hostile (without the true owner’s consent), and continuous for the full statutory period. Missing any one element defeats the claim. If all are met, the possessor files a quiet title lawsuit to get a court judgment formally recognizing the ownership change.
Boundary by Acquiescence
A related doctrine is boundary by acquiescence. When two neighbors treat a fence, hedge, or other marker as the property line for a long period, typically matching the state’s adverse possession timeframe, that marker can become the legal boundary regardless of what the deed says. The idea is that both parties implicitly agreed to the line by accepting it without objection. Unlike adverse possession, this doesn’t require “hostile” use; it rests on mutual silent acceptance. Once established, even a later survey showing the “true” line won’t undo the boundary both neighbors treated as real for decades.
Spite Fences
A fence built primarily to annoy a neighbor rather than serve a legitimate purpose can be declared a nuisance and ordered removed. Many states and municipalities have laws targeting these “spite fences.” The typical definition involves a structure that exceeds a normal height (often six feet or more) and was erected with malicious intent to block a neighbor’s light, air, or view. If a court finds the fence serves no reasonable purpose beyond harassment, the affected neighbor can seek an injunction and potentially recover damages.
Proof of spite usually comes from circumstances: a fence that appears right after a neighborly dispute, a wall built far taller than anything functional would require, or a structure positioned specifically to block a neighbor’s windows. Standard privacy fences at normal heights are almost never successfully challenged as spite fences, even where neighbors don’t get along.
Effect on Property Taxes
A new fence does not automatically trigger a property tax increase. Assessors focus on overall market value and compare your property to similar recently sold homes. A standard wood or chain-link backyard fence is unlikely to move the needle, especially where fences are common in the neighborhood. High-end materials like wrought iron or stone, or a front-facing fence that noticeably improves curb appeal, are more likely to show up in an appraisal. If you believe a new fence contributed to an inflated assessment, you can file a protest with your local appraisal review board, using comparable neighborhood properties as evidence.
Costs to Budget For
A fence-on-the-line project involves several cost layers beyond the fence itself. A boundary survey runs $1,200 to $5,500. Fence installation in 2026 averages $20 to $60 per linear foot fully installed, with the range depending heavily on material:
- Chain link: $8 to $35 per linear foot
- Wood privacy (6-foot): $13 to $45 per linear foot
- Vinyl privacy: $30 to $60 per linear foot
- Wrought iron: $30 to $100+ per linear foot
On top of materials and labor, factor in the permit fee where required, the 811 utility marking process (free), and recording fees if you and your neighbor execute a written boundary or cost-sharing agreement. If you’re splitting costs with a neighbor, get the agreement in writing before construction starts. A verbal deal about a shared fence has a way of becoming a disputed memory once the invoice arrives.