Skip to content
FigureWright

Fence Calculator

Estimate the posts, rails, pickets or panels, and concrete for a fence from its length, height and style.

Your fence

Units

Measure along the fence line, including gate openings.

Height above the ground.

Vertical 5½ in (1×6) pickets butted together on horizontal rails.

Maximum distance between post centers. 6–8 ft is typical.Maximum distance between post centres. 1.8–2.4 m is typical.

Corners & gates

Places where the fence changes direction.

The opening between the two gate posts.

Open: two free ends. Closed: encloses an area and returns to its start.

Extra boards for cuts, splits and defects. 5–15% is common.

Post holes & concreteDefaults: 10 in holes, 24 in deep, 4×4 posts, 50 lb bags.

About three times the post width is a common rule of thumb.

Often a third to a half of the post’s above-ground height. Local frost depth and rules may require more.

A 4×4 post actually measures 3½ in; a 6×6 is 5½ in.Measure the post itself: a 100 mm post is 10 cm.

Yields are typical for pre-mixed concrete. Check the figure printed on your bag.

Results update as you type. Fractions like 5 1/2 work too.

Your estimate

Imperial unitsMetric units
Fence posts
22
8 ft+ long
Rails
66
incl. 10% waste
Pickets
351
incl. 10% waste
Concrete bags
55
50 lb bags
7 ft 3⅝ in 6 ft
One section, drawn to scale

Fence line

Total fence line
150 ft
Gate openings
− 4 ft
Fenced length
146 ft
SectionsAcross 2 separate runs.
20
Average post spacingOn center, with posts spread evenly.
7 ft 3⅝ in

Posts

End posts
2
Gate postsOften upsized (e.g. 6×6) to carry the gate.
2
Line postsPosts along the straight runs.
18
Total postsAs few as 21 if every run divides evenly by the spacing.
22
Minimum post lengthFence height plus hole depth.
8 ft

Rails & pickets

Rails per sectionChosen from the fence height.
3
Rails before waste
60
Rails to buyEach at least 7 ft 3⅝ in long.
66
Pickets before waste5.5 in wide, no gaps.
319
Extra for waste
+ 32
Pickets to buy6 ft long to match the fence height.
351

Concrete

Concrete per hole
0.92 ft³
Total concrete
20.26 ft³
50 lb bags per hole
2.46
50 lb bags54.01 rounded up to whole bags.
55
  • Posts, rails, pickets, panels and bags are rounded up to whole units.
  • Corners and gates split the fence into 2 runs. Because each run is rounded up separately, the count allows one extra section per run.
  • The 10% waste allowance applies to pickets and rails, not posts or concrete.
  • Gates themselves (frame, boards, hinges and latch) are not included in these quantities.

A planning estimate, not a contractor quote. Fence rules, permitted heights, post depth and setbacks vary by location. Check with your local building authority before you build.

What this fence calculator estimates

Give it the length of your fence line, the height, the style and how far apart you want the posts, and it works out the main materials to buy: posts, rails, pickets, boards or panels, and bags of concrete to set the posts. It also tells you the real post spacing, the minimum post length and a breakdown of end, corner, gate and line posts.

It is built for planning and shopping lists. For a single material in more detail, use the fence post calculator, the wood fence calculator or the picket calculator. To price the job, use the fence cost calculator.

How to measure your fence line

  1. Mark the corners and ends of the fence with stakes. If you are near a boundary, confirm where it is first.
  2. Measure each straight run between stakes and add them together. A measuring wheel is quickest for long runs.
  3. Include gate openings in the total. The calculator removes them for you.
  4. Count the corners: every place the fence changes direction.

How the numbers are calculated

Sections and posts

A section is the span between two posts. The fenced length (total length minus gate openings) is divided by your post spacing and rounded up:

sections = ⌈ fenced length ÷ post spacing ⌉

A straight run needs one more post than it has sections. Corners and gates split the fence into separate runs; each is rounded up on its own, so the calculator allows up to one extra section per run. Corner posts are shared by the two runs that meet there. The gate posts are the posts either side of each opening.

Rails

Vertical-board fences get 2 rails per section up to about 4 ft (1.25 m) tall, 3 rails up to about 6½ ft (2 m), and 4 rails above that. Rails are counted per section and then the waste allowance is added. Horizontal board fences and panel fences don't need separate rails.

Pickets, boards and panels

Vertical pickets are counted along the whole fenced length:

pickets = ⌈ (fenced length + gap) ÷ (picket width + gap) ⌉

Horizontal fences get one board per row per section, with enough rows to reach the fence height. Panel fences get one panel per section.

Concrete

Each hole is treated as a cylinder, and the volume the post takes up is subtracted. The total is divided by the yield of your bag size and rounded up to whole bags.

Worked example

The calculator opens with this example: a 150 ft wood privacy fence, 6 ft high, posts at most 8 ft apart, one 4 ft gate, and 10% waste.

  • Fenced length: 150 − 4 = 146 ft.
  • Sections: 146 ÷ 8 = 18.25 → 19, plus 1 because the gate splits the fence into two runs = 20 sections.
  • Posts: 20 sections + 1 gate + 1 to finish the run = 22 posts (as few as 21 if both runs divide evenly).
  • Rails: 3 per section × 20 = 60, plus 10% = 66 rails.
  • Pickets: 146 ft = 1,752 in ÷ 5½ in = 318.5 → 319, plus 10% = 351 pickets.
  • Concrete: 22 holes, 10 in × 24 in around a 4×4, ≈ 20.26 ft³ ÷ 0.375 ft³ per 50 lb bag = 54.01 → 55 bags.

Fence styles in this calculator

StyleWhat it assumes
Wood privacy5½ in (1×6) pickets butted together, rails by height.
Picket3½ in (1×4) pickets with 2½ in gaps, rails by height.
Horizontal wood5½ in boards with ½ in gaps, fixed post to post, no rails.
PanelOne pre-built panel per section; enter the panel's on-center spacing.

Need a different board size, board-on-board or shadowbox? The wood fence calculator lets you set every dimension.

What this estimate leaves out

Every fence is a little different. This calculator doesn't know your slope, soil, wind exposure or local rules, and it doesn't count gate materials, post caps, fasteners, gravel, stain or tools. Treat the quantities as a solid starting list and check them against your plan before you buy.

Frequently asked questions

How many posts do I need for a 100 ft fence?

With posts no more than 8 ft apart, a straight 100 ft run needs 13 sections and 14 posts (100 ÷ 8 = 12.5, rounded up to 13, plus one post to finish the last section). Every corner and gate can add a post, which the calculator accounts for.

Does the calculator include the gate?

It subtracts the gate openings from the fenced length and counts the posts either side of each gate. It does not count the materials to build the gate itself. Most people buy a pre-made gate or build it from a separate cut list.

Why is the post count higher than length ÷ spacing?

Two reasons. A row of sections always needs one more post than it has sections. And corners and gates break the fence into separate runs that are each rounded up to whole sections. The results show the lowest possible count too, in case your runs happen to divide evenly.

How much waste should I allow?

Ten percent is a sensible default for pickets and rails. Go higher (around 15%) for lower-grade lumber or a layout with lots of angles; go lower if you are buying select boards and the runs divide neatly.

Can I use metric measurements?

Yes. Switch the toggle at the top of the calculator to metric and enter metres and centimetres. Your entries are converted, and the setting is remembered on the other calculators.

How these numbers are worked out, and their limits, is explained on the methodology page.