title: "Fence Building Guide: Posts, Rails & Materials" description: "Complete guide to building a fence — styles, material cost comparison, post depth rules, concrete for posts, spacing and gates, permit requirements, and how to estimate materials." pillar: "fence" lastUpdated: "2026-06-30"
Fence Building Guide: Posts, Rails & Materials
A fence defines your property, provides privacy and security, contains pets and children, and is often the first visible improvement neighbors notice. It's also one of the most common DIY structural projects — the skills required are accessible, the materials are straightforward, and the results are immediately rewarding.
But fence projects fail in predictable ways: posts set too shallow heave out in winter, wood posts rot at the ground line, gates sag, and pickets space incorrectly at the last bay. Planning carefully before you dig saves you from the most expensive mistakes.
This guide covers every major fence decision: which style and material fits your needs and budget, the one-third rule for post depth, how to calculate concrete per post, proper gate placement, and what your jurisdiction likely requires for permits.
Estimate your post count, rail lengths, picket quantities, and concrete bags instantly with our fence calculator. Need to share your fence layout plan with a contractor? pdfconvertall.com makes it easy to convert your sketch to a shareable PDF.
Fence Styles: Matching Design to Purpose
Privacy fence (solid board): The most popular residential style. Boards are installed side-by-side with no gaps, creating a solid visual barrier. Common heights: 6 feet (standard privacy) or 8 feet (maximum privacy, requires permit in most jurisdictions).
Picket fence: Iconic open-board design with evenly spaced upright boards. Classically 3–4 feet tall. Ornamental rather than functional for privacy, but excellent for defining yard boundaries and keeping small dogs in. Picket spacing: 2.5"–3.5" gap is typical.
Split-rail fence: Two or three horizontal rough-hewn rails stacked between notched posts. Defines boundaries without blocking views. No privacy, minimal pet containment — purely boundary definition and rustic aesthetics. Very inexpensive. Popular for rural properties and large lots.
Board-on-board fence: Overlapping vertical boards where each board overlaps the previous one by 1 inch. Creates privacy at any viewing angle even when boards dry and shrink. Slightly more material than solid board but nearly eliminates gaps.
Shadowbox fence: Alternating boards on opposite sides of the rails, each board covering the gap on the other side. Full privacy from a distance but allows air movement. Good compromise between privacy and ventilation in hot climates.
Chain-link fence: Galvanized or vinyl-coated steel wire woven in a diamond pattern. Least expensive option, extremely durable (20–40 years), and provides excellent containment for dogs. No privacy (unless privacy slats are added). Common in utilitarian settings and for security.
Aluminum / ornamental: Powder-coated aluminum panels in a picket or spear style. Low maintenance, no rust, long lifespan (30+ years). More expensive than wood but cheaper than iron. Popular for pool enclosures, front yards, and property delineation.
Material Comparison: Cost Per Linear Foot
Prices below are approximate all-in costs (materials only) for a typical 6-foot privacy or 4-foot decorative fence installed by a contractor. DIY saves the labor cost but not materials.
| Material | Style | Cost/Linear Ft | Lifespan | Maintenance | |---|---|---|---|---| | Pressure-treated pine | Privacy, picket | $15–$30 | 15–20 years | Paint/stain every 3–5 yrs | | Cedar | Privacy, picket | $20–$40 | 20–30 years | Seal or stain every 3–5 yrs | | Redwood | Privacy, picket | $30–$60 | 25–35 years | Minimal; naturally rot-resistant | | Vinyl/PVC | Privacy, picket, rail | $25–$50 | 25–40 years | None — wash occasionally | | Aluminum (ornamental) | Picket, spear | $30–$60 | 30–50 years | None | | Chain-link (galvanized) | Chain-link | $10–$20 | 20–40 years | Minimal | | Chain-link (vinyl-coated) | Chain-link | $15–$25 | 20–40 years | Minimal |
The true cost comparison: Wood fences are cheaper upfront but require periodic maintenance (staining, sealing, replacing rotted boards). Vinyl and aluminum cost more initially but have near-zero maintenance cost over their lifespan. Over 20 years, a well-maintained vinyl fence and a cedar fence often end up at similar total costs.
Post Depth: The One-Third Rule
Post depth is the structural foundation of your fence. Set too shallow, posts heave in frost, blow over in wind, or simply lean over time.
The one-third rule: Set posts to a depth equal to one-third of the above-ground height plus 6 inches.
| Above-Ground Height | Minimum Depth (no frost) | Depth with Frost Factor | |---|---|---| | 4 feet | 1'4" + 6" = 22" | Add frost depth to this | | 6 feet | 2'0" + 6" = 30" | Add frost depth to this | | 8 feet | 2'8" + 6" = 38" | Add frost depth to this |
Frost depth: In regions with ground frost, post footings must extend below the frost line (see local code). In Minnesota or northern Maine, the frost line is 4+ feet — a 6-foot fence post may need to be 8+ feet long with 4 feet in the ground.
Total post length = above-ground height + in-ground depth. A 6-foot fence with 30" in-ground depth requires 8.5-foot posts. Buy 10-foot posts and cut to height after setting.
Concrete for Posts: How Much to Use
Always use concrete for fence posts. Wood posts set in packed soil without concrete will shift, heave, and rot at the ground line far faster than properly set posts.
Concrete options:
Fast-setting concrete (Quikrete Fast-Setting or similar): Pour dry directly into the hole around the post, then add water. Sets in 20–40 minutes. Excellent for DIY because you set all posts first, then pour — no mixing required.
Standard Sakrete/Quikrete: Mix to consistency of peanut butter, pour around post. Sets in several hours. More control over the mix but requires a mixing vessel and more time.
How much per post:
| Post Hole Diameter | Post Size | Depth | Bags (50 lb) | |---|---|---|---| | 6" | 4×4 | 24" | 1 | | 8" | 4×4 | 30" | 1–2 | | 10" | 6×6 | 36" | 2–3 | | 12" | 6×6 | 42" | 3–4 |
Setting technique: Flare the bottom of the hole with a clamshell digger before pouring — a bell-shaped base prevents frost from pushing the post up from below. Keep the top of the concrete below grade (slope concrete away from the post so water drains away rather than pooling at the post base).
Post Spacing and Gate Placement
Standard post spacing: 8 feet on center is the most common for wood privacy and picket fences. Rails span 8 feet reliably in most wood species at typical diameters. Chain-link and vinyl systems often use 10-foot spacing; consult the manufacturer.
Gate placement rules:
- Gates must be at least 36" wide for pedestrian access; 48" for comfortable furniture or equipment movement; 60"+ for riding mowers.
- Gates wider than 6 feet typically require double gates and a center drop rod.
- Gate posts receive double the load of field posts (gate weight + person pushing/pulling). Set gate posts in larger diameter holes with more concrete, and consider using 6×6 posts for gate frames even when 4×4 is used throughout.
- Position the gate where you want it before planning post spacing — don't force the gate into an awkward bay just to maintain uniform 8-foot spacing.
Panel calculations: With posts at 8 feet O.C., count the number of bays (spaces between posts) = number of panels = (number of posts) minus 1. Each bay needs 3 rails (top, middle, bottom for a 6-foot fence). Picket/board count per bay = bay width ÷ (board width + gap).
Our fence calculator handles all of this arithmetic including gate deductions.
Permit Requirements
Most municipalities require a permit for fences over 4 feet in backyard or over 3 feet in the front yard setback. Common requirements:
Zoning / HOA considerations:
- Maximum height limits: typically 4 feet front yard, 6 feet backyard (8 feet with variance)
- Setback from property line: often 2–4 feet minimum
- HOA approval: many associations require submitted drawings and material/color approval before installation
Before you dig: Call 811 (the national "call before you dig" number in the US) at least 3 business days before breaking ground. Utility companies will mark underground lines. Hitting a buried line is expensive and potentially fatal.
Verify the property line: Don't assume the existing landscaping, old fence, or neighbor's understanding of the property line is accurate. Incorrect property line fences cause expensive disputes. A boundary survey ($300–$700) provides documentation.
Related Resources
For the concrete footing calculations in detail, see how our fence calculator compares to concrete and gravel estimates. Planning a large installation with bulk concrete delivery? castfleet.com can help you schedule bulk material deliveries from local suppliers. This fence project builds on the same structural logic as a deck build — the post depth and footing principles are identical.
FAQ
How many fence posts do I need for 100 linear feet? At 8-foot spacing: 100 ÷ 8 = 12.5, so 13 bays and 14 posts (both end posts). Add extra for corners and gate posts. Our fence calculator handles this including all corner and gate additions.
How long does a wood fence last? Pressure-treated pine: 15–20 years with maintenance. Cedar: 20–30 years. Redwood: 25–35 years. Life is strongly influenced by post installation quality — even premium wood posts rot within 10 years if set in soil without proper concrete, drainage, and below-grade protection.
Should I use 4×4 or 6×6 posts for a 6-foot fence? 4×4 posts are standard for 6-foot fence on flat ground in low-wind areas. 6×6 is recommended for corner posts, gate posts, and installations in high-wind zones or on hillsides. Use 6×6 throughout for any fence over 6 feet.
Can I use wood posts in vinyl fence panels? Some vinyl fence systems are designed to slide over a steel or wood post core, using the wood/steel for structural strength and the vinyl sleeve for aesthetics. Pure vinyl posts are fine for low applications but can flex in taller installations — check manufacturer specifications.
What's the best way to prevent post rot? Use ground-contact rated pressure-treated lumber (UC4B minimum), set posts in proper concrete, keep concrete below grade and sloped away from the post, and consider a post cap to keep water from entering the end grain at the top. Some contractors coat the below-grade portion of posts with roofing tar or a post protector wrap.
How deep should I dig for a 4-foot fence post? Minimum 24 inches for a 4-foot fence in no-frost areas. Add your local frost depth on top of that. Most DIYers use a one-third rule plus 6 inches, meaning a 4-foot fence gets at least 22"–24" of depth minimum, regardless of frost.
Do I need a survey before building a fence? Not legally required everywhere, but strongly recommended. Property disputes between neighbors over fence placement are common and expensive. At minimum, pull your property plat from your county records and use it to establish approximate line locations. A formal survey provides legal documentation.
How much concrete do I need for a 100-foot fence? At 8-foot spacing, you have 14 posts. At 2 bags per post (6" diameter, 30" deep): 28 bags of 50-lb fast-setting concrete. Round up to 30 bags to have spare. Use our fence calculator to get precise numbers based on your post diameter and depth.