Skip to content

Fence Calculator

Enter your fence side by side and see the posts, rails, boards and concrete it takes.

Enter your fence side by side, with its gates, and see the posts, rails, boards or panels and bags of concrete it takes, drawn from above and in elevation. Add your own prices for a total.

ft

Gates

1
ft
0
ft
0

Style

Height

Posts at most

ft
More options3½ in posts · 5½ in boards · 3 rails · 3 ft in the ground · prices

Posts

in
in

Rails per section

in

QUIKRETE’s rule buries a third of the post and adds 6 in of gravel. Where the ground freezes, go below the frost line your building department gives.

Concrete bags

Your prices (optional, each)

$
$
$
$
$

ExampleYour fence

21posts

140 ft of fence with 1 gate: 19 sections between 21 posts, 57 rails and 299 boards.

Enter yours to see your result.

open (a house or another boundary)1 · 40 ft2 · 60 ft3 · 40 ft
From above: 21 posts, sides numbered in the order you entered them, gates drawn open, swinging into the yard.
3 ft in the ground6 ft6 ft on centre
A stretch of side 1 in elevation: sections of 6 ft on centre, each post 3 ft into the ground in a 10½ in hole of concrete on 6 in of gravel.
What to buy
Posts21 × 10 ft
Rails57 × 8 ft
Boards299 × 6 ft
Gates1 × 4 ft
Concrete60 × 80 lb
Gravel6.3 cu ft

Concrete per hole and bag sizes: post hole concrete calculator.

An estimate of materials to buy, not engineering or code advice. Check sizes with your supplier and local building department. Terms

My shopping list

Add each part of a job and print one list. It stays on this device.

How this works: 4 sources,

How this works

Method

Each side, less its gate openings, is split into equal sections no longer than the post spacing, with a post at every section end; neighbouring sides share their corner post. Boards and pickets are counted along every stretch with their gap (board on board as overlapping layers), panels one per section, rails per section. Post holes follow QUIKRETE’s rule (three times the post’s width across, a third of the post in the ground, 6 in of gravel) and the concrete bags its data sheet’s yields, with the NRMCA’s 10% extra.

Sources

How it’s tested

12 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.

Limits

An estimate of materials to buy, not engineering or code advice. Check sizes with your supplier and local building department.

Privacy

On your device. Nothing you enter or open leaves this browser. About privacy labels

Changes

  • First published: a fence of any shape drawn from above and in elevation, with posts, rails, boards, pickets or panels, gates and concrete.

Every change on What’s new

How we make toolsReport a mistake

Key facts

  • A backyard fence of 40, 60 and 40 ft with a 4 ft gate and posts at most 8 ft apart takes 21 posts, 57 rails and 299 butted 1×6 boards for a 6 ft privacy fence.
  • QUIKRETE’s instructions set a fence post a third of its length in the ground, in a hole three times its width across, on 6 inches of gravel.
  • So a 6 ft fence wants 9 ft of post, 3 ft of it buried: a 4×4 (3½ in) in a 10½ in hole takes about 3 bags of 80 lb concrete with 10% extra.
  • Neighbouring sides share a corner post, and every gate needs a post on each side of it.

Sources: QUIKRETE Setting Posts project sheet; QUIKRETE Concrete Mix data sheet; NIST PS 20-25 for dressed lumber sizes.

All 4 calculators

Posts · Fence styles

How the fence is counted

Walk the fence line and write down each straight side in order, with the gates on it. The calculator turns a corner between each side and the next, so the sides share their corner posts, and ticking “closes the loop” joins the last side back to the first for a fence all the way round. Gates split a side into pieces; each piece is divided into equal sections no longer than your post spacing, with a post at the end of every section, so the gate posts come out of the same count.

Then the infill. Boards on a privacy fence are counted along every piece, butted or with a gap; pickets the same with their gap; board on board in two overlapping layers; ready-made panels one per section. Rails run between posts, two or three or four a section as your design has them. For the example above that is 21 posts, 57 rails and 299 boards.

Every post goes in a hole of concrete, sized by QUIKRETE’s rule (three times the post’s width across, a third of the post in the ground, plus 6 in of gravel); the bags use the same yields as the concrete calculator. Prices are yours to enter: nothing here pretends to know what lumber costs where you live.

Sources

Product names are trademarks of their owners; Binary Decimal is not affiliated with any of them. Their instructions and data sheets are cited for the figures printed in them.

Common questions

How do I calculate how much fence I need?

Measure each straight side, subtract the gate openings, and divide each stretch by the post spacing, rounding up, for the sections; add one post per stretch, and take off one post per shared corner. The calculator does it side by side and counts the boards, rails and concrete too.

How far apart should fence posts be?

Many wood fences use 8 ft, which suits 8 ft rails, and some 6 ft for a stiffer fence in wind or with heavy boards; panels set the spacing to their width plus a post. Your supplier or the panel maker’s instructions give theirs.

How much concrete per fence post?

For a 4×4 on a 6 ft fence, QUIKRETE’s rule gives a 10½ in hole 3 ft deep on 6 in of gravel: about 1.55 cu ft of concrete, 2.6 bags of 80 lb, or 2.8 with 10% extra. Round up per post if you mix hole by hole.

How many boards for a 6 ft privacy fence?

About 2.2 boards a foot with 1×6 boards (5½ in wide) butted edge to edge: 100 ft of fence takes about 219, before gates. Leave a gap and it takes fewer.