÷AIWebGrade

Fence Post Spacing Calculator

How many posts you need and exactly where each one goes.
123
Does the fence close on itself?
Advertisement
</> Embed this calculator on your website: free

Contractors, suppliers and bloggers: paste this code into any page to give your visitors this calculator. It's free, needs no sign-up and stays up to date.

How the spacing is calculated

Every straight side of the fence is split into equal sections no wider than your maximum spacing. Equal sections look better than seven full 8 ft bays and one odd 3 ft bay at the end, and every rail can be cut the same length.

  1. Sections per side = side length ÷ max spacing, rounded up.
  2. Actual spacing = side length ÷ sections.
  3. Posts = line posts on each side + one post at every corner and end + one extra per gate.

A fence that closes on itself (a full loop) has one post per section, because the last side meets the first. An open fence, like a backyard U-shape that meets the house, has one more.

Posts needed for a straight fence (8 ft max spacing)

Fence lengthSectionsActual spacingPosts
50 ft77.14 ft8
75 ft107.5 ft11
100 ft137.69 ft14
150 ft197.89 ft20
200 ft258 ft26
Advertisement

Example: a U-shaped backyard fence

Sides of 100, 50 and 100 ft, with the open side against the house, one 4 ft gate, 8 ft max spacing, two rails and 5.5 in. privacy pickets. The 100 ft sides get 13 sections of 7.69 ft, and the 50 ft side gets 7 sections of 7.14 ft. That's 35 posts (30 line, 4 corner/end, 1 gate), 66 rails and about 537 pickets.

Typical spacing by fence type

  • Wood privacy or picket: 8 ft max (6 ft on windy sites or for heavy boards)
  • Vinyl: set by the panel, usually 6 or 8 ft
  • Chain link: 10 ft max between line posts
  • Split rail: set by rail length, usually 10 or 11 ft
  • Welded wire or farm fence: 8–12 ft, with braced corners

Laying out the posts

  1. Check your property line and any HOA or city height rules before you start.
  2. Set the corner and end posts first, and pull a tight string line between them.
  3. Mark each line post along the string, measuring center to center from the corner post, using the distances the calculator lists.
  4. Call 811 before digging, then set posts at the depth from the fence post depth calculator.

Frequently asked questions

▸How far apart should fence posts be?

Most wood fences use posts 6 to 8 ft apart, center to center. 8 ft is standard because rails come in 8 ft lengths. Vinyl panel fences are usually 6 or 8 ft, set by the panel width. Chain link line posts can go up to 10 ft apart.

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

At 8 ft spacing, a straight 100 ft fence has 13 sections and needs 14 posts (sections + 1), spaced 7 ft 8-1/4 in. apart. Each corner, gate or extra side adds posts. Enter your sides in the calculator for the exact count.

▸How do you calculate fence post spacing?

Divide the length of each straight side by your maximum spacing and round up to get the number of sections. Then divide the side length by that number for the actual spacing. A 50 ft side at 8 ft max is 7 sections of 7 ft 1-3/4 in. each.

▸Do I measure fence post spacing center to center?

Yes. Spacing is measured from the center of one post to the center of the next. For pre-built vinyl or metal panels, follow the panel maker's spacing exactly, which is usually given center to center as well.

▸How many pickets do I need per 8 foot section?

For a privacy fence with 5.5 in. pickets and no gap, an 8 ft section needs about 18 pickets (96 ÷ 5.5 = 17.5). With a 2.5 in. gap, it needs 12.

▸How many posts do I need for a gate?

A gate needs a post on each side of the opening. One is usually a regular line post; the calculator adds one extra post per gate. Use heavier posts (6×6 wood or terminal-grade steel) for gates, and set them deeper.

Last updated November 2026. Results are estimates for planning and budgeting. Footing sizes, depths and reinforcement must meet your local building code. Check with your building department, and use a licensed engineer for anything structural you're unsure about.