Start by calling 811 to mark utility lines, then verify property lines and local codes before you dig a single post hole.
Building a backyard privacy fence is a weekend-to-two-weekend project for most homeowners, but the prep work decides whether it lasts. Skip the permit check or guess at your property line, and you could be tearing the whole thing down. The working order is: plan, confirm rules, mark lines, dig, set posts, hang rails, then attach your boards or panels. It’s physical work, but straightforward when each step is done right.
Check Local Rules and Property Lines First
Fence placement, height, setbacks, and permit requirements vary by city and HOA. Some municipal codes require fences to sit entirely within property lines, ban dangerous components like barbed wire, and limit front-yard privacy fences to 3 feet in height. Skipping this verification is the most common DIY mistake because a fence built a foot over the line can mean a forced removal.
Before designing anything, contact your local building department and review your HOA covenants. Order a property survey if you don’t have one, and confirm the permit situation — many areas require one even for backyard fences.
How to Map Out the Layout
Mark your fence line using stakes and a string line so you can walk the route and spot problems before digging. Plot post and gate locations on graph paper first, accounting for the gate swing and hardware. Gate posts need wider spacing to fit the hardware and full-picket sizing.
One detail people miss: how the ground slopes. A fence that follows a drop without adjusting board lengths leaves gaps at the bottom or an uneven top line. Plan your board heights around the slope before you set a single post.
Set the Posts, Then Hang the Rails
Dig post holes about 30 inches deep or below the local frost line — some frost-heavy areas call for 3 to 4 feet. Add a few inches of gravel at the bottom for drainage, then set each post in concrete, checking it with a level in both directions before the concrete sets. Posts that aren’t plumb create a wavy fence that never looks right.
After the concrete cures, attach rails perpendicular to the posts, then install your privacy boards with no gaps or with controlled spacing depending on the style you chose. Use a string line across the tops to keep the finished edge straight. A consistent top line separates a professional result from an obvious DIY job.
Wood Maintenance and Common Mistakes to Avoid
Pressure-treated wood is the budget-friendly workhorse, but it needs attention. Seal any cut ends during installation so moisture can’t wick in, and wait about two months before staining so the wood can dry out. Then apply two coats of penetrating stain for the best protection.
Beyond skipping permits and property-line checks, the mistakes DIY guides flag most often are neglecting gate spacing, failing to plan for slope and drainage, and rushing the alignment work. Posts that aren’t level and boards placed without a string line create that wavy top edge that’s hard to fix later.
Wood costs less upfront but demands regular maintenance; vinyl and composite cost more but need almost none.
Bottom line: Do the paperwork and marking right, set plumb posts below the frost line, and keep your alignment disciplined — the fence will look good and stand for decades. If you’d rather compare ready-made panels and kits for your yard, our roundup of the best backyard privacy fences breaks down materials, pricing, and durability side by side.
FAQs
Do I need a permit to build a privacy fence?
Most municipalities require a permit for fences over a certain height, typically 6 feet for backyards, but rules vary widely. Check with your local building department before buying materials. Your HOA may also have its own approval process with stricter rules than the city.
How deep should fence posts be set?
Plan for about 30 inches deep or below your local frost line, whichever is greater. In cold climates, that often means 3 to 4 feet. Posts set too shallow will heave when the ground freezes and thaw, which eventually tilts the whole fence section.
What’s the best wood for a privacy fence?
Pressure-treated pine is the most common choice for its balance of cost and rot resistance. Cedar and redwood resist insects naturally and look nicer but cost more. Whatever you pick, seal cut ends and wait about two months before staining pressure-treated wood.
References & Sources
- Fine Homebuilding. “A Privacy Fence With Appeal.” Covers layout, post spacing, and board installation technique.
- The Spruce. “How to Build a DIY Privacy Fence.” Details the full build sequence including frost-line depths and common mistakes.
- Lowe’s. “How to Install a Wood Fence.” Step-by-step installation guidance for posts, rails, and boards.

