The required fence distance from the property line depends on your local code, and it is often zero: many places let fences sit on or right next to the line. Some require a small setback, especially along streets and sidewalks. In practice, the more important question is whether you know exactly where the line is, because a fence built a foot onto a neighbour’s land can cause years of trouble.
Quick answer: Many codes allow fences on or near the property line in side and rear yards, while some require a setback from streets, sidewalks or alleys. Many owners build a few inches inside their own line to avoid disputes and keep maintenance access. Before building, confirm the line from a survey, plat or found markers, not from an old fence or a GIS map.
What codes say about fence distance from the property line
Fence placement rules fall into a few patterns:
| Rule type | Example |
|---|---|
| No setback | Fences allowed up to the property line in side and rear yards |
| Street setback | Fence must be set back a few feet from the sidewalk or right-of-way |
| Height-linked setback | Taller fences must sit further from the line |
| Alley setback | Fence must be set back from an alley for access and visibility |
| Easement restriction | No fences in a drainage easement |
Front-yard and street-side fences on corner lots are where setbacks are most common. Our pillar fence permit guide covers the full set of fence rules.
On the line vs inside the line
Where the code allows both, owners choose between two approaches:
- On the line: the fence straddles the boundary. It is usually shared, and many owners agree on cost and maintenance with the neighbour, ideally in writing. It requires the line to be precisely located.
- Just inside the line: the fence sits entirely on your land, often a few inches to a foot in. You own it outright and control its style, and small errors in locating the line won’t put it on the neighbour’s side. The strip outside the fence still belongs to you, so plan to maintain it.
Setting the fence a little inside is a common, low-risk choice when the line hasn’t been surveyed recently.
Why the line is often not where people think
Old fences, hedges, landscaping edges and driveway edges are rarely exact boundary markers. GIS parcel maps can be several feet off. Plats show the lots as designed, which may differ slightly from what was staked on the ground. Our guides on how to find your property lines and reading a GIS parcel map explain each source and its accuracy.
Ways to confirm the property line
- Find the corner markers. Iron pins or monuments at lot corners, often buried a few inches. A metal detector helps.
- Use your survey. If you have a boundary survey, it shows the markers and dimensions.
- Use the recorded plat for dimensions between markers.
- Hire a surveyor to stake the line when the markers are missing, the line is disputed or the fence is expensive.
A survey stake-out costs money but is far cheaper than moving a finished fence. Our guide on site plan vs survey explains when one is needed.
Easements along the fence line
Rear and side lot lines often carry utility or drainage easements. Fences may be allowed in utility easements but can be removed by the utility for access. Drainage easements may prohibit fences, or require them to leave a gap at the bottom so water can flow. Check your plat and title documents, and show easements on your fence site plan. Call 811 before digging.
Neighbour agreements
If you plan to build on the line, talk with your neighbour first. Agree on location, style, cost sharing and maintenance, and put it in writing. Some owners record a fence agreement with the county. If you build inside your line, neighbours usually don’t need to agree, but telling them avoids surprises. Neighbour agreement doesn’t override the zoning code or HOA rules.
What happens if a fence is over the line
A fence on a neighbour’s land is an encroachment. The neighbour can ask you to move it. In some states, a long-standing encroachment may raise questions of adverse possession or boundary by acquiescence, which is one more reason to get the location right and resolve issues early. If you discover your fence is over the line, talk with the neighbour, and consider a survey and, if needed, a written agreement or a lot line adjustment for larger issues.
Gates and access
Gates opening onto sidewalks or alleys may need to swing inward, so they don’t block the walkway. Leave access for utility meters and for maintaining the strip outside a fence set inside the line. If the fence encloses a pool, gates must meet pool barrier rules.
Showing fence placement on a site plan
A fence site plan should show the property lines with dimensions, the fence line, the distance from the fence to the line where it isn’t on it, easements, gates, and the street, sidewalk and driveway. Our fence permit site plans include these, drawn from your survey or plat.
Frequently asked questions
How far does a fence have to be from the property line?
Often zero in side and rear yards, but some codes require setbacks, especially along streets. Check your local code.
Can I build a fence right on the property line?
Many codes allow it. You need to know exactly where the line is and should agree with your neighbour.
Should I put my fence a few inches inside my line?
Many owners do, to keep the fence fully on their land and allow for small errors in locating the line.
Do I need my neighbour’s permission to build a fence?
Not usually if it is on your land, but it is required if the fence will straddle or sit on their side.
Is an old fence the property line?
Not necessarily. Old fences are often off the true line; confirm with markers or a survey.




