Skip to content
FiftyCalc Free calculators for all 50 states

Fence Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Enter the fence length and layout to count posts, rails and pickets.

Result

Sample figures

Posts—

Sections —

  • Rails—
  • Pickets—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Fence Calculator

Units: switches the fields between the two unit systems.

Fence length, in ft: enter 0 or more. Prefilled example: 100.

Post spacing (example value; replace it with your plan's or the fence maker's figure), in ft: enter a number from 1 to 12. Prefilled example: 8.

Rails per section: enter a number from 1 to 4. Prefilled example: 2.

Picket width, actual (example value; measure your pickets), in in: enter 1 or more. Prefilled example: 5.5.

Gap between pickets, in in: enter 0 or more. Prefilled example: 0.

Affiliate link

This is an affiliate link. As an Amazon Associate I earn from qualifying purchases. This does not change the result.

Search Amazon for fencing and fence installation supplies. Visit Amazon

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Units: switches the fields between the two unit systems.
  2. Fence length, in ft: enter 0 or more.
  3. Post spacing (example value; replace it with your plan's or the fence maker's figure), in ft: enter a number from 1 to 12.
  4. Rails per section: enter a number from 1 to 4.
  5. Picket width, actual (example value; measure your pickets), in in: enter 1 or more.
  6. Gap between pickets, in in: enter 0 or more.
  7. Read the result: Posts; the panel also shows Sections, Rails and Pickets.

How this calculator works

Sections = length ÷ post spacing, rounded up; posts = sections + 1 for a straight run (add one per corner or gate side).

Rails = sections × rails per section. Pickets = length (in) ÷ (picket width + gap), rounded up. Measure the actual width of your pickets.

The formula

  1. Se=ceil⁡(ls)
  2. P=Se+1
Symbols used in the formula
SymbolMeaningUnit
lFence lengthft
sPost spacing (example value; replace it with your plan's or the fence maker's figure)ft
SeSections
PPosts
ceil(x)the smallest whole number not below x.

Worked example

Fence length100 ft
Post spacing (example value; replace it with your plan's or the fence maker's figure)8 ft
Rails per section2
Picket width, actual (example value; measure your pickets)5.5 in
Gap between pickets0 in
Sections13
Rails26
Pickets219
  1. Se=ceil⁡(1008)=13
  2. P=13+1=14

Posts 14

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

How far apart should fence posts be?

Follow your local rules and the fence maker's instructions, and enter that spacing.

How many pickets for 100 feet of fence?

With 5.5-inch pickets and no gap, 219 pickets.

Questions answered

Related calculators