YardCalculation

Fence Calculator

Plan a wood fence: find how many posts, rails, pickets (boards) and bags of post concrete you need for any length of fence.

Gates are not included. Subtract the gate width from the fence length and add two posts for each gate.

How to use the fence calculator

Enter the total length of the fence line, the distance between posts and the number of horizontal rails per section (2 for fences up to about 4–5 ft, 3 for 6 ft privacy fences). Then enter the width of one picket or board and the gap you want between them. For a privacy fence with no gaps, leave the gap at zero.

The fence formulas

Sections = fence length ÷ post spacing (round up)
Posts = sections + 1
Rails = sections × rails per section
Pickets = fence length ÷ (picket width + gap)

Example: a 100 ft fence with posts every 8 ft has 13 sections, so you need 14 posts and 26 rails for a 2-rail design. With 5.5 inch wide boards and no gap, you need 1,200 ÷ 5.5 = 219 pickets.

Metric example: a 30 m fence with posts every 2.4 m has 13 sections and 14 posts. In the UK, panel fences are common: with 1.83 m (6 ft) panels you would need 17 panels and 18 posts instead.

Post spacing

Most wood fences use posts 6 to 8 feet apart (about 1.8–2.4 m). Closer spacing makes a stronger fence and is better in windy areas or for tall privacy fences. For panel fences, the spacing is set by the panel width plus the post.

How deep should fence posts be?

A common rule is to bury about one third of the post's total length, and in cold climates to go below the frost line. For a 6 ft high fence, an 8 ft post with 2 ft in the ground is typical (some builders use 9 ft posts set 3 ft deep). Holes are usually about three times the width of the post. The calculator estimates about two bags of post concrete per post; for an exact figure, size one hole in the concrete calculator using the circle option.

Common fence materials

PartTypical size (US)Typical size (UK)
Posts4 × 4 in, 8 ft long75 × 75 mm or 100 × 100 mm
Rails2 × 4 in, 8 ft longArris or cant rails
Pickets / boards1 × 6 in (5.5 in actual)Featheredge 100–125 mm

Note that US lumber is sold by "nominal" size: a 1 × 6 board is actually about ¾ × 5½ inches, which is why the default picket width here is 5.5 in.

Before you build

  • Confirm your property line, and check local rules on fence height and any homeowners' association guidelines.
  • Call 811 in the US (or check for buried services in the UK) before you dig post holes.
  • Use pressure-treated or naturally rot-resistant timber for posts and galvanized or stainless fasteners.

Frequently asked questions

How many fence posts do I need for 100 feet?

With posts every 8 feet you need 14 posts for a straight 100 ft fence. With 6 ft spacing you need 18.

How far apart should fence posts be?

Most wood fences have posts 6 to 8 feet (1.8 to 2.4 m) apart. Use the closer spacing for tall fences or windy sites.

How many pickets do I need for a fence?

Divide the fence length in inches by the picket width plus the gap. For 100 ft with 5.5 inch boards and no gap, that is 219 pickets.

How much concrete do I need per fence post?

Usually one to two 50 lb bags of fast-setting concrete per post, depending on the hole size.

Last updated: November 23, 2026. The figures on this page are typical values for planning. Product sizes, densities and coverage vary, so check the label or ask your supplier before you order.