How to Build a Wood Fence — Step by Step
A fence is only as good as its posts — set them straight, deep and in concrete, and the rest is straightforward.
A 6 foot wood privacy fence is the classic weekend-warrior project: repetitive, physical, and very satisfying when the last picket goes on. The work that matters most is invisible — posts set deep, plumb and in concrete. Get that right and the fence stands for 15 to 20 years; get it wrong and it leans within two winters. Check the property line, local height limits and any HOA rules before you dig. As a 2026 planning estimate, a wood privacy fence runs roughly $15 to $45 per linear foot installed (Angi / Home Depot 2026 cost guides); DIY materials run roughly $8 to $20 per linear foot.
1. Plan the line and check the rules
Walk the line with your neighbor if the fence sits on or near the boundary — a survey is cheaper than moving a fence. Mark the line with stakes and a taut string, and mark post positions every 8 feet (6 feet in high-wind areas). Most US towns cap backyard fences at 6 feet and front-yard fences at 3 to 4 feet, and many HOAs dictate style and color, so confirm before ordering lumber. Call 811 at least two business days before digging.
- Put the finished side of the fence facing outward — many towns require it, and it is good neighbor practice.
- Plan gates early: a 3 to 4 foot gate for people, 8 to 10 feet if a mower or trailer needs through.
- Buy 10% extra pickets; lumber yards include some warped boards in every bundle.
2. Set the posts
Dig holes one-third the post length deep and at least 24 inches — 36 to 42 inches in frost country — with a post-hole digger or a rented auger, flaring the bottom wider than the top so frost cannot lift the post. Set 4x4 posts for a fence up to 6 feet (6x6 for gates and corners), brace them plumb in two directions, and pour concrete around them: two 60 lb bags of fast-setting mix per hole is typical for a 12 inch hole. Slope the concrete at the top so water runs away from the wood, and keep the post base out of standing water. Let the concrete cure 24 to 48 hours before hanging rails.
- Use pressure-treated posts rated for ground contact (UC4A) — above-ground rated lumber rots at the soil line.
- Check plumb on two faces before the concrete sets; a post that leans 1 inch at the top is obvious from the street.
- Do not fill the hole with concrete all the way to the top in wet soil — a gravel bed under the post drains water away.
3. Rails and pickets
Run two 2x4 rails for a fence up to 5 feet, three rails for a 6 foot fence, spacing them evenly and fastening with exterior screws or nails. For the strongest build, face-nail the rails between the posts; for speed, run them across the post faces. Then hang pickets: start at one end, keep a consistent gap (none for privacy, 1/2 to 1 inch for a shadowbox or spaced look), and use a spacer block so every gap matches. Fasten each picket to every rail with two screws — nails are faster but screws hold through seasonal movement. Use hot-dip galvanized or stainless fasteners; plain steel rusts and stains the wood within a year.
- Work from a string line at the top so the picket tops form a straight line even if the ground undulates.
- Cut the last picket in each run to width rather than leaving a ragged gap at the post.
- Leave a 2 inch gap under the pickets so they never sit in wet soil or mulch.
4. Gates and finishing
Build the gate frame from 2x4s with a diagonal brace running from the bottom hinge side up to the top latch side — the brace carries the weight and stops the gate from sagging. Hang it on heavy-duty hinges screwed into the gate post (a 6x6 post is worth it here), and fit a latch that can be operated from both sides. Let the fence dry for a few weeks, then stain or seal all sides — a sprayer does a 100 foot run in an hour, but back-brush it in so the stain soaks into the grain. Re-seal every 2 to 3 years.
- Hang the gate with a slight upward tilt toward the latch — about 1/4 inch — so it settles level instead of dragging.
- Never stain fresh pressure-treated lumber the same week; wait until the surface is dry to the touch and water no longer beads.
- Trim grass and soil away from the bottom rail each spring; buried wood rots first.
Frequently asked questions
How deep should fence posts be?
One-third of the post length and at least 24 inches deep, or below the local frost line — 36 to 42 inches in cold climates. Shallow posts heave in winter and lean within a year or two.
How far apart should fence posts be?
Eight feet on center is standard for a 6 foot wood fence; six feet in high-wind areas or for heavier board-on-board designs. Wider spacing saves posts but lets rails sag.
How much concrete do I need per fence post?
About two 60 lb bags of fast-setting mix per post for a 12 inch diameter hole 24 to 36 inches deep. Rocky or wide holes take more — buy one extra bag per five posts.
Should the finished side of the fence face my neighbor?
Yes — the smooth, finished side faces outward in most towns, and many local codes require it. The rails and posts face your own yard.
How long does a wood fence last?
Fifteen to 20 years for pressure-treated pine or cedar that is sealed and kept out of standing soil and water. The posts usually fail first, at the ground line — which is why ground-contact rated lumber matters.
Related calculators
- Fence Calculator — Posts, sections, rails and pickets for a wood fence.
- Post Hole / Sonotube Calculator — Concrete volume, bag count and water for round post holes and Sonotube footings.
- Concrete Calculator — Cubic yards and bag counts for slabs, patios and pads.
Sources & method: Post depth one-third of length / below frost line and ground-contact rated lumber UC4A (American Wood Council / pressure-treatment standards); 6 ft backyard height limits and finished-side-out rules (typical US municipal codes — check local code); fast-setting concrete ~2 x 60 lb bags per post (manufacturer planning rates); 2026 planning cost range $15–$45 per linear foot installed (Angi / Home Depot 2026 cost guides).