Draw your yard, pick the sides to fence and add gates. You get posts, rails, pickets and concrete bags, with every step shown.
Answer
20 posts
Pickets300
Rails36
Concrete bags40
140 ft of fence. 1 open run, so one end post per run. Includes 1 gate post.
Drag the corner to resize · tap a side to add or remove it · dots are posts
Why this answer
Sections. A section is the span between two posts, so each side needs ⌈length ÷ spacing⌉ of them: right 40 ft → 5; back 60 ft → 8; left 40 ft → 5. Total 18.
Posts. A straight run needs one more post than it has sections, because it has two ends. You have 1 run, so add 1, and each gate adds one: 18 + 1 + 1 = 20.
Rails. 18 sections × 2 rails = 36.
Pickets. 136 ft without gates × 12 = 1,632 in. Each picket takes 5.5 + 0.5 in, so 272 pickets. Add 10% for bad boards and cuts: 300.
Concrete. 20 posts × 2 bags = 40.
Put it to use
Before you buy
Corner and gate posts take the most load, so many builders use a heavier post there and set them deeper.
Typical wood fences space posts 6 to 8 ft apart. Match the spacing to your rail or panel length so the rails land on posts.
Bag counts depend on hole size. Check the chart on your concrete bag, and call 811 before you dig.
On slopes, stepped panels or racked rails change the picket count, so add extra waste.
How it works
This calculator counts posts, rails, pickets and concrete bags for a rectangular yard. You enter the width and depth, pick which sides to fence, and add gates.
Each side is split into sections, the spans between posts. A straight run needs one more post than it has sections, but fenced sides that meet share a corner post. So an enclosed yard needs as many posts as sections, and each open run adds one end post. Each gate adds one post, since it hangs between a hinge post and a latch post.
Pickets fill the fence length minus gate openings, plus waste. The front and back use the yard width; the left and right use the depth.
Sections per side = ⌈side length ÷ post spacing⌉Posts = total sections + open runs + gates (open runs = 0 when all four sides are fenced)Rails = ⌈sections × rails per section⌉Pickets = ⌈(fence length − gates × gate width) × 12 ÷ (picket width + gap) × (1 + waste% ÷ 100)⌉Concrete bags = ⌈posts × bags per post⌉
Worked example: A 70 × 45 ft yard fenced on the back, left and right, with one 4 ft gate
Sections at 8 ft spacing: back 70 ÷ 8 = 8.75 → 9, left 45 ÷ 8 = 5.625 → 6, right → 6. Total 9 + 6 + 6 = 21.
Posts: the three sides form 1 open run, and there is 1 gate, so 21 + 1 + 1 = 23 posts.
Rails: 21 sections × 3 rails = 63 rails.
Pickets: (160 − 4) ft × 12 = 1,872 in, and 1,872 ÷ (5.5 + 0.5) = 312. With 10% waste, 312 × 1.1 = 343.2 → 344 pickets.
Concrete: 23 posts × 1.5 bags = 34.5 → 35 bags.
Common mistakes
Dividing the total length by the spacing in one go. Each side is rounded up on its own, since a partial section can't borrow space from another side.
Forgetting end posts. Fencing only the left and right sides makes two open runs, so you need two extra posts.
Counting pickets across the gate. The page removes the gate width first, since gates are built or bought separately.
Frequently asked questions
How many fence posts do I need?
Round up each side's length ÷ post spacing to get sections. Add one post per open run and one per gate. On an enclosed yard, posts equal sections plus gates.
How far apart should fence posts be?
Typically 6 to 8 ft for wood fences. Match the spacing to your rail or panel length so each rail lands on a post.
How many bags of concrete per fence post?
It depends on hole and bag size. Check the chart on your bag and enter that number here.
Does fencing all four sides save posts?
Yes. Every corner is shared and there are no open ends. All four sides of the 70 × 45 ft yard give 30 sections + 1 gate = 31 posts.