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. Works in feet/inches or metres/millimetres.

Runs & fence spec

01. Fence runs

02. Rails, pickets & posts

Calculated requirement
9fence posts

Rails

24 · 180 ft

Pickets / 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, with a post counted at every corner - so a whole boundary is just as easy to total as a single run. 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

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 a separate run so every junction gets its own post.
  • Buy a few spare pickets beyond the wastage allowance to replace any that split when nailing.

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 above and the calculator totals the posts, sharing nothing at corners so you have a post for every junction.

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?

For a pre-made panel fence, the number of panels equals the number of bays - divide the run length by the panel width and round up. A 20 m run with 1.8 m panels needs ceil(20 ÷ 1.8) = 12 panels and 13 posts. Set the post spacing to your panel width above and the calculator counts the bays (panels) and posts for each run.

05

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.

06

How do I handle gates and corners?

Add each straight length as its own run so corners each get a full 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.

Related calculators