Fence Calculator

How many posts, panels or pickets and rails, or chain link fabric, to buy for a fence of a given length, with gates, post concrete and cost.

ft

ft

Distance between posts, centre to centre. Panels are often 6 or 8 feet wide.

ft

in

For the concrete in each post hole. Leave empty to skip the concrete.

in

Often a third of the post length, and below the frost line where that applies. Check your local rules.

in

A 4 by 4 post is 3.5 inches. The post takes up room in the hole.

Installed or material price per foot. Leave empty to skip.

80 lb bags in feet and inches, 25 kg bags in metric.

Posts needed

14

12 fence panels

Fence length without gates
96 ft
Sections between posts
12
Posts
14
Gates
1
Fence panels
12
Concrete for the posts
14.2 cu ft, or 24 bags of 80 lb

A fence 100 ft long with 1 gate and posts every 8 ft needs 14 posts and 12 sections.

Add this calculator to your website

Free to use on any site or blog. Paste this code where you want the calculator to appear. It stays up to date, needs no account, and keeps your visitors' numbers in their own browser.

Preview

How it works

A fence is a row of sections held between posts. Take away the length of the gates, divide what is left by the post spacing and round up to get the number of sections. A straight run with that many sections needs one more post than sections, and each gate adds one more section between two posts.

For ready-made panels, the number of panels is the number of sections. For a picket fence, the pickets are counted along the length: every picket takes its own width plus the gap, so the number is the length divided by that, rounded up. Rails run between posts, two for a low fence and three for a taller one.

Each post stands in a hole filled with concrete. The concrete in one hole is the round hole minus the square post standing in it, so a 10 inch hole 24 inches deep around a 4 by 4 post takes about 0.9 cubic feet. The calculator adds 10% for holes dug wide and gives bags of 80 lb mix. Hole depth is your input, because it depends on the frost line and the fence height.

For a chain link fence the posts are split into terminal posts (the two ends, the two posts of each gate and every corner) and line posts. Fabric is counted in rolls and top rail in pipe lengths. Wood fences use the pickets and rails option. Enter your own prices for posts, gates, concrete bags and the fence per foot if you want a cost.

Corners and ends are counted as posts already. If your fence turns a corner, the corner post is shared by two sections, so the post count stays correct as long as the total length is right. If a section is shorter than the spacing, it still needs a whole panel or a cut one.

Check it by hand: a run of 100 ft with one 4 ft gate leaves 96 ft of fence. With panels 8 ft wide that is 96 ÷ 8 = 12 sections. Twelve sections need 13 posts, and the gate opening adds one more, so 14 posts. The fence has 12 panels plus the gate.

Sections = (length − gates × gate width) ÷ post spacing, rounded up
Posts = sections + gates + 1
Pickets = fence length without gates ÷ (picket width + gap), rounded up
Rails = sections × rails per section
Post concrete = (π × (hole diameter ÷ 2)² − post width²) × depth × posts × 1.10
Chain link: terminal posts = 2 + 2 × gates + corners, rolls = length ÷ roll length, top rail = length ÷ pipe length (all rounded up)

Worked example

A fence 100 feet long with one 4 foot gate and posts every 8 feet. The fence without the gate is 96 feet, which is 96 ÷ 8 = 12 sections.

The posts are 12 + 1 (gate) + 1 = 14. With 5.5 inch pickets and a 1/2 inch gap you need 96 × 12 ÷ 6 = 192 pickets and 24 rails with 2 rails per section.

Good to know

  • Posts are counted for a single straight run. A closed loop, such as a yard fenced on all sides, needs the same number of posts as sections, so subtract one from the result.
  • The count does not include gravel, post caps, hinges, latches, tension bands or tie wire. Posts also need to be longer than the fence height, to go into the ground.
  • Frost depth, soil and local rules decide how deep posts must be set and how tall a fence may be. Check with your local authority before you build.

Questions people ask

How many fence posts do I need for 100 feet?

With posts every 8 feet you need 14 posts for 100 feet with one gate, or 14 for a plain 100 foot run with no gate (13 sections plus one). Use the calculator with your own spacing and gates.

How far apart should fence posts be?

Between 6 and 8 feet (1.8 to 2.4 m) is common. Use the width of your panels, or no more than 8 feet for wood rails, so the fence does not sag.

How many pickets do I need per foot?

With 5.5 inch pickets and a 1/2 inch gap, you need 2 pickets per foot. With no gap, you need a little over 2.

How much concrete do I need for each fence post?

A 4 by 4 post in a 10 inch hole that is 24 inches deep takes about 0.9 cubic feet, which is about one and a half 80 lb bags (an 80 lb bag makes 0.6 cubic feet). Enter your hole size and the calculator totals it for the whole fence.

How do I calculate a chain link fence?

Choose chain link above. It gives terminal and line posts, rolls of fabric and top rail pieces. Line posts are usually spaced no more than 10 feet apart, and the ends, corners and gates need heavier terminal posts.

How do I estimate the cost of a wood fence?

Pick pickets and rails, then enter your price per foot for the finished fence, or your prices for posts, gates and concrete bags. The calculator multiplies them by the counts and adds up what you entered.

Does the gate need extra posts?

Yes, a gate needs sturdy posts on each side to carry its weight. The calculator counts one extra span for every gate, which gives the extra post.

How many posts do I need for 100 feet of fence with one gate?

14 posts with panels 8 ft wide: 12 sections, 13 posts, and one extra for the gate.

Part of the guide: Building material calculators: concrete, blocks, bricks, flooring and more, Roof, stair, deck and structure calculators

Formulas and text last checked on 6 October 2026. Everything is calculated in your browser, so nothing you enter is sent or stored. Spotted a mistake? Tell us and we will fix it.