TTidyCalculator

Fence Calculator — Posts, Panels, Pickets & Cost

Work out exactly how many posts, panels, pickets, and rails you need for any fence project. Saves you from counting twice at the lumber yard.

Enter your dimensions

Your result

Posts needed
14posts
Panels
13panels
Rails (2 per section)
26rails
Concrete bags (60 lb)
14bags
1 per post

How to use this fence calculator

Enter the total length of your fence in feet, post spacing (8 feet is standard), and whether you're using pre-built panels or individual pickets. For picket fences, also enter picket width and the gap between pickets.

The calculator returns the number of posts, panels (or pickets), rails, and 60lb concrete bags needed to set the posts. It automatically adds one extra post for the end/corner — a common miscount.

For fences with multiple corners, add one post per corner beyond the first. For gates, subtract 2 posts from the calculated fence length per gate (you'll need gate hardware separately).

Standard fence post spacing

8 feet is the residential standard for most wood and vinyl fences. It's the default for a reason:

  • Pre-cut pressure-treated posts come in 8-foot spans
  • Pre-built fence panels are typically 6 or 8 feet wide
  • 8-foot spacing balances strength and material efficiency

When to go tighter (6 feet):

  • Tall privacy fences (over 6 feet high) — wind load increases
  • Heavy gates or arbors — need extra support nearby
  • Sloped terrain — shorter sections handle elevation changes cleaner
  • Windy locations — reduces sway and panel stress

When wider (10+ feet) works:

  • Split-rail or open-style ranch fencing with lighter materials
  • Chain-link on light residential properties
  • Decorative-only fences not expected to handle wind load

Post depth: the rule that saves your fence

Post depth = 1/3 of above-ground fence height, minimum. For a 6-foot-tall fence, posts go 2 feet into the ground. For 8-foot fences, 2.5–3 feet.

Also critical: post depth must exceed your frost line. In northern US states, that's 42+ inches. In southern states, 12–18 inches. Local building codes usually specify the minimum — check before digging.

Each post needs one bag of 60lb quick-set concrete (or equivalent). Our calculator includes this in the bag count automatically.

Wood vs. vinyl vs. chain link: cost and longevity

Wood (pressure-treated pine, cedar):

  • Cost installed: $15–$40 per linear foot
  • Lifespan: 15–25 years with staining every 2–3 years
  • Pros: classic look, affordable, easy DIY
  • Cons: requires maintenance, warps/rots over time

Vinyl:

  • Cost installed: $25–$50 per linear foot
  • Lifespan: 30–50 years
  • Pros: no maintenance, no rot, color doesn't fade much
  • Cons: cracks in extreme cold, harder to repair sections

Chain link:

  • Cost installed: $10–$25 per linear foot
  • Lifespan: 20–30 years
  • Pros: cheapest durable option, clear sight lines
  • Cons: not private, utilitarian look

Composite / aluminum:

  • Cost installed: $30–$60 per linear foot
  • Lifespan: 30+ years
  • Pros: no maintenance, modern look
  • Cons: most expensive upfront

Estimating total material cost

For a standard 100-foot privacy wood fence (6 feet tall, 8-foot post spacing):

  • Posts: 14 × 4"x4"x8' pressure-treated = $14 × $12 = ~$170
  • Panels: 13 × 6'x8' pre-built privacy = 13 × $60 = ~$780
  • Concrete: 14 × 60lb bags quick-set = 14 × $5 = ~$70
  • Hardware: nails, screws, post caps = ~$50
  • Gate (optional): 1 × 4-foot gate kit = ~$150
  • DIY material total: ~$1,220
  • Professional installation: adds $8–$15 per linear foot = +$800–$1,500
  • Full professional cost: ~$2,000–$2,700

Double these numbers for vinyl; add 50% for cedar over pine.

DIY tips that save you money

  • Rent a post-hole auger, don't buy one. $50–$80 for a day is enough for a typical fence.
  • Set corners and ends first, run a string line between them, then mark interior post positions. Straighter fence, less rework.
  • Level posts as you pour concrete using a post level (clamps on the post itself). You have maybe 5 minutes before quick-set goes firm.
  • Let posts cure 24 hours before attaching rails or panels. Pulling on green concrete = crooked posts.
  • Stagger joints in rails so adjacent sections don't meet at the same post. Stronger overall structure.
  • Call 811 before digging, seriously. Finding a gas line the hard way costs thousands and can kill you.

Frequently Asked Questions

How many fence posts do I need?+
For a straight fence, posts = (total length ÷ post spacing) + 1. For 100 feet of fence at 8-foot spacing, that's 13.5 + 1 = 14 posts (round up). Add one extra post per corner beyond the first.
How deep should fence posts be set?+
Minimum 1/3 the above-ground fence height. For a 6-foot fence, posts go 2 feet deep; for 8-foot fences, 2.5–3 feet. Post depth must also exceed your local frost line — 42+ inches in northern states, 12–18 inches in the south.
How far apart should fence posts be?+
8 feet is the residential standard. Go to 6 feet for tall privacy fences (over 6 feet), heavy gates, sloped terrain, or windy locations. Split-rail and open fences can go 10+ feet between posts with appropriate materials.
How much does a wood fence cost per foot?+
Installed wood privacy fences run $15–$40 per linear foot depending on material (pine cheapest, cedar premium) and region. DIY material cost alone is $8–$15 per foot. A 100-foot professionally installed pine privacy fence runs $1,500–$3,000 typically.
How many concrete bags do I need per fence post?+
One 60lb bag of fast-setting concrete mix per standard 4x4 post set 2 feet deep in an 8–10 inch wide hole. For 6x6 posts or deeper holes, use two bags per post. Quick-set mixes (like Quikrete Fast-Setting) don't need pre-mixing — just pour dry, add water on top.
Wood vs. vinyl fence: which is cheaper long-term?+
Vinyl costs more upfront ($25–$50/ft installed vs. $15–$40 for wood) but wins over 20+ years because wood needs restaining every 2–3 years at ~$1/sq ft in materials plus your time. Break-even is roughly year 8–10 depending on climate.
Do I need a permit for a fence?+
Most US municipalities require a permit for fences over 6 feet tall, and many require one for any fence. Height limits typically range from 4 feet (front yard) to 6–8 feet (back yard). HOAs often have stricter rules than local code. Always check before starting — retrofitting or removal is expensive.
Should I DIY my fence or hire a contractor?+
DIY works for fit homeowners with basic tools on flat, clear terrain — saves $8–$15 per linear foot in labor. Hire a pro if you have sloped land, clay soil, property line questions, or more than 200 linear feet. Under-sized posts or misplaced property lines cost far more to fix than to prevent.

Related Calculators

Written by TidyCalculator Team · Content team