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.