Calculate My Reno All Calculators
Free materials calculator

Fence Calculator

Enter your fence run length and post spacing, set the rails per bay and picket size, and get the posts, rails, pickets and bags of post-mix concrete you need. Add your own unit prices - or an installed rate per foot - for a cost estimate. Works in feet/inches or metres/millimetres.

Runs & fence spec

Construction

01. Fence runs

Centre-to-centre post spacing - 2.4 m (8 ft) is a common default. Closer spacing makes a stiffer fence; wider needs stronger rails.

02. Rails, boards & posts

03. Cost estimate · optional

Enter the prices you are quoted - leave any blank to skip it. The calculator multiplies each by the quantity above.

Calculated requirement
9fence posts

Rails

24 · 180 ft

Boards

198

Bays

8

Post-mix bags

18

Guide & worked example

How this calculator works

It works for any wood or timber fence - picket, close-board, board-on-board or pre-made panels. A fence run is divided into bays no wider than the post spacing. Each bay is one panel; posts close each bay, rails span them, and pickets or boards clad the run:

bays    = ceil(run length ÷ post spacing)
posts   = bays + 1
rails   = bays × rails per bay
pickets = ceil(run length ÷ (picket width + gap) × wastage)
concrete = posts × bags per post

Bays round up so no gap is ever wider than your spacing - it is the post count people run short on, so the estimate stays on the generous side. Building an L-shaped, three-sided or full perimeter fence? Add a run for each straight length and the quantities pool. When a run starts off the end of the one before it, tick “Starts off the previous run at a corner” and the two runs share that corner post - so it is counted once, not twice. Leave it unticked for a detached run that needs its own posts at both ends. All math runs in exact metric internally, so switching units never changes the answer.

Worked example

This example follows the unit system you pick in the calculator above.

A 60 ft run at 8 ft post spacing, 3 rails per bay, 3.5 in pickets with a 0.5 in gap, 10% wastage, 2 bags of post-mix per post:

  1. Bays: ceil(60 ÷ 8) = ceil(7.5) = 8, so posts = 8 + 1 = 9 posts.
  2. Rails: 8 bays × 3 = 24 rails (180 ft of rail).
  3. Pickets: 60 ÷ (4 ÷ 12) × 1.10 = 180 × 1.10 = 198 pickets.
  4. Concrete: 9 posts × 2 = 18 bags.

Fence material guide

PartRule of thumb
Post spacing1.8-3 m (6-10 ft); 2.4 m (8 ft) is the common default
Rails per bay2 up to 1.2 m, 3 for privacy height, 4 over 1.8 m
Post depthAbout a third of the above-ground height, in concrete
Post-mix1-2 bags per standard post; more for tall or exposed posts
Picket gap0 for close-board/privacy, or the picket width for a classic spaced look

Stick-built or pre-made panels

The calculator builds a fence two ways - pick Construction at the top:

  • Stick-built - you buy posts, rails and individual pickets/palings/boards and assemble each bay on site. This is the default, and gives you the full rail and cladding counts plus a cladding wastage allowance.
  • Pre-made panels - a panel fence where the rails and infill come as one welded unit: pre-made timber lap/featheredge panels, or steel picket, tubular and garrison panels. You set the panel width and the post width, and the calculator counts whole panels (one per bay), posts, fixing brackets (per panel - or none for slotted posts) and post caps, instead of rails and pickets.

Unlike a stick fence - whose pickets run across the front of the posts, so the post width never affects the length - panels bolt to the side of the posts and sit between them. So each panel + post repeat eats up the panel width plus one post width, and the centre-to-centre post spacing is the panel width plus the post width.

Both modes share the same posts and post-mix concrete maths, and both feed the cost section below - so you can price a DIY steel-panel run by the panel, post, bracket, cap and bag, or take an installed rate per metre.

panels   = ceil(run length ÷ (panel width + post width))   (one panel per bay)
posts    = panels + 1   per run
brackets = panels × brackets per panel
caps     = posts

How much does a fence cost?

The materials list above is what sets the price, so this calculator estimates cost from your numbers rather than a national average that drifts out of date. In the Cost estimate section, pick how you are pricing the job:

  • Buy the parts (DIY) - enter a price per post, per rail, per picket/board and per bag of post-mix. Each is multiplied by the quantity already worked out, then itemised and totalled, so you can see exactly where the money goes.
  • Installed price - enter a single contractor rate per foot (or per metre) of fence. A fitted quote bundles posts, rails, boards, concrete and labour into that one rate, so the cost is simply your fence length × the rate.
material cost = posts × $/post + rails × $/rail + pickets × $/picket + bags × $/bag
installed cost = total fence length × installed rate per foot

Leave any price blank to skip it - a partial list still totals, so you can price just the pickets if that is all you need. Cost figures are indicative; set each price to a real quote for your area, and add gates, hardware and any tool hire or waste removal separately.

Tips for setting out

  • Set the two end posts first, run a string line between them, and space the intermediate posts off the line so the fence is dead straight.
  • Dig post holes about three times the post width and a third of the fence height deep, then set each post in post-mix with a slight fall away from the timber.
  • For a spaced picket fence, set the gap equal to the picket width for an even look; for privacy, set the gap to zero so boards butt or overlap.
  • Add each side of a corner or stepped fence as its own run, and tick “Starts off the previous run at a corner” so the shared post at each turn is counted once.
  • Buy a few spare pickets beyond the wastage allowance to replace any that split when nailing.

Fence terms where you are

In the United States, the vertical cladding boards are called pickets - butted with no gap for a privacy fence - and 4×4 posts are set in fast-setting (post-mix) concrete.

Fence guides

Go deeper on any part of the job:

Frequently asked questions

01

How many fence posts do I need?

Divide the run length by the post spacing, round up to get the number of bays, then add one for the closing post. A 20 m run at 2.4 m spacing needs ceil(20 ÷ 2.4) = 9 bays, so 10 posts; a 60 ft run at 8 ft spacing needs 8 bays and 9 posts. Add a fence run for each straight length and the calculator totals the posts. For an L-shaped, three-sided or perimeter fence, tick "Starts off the previous run at a corner" on each run that turns off the one before it, and the shared corner post is counted once instead of twice.

02

How far apart should fence posts be?

Timber fence posts are usually set 1.8-3 m (6-10 ft) apart on centre, with 2.4 m (8 ft) the common default that suits standard rail and panel lengths. Closer spacing makes a stiffer fence in exposed or windy spots; wider spacing uses fewer posts but needs stronger rails. Pick the spacing above to match your panels or rails.

03

How many rails does a fence need?

Use 2 rails for a fence up to about 1.2 m (4 ft) and 3 rails for a taller close-board or privacy fence, with a fourth on anything over about 1.8 m (6 ft). The calculator multiplies the number of bays by the rails per bay, and also gives the total linear length of rail to buy.

04

How many fence panels do I need?

Switch the calculator to Pre-made panels and the number of panels equals the number of bays - the run length divided by the panel width, rounded up. A 20 m run with 1.8 m panels needs ceil(20 ÷ 1.8) = 12 panels and 13 posts. In panel mode the calculator drops the rail and picket counts (the panel is one welded unit) and instead totals panels, posts, fixing brackets and post caps for each run.

05

How do I estimate a steel picket or tubular fence?

A steel picket, tubular or garrison fence is a pre-made panel fence, so set Construction to Pre-made panels, put your panel width in (2.4 m is the common steel panel), and choose the brackets per panel - 4 (top and bottom each end) for bracketed posts, or none if the panels slot into pre-punched posts. The calculator returns panels, steel posts, brackets and post caps, plus the post-mix concrete. Add your supplier prices in the cost section for a material total, or an installed rate per metre for a fitted quote.

06

How much concrete do I need per fence post?

A typical 100 mm (4 in) post in a 300 mm wide hole takes one to two bags of fast-setting post-mix per post; heavier or taller posts in exposed spots can take more. Set the bags per post above - the default of 2 is a safe allowance for a standard garden fence - and the calculator multiplies by the post count.

07

How do I handle gates and corners?

Add each straight length as its own run. Where one run turns off the end of another - an L or a corner - tick "Starts off the previous run at a corner" so the shared corner post is counted once, not twice; leave it unticked for a separate, detached run that needs its own end post. For a gate, the calculator counts the line posts; a gate also needs two strong hanging/latch posts and its own hardware, so add those separately. Heavy gates often need deeper, wider footings than the line posts.

08

How much does a fence cost?

Fence cost is driven by the material list this calculator produces, so the most accurate estimate uses your own local prices rather than a baked-in average. In the cost section, either enter a price per post, rail, picket and bag of post-mix to total the materials, or switch to an installed rate per foot/metre to price a contractor job. The calculator multiplies each price by the quantity it already worked out - so the estimate always matches your exact fence, and nothing goes out of date.

09

Is it cheaper to build a fence yourself?

DIY saves the labour, which is often a third to a half of an installed quote. Use the cost section both ways to compare: enter your material unit prices under "Buy the parts" for the DIY material cost, then switch to "Installed price" and enter a contractor rate per foot to see the fitted price. The gap between the two is roughly what you save by doing it yourself - before tool hire, your time and any waste-removal.

Related guides

Related calculators