Home & Energy calculator

Fence Calculator

Turn a fence run’s length, height, and post spacing into posts, rails, and pickets, or switch to Materials & Cost for region-aware wood, vinyl, or chain-link pricing, chain-link mesh and rolls, and a stain calculator.

Posts, rails & pickets Wood, vinyl & chain link Region-aware cost Free, no signup

Free, no signup — not a substitute for a licensed installer’s quote.

Pick a mode below: posts, rails, and pickets from your fence’s dimensions, or materials and cost by region and fence type. Every figure is adjustable — replace any default with your own measurement or quote.

Enter your fence dimensions or region and type

ft
ft
ft

6-8 ft is standard for wood; 10 ft for residential chain link.

in
in

0 for a butted privacy fence; wider for a picket-style fence.

Posts needed

20

~9.0 ft posts (1/3 buried)

Rails needed

57

3/section x 19 sections

Pickets needed

344

incl. 5% waste

Concrete (50 lb bags)

40

2/post + 2/gate

At a glance

Formula shown
Posts = ceil(Length / Spacing) + 1. Post length = 1.5 x Height. Pickets = ceil(Length / (Width + Gap) x (1 + Waste%)).
Scenario support
Posts/rails/pickets/concrete, and region-aware materials/cost for wood, vinyl, or chain-link, plus stain coverage.
Educational estimate
Planning support from the values you enter — not professional advice.

How the calculation works

Posts

Posts = ceil(Length / Spacing) + 1

Post length = 1.5 x fence height, so exactly a third is buried.

Rails

Rails = Rails per section x (Posts − 1)

2 rails/section under 6 ft, 3 at 6 ft and taller, as a starting default.

Pickets & concrete

Pickets = ceil(Length / (Width + Gap) x (1 + Waste%))

Concrete: 2 bags/post + 2/gate. Board-on-board adds ~30% more lumber.

Fence types and regions

Wood. Privacy (butted, no gap) or picket (with a gap) styles both use the same post/rail/picket math; board-on-board adds roughly 30% more lumber for its double-layer, alternating-side coverage. 2026 US installed costs run about $15-30/ft for pressure-treated pine and $25-45/ft for cedar.

Vinyl. Typically sold as pre-assembled panels rather than individual pickets, so its cost is estimated by length rather than picket count — about $30-60/ft installed in the US in 2026, CA$38-65/ft in Canada.

Chain link. Sized by mesh area (length x height) and roll count at your supplier’s roll length, with line posts at roughly 10 ft spacing for residential jobs (commercial jobs often tighten to 8 ft) and larger-diameter terminal posts at every corner and end. The cheapest common fence type at about $10-25/ft installed in the US and A$40-65/m in Australia in 2026.

UK, Canada & Australia. Choosing a region switches the unit to metres where standard (UK, Australia) and pre-fills a regional starting cost — UK garden fencing commonly runs roughly £50-180/m installed, Australian timber paling about A$70-105/m, and Canadian wood about CA$27-50/ft, all before a local quote.

Worked example

Posts, rails & pickets. A 150 ft privacy fence, 6 ft tall, posts every 8 ft, no gates: Posts = ceil(150 ÷ 8) + 1 = 20, each about 9 ft long (a third buried). At 6 ft tall, 3 rails per section across 19 sections gives 57 rails. With 5.5 in pickets butted with no gap and a 5% waste allowance, that’s about 344 pickets. Concrete: 20 posts × 2 bags = 40 bags.

Materials & cost. The same 150 ft in pressure-treated wood at $22/ft installed comes to an estimated $3,300.

Limitations

  • Assumes a single straight run on level ground — slopes, corners, and obstacles (trees, utilities) change real material counts.
  • Does not check local fence-height limits, setback/boundary rules, or homeowners’-association requirements — confirm these before building.
  • Post depth follows a general one-third rule; frost-prone or sandy/loose soil often needs a deeper hole than this rule alone suggests.
  • Cost, coverage, and roll-length figures are general starting points; local pricing, product specifics, and supplier packaging vary.

Frequently asked questions

What is a fence calculator, and how does it work?

It turns a fence run's length, height, and post spacing into the number of posts, rails, and pickets or boards needed, plus concrete for setting the posts. Posts = (length ÷ spacing, rounded up) + 1; each post should be about 1.5 times the fence height so a third of it is buried; rails run between each pair of posts; and pickets are spaced by their width plus any gap along the full length.

How many posts do I need for my fence?

Divide the fence length by your post spacing, round up, then add one for the final post at the end of the run: Posts = ceil(Length ÷ Spacing) + 1. A 150 ft fence at 8 ft spacing needs 20 posts (19 sections plus one).

How deep should fence post holes be?

A widely used guideline is the one-third rule: bury at least a third of the total post length. This calculator sizes each post at 1.5 times the fence height, so exactly a third of that length sits below ground — a 6 ft fence uses roughly a 9 ft post, about 3 ft of it buried. Frost-prone areas need holes below the local frost line regardless of this rule, and sandy or loose soil often needs extra depth — check your local building code.

How far apart should fence posts be?

6 to 8 feet on center is standard for residential wood fencing — 6 ft for taller fences, high-wind areas, or softer soil, 8 ft to match standard lumber lengths and reduce post count. Residential chain-link typically uses about 10 ft line-post spacing (commercial jobs often tighten this to 8 ft).

How many pickets or boards do I need?

Divide the fence length by the picket width plus any gap between pickets, then add a waste allowance (5% is a common default for defective or miscut boards): Pickets = ceil(Length ÷ (Width + Gap) x (1 + Waste%)).

What is a board-on-board fence, and how much extra material does it need?

Board-on-board alternates boards on the front and back of the rails so each gap on one side is covered by a board on the other, giving full privacy from both directions with no sightline gaps. It uses roughly 30% more lumber than a single standard layer — a commonly cited rule of thumb this calculator applies as a multiplier when you select the Board-on-Board style, rather than modelling the exact overlap width.

Does this work for privacy fences?

Yes — set the gap between pickets to 0 for a standard butted privacy fence (boards touch, no sightline gaps), or select Board-on-Board for the alternating-side style that fully blocks sightlines even as wood shrinks over time.

Does this work for picket fences?

Yes — a traditional picket fence just uses a gap greater than 0 between pickets (commonly 2-4 inches) instead of a butted privacy layout; enter your picket width and desired gap and the calculator does the rest.

Does this work for chain-link fencing?

Yes — select Chain Link in Materials & Cost for mesh area (length x height), the number of rolls at your supplier's roll length, and an estimated line-post count at your chosen spacing (commonly around 10 ft for residential jobs), alongside a cost estimate.

Does this work for vinyl fencing?

Yes, for cost — select Vinyl in Materials & Cost for a region-aware cost-per-length estimate. Vinyl fencing is normally sold as pre-assembled panels rather than individual pickets, so the Posts, Rails & Pickets mode's picket count is most relevant to wood fencing specifically.

Is this the same as Home Depot's, Lowe's, Menards', B&Q's, or Bunnings' fence calculator?

No — this is an independent calculator built by Calculator Matters and is not affiliated with, endorsed by, or produced by The Home Depot, Lowe's, Menards, B&Q, Bunnings, or any other retailer. It uses its own published fence-building formulas and general cost data, not any one retailer's specific product catalog or pricing.

Does this work in the UK, Canada, or Australia?

Yes — choosing a region in Materials & Cost switches the unit to metres where that's standard (UK and Australia) and pre-fills a regional cost per unit length for wood, vinyl, and chain-link; choose "Other / custom" to enter your own figures for any other country. The post, rail, and picket formulas in the other mode work in feet or metres everywhere.

How much does a fence cost?

Very roughly in 2026: chain-link runs about $10-25/ft in the US (A$40-65/m in Australia); wood runs about $15-45/ft in the US, CA$27-50/ft in Canada, and £50-180/m in the UK depending on style and timber; vinyl runs about $30-60/ft in the US and CA$38-65/ft in Canada. Materials & Cost pre-fills a starting figure per region and material — replace it with a local quote for an accurate total.

How much stain do I need for my fence?

Turn on "Calculate stain needed" under Wood in Materials & Cost. One gallon typically covers 150-300 sq ft depending on the stain and wood porosity (check your product's label); the calculator multiplies your fence's length x height x sides (1 for one face, 2 for both) and divides by that coverage figure.

Is there a free fence calculator app?

This is a free, online calculator — no app, signup, or download required. It works the same in any modern browser on desktop or mobile.

Sources and methodology

The post, rail, picket, and concrete formulas follow commonly published fence-building rules of thumb, cross-checked against an independently published worked example. Regional cost figures are general, sourced 2026 starting points, not a live data feed.

Related calculators

  • Roofing CalculatorCalculate roof area, pitch, and roofing squares from a footprint, or estimate shingle bundles, metal sheets and weight, or flat-membrane materials and cost.
  • Gutter CalculatorSize gutters and downspouts from roof area and rainfall intensity (SMACNA, AS/NZS 3500.3, or BS EN 12056-3), or estimate materials and cost from a gutter run length.
  • Percentage CalculatorSolve X% of Y, what percent X is of Y, reverse percentage, increase/decrease, discounts, and tax, tip, or commission.

Home & energy disclaimer

This calculator estimates posts, rails, pickets, concrete, materials, and cost from the length, height, spacing, and figures you enter — it does not account for slopes, obstacles, soil conditions, frost depth, or local fence-height and boundary regulations, and it is not a substitute for a licensed fencing contractor's on-site quote. Material coverage, waste needs, and costs vary by product, region, and supplier, and change over time — confirm current figures with a local supplier or installer before purchasing.

How we calculate · Found an error? email us

Authorship & verification

Written and maintained by

  • Formula and examples verified on 6 August 2026
  • Educational estimate only

Add this calculator to your site

Responsive embed — and private: nothing your visitors type leaves their browser.