Calculator
Fence Calculator
Estimate fence posts, rails, pickets and post concrete from total fence length, post spacing, gates and picket size.
A fence material list starts with one measurement: the total length of the fence line. From there, the post spacing sets how many sections and posts you need, the rails follow the sections, and the picket width and gap decide how many pickets cover the run. This calculator does all four and can add the concrete for setting the posts.
Project dimensions
Enter your measurements below. Results update with a waste allowance you can adjust.
Important disclaimer
This tool estimates posts, rails and pickets for straight fence runs. Corners, slopes and changes in direction can need extra posts. Post depth, hole size and setting method depend on soil, frost depth and local rules. Many areas require a permit or have height limits and setback rules, and utility lines must be located before digging. Cost uses only the price per picket you enter.
About this calculator
How the fence calculator works
- Fenced length = total length − (gates × gate width).
- Sections = fenced length ÷ post spacing, rounded up.
- Posts = sections + 1 + one extra post for each gate.
- Rails = sections × rails per section.
- Pickets = fenced length ÷ (picket width + gap) × (1 + waste% ÷ 100), rounded up.
Worked example: privacy fence with a gate
A 100 foot wood privacy fence with posts 8 feet apart, one 4 foot gate, 5.5 inch pickets butted together and 2 rails per section:
- Fenced length: 100 − 4 = 96 feet.
- Sections: 96 ÷ 8 = 12. Posts: 12 + 1 + 1 = 14.
- Rails: 12 × 2 = 24.
- Pickets: 1,152 inches ÷ 5.5 = 209.5, plus 10 percent = 231 pickets.
Worked example: spaced picket fence
A 150 foot run with no gate, 3.5 inch pickets with a 2 inch gap, posts 8 feet apart and 5 percent waste needs 19 sections, 20 posts, 38 rails and 344 pickets. At 2 bags of concrete per post, that is 40 bags.
Quick reference at 8 foot post spacing
| Fence length (no gates) | Sections | Posts | Rails (2 per section) |
|---|---|---|---|
| 50 ft | 7 | 8 | 14 |
| 100 ft | 13 | 14 | 26 |
| 150 ft | 19 | 20 | 38 |
| 200 ft | 25 | 26 | 50 |
Corners, slopes and gates
The post count assumes one straight run. Add one post for every corner or change of direction, since a corner post ends one run and starts the next. On slopes, stepped fences use the same number of posts but may need longer posts. Gates need sturdy posts on both sides; many builders use a larger post or set gate posts deeper.
Frequently asked questions
How far apart should fence posts be?
Wood fences are commonly built with posts 6 to 8 feet apart. Vinyl and metal panel systems have fixed panel widths, so use the panel width as the spacing.
How many bags of concrete per fence post?
It depends on the hole size and depth. A 10 inch hole 3 feet deep around a 4×4 post holds about 1.4 cubic feet of concrete, which is about 2 to 3 bags of 80 lb mix. Use the concrete footing and post hole calculator for your hole size.
Do I need a permit for a fence?
Many towns limit fence height and set rules for placement near property lines and streets, and some require a permit. Always have underground utilities marked before digging.
For a full planning walkthrough, read How Many Fence Posts and Pickets Do I Need?
Related guides
Practical planning guides paired with this calculator.
CostRafter Guide
Decks & Fences
Decks & Fences
How Many Pickets Are in an 8 Foot Fence Section?
Picket counts for 6 and 8 foot sections with common picket widths and gaps, plus how to plan spacing so the last picket lands neatly.
CostRafter Guide
Decks & Fences
Decks & Fences
How Many Fence Posts and Pickets Do I Need?
Measure the fence line, choose a post spacing, account for gates and corners, then count posts, rails, pickets and post concrete for your fence.
Related calculators
Other published tools in the same topic.
More in Decks & Fences
Browse published calculators and guides for this topic.
Open Decks & Fences topic →