ThisCalculator

Construction

Fence Post Calculator: Spacing & Materials

Updated · Standard formula, shown below

Total posts 16 count
Line posts
12 count
Result
Concrete per hole
1.36 ft³
Result
Total concrete
21.82 ft³
Result

Fence Post Calculator: Spacing & Materials

A fence post calculator works out how many posts you need, the spacing between them, and the total materials for a straight fence run. You enter the total fence length, the post spacing you want, and the number of corner or gate posts, and it returns the exact number of line posts, total posts, and a layout diagram. It also estimates concrete or gravel per hole when you give the post size and hole depth.

Formula

The core formula for the number of posts is:

Total posts = ⌈L / S⌉ + 1 + C

  • L = total fence length (in feet or meters)
  • S = desired center-to-center post spacing (same unit as L)
  • C = number of extra corner, end, or gate posts beyond the regular line
  • ⌈ ⌉ = ceiling function (round up to the nearest whole number)

For concrete volume per hole (assuming a cylindrical hole and a post that displaces some concrete):

Concrete per hole = π × (hole_diameter/2)² × hole_depth − π × (post_diameter/2)² × hole_depth

But many calculators simplify by using the hole volume only, ignoring the post displacement, which is fine for estimating because the post rarely fills the entire hole. The calculator above uses the hole volume only for simplicity.

Worked Example

Using the defaults: fence length = 100 ft, spacing = 8 ft, corners = 2, post diameter = 4 in, hole diameter = 10 in, hole depth = 2.5 ft.

  1. Number of gaps = 100 / 8 = 12.5 → round up to 13 gaps.
  2. Line posts = 13 − 1 = 12.
  3. Total posts = 13 + 1 + 2 = 16.
  4. Concrete per hole = π × (10/24)² × 2.5 = π × 0.1736 × 2.5 = 1.363 ft³ (rounded to 1.36).
  5. Total concrete = 1.36 × 16 = 21.8 ft³ (rounded to 21.8).

The calculator shows 16 total posts, 12 line posts, 1.36 ft³ per hole, and 21.8 ft³ total – matching the example.

When to Use This Calculator

Use it when planning any straight or near-straight fence: garden borders, pool enclosures, livestock pens, or privacy screens. It is most accurate for flat ground and straight lines. For slopes or curved fences, you need to adjust spacing and post lengths – the calculator gives a baseline, but you will need to measure each segment separately.

It is also useful for estimating material costs before buying lumber or metal posts. Many hardware stores sell posts in 8-foot lengths, so knowing the exact count prevents overbuying or running short mid-project.

How to Choose Post Spacing

Spacing depends on the fence type and local wind/snow loads:

  • Chain link: 8–10 ft spacing is standard.
  • Wood privacy: 6–8 ft spacing with 4×4 posts.
  • Split rail: 10–12 ft spacing, often with 3 rails.
  • High-tensile wire: 12–20 ft spacing with line posts, closer at corners.
  • Vinyl: 6–8 ft spacing, as panels are typically 6 or 8 ft wide.

Always check local building codes – some areas require specific spacing for wind resistance. Also, if you plan to attach heavy gates, place posts closer (4–6 ft) on either side of the gate opening.

Common Mistakes and Misconceptions

A frequent error is forgetting to add the end posts. Many people calculate the number of gaps and then just add one post, but for a straight run with two ends, you need gaps + 1. If the fence meets a building or another fence at a corner, you need a post at that junction too.

Another mistake is mixing units. If you measure the fence in feet but the spacing in inches, the result is wildly wrong. Always convert to the same unit before calculating.

Rounding errors: the ceiling function is essential. If you have 12.5 gaps, you cannot install half a gap – you must round up to 13 and adjust the actual spacing slightly. The calculator does this automatically.

A common misconception is that concrete volume should be calculated as the hole volume minus the post volume. While technically correct, the post typically occupies only 10–20% of the hole volume, and most builders ignore it for a conservative estimate. The extra concrete also helps anchor the post better.

Costs and Materials

While this calculator does not provide prices (they vary widely by region and material), you can use the post count to estimate costs:

  • Wood posts (4×4, 8 ft): $8–$15 each
  • Metal T-posts: $3–$8 each
  • Concrete mix (80 lb bag yields ~0.6 ft³): $5–$7 per bag

For the example above, 16 posts and 21.8 ft³ of concrete (about 36 bags) would cost roughly $300–$500 for materials, excluding rails and pickets. Always add 10% for waste and breakage.

Safety and Installation Tips

Before digging, call your local utility locating service to mark underground lines – this is free and required by law in many areas. Never dig near marked lines.

Set posts below the frost line in cold climates to prevent heaving. The hole depth should be at least 1/3 of the post height above ground. For a 6-ft fence, that means a 2-ft hole minimum.

Use concrete mix that is rated for fence posts, and slope the top of the concrete away from the post to shed water. Let the concrete cure for at least 24–48 hours before attaching rails or tensioning wire.

Wear safety glasses when cutting posts and gloves when handling concrete. If you are setting metal posts, use a post driver and never strike the post directly with a sledgehammer – use a driver tool to avoid mushrooming the top.

Alternatives to Concrete

Concrete is the most common backfill, but not the only option:

  • Gravel: Allows drainage and is easier to remove later, but less stable for tall fences.
  • Soil with tamping: Works for temporary fences or in very dry soil, but not recommended for permanent structures.
  • Foam backfill: Expanding foam is lightweight and fast, but more expensive and not as strong for large posts.
  • Steel spikes: Drive into the ground and insert the post – quick but not suitable for heavy gates or frost-prone areas.

Choose based on your soil type, fence height, and whether you might need to move the fence later.

Frequently Asked Questions

How many posts do I need for a 100-foot fence with 8-foot spacing?

You need 13 gaps (100/8 rounded up), which gives 12 line posts plus 1 end post, plus any corner or gate posts. For a simple straight run with two ends, that is 14 posts total. If you have corners or gates, add those extra posts.

What is the maximum spacing for fence posts?

It depends on the fence type. Chain link can go 10 ft, wood privacy should stay at 6–8 ft, and split rail can go 12 ft. For wire fences, spacing can be up to 20 ft if you use line posts and tension wire. Always follow manufacturer recommendations or local codes.

How deep should a fence post be?

A common rule is to bury one-third of the post height. For a 6-ft fence, that means a 2-ft hole. In cold climates, the hole must go below the frost line, which can be 3–4 ft deep in northern areas. Check your local frost depth.

How much concrete do I need per fence post?

For a 4×4 post with a 10-inch diameter hole, you need about 1.36 cubic feet of concrete per hole (as shown in the example). That is roughly two 60-lb bags or one and a half 80-lb bags. For larger posts or deeper holes, use the formula above.

Should I set fence posts in concrete or gravel?

Concrete is stronger and more permanent, but it can trap moisture against the post and cause rot. Gravel drains better and is easier to replace, but it is less stable for heavy gates or tall fences. For most permanent fences, concrete is recommended, but treat the post with preservative and slope the concrete away from the post.

Can I use this calculator for a curved fence?

No, this calculator assumes a straight line. For a curved fence, you need to measure the arc length and place posts at equal intervals along the curve, which may require more posts than a straight line of the same endpoint distance. Use a string or hose to mark the curve, then measure the total length.

Related

Formula used
in length | Fence length | ft | 100 | 0
in spacing | Post spacing | ft | 8 | 1
in corners | Corner/end/gate posts | count | 2 | 0
in post_d | Post diameter | in | 4 | 1
in hole_d | Hole diameter | in | 10 | 2
in hole_depth | Hole depth | ft | 2.5 | 0.5
out total_posts | Total posts | count | ceil(length / spacing) + 1 + corners | 0
out line_posts | Line posts | count | ceil(length / spacing) - 1 | 0
out concrete | Concrete per hole | ft³ | pi * (hole_d / 24)^2 * hole_depth | 2
out concrete_total | Total concrete | ft³ | pi * (hole_d / 24)^2 * hole_depth * (total_posts) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.