Fence Calculator
Enter the length of the fence and the greatest distance you allow between posts. The calculator gives the number of posts and sections, the real spacing and the rails for the number of rails you choose. Tick the closed loop box for a yard fenced all round. Type the width of a picket and the gap between pickets to get the number of pickets, the gap once they are spread out evenly and a count with a waste allowance. Use feet and inches or meters and millimeters. Everything runs in your browser.
The fence is split into equal sections no longer than the greatest distance you allow between posts, so the number of sections is the length divided by that distance, rounded up. An open fence needs one more post than it has sections, because both ends need a post, and a closed loop needs as many posts as sections. Rails are the sections times the rails in each one. For pickets, N pickets of width w with gaps of at least g fit in a length L when N times w plus N minus 1 times g is no more than L, and the gap shown is the real one once they are spread out evenly. Gates, corner posts that need to be stronger, and a slope in the ground change the count, so add to it for those. The waste allowance is yours to choose. Everything runs in your browser.
Related Tools
[5 suggestions]Concrete Calculator: Cubic Yards and Bags for a Slab, Footing or Column
Calculate the concrete for a slab, footing, wall or round column in cubic yards and cubic meters, with a waste allowance and the number of 80, 60 and 50 lb bags.
Math & MoneyBoard Foot Calculator: Lumber Volume, Waste and Cost
Work out the board feet in a stack of lumber from its thickness, width and length, add a waste allowance, and get the cost at your price per board foot.
Math & MoneyPaint Calculator: How Much Paint Do You Need for a Room
Work out how many gallons or liters of paint a room needs from its length, width and height, the doors and windows, the number of coats and the paint coverage.
Math & MoneyMulch, Soil and Gravel Calculator in Cubic Yards
Work out the cubic yards, cubic feet, cubic meters and bags of mulch, soil or gravel that fill one or more beds at a chosen depth.
Math & MoneyGeometry Calculator: Area, Perimeter, Surface Area and Volume of Shapes
Find the area, perimeter, surface area or volume of a circle, ellipse, rectangle, trapezoid, regular polygon, sphere, cylinder, cone or box from its measurements.
Student ToolsAbout the Fence Calculator
A fence is split into equal sections, each no longer than the greatest spacing you allow between posts. The number of sections is the length divided by that spacing, rounded up. An open fence needs a post at each end, so it has one more post than sections, while a closed loop has as many posts as sections. A fence 100 feet long with posts at most 8 feet apart has 13 sections, because 100 divided by 8 is 12.5, and 14 posts, or 13 in a closed loop. The sections are 7.69 feet each, and with 2 rails in a section the fence needs 26 rails. For pickets, N pickets of a given width with gaps of at least a given size fit in a length L when N times the width plus N minus 1 times the gap is at most L. Pickets of 5.5 inches with a 0.5 inch gap along 100 feet come to 200, and spread out evenly the gap is 0.5025 inch. With a waste allowance of 5 percent that is 210 pickets. In metric, 30 meters with posts 2.4 meters apart is 13 sections and 14 posts, and pickets 140 mm wide with a 10 mm gap come to 200. Gates, stronger corner posts and sloping ground change the count, so add for them.
How many fence posts do I need?▾
Divide the fence length by the greatest spacing and round up to get the sections, then add 1 for an open fence. For 100 feet with posts at most 8 feet apart that is 13 sections and 14 posts. A closed loop needs 13.
How many pickets do I need?▾
Divide the length plus one gap by the picket width plus one gap, and round down. For 100 feet, pickets 5.5 inches wide and 0.5 inch gaps, that is 200 pickets. Spread out evenly, the gap is 0.5025 inch.
How many rails do I need?▾
The number of sections times the rails in each section. With 13 sections and 2 rails in each, the fence needs 26 rails. Rails are bought in set lengths, so check how they fit the section length.
Why is a closed fence one post shorter?▾
An open fence has two ends, and each needs a post. In a closed loop the last section meets the first post again, so the posts equal the sections. A rectangular yard with 13 sections needs 13 posts.
Is my data uploaded?▾
No. The calculation runs in your browser and nothing you enter is sent anywhere.