Property lines · Fences · Setbacks · October 21, 2026
How Close to Property Line Can I Build a Fence?
How close to property line can I build a fence? Often right up to it, but height, front yard, corner and easement rules decide. How to check first.
How close to property line can I build a fence? There is no single national answer, because fences are regulated by your city or county zoning code, and sometimes by an HOA on top of that. Many towns let a fence sit right up to the line, but nearly all of them limit how tall it can be in each part of the yard, keep it out of the street right-of-way and sight areas at corners and driveways, and expect it to stay entirely on your own land. The distance is rarely the hard part. Knowing exactly where the line is usually is. This guide covers the rules that decide fence placement, real examples from city codes, and how to find your line before you dig.
The short answer
- Your local code sets the rule. Search your city or county code for “fences” or call the planning or zoning office. Unincorporated land follows the county.
- Side and rear lines are usually the easy part. Many codes allow a fence at or near these lines, often up to 6 feet tall, sometimes more.
- Front yards are stricter. Fences in the front setback are commonly capped around 3 to 4 feet, and corner lots have visibility triangles where tall fences are not allowed.
- The whole fence must be yours. Posts, concrete footings and rails all need to stay on your side unless you and your neighbor agree otherwise in writing.
- The city cannot tell you where the line is. A licensed land surveyor can. County parcel maps only give you an estimate.
Who decides how close a fence can be
Fence rules usually live in the zoning or development code, next to the rules for setbacks, accessory buildings and corner visibility. A building permit may also apply, depending on height and material. Layered on top can be:
- HOA covenants, which often control style, height, color and placement, and may require approval before you build. See how to find HOA covenants.
- Easements shown on the plat or in your deed, which can limit what you put in a utility or drainage strip.
- State law on shared boundary fences, spite fences and adverse possession.
A fence is not a building, so the setbacks that apply to houses usually do not apply to it. That is why many codes let fences go right to the line while a shed has to sit a few feet back. If you are planning both, our guide on how close to the property line you can build a shed covers accessory structure setbacks.
What real city codes say
Rules vary, but a few published examples show the usual pattern:
| City | Rule highlights |
|---|---|
| Portland, Oregon | Fences may be built on private property. Every part, including footings, must stay inside your property lines. In many zones fences in front setbacks are limited to 3-1/2 feet, and fences up to 8 feet are allowed in side and rear setbacks. Wood fences up to 7 feet do not need a building permit. |
| Concord, California | A wooden fence 6 feet or shorter generally needs no permit. In the front yard setback, typically 20 feet deep, fences are capped at 3 feet. Near intersections and driveways, sight visibility triangles also hold fences to 3 feet. |
| Duvall, Washington | A fence permit is required for fences next to a right-of-way, open space, park, trail or sensitive area. The site plan must show property lines, easements and nearby rights-of-way. |
All three cities make the same point in their handouts: the city does not know exactly where your property line is. Concord says a property line survey is the only accurate way to locate it, even for fences that need no permit. Duvall says you may need a survey before applying.
Building on the line vs. a little inside it
Even where the code allows a fence right on the line, many owners set it a few inches to a couple of feet inside. The reasons are practical rather than legal:
- Footings spread. A post centered on the line puts half the concrete on the neighbor’s land.
- Maintenance. A small gap lets you paint, stain and repair your side without stepping onto the neighbor’s lot.
- Margin for error. Corner pins can be off from where you think they are, and a fence a foot over the line is an encroachment that may have to come down.
- Clear ownership. A fence fully on your side is plainly yours. A fence straddling the line raises questions about who owns it and who pays for repairs. See who owns the fence on a property line.
Setting a fence inside the line does not give the strip on the other side to your neighbor, but long-term use of land can matter in some states. If you leave a gap, keep using and maintaining the strip, and read up on adverse possession if an old fence has stood off the true line for a long time.
If your neighbor wants a shared fence on the line, put the agreement in writing: location, cost split, style and who maintains which side. Concord’s handout notes that shared fence location, upkeep and replacement are a private matter between owners.
Rules that matter more than the distance
Height by yard area
Most codes split the lot into front, side and rear areas. Expect a lower limit in front and a higher one beside and behind the house. Watch how height is measured. Some codes measure from the lowest grade beside the fence, and lattice or a fence on top of a retaining wall often counts toward the total.
Corner lots and driveways
Corner lots have two street sides. Codes usually keep a triangle near the intersection clear of anything tall so drivers can see, and some add smaller triangles where driveways meet the street. The front of a corner lot may not be the side your front door faces.
The street right-of-way
Your front property line is often not at the curb or the sidewalk. The public right-of-way frequently extends some distance onto what looks like your lawn, and fences generally cannot go there without permission. Check the plat or the right-of-way on a parcel viewer before setting front posts.
Easements and buried lines
A fence across a utility or drainage easement may be allowed, but the utility can usually remove it to reach its lines, and you pay to put it back. Look up easements on your property, and always call 811 before you dig post holes.
Pools and special fences
Pool barriers usually need a permit and have their own height and gate rules. Some codes ban certain materials, such as barbed wire or electric fencing in residential areas.
How to find your property line first
- Pull the plat and deed. The recorded plat gives lot dimensions and bearings, and the deed tells you which lot you own.
- Look at the county parcel map. Free county GIS viewers show lot lines over aerial photos, but they are drawn for tax mapping. Read how accurate GIS maps are for property lines before trusting them for a fence.
- Find the corner markers. Many lots have iron pins or pipes at the corners. Our guide to finding property corners explains what to look for.
- Hire a surveyor when it matters. If pins are missing, the line is close, or the neighbor disagrees, a boundary survey settles it. See how much a land survey costs.
Before you build: a quick checklist
- Read the fence section of your local code, or call zoning, and ask about height, front yard, corner and permit rules.
- Check HOA covenants and get written approval if required.
- Confirm the property line and mark it with string between the corners.
- Check the plat for easements and the street right-of-way.
- Call 811 a few days before digging.
- Talk with your neighbor. It costs nothing and prevents most fence disputes.
- Decide how far inside the line to set posts, and keep your survey or plat with your records.
If a fence has already gone up in the wrong place, our guide on resolving a boundary dispute covers next steps. This page is general background, not legal advice.
Questions people ask
How close to the property line can I build a fence?
It depends on your local code. Many cities and counties allow a fence at or near side and rear lines, but limit height, keep fences low in front yards and at corners, and require the whole fence, footings included, to stay on your land.
Can I put a fence right on the property line?
Sometimes, if your code allows it and your neighbor agrees. A fence centered on the line partly sits on the neighbor's land, so many owners set it slightly inside or sign a written shared-fence agreement.
How tall can a fence be near the property line?
Side and rear fences are often allowed around 6 feet, and some codes allow more. Front yard fences are commonly limited to about 3 to 4 feet. Check the exact numbers in your local code.
Do I need a survey to build a fence?
Not always, but it is the only accurate way to locate the line. City handouts commonly say they cannot tell you where your property line is, and some require a survey for certain fence permits.
Can I build a fence on a utility easement?
Often you can, but the utility may remove it to reach its lines, usually at your cost. Check the plat for easements and call 811 before digging post holes.
What happens if my fence is over the property line?
It is an encroachment. The neighbor can ask you to move it, and a long-standing fence can lead to boundary disputes. A survey, a written agreement or moving the fence are the usual fixes.