How to use the fence calculator
- Measure the full fence line in feet, including every side.
- Enter the post spacing. Eight feet is standard for wood panels, 6 feet for many vinyl systems.
- Enter the panel width from the product label.
- Add posts for each gate and each corner beyond the basic count.
The formula
Posts = (fence length ÷ spacing) + 1, panels = fence length ÷ panel width.
Worked example
For example, 120 linear ft with 8 ft spacing needs 16 posts and 15 panels.
Good to know
- Call 811 before you dig so buried utilities get marked.
- Check your property line and any HOA or city height rules before you buy.
- Each gate needs two posts of its own, usually heavier than line posts.
Common questions
How many fence posts do I need?
Divide the fence length by the post spacing, round up, and add one. A 120 ft fence with posts every 8 ft needs 16 posts.
How far apart should fence posts be?
Six to 8 feet for most wood and vinyl fences. Closer spacing makes a stronger fence in windy areas.
How deep should fence posts be set?
At least one third of the post length, and below the frost line in cold climates. A 6 ft fence typically needs holes 24 to 30 inches deep.
Related guides
Related calculators
More decks, fences & exterior calculators → All calculators →
Want a chart instead? See how many bags of concrete per fence post for 4x4 and 6x6 posts by hole size.
Estimates are a starting point for shopping, not a substitute for a contractor's exact measurement. Always round up, check the coverage printed on your product, and keep your receipt for returns.