Can I Build a Fence on My Property Line? Permits, Setbacks, and Disputes

In most cases, yes, you can build a fence on your property line, but the answer comes with real conditions: you have to know exactly where the line runs, follow local height and permit rules, check any HOA restrictions, and in many states give your neighbor written notice because a fence sitting on the boundary is legally shared property. Get any of those pieces wrong and you can end up tearing the fence down at your own expense or in court with the person next door.

Confirm Where the Line Actually Is

Everything else depends on this. A fence built even a foot onto your neighbor’s land is an encroachment they can force you to remove, and a fence built well inside your own line gives up ground you did not need to give up.

The reliable way to find the line is a boundary survey by a licensed land surveyor. The surveyor uses deed records and field equipment to mark your corners, usually with iron pins driven into the ground. Costs depend on lot size and terrain, from a few hundred dollars for a straightforward suburban lot into the thousands for larger or irregular parcels. Compared with the cost of moving a finished fence, it is cheap insurance.

If a survey is not in the budget yet, you have two starting points. Look for existing survey pins at the corners of your lot; they are metal stakes that often sit just below the surface, and they can be knocked loose or buried, so treat what you find as a clue rather than proof. You can also pull your plat map from the county recorder’s or assessor’s office. A plat shows dimensions and boundaries but is not a substitute for a fresh survey when there is any real question about placement.

What “On the Line” Means Legally

When a fence sits directly on the boundary rather than a few inches inside your own land, most states treat it as a boundary fence or partition fence. That designation changes who owns it and who pays for it.

Shared Ownership and Cost Splitting

In a majority of states, both neighbors are legally responsible for a boundary fence. The rule traces back to agricultural fencing traditions and has stayed on the books even though most suburban owners have no livestock. Shared responsibility means both neighbors contribute to construction and ongoing maintenance, and neither one can tear down or substantially alter the fence without the other’s agreement.

The practical problem is that your neighbor may not want the fence at all. If you cannot reach an agreement, you have two choices. Build entirely on your side of the line so the fence is solely yours, or follow your state’s procedure for compelling cost sharing.

Notice to Your Neighbor

Many states require written notice to your neighbor before you build or repair a boundary fence. The pattern is similar across jurisdictions: you send written notice of your intent to build, the neighbor has a set window to respond, and if they do not participate within that window they may become liable for their share of the cost. Response windows run as short as 10 days in some states and 30 days or more in others. Look up your state’s partition fence statute for the exact procedure, because skipping steps can wipe out your ability to recover costs later.

If shared ownership and notice sound like more trouble than they are worth, that is a reason many homeowners deliberately build a few inches inside their own line. The fence is entirely theirs, and the boundary-fence rules do not apply.

Local Fence Ordinances

Your city or county regulates fence height, placement, materials, and permits, and the rules are more specific than most homeowners expect.

Height Limits

Most residential ordinances set different limits depending on where the fence sits. Front yard fences are commonly capped at three or four feet to preserve sightlines for drivers and pedestrians. Side and rear yard fences are typically allowed at six to eight feet. Corner lots often carry extra restrictions to keep intersections visible. If you want a taller fence for privacy or noise, some jurisdictions allow a variance, but you have to apply before building.

Setbacks and Permits

Setback rules say how far the fence must sit from the property line, street, or sidewalk. Front setbacks tend to be the largest, ranging from a few feet to 20 or more depending on your zoning district. Side and rear setbacks are usually smaller and are sometimes zero, which is what allows a fence right on the line.

Many jurisdictions require a permit, particularly once a fence exceeds six feet or uses masonry. Fees and processing times vary, and some cities want a site plan showing the fence relative to your lines and any easements. Check with your local planning or building department before you order materials.

The Good Neighbor Rule

One rule catches homeowners off guard. A number of local codes require the finished side of the fence to face outward toward the neighbor or street, with the structural posts and rails facing your own yard. Where it is not written into code, it is widely treated as etiquette. Ignoring it is an easy way to start a dispute before the fence is even done.

HOA Rules Are a Separate Layer

If your property is inside a homeowners association, expect a second set of restrictions on top of city code. The CC&Rs you agreed to at purchase are binding, and they often regulate style, material, color, and height more tightly than the municipality does. Chain link is commonly banned outright, and some associations require every fence in the community to match a specific design.

HOA approval is a separate process from the city permit, and you typically need both. Most associations require a written proposal to the architectural review board describing dimensions, materials, placement, and color before you build. Skipping this step can trigger fines, mandatory removal at your expense, or both. Submit early, because review timelines vary.

Utility Easements and Calling 811

Owning the land does not always mean you control every inch of it. A utility easement gives a utility company or government entity the right to access a strip of your property to install, maintain, or repair infrastructure. Easements often follow property edges, which is exactly where a fence wants to go.

Building across an easement is a bet most homeowners lose. The utility keeps its access right, and if your fence blocks that access, you pay to remove it and put it back after the work is done. Some utilities will approve a fence on an easement when it does not interfere with access, but get that permission in writing first. Check your title report, deed, and plat map for recorded easements, and call the utility directly if anything is unclear.

Before you dig the post holes, call 811. It is a free national service that notifies every utility with underground infrastructure in your area, and their crews then mark the location of gas, electric, water, sewer, and telecom lines so you can avoid them. Every state has laws requiring notification before excavation, and hitting an unmarked line without calling can leave you liable for repairs, service disruptions, and penalties on top of whatever damage you cause on your own or your neighbor’s property.1PHMSA. Stakeholder Communications: Damage Prevention The U.S. Department of Transportation notes that calling 811 gives you a 99 percent chance of avoiding an underground incident.2U.S. Department of Transportation. Call 811 Before You Dig Most states want at least two to three business days’ notice before your planned dig date.

Encroachment and Adverse Possession

Fence placement errors get expensive. If your fence sits even slightly on your neighbor’s side, you have created an encroachment. Your neighbor can demand removal and, if you refuse, bring an ejectment action to force it, and you may owe damages for the time the fence occupied their land.

The long-term risk runs both ways. If a fence sits on the wrong side of the line for years and no one objects, the person whose land it sits on can eventually lose that strip through adverse possession. Requirements vary by state but generally include open, continuous, and exclusive use of the land without the owner’s permission for a statutory period, commonly five to 20 years depending on the jurisdiction. Some states also require the possessor to have paid property taxes on the disputed strip.

The reverse is just as important. If a neighbor builds a fence onto your land and you do nothing, you can lose that strip yourself over time. If you find an encroachment, address it in writing promptly. A recorded survey is the strongest evidence in either direction.

Spite Fences

A spite fence is one built not for privacy, security, or any other legitimate use but to annoy a neighbor, typically an unusually tall fence put up after a personal dispute to block a view or block sunlight. A number of states prohibit spite fences by statute, and even in states without a dedicated law, courts can declare one a private nuisance. Some states set a height threshold, commonly around 10 feet, above which a fence is presumed to be spiteful unless the owner shows a legitimate reason for it. A court that finds a spite fence can order it removed or reduced and can award damages to the affected neighbor.

If you are building after a neighbor conflict, make sure the fence serves a genuine purpose, stays inside local height limits, and has the permits to prove ordinance compliance. A fence that meets every local requirement is much harder to attack as spiteful.

Handling a Dispute With Your Neighbor

Most fence disagreements do not reach a courtroom, but they need to be handled deliberately. Start with a direct conversation and bring documentation: your survey, the ordinance, the CC&Rs, whatever applies. Many disputes come from honest confusion about where the line runs, not bad faith.

If a conversation does not resolve it, community mediation is a cheap next step. A neutral third party helps both sides reach a written agreement, and many counties and cities run mediation programs specifically for neighbor disputes. When mediation fails, small claims court handles most fence issues. You can seek an order requiring a neighbor to remove an encroaching fence, contribute their share of a boundary fence, or pay for damage. Larger disputes, including adverse possession claims, usually belong in a higher court with an attorney.

Whatever route you take, keep written records of every conversation, notice, and agreement. A handshake about a shared fence tends to be remembered differently five years later, especially once one of the houses changes hands.