Fence Calculator: Posts, Pickets and Rails
Count posts, pickets and rails for a wood fence run, with room for gates and a spare allowance.
Enter a fence longer than its gates, with positive sizes.
- Fence run (less gates)
- ft
- Sections
- Rail length needed
- ft total
How the fence quantities are worked out
A fence is built from repeating sections, and every quantity follows from the section count. First, any gate openings are taken out of the total length, since a gate has its own frame and pickets. The remaining run is divided by the post spacing and rounded up to give the number of sections. Posts are the sections plus one, because both ends of a run need a post, plus one extra post for each gate opening.
Pickets depend on how much of the run each one fills: its width plus the gap. Divide the run in inches by that, round up after adding a spare allowance, and you have the count. Rails run horizontally between posts, so each section needs as many rails as you choose, each as long as the post spacing in this simple model. Those are planning assumptions, not code: fence style, height, wind load and local rules decide the real design.
Worked example: 100 ft of fence with 8 ft spacing
- No gates, so the run is 100 ft. Sections: 100 ÷ 8 = 12.5, rounded up to 13.
- Posts: 13 + 1 = 14.
- Pickets: 100 × 12 ÷ (5.5 + 0.5) = 200. Add 5%: 210, so 210 pickets.
- Rails: 13 sections × 2 = 26 rails, about 208 ft in total.
- With one 4 ft gate, the run is 96 ft: 12 sections, 12 + 1 + 1 = 14 posts, and 202 pickets.
Assumptions, waste and rounding
- Sections: the last section may be shorter than the spacing, but you still need a full post for it. The final rails are cut from full lengths.
- Pickets: a nominal 1×6 is about 5.5 inches wide in reality; a 1×4 is about 3.5. Enter the real width of what you buy.
- Extra: 5% for cutting and defects. This is a planning figure, not a published one.
- Rounding: everything rounds up to whole pieces.
- Not included: gate hardware and frames, post caps, fasteners, concrete and gravel, stain, and corner or end-post differences. Add a post if the fence has corners that need extra posts.
Pickets per 100 ft of fence
| Style | Picket + gap | Pickets, 5% extra |
|---|---|---|
| 1×6, privacy (no gap) | 5.5 in | 230 |
| 1×6 with ½ in gap | 6 in | 210 |
| 1×4 with 2 in gap | 5.5 in | 230 |
| 1×4 with ½ in gap | 4 in | 315 |
Setting the posts? The post hole concrete calculator works out the bags from your post count.
Frequently asked questions
How many fence posts do I need?
Divide the fence run by the post spacing, round up to whole sections, and add one more post because a run needs a post at both ends. With 8 ft spacing, a 100 ft fence has 13 sections and 14 posts. Each gate adds one more post here, because a gate opening needs a post on both sides.
What is the usual post spacing?
Six to eight feet between posts is common for wood fences, and 8 feet matches the length of a standard rail. Heavier loads, tall privacy fences and windy sites often use closer spacing. Follow your fence supplier’s guidance and any local rules.
How many pickets do I need per foot?
Divide 12 inches by the picket width plus the gap between pickets. A 5.5 inch picket (a nominal 1 x 6) with a 1/2 inch gap is 6 inches per picket, so 2 pickets per foot. Privacy fences use no gap: 12 ÷ 5.5 = 2.18 pickets per foot.
How many rails per section?
Two rails are common for fences up to about 4 feet, and three for taller privacy fences. The calculator assumes each rail is as long as one post spacing. Change the setting to match your design.
Does this include concrete for the posts?
No, but the Sonotube and post hole calculator tells you the bags for each post hole. Use the post count from here as the number of holes.
Related calculators
- Concrete CalculatorSlabs, footings and round columns in cubic yards and bags.
- Concrete Slab CalculatorPatios, pads and driveways by length, width and thickness.
- Concrete Bags CalculatorHow many 40, 50, 60 or 80 lb bags a volume takes.
- Gravel CalculatorCubic yards and tons of stone, pea gravel or road base.
- Mulch CalculatorBags or bulk yards of mulch for any bed and depth.
- Cubic Yard CalculatorConvert any box or round volume to cubic yards.