Fence Material Calculator

Planning to build a fence? Our Fence Material Calculator helps you quickly estimate how many posts, panels, rails, and other materials you’ll need based on your fence length and spacing.

Whether you’re installing a wood, vinyl, or metal fence, this tool gives you accurate results in seconds — helping you save money, avoid waste, and plan smarter.

By ConstructlyTools · Published: April 7, 2026 · Updated: April 7, 2026
Fence Material Calculator
📐 Formulas Used
Posts = CEILING(Length ÷ Post Spacing) + 1 + (Gates × 2)
Rails = Posts − 1 × Rails per Bay · Pickets = Length ÷ Picket Spacing
Concrete Bags = Posts × Bags per Post
Total Posts Needed
Enter fence length above to calculate
Fence Posts
Rails / Stringers
Pickets / Boards
Concrete Bags
Post Size
Rail Size

Posts include 2 extra posts per gate opening · 10% waste built into picket count · Concrete assumes 80 lb fast-set bags · Post depth = ⅓ of total post length buried

Material quantities are estimates. Always confirm with your lumber yard before purchasing. Local code may require specific post sizes or concrete requirements.

Understanding the Calculator Inputs

This calculator gives you a complete material list — posts, rails, pickets, and concrete bags — for building a fence from scratch. It covers the 6 most common residential fence styles and outputs everything you need to hand to a lumber yard or supplier. Here's what each input means and where people commonly go wrong.

Fence Length

Enter the total linear feet of fence you need to build — the perimeter of the fenced area minus any sides you're not fencing. Measure along the ground at the fence line, not on a map or plan drawing (sloped ground adds length). If you're fencing an irregular shape, walk the perimeter with a measuring tape or wheel. Do not subtract gate openings — the calculator accounts for those separately using the gate count input.

Fence Height

Select the finished height of the fence — the portion visible above ground. 6 ft is standard for residential privacy fences in most US jurisdictions. 4 ft is common for decorative, picket, and pool fences. 8 ft is used for security applications and is restricted by local zoning in many areas. The post you buy must be taller than the finished fence height — posts are buried ⅓ of their total length. For a 6 ft finished fence, buy 9 ft posts (6 ft above + 3 ft below grade). The calculator accounts for this automatically in the post specification output.

Fence Style

Fence style determines the full material list — different styles use different post sizes, rail counts, picket spacings, and board dimensions. The calculator applies the correct specifications for each style automatically. See the fence style breakdown section below for a detailed comparison of all 6 styles.

Post Spacing

6 ft on center is standard for wood privacy and picket fences — it balances material cost with structural stability. 8 ft spacing is used for vinyl panels (which typically come in 8 ft sections) and some chain link installations. 10 ft spacing is standard for split rail fences, which use log rails spanning between posts. Wider spacing means fewer posts and less concrete but longer rails that must span the distance without sagging.

Gates

Each gate requires 2 dedicated gate posts — one on each side of the opening. These are in addition to the line posts along the fence run. The calculator adds 2 posts per gate to the post count and subtracts the gate width from the picket/panel count (gates are pre-hung or built separately). A standard walk gate is 3–4 ft wide; a double drive gate is 10–12 ft wide. If you're installing a double drive gate, enter it as 1 gate — the calculator reserves 2 posts for any gate regardless of width.

Concrete Per Post

2 bags of 80 lb fast-set concrete per post is the standard for a 6 ft fence in normal soil. Use 1 bag for light decorative fences in firm, clay-heavy soil. Use 3 bags in sandy, loose, or rocky soil where the post hole diameter must be wider to achieve stability. Corner and gate posts should always get 3 bags regardless of soil — they carry more load than line posts.

💡 Post Length Rule — Always Buy Longer Than the Fence Height

The standard rule: post length = finished fence height × 1.5, rounded to the nearest standard length. For a 6 ft fence, buy 9 ft posts. For a 4 ft fence, buy 6 ft posts. For an 8 ft fence, buy 12 ft posts. Posts buried less than ⅓ of their length will lean, heave in freeze-thaw cycles, and fail at the base within a few seasons.

3 Real-World Fence Examples

Complete material lists for three common fence projects — every item you need to put in your cart or hand to a supplier.

Example 1 — Wood Privacy Fence (150 ft × 6 ft, 6 ft post spacing)

The most common residential fence project — a 150 linear foot backyard privacy fence, PT posts, cedar pickets.

MaterialSpecificationQtyUnit CostTotal
Line postsPT 4×4 × 9 ft26 posts$22–$34$572–$884
Gate posts (1 gate)PT 4×4 × 9 ft2 posts$22–$34$44–$68
Horizontal rails (2 per bay)PT 2×4 × 8 ft50 rails$7–$12$350–$600
Cedar pickets (1×6, 6 ft)Cedar 1×6 × 6 ft352 pickets (10% waste)$4–$8$1,408–$2,816
Concrete (80 lb fast-set)56 bags$7–$10$392–$560
Post caps4×4 cedar or vinyl28 caps$1–$3$28–$84
Total materials (excl. gate & hardware)$2,794–$5,012

Real-world note: Cedar pickets are the biggest variable in this budget — $4–$5 each at big box stores, $6–$8 each at local lumber yards for better quality (fewer knots, more consistent width, tighter grain). For a fence you'll look at daily, the upgrade to quality cedar pickets is worth every dollar. PT posts are used even in an all-cedar fence — posts must be in the ground, and PT is the only code-compliant option for ground-contact structural wood. Use our fence cost calculator for the full installed cost including labor ($2,250–$4,500 for this fence professionally installed).

Example 2 — Split Rail Fence (200 ft × 4 ft, 3-rail, 10 ft post spacing)

A classic split rail fence for a rural property or large yard — 200 linear feet, 3-rail, PT posts with cedar rails.

MaterialSpecificationQtyUnit CostTotal
Line posts (end/corner posts are heavier)PT 4×4 × 6 ft (line) / 4×6 × 6 ft (end)21 line + 2 end$15–$25$345–$575
Split rails (3 per bay)Cedar or PT split rail × 10 ft60 rails$8–$14$480–$840
Concrete (80 lb, 2 bags per post)46 bags$7–$10$322–$460
Total materials$1,147–$1,875

Real-world note: Split rail fences use mortised (pre-drilled) posts with holes that the rails slot into — no screws or brackets required. This makes installation fast but means you must match rail diameter to post hole size when ordering. Most split rail kits from lumber yards are pre-matched. Buy rails and posts from the same supplier to ensure compatibility. Split rail fences are not privacy fences — add wire mesh or welded wire behind the rails if the goal is to contain animals or children.

Example 3 — Wood Picket Fence (80 ft × 4 ft, decorative, 6 ft post spacing)

A classic white picket fence for a front yard — 80 linear feet at 4 ft height, 1×4 pickets at 2.5" spacing, cedar or PT throughout.

MaterialSpecificationQtyUnit CostTotal
PostsPT 4×4 × 6 ft15 posts$14–$22$210–$330
Top & bottom rails (2 per bay)PT or cedar 2×3 × 8 ft28 rails$5–$9$140–$252
Pickets (1×4, 4 ft, 2.5" spacing)Cedar 1×4 × 4 ft264 pickets (10% waste)$2–$4$528–$1,056
Concrete (80 lb, 2 bags/post)30 bags$7–$10$210–$300
Total materials$1,088–$1,938

Real-world note: A 4 ft picket fence at 80 linear feet is a manageable weekend DIY project for one person with basic tool experience. The most time-consuming part is setting posts — rent a post-hole digger ($60–$80/day) rather than digging by hand for anything over 10 posts. Get all posts set and concrete cured (24–48 hours minimum) before installing rails and pickets. If painting white, prime and paint the pickets before installation — painting in place after installation is slow and misses the backsides.

Post Spacing Guide

Post spacing directly drives post count, rail count, and total material cost. The right spacing depends on fence style, rail material, and wind exposure.

Fence StyleStandard SpacingMax SpacingWhy
Wood Privacy (6 ft)6 ft OC8 ft OC2×4 rails sag beyond 8 ft; 6 ft is stiffer
Wood Picket (4 ft)6 ft OC8 ft OCSame rail constraint as privacy
Split Rail10 ft OC11 ft OCLog rails are stiff enough to span 10 ft
Chain Link8–10 ft OC10 ft OCTerminal posts at ends; line posts at 10 ft max
Vinyl Privacy8 ft OC8 ft OCVinyl panels are manufactured in 8 ft sections

Corner and End Post Rules

The first and last post of every fence run, plus every corner post, must be treated as structural anchor posts. They should be one size up from line posts (4×6 instead of 4×4 for a 6 ft privacy fence) and get 3 bags of concrete rather than 2. Corner posts handle lateral tension from both directions of fence — they're the posts most likely to lean if undersized or under-concreted. The calculator uses 4×4 posts throughout as a baseline — budget 4×6 posts for every corner and end in your plan.

Concrete Per Post — How Much Do You Actually Need?

The most common DIY fence mistake is under-concreting posts. A post that leans ruins the entire fence line and is expensive to fix after panels and pickets are installed.

Post SizeHole DiameterHole Depth80 lb BagsNotes
4×4 line post (6 ft fence)8–10"24–30"2 bagsStandard residential
4×4 corner/end post10–12"30–36"3 bagsAlways use 3 bags at corners
4×4 gate post10–12"30–36"3 bagsGate posts carry hinge load
4×4 post (4 ft fence)8"24"1–2 bagsFrost line determines depth
4×6 post (8 ft fence)12"36–42"3–4 bagsMust go below frost line
6×6 post (8 ft+ or heavy gate)14–16"36–48"4–5 bagsUse for all tall or heavy-load posts

The Frost Line Rule

Post holes must go below the local frost line — the depth at which ground freezes in winter. Posts buried above the frost line heave upward as the ground freezes and thaws, eventually pushing posts out of alignment or out of the ground entirely. Frost line depth: Southern states 0–6", Mid-Atlantic 18–24", Midwest/Northeast 36–48", Northern states and Canada 48–60"+. Check your local building department for the required frost depth before digging any post holes.

⚠️ Fast-Set vs Regular Concrete

Fast-set concrete (Quikrete Fast-Setting, Sakrete Fast-Setting) can be poured dry into the hole and watered in place — no mixing required. It sets in 20–40 minutes, allowing you to move to the next post quickly. Regular concrete requires mixing and takes 24–48 hours to cure. For fence posts, fast-set is almost always the better choice — you can set all posts in one day and return to install rails and pickets after 24 hours. One 80 lb bag of fast-set costs $7–$10 and fills the same volume as one bag of regular concrete.

Fence Style Material Breakdown

Each fence style has a distinct material list. Here's what every style requires per 100 linear feet at standard 6 ft height (or noted height) and 6 ft post spacing.

StylePosts / 100 LFRails / 100 LFPickets / 100 LFPost SizeRail Size
Wood Privacy (6 ft)18 posts34 rails (2-rail)231 pickets (1×6)4×4 × 9 ft PT2×4 × 8 ft PT
Wood Picket (4 ft)18 posts34 rails (2-rail)330 pickets (1×4)4×4 × 6 ft PT2×3 or 2×4 × 8 ft
Split Rail 2-rail11 posts20 railsNone4×4 × 5 ft PTSplit rail × 10 ft
Split Rail 3-rail11 posts30 railsNone4×4 × 6 ft PTSplit rail × 10 ft
Chain Link (6 ft)11 postsTop rail: 100 LFChain link fabric: 100 LF2" dia. steel pipe1⅜" top rail pipe
Vinyl Privacy (6 ft)14 postsBuilt into panels13 panels (8 ft wide)5×5 vinyl postBuilt-in to panel

Picket counts include 10% waste. Posts per 100 LF = (100 ÷ post spacing) + 1 rounded up. Wood privacy uses actual 5.5" wide 1×6 pickets with ½" gap.

Which Style for Which Purpose?

  • Wood Privacy — best for backyard privacy, noise reduction, and security. Most popular residential choice. Needs staining/sealing every 2–3 years.
  • Wood Picket — decorative front yards, classic look, defines property line without blocking light. Traditional American aesthetic.
  • Split Rail — large properties, rural lots, defining boundaries without enclosing. Low material cost, fast installation, no pickets needed.
  • Chain Link — security, pet containment, sports areas. Lowest material cost per linear foot. Not a privacy fence without slat inserts.
  • Vinyl Privacy — zero-maintenance alternative to wood privacy. Higher upfront cost but never needs painting, staining, or sealing. Panels arrive pre-assembled.

What the Calculator Doesn't Include

The calculator gives you the structural material list. These items are always required and always purchased separately:

Hardware and Fasteners

Every fence project needs: galvanized or stainless screws (1.5–2 lbs per 100 linear feet of privacy fence), joist-hanger nails if using bracket rail attachment, post-to-rail brackets (optional but recommended for wood privacy fences — $1–$2 each, 2 per post), and post caps to prevent water infiltration at the post top ($1–$3 each). Budget $50–$150 in hardware for a 100 ft wood privacy fence.

Gate Hardware

The gate itself is not included — the calculator reserves the post count and opening. A pre-built wood walk gate (36" wide) costs $60–$150 at lumber yards. A pre-built vinyl gate runs $150–$300. Gate hardware (hinges, latch, cane bolt for double gates) adds $30–$80. Budget the gate separately using our fence cost calculator for a complete installed estimate.

Permits and Utility Locates

Most municipalities require permits for fences over 4–6 feet or in front yards. Permit cost: $50–$200. More importantly: before digging any post holes, call 811 (the national "Call Before You Dig" number in the US) to have underground utilities marked. This is free and legally required in all 50 states. Hitting a gas line or electrical conduit while digging post holes is dangerous and expensive.

Post-Hole Digging Equipment

For anything over 10 posts, rent a one-person gas-powered post hole digger (also called an earth auger) — $60–$90/day at most equipment rental yards. For large jobs or rocky/clay-heavy soil, rent a two-person towable auger — $120–$180/day. Digging post holes by hand with a manual clamshell digger is feasible for under 10 posts in normal soil; beyond that, the rental cost is worth every dollar.

💰 Full Project Budget: Add 15–20% to the Material List

The material list from this calculator covers posts, rails, pickets, and concrete. Add 15–20% for hardware, fasteners, post caps, and gate hardware. Add tool rental if needed. For a complete installed cost including labor, use our fence cost calculator — professionally installed fences run $15–$40 per linear foot depending on material.

Common Fence Material Estimation Mistakes

Buying Posts the Same Height as the Fence

This is the single most common mistake — buying 6 ft posts for a 6 ft fence. Posts must extend below ground ⅓ of their total length, so a 6 ft fence requires 9 ft posts. If you buy 6 ft posts and bury 2 ft (the minimum for any stability), you only get 4 ft of finished height. Always buy posts at 1.5× the finished fence height.

Not Accounting for Gate Posts

Gate posts are structural members that carry hinge load and must be set more heavily than line posts — larger diameter, deeper holes, more concrete. They're not included in the "posts per linear foot" calculation and must be counted separately. Every gate needs 2 dedicated gate posts. A fence with 3 gates needs 6 gate posts in addition to all line posts.

Calculating Pickets on Nominal Width

A 1×6 picket is actually 5.5 inches wide. Calculating picket count on 6 inches nominal produces a count that's 9% too low — roughly 20 pickets short on a 150 ft fence before waste is even added. Always use actual dimensions: 1×4 = 3.5" actual, 1×6 = 5.5" actual. The calculator uses actual dimensions automatically.

Using Standard Nails or Screws in PT Lumber

Modern pressure treated lumber uses copper-based preservatives (ACQ, CA) that corrode standard bright zinc-coated fasteners within 2–3 years, causing staining and fastener failure. Use hot-dipped galvanized (HDG) or stainless steel fasteners for all PT lumber connections. This applies to screws, joist hangers, post bases, and all structural hardware in contact with PT wood. Using the wrong fasteners voids most PT lumber warranties.

Not Calling 811 Before Digging

Calling 811 before digging any post holes is legally required in all 50 states and takes 2–3 business days for utilities to mark your yard. Hitting a buried gas line, electrical conduit, or water main while digging post holes creates immediate hazard and expensive repairs. The law puts liability on the digger if they didn't call 811 first. This is not optional and costs nothing.

How We Calculate

Post Count Formula

Posts = CEILING(Length ÷ Post Spacing) + 1 + (Gates × 2)

We divide the fence length by the post spacing and apply a ceiling function (always round up — you need a post at both ends of every section). Then add 1 for the final end post, and 2 extra posts per gate opening. This produces the minimum post count required — real projects often need a few extra for corners not captured in a single linear measurement, so always buy 1–2 spare posts.

Rail Count Formula

Bays = Posts − 1 − Gates · Rails = Bays × Rails per Bay

Rail count is based on the number of bays (spaces between posts) times the number of rails per bay for the selected fence style. Gate openings don't use rails (they're part of the gate). Rails are calculated in 8 ft lengths — the calculator outputs the number of 8 ft boards to purchase and notes that some boards span two bays if the post spacing is under 4 ft.

Picket Count Formula

Pickets = CEILING((Length − Gate Width) ÷ (Actual Picket Width + Gap)) × 1.10

Picket count uses actual board width (not nominal), adds the gap between pickets, divides into the usable fence length (subtracting estimated gate width), and applies a 10% waste factor. For wood privacy fences (1×6 pickets), the default gap is ½ inch. For wood picket fences (1×4 pickets), the gap is 2.5 inches for the classic spaced-picket look.

💡 Always Buy 5–10% Extra on Every Material

The calculator applies 10% waste to pickets only. For posts and rails, buy 2–3 spares beyond the calculated quantity. Posts crack during installation; rails get cut wrong; one extra of each costs $20–$40 and saves a return trip that costs more in time than money. Return any unused full-length posts and rails to the lumber yard — most stores accept returns within 30–90 days with a receipt.

Frequently Asked Questions

How many fence posts do I need per linear foot?+
At 6 ft post spacing (standard for wood fences), you need approximately 1 post per 6 linear feet, plus 1 end post. For 100 linear feet: (100 ÷ 6) + 1 = 18 posts. At 8 ft spacing: (100 ÷ 8) + 1 = 14 posts. At 10 ft spacing (split rail): (100 ÷ 10) + 1 = 11 posts. Add 2 more posts per gate opening. Corner posts are included in the line post count — they're spaced the same as other posts.
How many pickets do I need for a 100 ft fence?+
For a 6 ft wood privacy fence using 1×6 pickets (5.5" actual width) with ½" gap: 100 ft × 12 in/ft = 1,200 inches ÷ 6 inches per picket (5.5" + 0.5" gap) = 200 pickets exact. Add 10% waste = 220 pickets to order. For a 4 ft picket fence using 1×4 pickets (3.5" actual) with 2.5" gap: 1,200 ÷ 6 = 200 pickets + 10% = 220. Use the calculator above for your specific fence length and style.
How many bags of concrete do I need per fence post?+
Standard rule: 2 bags of 80 lb concrete per line post for a 6 ft fence in normal soil. Use 3 bags for corner posts, end posts, and gate posts — these carry more structural load. Use 1 bag for lightweight 4 ft decorative fences in firm soil. For an 8 ft fence with 4×6 posts, use 3–4 bags per post. Fast-set concrete (Quikrete Fast-Setting) is the most popular choice for DIY fence post installation — pour it dry into the hole and add water, no mixing required.
How long should fence posts be for a 6 ft fence?+
Buy 9 ft posts for a 6 ft fence. The standard rule is post length = finished height × 1.5. The buried portion (3 ft) anchors the post below the frost line and provides stability. Using 7 ft or 8 ft posts and only burying 1–2 ft produces posts that lean within 1–2 seasons in freeze-thaw climates. For a 4 ft fence, buy 6 ft posts. For an 8 ft fence, buy 12 ft posts.
How many rails do I need for a wood privacy fence?+
A standard 6 ft wood privacy fence uses 2 horizontal rails per bay (top and bottom). Some builders use 3 rails for extra rigidity on tall fences or in windy areas. For 100 ft at 6 ft post spacing: (100 ÷ 6) = 16.7 bays → 17 bays × 2 rails = 34 rails. Rails are typically 8 ft 2×4 PT boards. Buy 34 boards for 100 ft of fence at 2-rail with 6 ft post spacing, plus 2–3 extra for waste.
Do I need a permit to build a fence?+
Most US municipalities require a permit for fences over 4–6 ft in height, fences in front yards, and fences adjacent to roads or bodies of water. HOA communities often have additional restrictions on fence style, height, and color. Permit costs run $50–$200. Always check with your local building department before starting — unpermitted fences discovered at home sale create title issues and may require removal. Also call 811 before digging any post holes to have underground utilities marked (free, legally required).
What size posts do I need for a 6 ft fence?+
4×4 PT posts are standard for 6 ft residential wood fences at 6–8 ft spacing. Use 4×6 posts for corner posts, end posts, gate posts, and fences in high-wind areas — these carry more lateral load. For an 8 ft fence or fences in very windy locations, use 4×6 or 6×6 posts throughout. Chain link fences use steel pipe: 2" diameter terminal posts (corners, ends, gates) and 1⅝" line posts. Vinyl fence posts are typically 5×5 vinyl sleeves over a steel insert.
Scroll to Top