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
Posts
Sections
- Rails
- Pickets
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
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.
- Units: switches the fields between the two unit systems.
- Fence length, in ft: enter 0 or more.
- 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.
- Rails per section: enter a number from 1 to 4.
- Picket width, actual (example value; measure your pickets), in in: enter 1 or more.
- Gap between pickets, in in: enter 0 or more.
- 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
| Symbol | Meaning | Unit |
|---|---|---|
| Fence length | ft | |
| Post spacing (example value; replace it with your plan's or the fence maker's figure) | ft | |
| Sections | ||
| Posts | ||
ceil(x) | the smallest whole number not below x. |
Worked example
| Fence length | 100 ft |
|---|---|
| Post spacing (example value; replace it with your plan's or the fence maker's figure) | 8 ft |
| Rails per section | 2 |
| Picket width, actual (example value; measure your pickets) | 5.5 in |
| Gap between pickets | 0 in |
| Sections | 13 |
|---|---|
| Rails | 26 |
| Pickets | 219 |
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.