Fence Height: Privacy, Code & Material Guide

By RugCalc Editorial Team · Last updated: 2026-10-13 · 6 min read

Quick answer: most US codes allow a 6-ft fence in the back yard and 4 ft in the front without a permit. A 6-ft fence gives good privacy. Here's what height to pick and why.

Skip the manual math? Use the free fence calculator — it does the work in seconds.
In this guide
  • Height & privacy
  • Code limits
  • Pool fences
  • Height by material
  • Worked example
  • Common mistakes

Height & privacy

A 6-foot fence gives solid privacy at street and neighbor level. Below that — 4 ft — you're mostly marking a boundary, not blocking sightlines. On a sloped yard you may need 6–8 ft to get the same effective height, but anything over 6 ft usually needs a permit and a setback.

Code limits

Most US municipalities cap fences at 6 ft in the back yard and 4 ft in the front without a permit. Rules vary by city, and HOAs are often stricter. Before you buy posts, check your local building department and HOA rules — a fence you have to tear down is the most expensive kind.

Pool fences

Pool codes require a fence at least 4 ft (some areas 5 ft) with self-closing, self-latching gates and no climbable gaps. Pool fencing is the most regulated category — verify your local code before planning, because a decorative fence that doesn't meet pool rules won't pass inspection.

Height by material

MaterialTypical heightsNote
Wood privacy6 ftSolid panels, max privacy
Vinyl4–6 ftLow-maintenance, price jumps with height
Chain link4–6 ftSecurity/containment, not privacy
Picket3–4 ftDecorative, front yards

Taller material costs more per linear foot — vinyl especially. Choose the minimum height that meets your need to control cost.

Worked example

A 50-ft back-yard privacy run at 6 ft:

The fence calculator counts posts, rails, pickets, and cost from your exact run and height.

Common mistakes

FAQ

What is the max fence height without a permit?

Most US municipalities allow a 6-foot fence in the back yard and 4 feet in the front yard without a permit. Rules vary by city and HOA, so check local code before building.

What fence height gives privacy?

A 6-foot fence provides good privacy from neighbors and street level. For more privacy on a sloped yard, 6–8 feet works, but anything over 6 feet usually needs a permit.

How tall should a pool fence be?

Most pool codes require a fence at least 4 feet (some areas 5 feet) tall, with self-closing, self-latching gates and no climbable gaps. Check your local code — pool fences are strictly regulated.

Can I build an 8-foot fence?

An 8-foot fence is allowed in some back yards but usually requires a permit and often a setback. Many HOAs cap heights at 6 feet. Check both your city code and HOA rules first.

Use the calculator. Get exact material for your fence with the fence calculator.