Skip to content
AllCalcHub

Fence Calculator

Estimate posts, rails and pickets for a length of fence.

About the Fence Calculator

Divide the run by the post spacing (usually 2.4 m / 8 ft) for sections; posts are one more than sections, plus an extra post for each gate. Pickets = length ÷ (picket width + gap). Bury posts about a third of their length, and check local height limits and boundary rules.

The formula

Posts = ⌈length ÷ spacing⌉ + 1 + gates; pickets = length ÷ (width + gap)

Worked example

Example: Posts = 16

  1. Inputs: Units: Imperial (ft, in); Fence length: 80 ft; Post spacing: 6 ft; Rails per section: 2; Picket width: 2.8 in; Gap between pickets: 0.6 in; Gates: 1; Cost per section (materials): $48.
  2. Formula: Posts = ⌈length ÷ spacing⌉ + 1 + gates; pickets = length ÷ (width + gap)
  3. Result: Posts = 16
  4. Sections: 14
  5. Rails: 28
  6. Pickets: 283

Questions people ask

How deep should posts go?

About one third of the post length, at least 60 cm (2 ft), below frost line in cold climates.

How tall can my fence be?

Rules vary; many areas limit back fences to 2 m / 6 ft without permission.