Free · No sign-up · Feet or meters

Fence Calculator

Turn the length of your fence line into the number of posts and panels to buy.

Enter your measurements

Results update as you type. Switch to metric with the button on the right.

Job: Fence
Estimate

Your result shows here once the page finishes loading.

How to use the fence calculator

  1. Measure the full fence line in feet, including every side.
  2. Enter the post spacing. Eight feet is standard for wood panels, 6 feet for many vinyl systems.
  3. Enter the panel width from the product label.
  4. 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

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.

Save or print your results

On a phone, choose Save as PDF on the next screen to keep a copy.