Enter your fence line length and post spacing to find exactly how many posts and panels (or pickets) you need.
Fence Calculator
LiveThe formula
150 ft of fence line with posts every 8 ft, as a straight run: panels = ceiling(150/8) = 19, posts = 20. If that same length instead closes into a loop around a yard, it would need only 19 posts, since the last panel connects back to post #1.
Step-by-step guide
- Measure the total length of fence line you're building.
- Choose your post spacing - 6-8 ft is common for wood privacy fencing, while some materials and styles use different standard spacing.
- Indicate whether it's a straight run or a closed loop around a full perimeter, since a loop needs one fewer post than a straight line of the same length.
Why post spacing matters for cost and strength
Shorter post spacing (like 6 ft instead of 8 ft) means more posts and more digging, but generally a stronger, more rigid fence line, especially in windy areas or for taller fences. Manufacturer specifications for pre-built panels often dictate a fixed spacing that matches the panel width exactly, so check your specific fencing product before assuming a spacing.
Common mistakes
Frequently asked questions
How deep should fence posts be set?
A common guideline is at least one-third of the post's above-ground height, and often below your local frost line to prevent heaving - check local codes and soil conditions for your specific area.
Does this account for gates?
No - gates typically need dedicated, often larger posts to support the hardware and swinging weight. Plan gate locations and posts separately from this general fence line calculation.
What post spacing should I use for a chain-link fence?
Chain-link commonly uses posts every 10 feet, somewhat wider than typical wood privacy fencing - check your specific fence system's requirements.
Related calculators
See the full list of Construction calculators, or try: