Fence Calculator
Count the posts, rails, pickets and concrete for a new fence.
Last updated 2026-11-28 · How we calculate this
Fence Materials
Enter the fence length and height to see the materials.
This is a planning estimate for one straight run of fence on level ground. Gates, corners and steps on a slope need extra posts, and gate posts usually need bigger holes and more concrete. It does not design the fence for wind, soil or height, and it does not count screws, nails, brackets or post caps. Check property lines, permits and height rules before you start, and in the US call 811 before digging so buried utility lines can be marked.
Quick Answer
Divide the fence length by the post spacing, round up and add one to get the posts. A 120 ft fence with posts every 8 ft has 120 ÷ 8 = 15 sections and 16 posts. With 5.5 in pickets laid edge to edge it needs 1,440 in ÷ 5.5 in = 261.8, so 262 pickets.
How to Use This Calculator
Choose "Pickets and rails" if you will build the fence on site from posts, rails and pickets, or "Ready-made panels" if you will hang panels between the posts. Enter the length of the fence and its height, then the post spacing, rails and pickets or the panel width. Finally enter the size of the post holes, the width of the posts and how much concrete one bag makes, from the bag. The calculator counts the posts, sections, rails, pickets or panels, the length of post to buy and the bags of concrete to set them.
- Choose "Pickets and rails" or "Ready-made panels".
- Enter the fence length and height.
- Enter the post spacing, rails and pickets, or the panel width.
- Enter the hole size, post width and concrete per bag, then read the materials.
The Formula
Posts = fence length ÷ post spacing, rounded up, + 1; Pickets = fence length ÷ (picket width + gap), rounded up; Concrete per post = (3.1416 × hole radius × hole radius − post width × post width) × hole depth; Bags = posts × concrete per post ÷ concrete per bag, rounded up
Posts sit at both ends of the fence and at every spacing in between, so a run divided into sections always has one more post than sections. Each section gets its rails, and the pickets cover the whole length at their width plus any gap. Panels fix the spacing themselves: every panel adds its own width plus one post. Each post hole is a cylinder, the area of its circle, 3.1416 × radius × radius, times its depth, and the square post takes up part of it, so the concrete is the hole less the post. Bags are rounded up once for all the posts together.
Worked Example
A 6 ft privacy fence 120 ft long with posts every 8 ft: 120 ÷ 8 = 15 sections, so 16 posts and 45 rails with three per section. Pickets 5.5 in wide with no gap: 1,440 ÷ 5.5 = 261.8, so 262. Posts 8 ft long go 2 ft into holes 10 in across; each hole takes 0.92 cu ft of concrete, 14.73 cu ft for all 16, which is 40 bags of 0.375 cu ft.
The same 120 ft in 8 ft panels with 3.5 in posts: (1,440 − 3.5) ÷ 99.5 = 14.44, so 15 panels and 16 posts, with the same 40 bags.
UK: a 20 m run of 1.83 m panels with 100 mm posts: (20 − 0.1) ÷ 1.93 = 10.31, so 11 panels and 12 posts. For a 1.8 m fence in holes 600 mm deep the posts are 2.4 m long. Holes 250 mm across take 23.45 L each, 281.43 L in all, which is 29 bags if each bag makes 10 L.
Frequently Asked Questions
Sources: The Home Depot, How to Build a Fence (post spacing and picket count); QUIKRETE, Fast-Setting Concrete Mix (yield per 50 lb bag); Jacksons Fencing, Post Fixing Mix (bags per post); Planning Portal, Fences, gates and garden walls (England)