How to Build a Privacy Fence
Complete guide to building a 6-foot cedar dog-ear privacy fence — from staking the property line and pulling permits through setting posts in concrete, installing pressure-treated rails, hanging cedar pickets, and building a gate. Covers common mistakes that lead to leaning posts, rot at grade, and premature picket splitting. Includes a full bill of materials for a 100 linear-foot fence with one gate.
Check Property Lines, HOA Rules & Pull Permits
Before you stake or dig anything, confirm the exact location of your property lines. A fence on the wrong side of the line is a neighbour dispute waiting to happen and can result in forced removal at your expense. Pull your property survey from your mortgage closing documents. If none exists, hire a licensed land surveyor ($300–$800) — a county GIS parcel map is a useful rough reference but is not legally binding. Many municipalities require a fence permit for fences over 4 ft, front-yard fences, and corner-lot fences. Fees are typically $25–$100. Most jurisdictions also require a 6–12 in setback from the property line. Call 811 before any digging, and get HOA approval in writing before purchasing a single board.
🔧Tools neededshow
- •Tape measure
- •Property survey document (pull from mortgage closing papers)
- •Calculator
Even if your neighbour has an existing fence, do not assume it marks the true property line. Many existing fences are installed slightly inside or outside the legal boundary. Always verify before digging — relocating a fully built fence costs far more than a surveyor.
Mark the Fence Line & Post Layout
Stake the fence line using mason's string and walk the entire run to check for grade changes. You need to decide before setting a single post whether you want a racked fence (follows the slope continuously) or a stepped fence (stays level between posts, drops in increments). Racked fences look more natural on gradual slopes; stepped fences are better for steep grades and are easier to build. Space posts a maximum of 8-ft on-centre for a 6-ft privacy fence — 6-ft spacing is stiffer and better for high-wind areas or soft soil. For 100 LF at 8-ft spacing: 100 ÷ 8 = 12.5 spans, rounding to 13 + end posts + gate posts = 17–18 posts depending on corners. Mark every location with spray paint and verify spacing by measuring the full run.
📦Materials for this stepshow
- •2×4 scrap stakes or wooden garden stakes (~20)
- •Mason's line / string line — 100 ft
- •Fluorescent spray paint (orange or pink)
🔧Tools neededshow
- •Tape measure (100-ft)
- •Framing hammer
- •Speed square
Walk your string line and look for anything that will interrupt the fence run: buried irrigation lines, tree roots, utility boxes, downspouts. Rerouting around an obstacle mid-build costs far more time than planning around it now. Photograph the full staked line before digging.
Dig Post Holes
Post hole diameter should be at least 3× the post width — minimum 12 in for a 4×4 post, though 10–12 in is standard for fence posts. Depth rule: one-third of the total post length, plus 6 in for the gravel drainage base. For a 6-ft fence using 10-ft posts: ⅓ of 10 ft = 40 in + 6 in gravel = 46 in — which in most northern climates also clears the frost line. Always confirm with your local building department. After digging, add 6 in of pea gravel and tamp lightly before any concrete. This drainage base is the simplest thing you can do to extend post life — standing water at the post base accelerates rot even in UC4B treated lumber.
📦Materials for this stepshow
- •Pea gravel 0.5 cu ft — 1 bag per post hole × 18 posts
🔧Tools neededshow
- •Rental 1-man power auger (~$80/day; essential for runs over 10 posts on any soil type)
- •Clamshell post-hole digger (cleanup and tight spots)
- •Tamping rod
- •Measure tape
Never skip the gravel base. UC4B pressure-treated posts are rated for ground contact with soil, but no treatment prevents rot when the post end sits in pooled water indefinitely. The 6-in gravel base drains water away from the end grain — it costs one bag of gravel per hole and adds years to post life.
Set Posts in Concrete
Place each post in its hole, brace it plumb in two directions with 2×4 kickers staked to the ground, and pour concrete around it. Quikrete Fast-Setting is ideal for fence posts — pour it dry around the post, add water per bag label, and it sets in 20–40 minutes without mixing. This lets you move down the line and set multiple posts in one day. Crown the concrete surface at grade so water drains away from the post rather than pooling. After setting each post, measure to the previous one to confirm spacing before the concrete stiffens. Let all posts cure 24–48 hours before attaching rails.
📦Materials for this stepshow
- •Quikrete Fast-Setting Concrete Mix 50 lb — 2 bags per post × 18 posts = 36 bags
- •2×4 kicker braces — 36 (2 per post; cut from scrap)
🔧Tools neededshow
- •Spirit level or post level
- •5-gallon bucket (water)
- •Measure tape
- •Framing hammer (set kicker stakes)
The concrete crown is not optional. If you leave the concrete surface flat or concave at grade, every rain event pools water against the post. That moisture wicks into any gap between the post and concrete, accelerates corrosion of the treated wood, and leads to rot at the base. Crown every footing with a small mound and trowel it smooth so water runs away from the post.
Cut Posts to Height & Install Rails
Snap a chalk line across all posts at 6 ft above finished grade, verify it from both ends, then cut every post at that mark in a single pass with a circular saw or reciprocating saw. On sloped ground, post heights will vary — each post must be individually measured from grade, not from the top of the previous post. Immediately after cutting, apply end-cut wood preservative to every post top and install a post cap. The exposed end grain is the most vulnerable point on the entire fence — rain hits it directly and it wicks moisture deep into the post. Install 3 rails per panel: top at 7½ in below post top, middle at mid-height, bottom at 8 in above grade. Attach with rail brackets for speed and strength, or toenail with 3-in exterior coated screws.
📦Materials for this stepshow
- •4×4 aluminum post cap — 1 per post × 18 posts (4-pack, so 5 packs)
- •2×4×8 UC4A (Ground Contact) PT fence rail — 42 boards (3 per panel × 12 panels + 6 gate rails)
- •#8 × 3-in exterior coated screws — 1 box (rail-to-post toenail fastening)
- •End-cut wood preservative 1 qt — apply to every cut post top within 30 min
🔧Tools neededshow
- •Circular saw or reciprocating saw
- •Chalk line + chalk
- •Measure tape
- •4-ft level (check rails are level; critical on sloped runs)
- •Drill / impact driver
- •Rail bracket L-bracket (optional but faster than toenailing)
Use pressure-treated 2×4 rails — not untreated pine, not cedar. Rails are the second most common fence failure point after posts. The bottom rail sits within 8 in of grade and is constantly exposed to moisture splash. Untreated lumber in this position will show rot within 3–5 years. UC4A Ground Contact rated PT is the correct spec.
Hang Cedar Pickets
Cedar is the right choice for 6-ft privacy fence pickets: naturally rot and insect resistant without chemical treatment, dimensionally stable, and takes penetrating stain well. Hold the first picket plumb and set it off the post face rather than flush to the post — this small gap allows the rail to shed water freely. Use a story pole (a scrap 1×2 marked with your gap and height positions) to set every picket without measuring each individually. Standard gap is 5/8 in between pickets. Leave a minimum 2-in gap between the picket bottom and grade — cedar will rot if it contacts soil. Drive nails or screws into each rail: 2 fasteners per rail per picket.
📦Materials for this stepshow
- •1×6×6 cedar dog-ear picket — 680 (100 LF at 2-in on-centre = 600 + 10% waste)
- •#8 × 1-5/8-in exterior coated screw 200-pack — 3 packs (if screwing)
- •1-5/8-in galvanized ring-shank fence nail 1-lb — 4 boxes (if nailing)
🔧Tools neededshow
- •Pneumatic finish nailer or framing nailer + galvanized ring-shank coil nails (fastest method)
- •Drill / impact driver + T25 bit (if screwing)
- •Story pole (scrap 1×2 with picket gap and bottom-height mark)
- •4-ft level (check every 5th picket for plumb drift)
- •Measure tape
Ring-shank nails are mandatory for cedar pickets — smooth-shank nails will back out as the cedar expands and contracts seasonally. Within 2–3 years smooth-shank fasteners will have pickets visibly popping. Ring-shank nails mechanically lock into the wood fibre and stay put. If you are using a nail gun, make sure your coil nails are ring-shank galvanized, not smooth electro-galvanized.
Build & Hang the Gate
Build the gate frame on a flat surface before hanging it. Cut two vertical stiles the height of the fence opening and two horizontal rails the opening width minus 1 in on each side for swing clearance. Assemble into a rectangle, then add a diagonal tension brace running from the bottom hinge-side corner up to the top latch-side corner. This diagonal is structural — without it, the gate will sag within a year regardless of hinge quality. Attach pickets to the frame flat on the ground before hanging. For a single walk-through gate, keep the opening 36–42 in — gates wider than 4 ft sag even with diagonal bracing. Hang with at least 2 heavy-duty hinges (3 for gates over 5 ft tall or 30 lb). Shim the bottom of the gate ½ in above grade before securing hinges — most gates drop ¼–½ in in the first year.
📦Materials for this stepshow
- •2×4×8 UC4A PT rail — 4 (gate frame stiles and rails + diagonal brace; cut to fit)
- •1×6×6 cedar dog-ear picket — quantity per gate width (approx. 5–6 pickets for a 36-in gate)
- •Heavy-duty 3-1/2-in gate hinge 2-pack — 2 packs (= 4 hinges; use 3 for heavy gates)
- •Gate latch spring-loaded single-sided — 1
- •½-in structural bolts — 4 (hinge-to-post attachment; do not use screws)
🔧Tools neededshow
- •Drill / impact driver
- •½-in spade bit (hinge bolt holes through post)
- •Socket wrench
- •Circular saw or miter saw (gate frame cuts)
- •Clamps (hold gate frame square while fastening)
- •Speed square
- •½-in shim (gap at gate bottom during hanging)
The diagonal brace direction matters: it must run from the bottom corner on the HINGE side to the top corner on the LATCH side. This puts the brace in compression under the gate's dead weight, which is what prevents sag. A brace running the opposite direction is in tension and will loosen over time. When in doubt: the brace should form a Z-shape from hinge-bottom to latch-top.
Finish & Protect the Fence
Cedar weathers to a natural silver-grey if left unfinished — many people prefer this look and it requires no maintenance. If you want to preserve the warm brown tone, apply a penetrating semitransparent stain after the cedar has dried for at least 6 months. Film-forming products (solid stains, paints) will peel and chip on cedar within 3–5 years as the boards expand and contract — do not use them. The most important finishing tasks are mundane but critical: apply end-cut preservative to every cut post top, keep vegetation off the fence boards, and maintain a 2-in gap at the picket bottoms. Check post bases at grade every few years with a screwdriver — soft wood means rot has started.
📦Materials for this stepshow
- •Ready Seal 5-gal semitransparent stain — 1 can (apply 6–12 months after construction)
- •End-cut wood preservative 1 qt (already applied in Step 5; touch up any missed cuts)
🔧Tools neededshow
- •4-in chip brush or pump garden sprayer (stain application)
- •Paint roller with extension pole (fast application on flat fence face)
Do not stain new cedar immediately. Fresh cedar contains natural oils that repel penetrating stains and prevent proper absorption. Wait 6 months minimum — the surface should feel dry and look slightly weathered. A water bead test confirms readiness: sprinkle water on the board surface. If it beads up, the wood is not ready. If it absorbs within 60 seconds, you can stain.
Materials Required
| Product | Qty |
|---|---|
📦Other Materials12 items | |
🔩 4-in x 4-in x 10-ft In-Ground Pressure-Treated Post (UC4B) ⚠ 4×4×10 UC4B (In-Ground) — 10-ft post gives 4 ft below grade (frost line) + 6-ft above; UC4B required for soil/concrete embedment | 18posts |
🔩 2-in x 4-in x 8-ft Ground Contact Pressure-Treated Fence Rail (UC4A) ⚠ 2×4×8 UC4A fence rail — 3 rails per panel × 12 panels = 36 + 6 gate rails; PT required near grade | 42boards |
🔩 1-in x 6-in x 6-ft Cedar Dog-Ear Fence Picket ⚠ 1×6×6 cedar dog-ear picket — 100 LF at 2-in on-centre spacing = 600 + 10% waste; DO NOT let bottom touch grade (leave 2-in gap) | 680pickets |
🔩 4x4 Aluminum Adjustable Post Cap (4-Pack) ⚠ 4×4 aluminum post cap 4-pk — 5 packs = 20 caps for 18 posts + spares; install immediately after cutting posts to height | 5packs |
🔩 Fast-Setting Concrete Mix 50 lb Quikrete ⚠ Quikrete Fast-Setting 50 lb — 2 bags per post × 18 posts; pour dry into hole and add water; no mixing required; sets in 25 min | 36bags |
🔩 Pea Gravel 0.5 cu ft Bag ⚠ Pea gravel 0.5 cu ft — 6-in drainage base per post hole; prevents post base from sitting in standing water | 18bags |
🔩 3-1/2-in Heavy-Duty Zinc Gate Hinge (2-Pack) ⚠ Heavy-duty 3-1/2-in gate hinge 2-pk — 2 packs = 4 hinges; use 3 hinges on gates over 5 ft tall or 30 lb; galvanized or zinc-plated only | 2packs |
🔩 Gate Latch Spring-Loaded Single-Sided Black ⚠ Spring-loaded gate latch — pool enclosure: upgrade to dual-latch with 54-in height placement; standard walk-through: this latch is sufficient | 1each |
🔩 #8 x 1-5/8-in Exterior Coated Deck Screw Star Drive (200-Pack) ⚠ #8 × 1-5/8-in exterior coated screw 200-pk — 3 packs = 600 screws; 2 screws per picket × 3 rails = 6 screws/picket × 100 face-screw pickets + gate | 3packs |
🔩 1-5/8-in Galvanized Ring-Shank Fence Nails 1-lb Box ⚠ 1-5/8-in galvanized ring-shank nail 1-lb — ring shank is critical (plain nails pop out); alternately use power nailer with 2-in ring-shank coil nails | 4boxes |
🔩 Wood Preservative End-Cut Solution 1 qt Copper Green ⚠ End-cut preservative — apply to every cut post top and any field-cut PT rail ends; apply within 30 min of cutting | 1qt |
🔩 Exterior Wood Stain & Sealer Natural Cedar 5 gal Ready Seal ⚠ Ready Seal 5-gal semitransparent stain — wait 6-12 months before applying; penetrating stains only; no film-forming paint on cedar privacy fence | 1can |
4-in x 4-in x 10-ft In-Ground Pressure-Treated Post (UC4B)
18 posts
⚠ 4×4×10 UC4B (In-Ground) — 10-ft post gives 4 ft below grade (frost line) + 6-ft above; UC4B required for soil/concrete embedment
2-in x 4-in x 8-ft Ground Contact Pressure-Treated Fence Rail (UC4A)
42 boards
⚠ 2×4×8 UC4A fence rail — 3 rails per panel × 12 panels = 36 + 6 gate rails; PT required near grade
1-in x 6-in x 6-ft Cedar Dog-Ear Fence Picket
680 pickets
⚠ 1×6×6 cedar dog-ear picket — 100 LF at 2-in on-centre spacing = 600 + 10% waste; DO NOT let bottom touch grade (leave 2-in gap)
4x4 Aluminum Adjustable Post Cap (4-Pack)
5 packs
⚠ 4×4 aluminum post cap 4-pk — 5 packs = 20 caps for 18 posts + spares; install immediately after cutting posts to height
Fast-Setting Concrete Mix 50 lb
Quikrete
36 bags
⚠ Quikrete Fast-Setting 50 lb — 2 bags per post × 18 posts; pour dry into hole and add water; no mixing required; sets in 25 min
Pea Gravel 0.5 cu ft Bag
18 bags
⚠ Pea gravel 0.5 cu ft — 6-in drainage base per post hole; prevents post base from sitting in standing water
3-1/2-in Heavy-Duty Zinc Gate Hinge (2-Pack)
2 packs
⚠ Heavy-duty 3-1/2-in gate hinge 2-pk — 2 packs = 4 hinges; use 3 hinges on gates over 5 ft tall or 30 lb; galvanized or zinc-plated only
Gate Latch Spring-Loaded Single-Sided Black
1 each
⚠ Spring-loaded gate latch — pool enclosure: upgrade to dual-latch with 54-in height placement; standard walk-through: this latch is sufficient
#8 x 1-5/8-in Exterior Coated Deck Screw Star Drive (200-Pack)
3 packs
⚠ #8 × 1-5/8-in exterior coated screw 200-pk — 3 packs = 600 screws; 2 screws per picket × 3 rails = 6 screws/picket × 100 face-screw pickets + gate
1-5/8-in Galvanized Ring-Shank Fence Nails 1-lb Box
4 boxes
⚠ 1-5/8-in galvanized ring-shank nail 1-lb — ring shank is critical (plain nails pop out); alternately use power nailer with 2-in ring-shank coil nails
Wood Preservative End-Cut Solution 1 qt
Copper Green
1 qt
⚠ End-cut preservative — apply to every cut post top and any field-cut PT rail ends; apply within 30 min of cutting
Exterior Wood Stain & Sealer Natural Cedar 5 gal
Ready Seal
1 can
⚠ Ready Seal 5-gal semitransparent stain — wait 6-12 months before applying; penetrating stains only; no film-forming paint on cedar privacy fence
* Prices are estimates and may vary. Always verify at checkout.
Want to be kept in the loop?
Get notified when we publish new guides and planning tools.
See something off?
Report safety issues or inaccuracies.
Safety & Legal Disclaimer
This guide is for informational purposes only and does not constitute professional engineering, architectural, or contractor advice. Building codes vary by jurisdiction — always verify local requirements, obtain all required permits, and consult a licensed contractor or structural engineer before beginning any construction project. Aribuilds makes no warranty as to the accuracy, completeness, or suitability of this information for any particular project. Use of this guide is at your own risk. Aribuilds accepts no liability for personal injury, property damage, structural failure, or code violations.
Product links on this page may be affiliate links. Full terms, disclaimer & affiliate disclosure →
