Skip to content
CalculatPage

Fence Calculator

Estimate materials for a wood or similar fence.

Updated November 2026 · How we build calculators

Optional. Each corner needs an extra post.

Result

Your result will appear here

Enter your numbers, then press Calculate.

How the Fence Calculator works

Fence length excluding gates is divided by post spacing for sections. Posts equal sections plus one plus gate posts. Pickets fill the length based on width plus gap.

Formula used

Sections = ⌈length ÷ spacing⌉

Posts = sections + 1 + gates

Pickets = length × 12 ÷ (picket width + gap)

Step-by-step example

Using the default values in the calculator above:

  1. Total fence length: 150 ft
  2. Post spacing: 8 ft
  3. Gates: 1
  4. Gate width: 4 ft
  5. Picket width: 5.5 in
  6. Gap between pickets: 0.5 in
  7. Rails per section: 3
  8. Corners / direction changes: 4
  9. Fence height: 6 ft
  10. Price per linear foot installed (optional): $0
  11. Fence layout: Open run (ends at a house or wall)

The calculator then applies the formula above and returns:

  • Fence posts: 25 (19 sections)
  • Pickets / boards: 292
  • Rails: 57
  • Gates: 1
  • Fence length excluding gates: 146.0 ft
  • Concrete for posts (≈ 2 bags each): 50 bags
  • Post length (one-third buried + height): 9.0 ft

Notes on the inputs

Total fence length
You can also enter this as m.
Post spacing
You can also enter this as m.
Gate width
You can also enter this as m.
Corners / direction changes
Optional. Each corner needs an extra post.

What-if scenarios

Each table changes one input and keeps everything else at the calculator's default values.

If you change “Total fence length”
Total fence lengthFence posts
75 ft15
110 ft20
150 ft (default)25
230 ft35
300 ft43
If you change “Post spacing”
Post spacingFence posts
4 ft43
6 ft31
8 ft (default)25
12 ft19

Fence posts for different total fence length and post spacing

Every other input is left at its default value.

Fence posts: Total fence length (rows) by Post spacing (columns)
Total fence length4 ft8 ft12 ft
75 ft241512
110 ft332015
150 ft432519
230 ft633525
300 ft804331

Tips and background

Call 811 before digging to locate utilities.

How many posts for 150 feet of fence?

With 8-foot spacing and one 4-foot gate, a 150 ft run has about 19 sections, so around 25 posts counting both ends, the gate post and four corners. Pickets depend on width and gaps: 5.5-inch boards with a half-inch gap need about 290 for that run.

Post depth, concrete and permits

Bury about a third of each post (more in frost-prone areas), and set it in concrete, roughly two 50-lb bags each. Call 811 before digging and check local permit and height rules. Plan boundaries with the perimeter calculator, estimate footings with the concrete calculator and the lot with the square footage calculator.

Fence post spacing and how many fence posts you need for a privacy fence

For a wood privacy fence, fence post spacing is usually 6 to 8 feet, and closer spacing is stronger in windy areas. To work out how many fence posts you need, divide the run by the spacing, round up, then add one post to finish the line plus extra posts for corners and gates. A privacy fence picket calculator also has to count boards: each picket is the board width plus any gap, so wider boards mean fewer pickets. Walk the line before you buy and mark every post location.

How many posts and pickets does a fence need?

These examples use 8 ft post spacing, one 4 ft gate, four corners, 5.5 inch pickets with a half inch gap and three rails per section.

Fence lengthSectionsPostsPicketsRails
50 ft6129218
100 ft121819236
150 ft192529257
200 ft253139275

The corner allowance adds posts on its own, so set it to match your fence. A straight run has no corners.

How do post spacing and picket gap change the order?

On the 150 ft example, 6 ft spacing raises posts from 25 to 31 and rails from 57 to 75. Picket choices change the board count: 3.5 inch boards need 438, 5.5 inch boards with no gap need 319, with a half inch gap 292 and with a 2 inch gap 234. Buy spares, because some boards arrive split or warped and you will lose some to cuts.

How should you check corners, gates and closed layouts?

Walk the line and mark each post. With four corners on a 150 ft open run the calculator gives 25 posts, and with no corners 21. Choosing a closed loop gives 24, because it has no separate end post. These are counting rules, and a real layout can need a different number, for instance if a corner post also serves as an end post or each side of a gate needs its own. Gate posts carry more load and may need to be larger or set deeper.

What should you check before digging?

Call 811 before you dig so underground utility lines can be located. Check your property line, any survey or easement, local height and setback rules, permits and homeowner association rules. The calculator's figures of about two bags of concrete per post and a post length based on one third buried are rough planning settings. Depth depends on frost, soil, wind and fence style, so follow local requirements.

Common mistakes to avoid with the Fence Calculator

  • Forgetting corner and gate posts.
  • Setting posts too shallow for frost.
  • Not locating utilities before digging.

Official sources

These pages were read on November 27, 2026 to check facts and figures related to this calculator. Official guidance and limits can change. Post spacing, depth and local fence rules were not checked.

Frequently asked questions

How far apart should posts be?

6 to 8 feet depending on the fence type.

How deep should posts be?

About one-third of the post length and below the frost line.

Do I need a permit?

Often yes; check local rules.

How many pickets per foot of fence?

About 2 for 5.5-inch boards with a small gap.