Fence Post Spacing Calculator

Determine exactly how many fence posts you need and how to space them evenly along your fence line for a professional-looking installation.

Number of Posts
14 posts
Number of Sections
13 sections
Total Post Material (8 ft posts)
112 linear feet
Advertisement

What is Fence Post Spacing?

A fence post spacing calculator determines the number of posts and fence sections required for a given fence length. Proper post spacing is critical to fence stability, appearance, and longevity. Posts that are too far apart allow the fence to sag and flex in the wind, while posts that are too close together waste material and labor. The standard spacing for most residential fences is 6 to 8 feet on-center (measured from the center of one post to the center of the next). This distance works well with standard pre-assembled fence panels, which are typically sold in 6-foot and 8-foot widths. If you are building with individual pickets or boards rather than panels, you have more flexibility in spacing but should still stay within the 6-8 foot range for structural integrity. The calculation is based on a simple principle: divide the total fence length by the desired spacing to get the number of sections, then add one to get the number of posts (since you need a post at both the beginning and end of the fence line). This is the classic "fence post problem" in mathematics, where the number of posts is always one more than the number of gaps between them. Corner posts, end posts, and gate posts require special consideration. These structural posts bear more load and are typically larger in diameter (6x6 instead of 4x4) or set deeper in concrete. The calculator includes end posts by default, which gives you the total count including the posts at each terminus of your fence line. For irregular fence lines with corners, calculate each straight section separately and add the results. Each corner requires its own post, which counts as both the end of one section and the beginning of the next. Gate openings also need posts on both sides, so subtract the gate width from your total fence length and add two gate posts separately. Post height depends on your fence style. A 6-foot privacy fence typically uses 8-foot posts (6 feet above ground plus 2 feet buried, or more depending on frost line requirements). A 4-foot picket fence uses 6-foot posts. Always check local codes for minimum burial depth requirements.

How to Calculate

  1. Measure your total fence length in feet along the planned fence line
  2. Choose your post spacing (8 feet is standard for panels; 6 feet for heavy or tall fences)
  3. Select whether to include end/corner posts in the count (yes for a complete fence line, no if you are filling between existing posts)
  4. Review the number of posts needed, number of fence sections, and total linear feet of post material required

Formula

Number of sections = ceiling(total_length / post_spacing) Number of posts = sections + 1 (with end posts) or sections - 1 (without end posts) Total post material = number_of_posts x 8 ft per post The ceiling function rounds up to ensure you have enough sections to cover the full fence length. If the length does not divide evenly by the spacing, the last section will be shorter than the others.

Example Calculation

Building a 100-foot fence with posts spaced 8 feet apart, including end posts: - Number of sections = ceil(100 / 8) = 13 sections - Number of posts = 13 + 1 = 14 posts - Total post material = 14 x 8 = 112 linear feet Note: The last section will be 4 feet wide (100 - 12x8 = 4 ft), so you may choose to adjust spacing slightly for a more even layout. Dividing evenly: 100 / 13 = 7.69 feet per section.

Advertisement

Frequently Asked Questions

What is the standard fence post spacing?

The standard is 8 feet on-center for most residential wood fences, matching the width of pre-made fence panels. For chain link fences, 10 feet is common. For heavy privacy fences or those in high-wind areas, 6 feet provides extra rigidity.

Should my last section be shorter than the others?

It is better to adjust all sections to be equal length for a uniform appearance. Divide your total length by the number of sections to get even spacing. For example, 100 feet with 13 sections gives 7.69 feet per section, which looks better than twelve 8-foot sections and one 4-foot section.

How do I handle corners in my fence line?

Calculate each straight run separately. The corner post counts as the last post of one run and the first post of the next, so subtract one post from the total when combining multiple runs that share corner posts.

What size posts should I use?

For most residential fences, 4x4 pressure-treated posts work for line posts. Use 6x6 posts for corners, ends, and gate posts as they bear more lateral force. For fences over 6 feet tall, consider 6x6 posts throughout.

Do I need to account for gates?

Yes. Subtract the gate opening width from your total fence length. Add two gate posts to your total post count. Gate posts should be larger (6x6) and set deeper in concrete to support the weight and movement of the gate.

How deep should fence posts be set?

The general rule is one-third of the total post length underground. For an 8-foot post with 6 feet above ground, set it at least 24 inches deep. In cold climates, posts must extend below the frost line, which can be 36-48 inches in northern regions.

Advertisement

Related Calculators