Fence Calculator (Posts & Panels)

Plan a fence from its length: posts, panels or pickets, rails and concrete per post. Add gates and corners. Free fence calculator.

Units
Straight run, 100 ft long.100 ft
ft
ft
6 ft and 8 ft are common
ft
Typical; depends on hole size

Fence posts you need to buy

14 posts

13 panels28 bags of concrete

In bags

28 bags (50 lb concrete)

Fence: posts, panels or pickets, and concrete
MeasureAmount
Fence run after gates, ft100.00
Sections13
Posts14
Panels13
Concrete, 50 lb bags28
Estimate the cost (optional)

Enter a price to see an estimate.

Your price × quantity; excludes delivery and tax. Not a quote.

Enter the total length of your fence and the calculator returns the posts, panels (or pickets and rails) and the bags of concrete to set the posts. Subtract gates, choose your panel width and post spacing, and tick "closed loop" for a fence that goes all the way round.

How we calculate

  1. Fence run = total length − (gates × gate width). The default gate is 4 ft wide.
  2. Panels = ceil(run ÷ post spacing). Post spacing equals panel width; 6 ft and 8 ft are common, and 8 ft is our default.
  3. Sections = panels + gates. Posts = sections + 1 for an open run, or posts = sections for a closed loop.
  4. Concrete = posts × bags per post. We default to two 50 lb bags per post, a typical figure; your post size and hole depth decide the real amount. Post spacing, panel widths and concrete per post are trade conventions, and we did not find an authoritative source to cite, so follow your fence maker's instructions. For general fence planning, many university extension offices publish guides; search your state's extension site (extension.org).
  5. Picket style: pickets = ceil(run in inches ÷ (picket width + gap)), and rails = sections × rails per section (default 3).

Worked example

A fence 100 ft long with one 4 ft gate, 8 ft panels and an open run:

  • Run: 100 − 4 = 96 ft, so 12 panels
  • Sections: 12 panels + 1 gate = 13
  • Posts: 13 + 1 = 14 posts
  • Concrete: 14 × 2 = 28 bags

A closed loop of 96 ft with no gate: 12 panels, 12 posts, 24 bags. A picket fence 48 ft long with 8 ft sections, 3 rails, 5.5 in pickets and 0.5 in gaps: 7 posts, 18 rails and 96 pickets.

Practical tips

  • Mark corners and ends first. Real fences have corners; calculate each straight run separately if post spacing needs to adjust.
  • Panels are rigid. A run that's not a multiple of the panel width will leave a gap; some people cut a panel, others shift post spacing slightly.
  • Plan the gate carefully. Gates need strong posts and the gate posts are counted as part of the sections.
  • Call before you dig. Locate buried utilities before digging post holes (in the US, dial 811).
  • Check rules. Local codes and neighbourhood rules set fence height, setbacks and permits.

Frequently asked questions

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

For 8 ft panels with no gates, 13 panels need 14 posts in an open run. Gates change the result; see our [100 ft fence example](/fence-panels-for-100-ft-privacy-fence/).

How far apart should fence posts be?

Panels set the spacing: usually 6 or 8 ft. For pickets or rails, follow the rail manufacturer's span.

How many pickets do I need?

Divide the run (in inches) by the picket width plus the gap, and round up. The calculator does this for you.

How much concrete per post?

Commonly one or two 50 lb bags, depending on post size and hole depth. Check the bag's instructions.

Do corners and gates need extra posts?

Corners share a post between two runs. Gates have a post on each side, which the sections count includes.

Estimate only. These results are estimates. Buy 5-10% extra and check quantities and product details with your supplier before you order.

Next steps

Common sizes