Fence post calculator — how many posts do I need?

Turn your fence length and post spacing into a post count, then add posts for gates, free ends and corners.

Confirm panel/picket dimensions and bag yield against your product and order a little extra (~10%) for waste, corners, terrain and uneven runs. Panel sizes, picket widths, gaps and bag yields vary by product and brand.

Calculator

ft
ft
6–8 ft is typical for wood and vinyl runs.
posts
Count one per gate opening, free end and corner.
Posts needed (with gates/corners)29 posts
Line posts (straight run)26 posts
Sections25 sections
Extra (gate/end/corner) posts3

A 200 ft run at 8 ft on center is 25 sections26 line posts, plus 3 for gates, ends and corners = 29 posts. Spacing 6–8 ft o.c. is a labeled typical — heavier/taller fences use closer spacing.

Posts are the backbone of a fence and the first thing to count. Along a straight run, posts sit one spacing apart, and you always need one more post than the number of spans — the closing post at the far end. So the count is sections + 1, where sections is the line length divided by the spacing, rounded up.

Then the corners and gates add up. Every free end, every change of direction (a corner) and every gate opening needs its own post, over and above the straight-run count. A simple backyard rectangle with one gate typically carries three or four of these extra posts. Gate posts should also be heavier and set deeper than line posts — size those with the gate width & post calculator.

Spacing itself is a planning choice, not a fixed rule. 6–8 ft on center is typical for wood and vinyl; tall privacy fences, heavy panels and windy sites use closer spacing, while chain-link runs its line posts up to 10 ft apart. Tighten the spacing input and watch the post count climb.

Formula

sections    = ceil(line_length_ft ÷ post_spacing_ft)\nline_posts  = sections + 1\ntotal_posts = line_posts + extra_posts   (gates + ends + corners)

The +1 is the closing post of a straight run. Each gate opening, free end and corner adds exactly one post to extra_posts.

Worked example

200 ft run at 8 ft spacing, with one gate and two corners (3 extra posts):

  • sections = ceil(200 ÷ 8) = 25
  • line posts = 25 + 1 = 26
  • total = 26 + 3 = 29 posts

Reference table

Line posts by run length (straight run, before gates and corners):

Length6 ft7 ft8 ft10 ft
50 ft10986
100 ft18161411
150 ft26232016
200 ft35302621
300 ft51443931
500 ft85736451

Add one post for each gate, free end and corner.

Frequently asked questions

Why is it sections + 1 and not just sections?
Each section spans between two posts. Ten sections in a row share posts internally, but the run still needs a post at each end, so ten sections take eleven posts. In general a straight run needs sections + 1 posts.
How many extra posts should I add for corners and gates?
One per corner, one per free end and one per gate opening. A rectangular yard with a single gate usually adds three or four extra posts to the straight-run count.
What post spacing should I use?
6–8 ft on center is a typical planning range for wood and vinyl fences. Tall, heavy or windy fences use closer spacing; chain-link line posts run up to about 10 ft apart. These are labeled typicals — confirm against your product and local practice.
Do gate posts count the same as line posts?
No. Gate posts carry the swinging weight of the gate and are usually larger and set deeper than line posts, so buy and set them separately. Size them with the gate width and post calculator.