Fence Height: Privacy, Code & Material Guide

By RugCalc Editorial Team · Last updated: 2026-06-03 · 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.
New wooden fence in a garden
In this guide
  • Height & privacy
  • Code limits
  • Pool fences
  • Height by material
  • Worked example
  • Common mistakes
measure diagram for fence-height-and-privacy
Measure the area. 1) Measure the length. 2) Measure the height or width. 3) Multiply for the total fence area.

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.

plan diagram for fence-height-and-privacy
Plan the fence. 1) Map the area you are covering. 2) Note openings or obstacles. 3) Subtract them from the total.

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.

chart diagram for fence-height-and-privacy
Find your size. 1) Pick your room or size. 2) Read across to the amount. 3) Round up to what you buy.

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.

coverage diagram for fence-height-and-privacy
Check coverage. 1) Note how much one unit covers. 2) Divide your area by it. 3) Multiply by coats or rows as needed.

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.

zones diagram for fence-height-and-privacy
Work in parts. 1) Measure first. 2) Do the fence math. 3) Add waste, then round up.

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

apply diagram for fence-height-and-privacy
Put it down in rows. 1) Lay the first row or coat. 2) Keep spacing even. 3) Cut to fit and finish.

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.