A fence that ends up partly on a neighbor’s property can cost more to remove and rebuild than it did to install the first time. Establishing the correct fence line before you dig the first post hole is the most important step in any fence project, and it is the one most homeowners skip. This guide walks through how to find your true property edge, the setback and “good-neighbor” rules that vary by state, and the layout sequence that produces a straight, level run.
Part of our Decks & Outdoor guide — explore the full guide →
Why You Cannot Trust the Curb, Hedge, or Old Fence
Existing landmarks lie. The hedge that has been there for 30 years was probably planted on a guess. The previous fence may have been built by someone who eyeballed the property pin, missed by 18 inches, and that error gets adopted by every subsequent owner as the assumed boundary. In many states, a misplaced fence that stays in place long enough can actually transfer ownership of that strip through adverse possession, after a period set by state law that varies widely.
The only way to know where your property ends is to find the iron pins set by the original surveyor, or hire a licensed surveyor to find them for you. Pins typically sit at each corner, sometimes 6 to 12 inches below grade, and a metal detector can usually find them on a standard residential lot.
Locating the Property Pins Yourself
Pull your plat map from the county recorder or your closing documents. It will show pin locations relative to road centerlines or other monuments. Walk the approximate corners with a metal detector (a Garrett ACE 300 at $230 works well). When you hit a hit, dig carefully with a hand trowel until you find the pin head, usually a 1/2-inch rebar with a plastic cap.
Once you find two corner pins along one edge, run mason’s line tightly between them. That string is your true property line. If you cannot locate the pins after a thorough search, hire a surveyor. A boundary survey runs $400 to $900 for a typical quarter-acre lot and is cheap insurance against a $5,000 mistake.
Setback Rules and Local Codes
Some municipalities require fences to sit a short distance inside your property line, and many cap height at 6 feet for backyards and 4 feet for front yards. Corner lots usually have a sight-triangle restriction near the intersection that limits height to 3 feet. Call your zoning office before you order materials. That 15-minute phone call can prevent costly tear-down orders.
HOAs add another layer. Many require board approval of fence style, color, and material before construction. Submit your plan in writing, get the approval in writing, and keep both. Verbal approvals from the HOA president vanish the moment a neighbor complains.
Good-Neighbor Laws and Cost Sharing
California, Vermont, Connecticut, and several other states have fence-cost statutes that let you compel adjacent owners to share the cost of a boundary fence under specific conditions. In California Civil Code 841, you must give 30 days written notice describing the fence, the cost, and your reason. The neighbor can object and force a court determination of “equal benefit,” but absent a successful objection, they owe half.
Most states do not have these statutes and rely on neighborly negotiation. If you want cost sharing, approach the neighbor early, before pricing is final, and offer a choice of two or three styles. Get any agreement in a signed letter before you start.
Laying Out the Fence Line
Once the property edge is known and you have decided on a setback (12 inches inside is common for maintenance access), the layout sequence is:
- Set stakes at each corner of the new fence run, offset from the property pins by your chosen setback.
- Run mason’s line between corner stakes pulled tight.
- Mark post locations along the line at 6-foot or 8-foot centers depending on panel width. A 100-foot run with 8-foot spacing needs 13 posts (one at each end plus 11 between).
- Spray paint each post location, then call 811 at least 3 business days before digging to mark utilities.
- Dig holes 30 to 36 inches deep, 10 to 12 inches wide, with the bottom flared slightly for a bell shape.
For long runs over 50 feet, set the two end posts first in concrete, let them cure 24 hours, then run a top string between them. Each intermediate post gets aligned to that string before the concrete is poured. This produces a perfectly straight fence even on slightly sloping ground.
Material Choices and Costs
Installed fence costs in 2025 break down by material:
- Pressure-treated wood (1×6 dog-ear panels): $20 to $35 per linear foot installed.
- Cedar privacy fence (1×6 board-on-board): $35 to $55 per linear foot installed.
- Vinyl 6-foot privacy: $35 to $60 per linear foot installed.
- Aluminum or steel ornamental: $35 to $80 per linear foot installed.
- Chain link 4-foot galvanized: $12 to $25 per linear foot installed.
For a 150-foot perimeter on a typical urban lot, expect $4,500 to $8,000 for a quality cedar privacy fence and $5,000 to $9,000 for vinyl.
Common Fence Line Mistakes
The three most expensive mistakes on residential fence projects are: building before locating the pins, skipping the 811 call and hitting a buried utility (gas line strikes can bring large repair charges plus liability), and pouring concrete in cold or rain. Concrete needs 50°F or warmer for the first 48 hours and dry conditions to cure properly. A wet pour in November will heave by spring and pull every post out of plumb.
Build it right the first time. Find the pins, file the permit, mark the utilities, set the corners in dry weather, and your fence will outlast the next two owners.
FAQ
Who owns the fence on the property line?
Generally, the person who paid for it owns it, even if it sits exactly on the line. Some states treat boundary fences as joint property by default.
Can my neighbor make me move my fence?
Only if it sits on their property or violates code. A correctly placed fence on your side of the line is yours to keep.
Do I need a permit to build a fence?
Most municipalities require permits for fences over 6 feet tall. Some require them for any fence. Always check before building.
What is the “good side” rule?
Many local codes and HOAs require the finished side of the fence (smooth side, no posts visible) to face the neighbor or street.