In most residential neighborhoods, a fence has to sit somewhere between 25 and 40 feet back from the edge of the pavement, and the answer to how close a fence can be to the road comes in two parts that stack on each other. First, your property line usually isn’t at the curb; a public right-of-way separates the road from where your land legally begins. Second, once you’re on your own land, the zoning code still requires a front-yard setback, typically 10 to 25 feet, before you can put a fence in the ground. Getting this wrong can force you to tear the fence out at your own cost.
Your Property Doesn’t Start at the Curb
The biggest mistake homeowners make is assuming their land begins at the pavement, sidewalk, or curb. It almost never does. A strip called the public right-of-way extends into what looks like your front yard, and the local government controls it for road maintenance, sidewalks, drainage, and utility access. You may mow the grass on it and pay taxes as if it were yours, but you generally cannot put permanent structures on it.
Right-of-way widths depend on how the road is classified. A quiet street serving a handful of homes might have a 40-foot right-of-way measured from the road’s centerline. A busier residential road might have 50 feet or more. That means the right-of-way boundary can sit 10, 15, or 20 feet inside what you thought was your yard.
The reliable way to find the true line is to locate your property corner pins, which are usually iron rebar or steel pipes driven in during the original subdivision survey. If those pins are missing or buried, a licensed surveyor can re-establish them. A professional boundary survey will also flag the right-of-way boundary and any recorded easements.
Front-Yard Setbacks Stack on Top of the Right-of-Way
Even once you know where your property line falls, you usually can’t build right on it. Zoning codes impose setbacks, which are minimum distances a structure has to sit from the property boundary. For fences, front-yard setbacks typically run 10 to 25 feet, though some communities allow a fence at the front property line as long as it stays short. Side-yard and rear-yard setbacks for fences are usually smaller or nonexistent.
Because setbacks are measured from the property line, they add to the right-of-way distance. If the right-of-way puts your property line 15 feet behind the curb and your zoning code then requires a 15-foot front setback, your fence ends up 30 feet from the road. Homeowners with shallow lots often lose more usable frontage this way than they expected.
Height Limits Depend on Which Yard
Placement is only half of the rule; height is the other half, and it differs by which part of the yard the fence occupies.
- Front yard: usually capped at 3 or 4 feet, so drivers, pedestrians, and emergency responders can see over it.
- Side and rear yards: usually allowed up to 6 feet, with some communities permitting 8-foot privacy fences in rear yards, particularly where the lot backs onto a commercial property or busy road.
Height is generally measured from the finished grade on the higher side of the fence, not from the top of a retaining wall or berm. A 6-foot fence built on top of a 2-foot berm reads as an 8-foot barrier under the ordinance, and it will fail inspection.
Corner Lots and Sight Triangles
Corner lots come with an extra restriction that catches people off guard. Where two streets meet, most municipalities establish a sight triangle, sometimes called a clear-vision triangle, at the intersection. It’s a triangular zone formed by measuring a set distance (often 25 feet) along each street’s right-of-way line from the point where they intersect. Inside that triangle, nothing between roughly 3 and 8 feet tall can block a driver’s line of sight. Some communities ban fences in the triangle outright.
If you own a corner lot, your fence along both street frontages may need to stop well short of the corner, drop to 3 feet near the intersection, or angle back. Sight triangle violations are among the fastest to draw a code enforcement notice because they are immediately visible from the street.
Easements and Fire Hydrant Clearances
A utility easement is a recorded right that lets a utility company access a strip of your property for power lines, gas pipes, water mains, or similar infrastructure. Easements appear in your deed and on a survey. If you build a fence across one, the utility can require you to remove it at your own expense with no compensation, and can refuse to establish new service at a property where an encroachment exists. The safer approach is to route the fence around the easement corridor or install a gate wide enough for equipment access, though even that usually requires the utility’s approval.
Fire hydrants come with a separate buffer. The national fire code calls for at least 36 inches of clearance around the hydrant’s circumference and 60 inches of clearance in front of any connection larger than 2.5 inches in diameter, so firefighters can attach hoses without kinks or obstructions.1National Fire Protection Association. NFPA 1 and Fire Hydrant Accessibility Fences, landscaping, and mailboxes are among the most common obstructions fire departments flag.
HOAs Add a Second Layer
If your property sits in a homeowners’ association, the CC&Rs impose restrictions on top of whatever the local zoning code requires. HOA fence rules often go beyond height and placement to regulate materials, colors, and styles. The zoning code might allow a 6-foot chain-link fence in your backyard; the CC&Rs might require wood or vinyl and cap the height at 4 feet.
When the two conflict, the stricter rule controls. Violating the HOA’s version can trigger fines, mandatory removal, or a lien on your property, and those consequences are separate from anything the city does. Submit fence plans for HOA architectural review before you apply for the municipal permit; approval can take weeks.
When You Can Ask for a Variance
If the standard setback makes it impractical to fence your property in a useful way, you can apply to your local zoning board of appeals for a variance. Fence setbacks are dimensional variances, which usually require you to show a “practical difficulty” rather than the higher “undue hardship” standard used to change a property’s allowed use.
Practical difficulty generally means either that strict compliance prevents a reasonable improvement consistent with the neighborhood, or that it imposes unjustified expense given the scope of the project. A narrow, irregularly shaped lot where the setback leaves almost no fenced area is a stronger case than simply wanting more yard. One factor that sinks applications: the difficulty cannot be self-created. If you or a prior owner took an action that foreseeably caused the problem, the board is unlikely to grant relief. Boards can also approve variances with conditions attached, such as a lower fence height or specific materials.
What Happens if You Place the Fence Wrong
A fence that violates a setback or crosses into the right-of-way draws a notice of violation from local code enforcement. The notice identifies the problem and gives you a deadline to move or remove the fence at your own expense. Miss the deadline and most municipalities impose daily fines that accumulate until the violation is fixed. Persistent cases can end with a court order compelling removal.
Crossing into a neighbor’s property is a separate problem. A neighbor can sue to force removal and recover damages, including the cost of the survey they commissioned to prove the encroachment. These disputes escalate fast.
An encroaching fence also complicates selling the house. Title companies treat encroachments as standard exceptions to coverage, so they won’t insure against losses arising from the problem. If a buyer’s survey shows the fence crosses a property line or sits in the right-of-way, buyers and their lenders often require the issue to be resolved before closing, which means removing the fence under time pressure and at a worse negotiating position than if you had placed it correctly the first time.
Before You Build
Order a professional boundary survey. A licensed surveyor will locate your corners, identify the right-of-way boundary, and flag recorded easements. Residential boundary surveys generally run somewhere in the range of $1,200 to $5,500 depending on lot size, terrain, and whether the original markers are still in place. That price is easier to accept than the cost of tearing out a fence that crosses the right-of-way.
Pull the permit. Most jurisdictions require a building permit for a new fence, though some exempt short fences under a set height (often 6 feet). The application asks for a site plan showing the proposed location, height, materials, and distance from property lines. Apply and get approval before construction starts; building first and asking permission later nearly always costs more.
Call 811. Federal law requires anyone planning to dig to first contact the national one-call notification system to have underground utilities marked.2Office of the Law Revision Counsel. 49 U.S. Code 60114 – One-Call Notification Systems After you submit the request, utility operators have a set number of days (usually two to three business days depending on the state) to mark their lines with color-coded paint or flags. Skip this step and you’re on the hook for repair costs, service interruption losses, and potential fines if a post hole hits a gas line, fiber-optic cable, or water main. The U.S. Department of Transportation reports that calling 811 eliminates incidents 99 percent of the time.3U.S. Department of Transportation. Call 811 Before You Dig The call is free and takes about ten minutes.