Fence Calculator - Posts, Rails, Pickets & Concrete

A fence estimate begins with line length and post spacing. From there the calculator estimates sections, posts, rails, pickets, post concrete, and cost.

Percent added for cuts, waste, settlement, or field loss.

$

Cost uses post count only; rails, pickets, and hardware are listed separately.

Change any value and the results, formula, and diagram update immediately. Use the same unit system throughout one estimate.

Fence Parts Quick Reference

Posts, rails, and pickets for common privacy-fence layouts at 8 ft post spacing, 6 ft fence height, 5.5 in pickets with 1/2 in gap. Use this for the lumberyard conversation.

Fence lengthSectionsPosts (8 ft OC)2 rails per sectionPickets (~24 / 10 ft)
50 ft6712~120
100 ft131426~240
150 ft192038~360
200 ft252650~480
400 ft (large lot)5051100~960

Add gate posts (one extra heavy post per gate), corner posts, and 1-2 bags of concrete per post hole. For 3-rail fence (common in 6 ft tall), add 50% more rails. For 1x6 pickets at horizontal layout, the count changes - calculate by linear feet of fence x rows of horizontal.

How Fence Math Actually Works

Fence count is driven by three numbers: total length, post spacing, and picket module.

  • Sections = ceil(total length / post spacing). At 100 ft long, 8 ft spacing: ceil(100/8) = 13 sections.
  • Posts = sections + 1 + terminal posts (corners, gates). 13 sections needs 14 posts plus extras.
  • Rails = sections x rails-per-section. Two-rail fence on 13 sections needs 26 rails.
  • Pickets = total length / picket module. 5.5 in pickets + 1/2 in gap = 6 in module. 100 ft / 0.5 ft = 200 pickets. With 10% waste: 220.
  • Post concrete = posts x (pi x post-hole-radius² x depth) / 27. 14 holes at 9 in dia x 30 in deep = 14 x 0.74 = 10.4 cu ft = 0.39 yd³ or about 16 of the 60 lb bags.

Post Setting - Where Fences Fail

Posts that move kill fences. The hole, depth, and concrete decide whether the fence stands for 20 years or falls in 3.

  • Hole depth: 1/3 of post-above-ground height as a starting point. A 6 ft tall fence needs 24 in deep holes. In cold climates, go below frost depth (36-60 in) for gate and corner posts.
  • Hole diameter: 3x post diameter. A 4 in post wants a 12 in hole.
  • Gravel base: 4-6 in of gravel at the bottom for drainage. Posts that sit in water rot fast.
  • Concrete: fast-set (QUIKRETE Quikrete Fast-Setting Concrete) is the standard for fence posts. Pour dry into the hole around the post, add water on top.
  • Plumb and brace: use a level and braces for 24 hours until concrete sets.
  • Soil-only setting (no concrete): works for low-height (under 4 ft) decorative fences. Tamp the soil hard. Will need re-tamping every few years.

Fence Types

Wood privacy (pressure-treated, cedar)

The US suburb default. 6 ft tall, 1x6 vertical pickets over 2 horizontal rails (or 3). Posts 4x4 PT or cedar.

Chain link

Galvanized or vinyl-coated wire mesh on steel posts. Cheapest per linear foot. Use the Fence Mesh Calculator for the wire side.

Vinyl / PVC

Maintenance-free. White is classic; tan and grey common. Posts and rails ship as full assemblies. Premium price.

Composite

Wood-plastic boards, similar to composite decking. Trex Fence, Veranda, Fiberon. Long warranties, premium price.

Aluminum / wrought iron

Decorative; spear-top or scroll pickets. Cannot block view. Pool code requires self-closing gate hardware.

Stone / brick wall

Permanent boundary. Use the Brick or Block Calculator for the wall, this for the framing of any added timber or metalwork.

Height and Code

Fence height limits vary by jurisdiction, lot location, and use.

  • Front yard: 36-48 in maximum in most US suburbs. Higher requires variance.
  • Backyard / side yard: 6 ft (1.8 m) is standard. Some jurisdictions allow 7 or 8 ft.
  • Pool barriers: 48-60 in minimum, self-closing self-latching gate, code-mandated. ICC pool code or local equivalent.
  • UK: permitted development up to 2 m back fence, 1 m for fences fronting a road. Higher needs planning permission.
  • India: typical residential boundary 5-7 ft (1.5-2.1 m), no national height code - local municipal rules apply.
  • Australia: NSW Dividing Fences Act caps shared fences at 1.8 m unless agreed otherwise; council may require lower in front.

Always check the local rule before ordering. A 7 ft fence in a 6 ft area gets a stop-work notice and a top-cut.

Gates

A gate is the most expensive linear foot of fence. Plan it specifically:

  • Walk gate: 36-48 in wide. Heavier posts on both sides (6x6 or doubled 4x4).
  • Drive gate: 10-16 ft wide, often a double gate. Posts must carry the load - 6x6 minimum.
  • Hardware: two hinges and a latch minimum; for heavy or tall gates, three hinges plus a drop pin.
  • Brace: diagonal brace from upper-latch corner to lower-hinge corner.
  • Self-closing / self-latching: required by pool code in most US jurisdictions.

Cost Estimates Around The World

2026 retail prices for 6 ft tall residential privacy fence, installed.

RegionPressure-treated woodCedar / redwoodVinylCompositeChain link
United States (USD)$20-40 / lf installed$30-60 / lf$30-65 / lf$50-100 / lf$10-25 / lf
Canada (CAD)C$30-55 / lfC$45-80 / lfC$45-90 / lfC$70-140 / lfC$15-35 / lf
United Kingdom (GBP)£55-120 / m (treated softwood)£100-200 / m (cedar / oak)£100-250 / m£150-350 / m£30-80 / m
Eurozone (EUR)€60-130 / m€110-220 / m€110-260 / m€160-380 / m€35-90 / m
Australia (AUD)A$120-220 / m (treated pine)A$220-450 / mA$200-400 / m (Colorbond steel often used)A$300-650 / mA$80-180 / m
India (INR)₹400-900 / running ft₹700-1,800 / ft (teak)₹500-1,400 / ft (UPVC)n/a (limited market)₹200-500 / ft (GI chain link)
Mexico (MXN)MX$700-1,400 / mMX$1,200-2,400 / mMX$1,400-3,200 / mMX$2,200-4,500 / mMX$350-900 / m
Philippines (PHP)PHP 1,200-2,400 / m (treated)PHP 2,200-4,000 / mPHP 1,800-4,200 / mPHP 3,000-6,500 / mPHP 800-2,000 / m

Brand reference: US - CertainTeed Bufftech (vinyl), Trex Fence (composite), Cedar West, Master Halco (chain link); UK - Forest Garden, Grange, Jacksons Fencing; Australia - Colorbond, Stratco, Jasons Industries; India - Tata Wiron, Jindal Stainless. A two-person crew installs 50-100 lf of privacy fence per day on flat ground.

Common Mistakes

  • Forgetting gate posts and terminal posts - they need beefier hardware and concrete.
  • Setting posts too shallow - frost or wind heaves them within two seasons.
  • Using untreated lumber below grade - rot in 5 years.
  • Skipping concrete on tall or windy-site fences - posts lean.
  • Wrong picket module - 5.5 in pickets + 1/4 in gap is 5.75 in, not 6 in. Affects total count.
  • Tight pickets (no gap) - wood expands in humid weather and the fence cups.
  • Not pulling string lines before setting posts - the fence ends up wavy.
  • Skipping the gravel base in the post hole - water sits, the post rots from the bottom up.

Fence Calculator FAQ

How many posts do I need for a 100 ft fence?

At 8 ft spacing: ceil(100/8) = 13 sections, needing 14 posts plus terminal posts for corners and gates. Add 2-4 extra for a typical yard layout. At 6 ft spacing (windy sites or tall fence): 17 sections, 18 posts plus extras.

How deep do I set fence posts?

One-third of above-ground post height as a starting point. A 6 ft tall fence needs 24 in deep holes (8 ft posts total). In cold climates, go below local frost line - 36-60 in for gate and corner posts is common.

How much concrete per fence post?

For a 9 in diameter, 30 in deep hole: 1.3 cu ft of concrete, or 2 bags of 60 lb fast-setting mix. A 14-post fence needs 28 bags. Deeper or wider holes scale proportionally.

What is the standard post spacing?

8 ft on centre for residential privacy fence. 6 ft for windy areas or tall fences. Chain link typically goes 10 ft. Always confirm with the rail length - rails come in 8 ft or 16 ft stock and the spacing should let you avoid wasted cuts.

What size posts do I need?

4x4 pressure-treated for 4-6 ft residential fences. 6x6 for gate posts, corner posts, and any post over 6 ft tall or in windy zones. Chain link uses 2 in or 2-3/8 in OD steel posts.

How many pickets per linear foot?

For 5.5 in pickets with 1/2 in gap = 6 in module, that is 2 pickets per foot. A 100 ft fence needs 200 pickets plus 10% waste = 220.

Should I use concrete on every fence post?

Yes for posts over 4 ft, in windy sites, gates, corners, and any soil that does not compact well. Skip concrete only on short decorative fences in stable soil where you can tamp the post firmly.

How much does a 100 ft privacy fence cost?

US: $2,000-4,000 for pressure-treated installed, $3,000-6,000 for cedar. UK: £5,500-12,000 for treated softwood at £55-120/m. India: ₹40,000-90,000 for pressure-treated. Vinyl and composite cost 2-3x wood.

How long do wood fences last?

Pressure-treated: 15-20 years. Cedar: 20-30 years with stain maintenance. Untreated whitewood: 5-10 years. Vinyl: 30-50 years. Composite: 25-30 years (warranty).

Do I need a permit for a fence?

Most US jurisdictions require permits for fences over 6 ft, or any fence in front yards over 4 ft. Pool barrier fences always need permits. UK: permitted development up to 2 m back, 1 m front. India: typically no permit for boundary walls under municipal height limit. Always check before starting.

Related Construction Calculators

For wire mesh chain link or field fence, see the Fence Mesh Calculator. For concrete in post holes, use the Concrete Calculator. For lumber from board-foot perspective, see the Lumber Calculator. For brick or stone boundary walls, switch to the Brick Calculator or Block Calculator. More tools live on the Construction Calculators hub.

Sources

This calculator is for planning and ordering conversations. Local code, project drawings, engineered design, and manufacturer instructions control the final work.